Simple Question (Direct)
Simple Question
Q16093984
P102
Q7210356
USER
Which party does Frank Megaro belong to ?
(Q16093984,P102,c(Q7210356))
action filter_type
action find
entity Q16093984
relation P102
type Q7210356
['Q16093984', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q16093984 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Frank Megaro
action filter_type
action find
entity Frank Megaro
relation member of political party
type political organization
['Frank Megaro', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Frank_Megaro property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q16093984,P102,c(Q7210356))
action filter_type
action find
entity Q16093984
relation P102
type Q7210356
Frank Megaro belongs to [ANSWER]
['Q16093984', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q16093984 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Democratic Party
Frank Megaro belongs to Democratic Party
Democratic Party
action filter_type
action find
entity Frank Megaro
relation member of political party
type political organization
['Frank Megaro', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Frank_Megaro property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16093984
P937
Q56061
USER
Where did Frank Megaro work ?
(Q16093984,P937,c(Q56061))
action filter_type
action find
entity Q16093984
relation P937
type Q56061
['Q16093984', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q16093984 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Frank Megaro
action filter_type
action find
entity Frank Megaro
relation work location
type administrative territorial entity
['Frank Megaro', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Frank_Megaro property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q25330
SYSTEM
Trenton
Q25330
(Q16093984,P937,c(Q56061))
action filter_type
action find
entity Q16093984
relation P937
type Q56061
Frank Megaro worked in [ANSWER]
['Q16093984', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q16093984 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Trenton
Frank Megaro worked in Trenton
Trenton
action filter_type
action find
entity Frank Megaro
relation work location
type administrative territorial entity
['Frank Megaro', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Frank_Megaro property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16093984
P1412
Q34770
USER
Which language is spoken by Frank Megaro ?
(Q16093984,P1412,c(Q34770))
action filter_type
action find
entity Q16093984
relation P1412
type Q34770
['Q16093984', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q34770 . resource:Q16093984 property:P1412 ?o }
Frank Megaro
action filter_type
action find
entity Frank Megaro
relation languages spoken, written or signed
type language
['Frank Megaro', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:language . resource:Frank_Megaro property:languages_spoken,_written_or_signed ?o }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16093984,P1412,c(Q34770))
action filter_type
action find
entity Q16093984
relation P1412
type Q34770
The [ANSWER] is spoken by Frank Megaro
['Q16093984', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q34770 . resource:Q16093984 property:P1412 ?o }
English
The English is spoken by Frank Megaro
English
action filter_type
action find
entity Frank Megaro
relation languages spoken, written or signed
type language
['Frank Megaro', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:language . resource:Frank_Megaro property:languages_spoken,_written_or_signed ?o }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q1068329 Q1346342
P361
Q5962346
USER
Is that language a part of Golf-class submarine and Anglic languages ?
(Q1860,P361,Q1068329) (Q1860,P361,Q1346342)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q1068329
relation P361
action find_reverse
entity Q1346342
relation P361
['Q1860', 'P361', 'Q1068329'] ['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q1068329 . resource:Q1860 property:P361 resource:Q1346342 }
English Golf-class submarine Anglic languages
action is_in
entity English
action intersection
action find_reverse
entity Golf-class submarine
relation part of
action find_reverse
entity Anglic languages
relation part of
['English', 'part of', 'Golf-class submarine'] ['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Golf-class_submarine . resource:English property:part_of resource:Anglic_languages }
[]
classification scheme
SYSTEM
NO and YES respectively
(Q1860,P361,Q1068329) (Q1860,P361,Q1346342)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q1068329
relation P361
action find_reverse
entity Q1346342
relation P361
[ANSWER]
['Q1860', 'P361', 'Q1068329'] ['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q1068329 . resource:Q1860 property:P361 resource:Q1346342 }
NO and YES respectively
action is_in
entity English
action intersection
action find_reverse
entity Golf-class submarine
relation part of
action find_reverse
entity Anglic languages
relation part of
['English', 'part of', 'Golf-class submarine'] ['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Golf-class_submarine . resource:English property:part_of resource:Anglic_languages }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q29552 Q325897 Q22106841
P488
Q502895
USER
Does Democratic Party have Princess Maria Amalia of Saxony and Maria Florio as its chairperson ?
(Q29552,P488,Q325897) (Q29552,P488,Q22106841)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q325897
relation P488
action find_reverse
entity Q22106841
relation P488
['Q29552', 'P488', 'Q325897'] ['Q29552', 'P488', 'Q22106841']
ASK WHERE { resource:Q29552 property:P488 resource:Q325897 . resource:Q29552 property:P488 resource:Q22106841 }
Democratic Party Princess Maria Amalia of Saxony Maria Florio
action is_in
entity Democratic Party
action intersection
action find_reverse
entity Princess Maria Amalia of Saxony
relation chairperson
action find_reverse
entity Maria Florio
relation chairperson
['Democratic Party', 'chairperson', 'Princess Maria Amalia of Saxony'] ['Democratic Party', 'chairperson', 'Maria Florio']
ASK WHERE { resource:Democratic_Party property:chairperson resource:Princess_Maria_Amalia_of_Saxony . resource:Democratic_Party property:chairperson resource:Maria_Florio }
[]
common name
SYSTEM
NO
(Q29552,P488,Q325897) (Q29552,P488,Q22106841)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q325897
relation P488
action find_reverse
entity Q22106841
relation P488
[ANSWER]
['Q29552', 'P488', 'Q325897'] ['Q29552', 'P488', 'Q22106841']
ASK WHERE { resource:Q29552 property:P488 resource:Q325897 . resource:Q29552 property:P488 resource:Q22106841 }
No
action is_in
entity Democratic Party
action intersection
action find_reverse
entity Princess Maria Amalia of Saxony
relation chairperson
action find_reverse
entity Maria Florio
relation chairperson
['Democratic Party', 'chairperson', 'Princess Maria Amalia of Saxony'] ['Democratic Party', 'chairperson', 'Maria Florio']
ASK WHERE { resource:Democratic_Party property:chairperson resource:Princess_Maria_Amalia_of_Saxony . resource:Democratic_Party property:chairperson resource:Maria_Florio }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q36790
P407
Q34770 Q7725634 Q234460
USER
How many languages are the languages of work for less number of literary works and texts than Sumerian ?
(c(Q7725634)|c(Q234460),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q36790
relation P407
type Q7725634
type Q234460
[[{'concept': 'Q7725634'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?c WHERE { { ?n property:P407 ?c . ?c rdf:type ontology:Q34770 . ?n rdf:type ontology:Q7725634 } UNION { ?n property:P407 ?c . ?n rdf:type ontology:Q234460 . ?c rdf:type ontology:Q34770 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { { ?m rdf:type ontology:Q7725634 } UNION { ?m rdf:type ontology:Q234460 } } . ?m property:P407 resource:Q36790 } } . FILTER ( ?q < ?y ) }
Sumerian
action count
action less
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity Sumerian
relation language of work or name
type literary work
type text
[[{'concept': 'literary work'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?c WHERE { { ?n property:language_of_work_or_name ?c . ?c rdf:type ontology:language . ?n rdf:type ontology:literary_work } UNION { ?n property:language_of_work_or_name ?c . ?n rdf:type ontology:text . ?c rdf:type ontology:language } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { { ?m rdf:type ontology:literary_work } UNION { ?m rdf:type ontology:text } } . ?m property:language_of_work_or_name resource:Sumerian } } . FILTER ( ?q < ?y ) }
[]
language literary work text
SYSTEM
18
Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q8752 Q35505 Q25167 Q25164 Q56982 Q35308
(c(Q7725634)|c(Q234460),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q36790
relation P407
type Q7725634
type Q234460
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?c WHERE { { ?n property:P407 ?c . ?c rdf:type ontology:Q34770 . ?n rdf:type ontology:Q7725634 } UNION { ?n property:P407 ?c . ?n rdf:type ontology:Q234460 . ?c rdf:type ontology:Q34770 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { { ?m rdf:type ontology:Q7725634 } UNION { ?m rdf:type ontology:Q234460 } } . ?m property:P407 resource:Q36790 } } . FILTER ( ?q < ?y ) }
Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Basque Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish
18
action count
action less
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity Sumerian
relation language of work or name
type literary work
type text
[[{'concept': 'literary work'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?c WHERE { { ?n property:language_of_work_or_name ?c . ?c rdf:type ontology:language . ?n rdf:type ontology:literary_work } UNION { ?n property:language_of_work_or_name ?c . ?n rdf:type ontology:text . ?c rdf:type ontology:language } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { { ?m rdf:type ontology:literary_work } UNION { ?m rdf:type ontology:text } } . ?m property:language_of_work_or_name resource:Sumerian } } . FILTER ( ?q < ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q652
P407
Q34770 Q7725634 Q234460
USER
And how about Italian?
(c(Q7725634)|c(Q234460),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q652
relation P407
type Q7725634
type Q234460
[[{'concept': 'Q7725634'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?p . VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q234460 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { ?l property:P407 resource:Q652 . { { ?l rdf:type ontology:Q7725634 } UNION { ?l rdf:type ontology:Q234460 } } } } . FILTER ( ?i < ?z ) }
Italian
action count
action less
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity Italian
relation language of work or name
type literary work
type text
[[{'concept': 'literary work'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?p . VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:text ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { ?l property:language_of_work_or_name resource:Italian . { { ?l rdf:type ontology:literary_work } UNION { ?l rdf:type ontology:text } } } } . FILTER ( ?i < ?z ) }
[]
language literary work text
SYSTEM
25
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q9056 Q8752 Q37041 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q7725634)|c(Q234460),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q652
relation P407
type Q7725634
type Q234460
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?p . VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q234460 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { ?l property:P407 resource:Q652 . { { ?l rdf:type ontology:Q7725634 } UNION { ?l rdf:type ontology:Q234460 } } } } . FILTER ( ?i < ?z ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Czech Basque classical Chinese Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
25
action count
action less
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity Italian
relation language of work or name
type literary work
type text
[[{'concept': 'literary work'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?p . VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:text ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { ?l property:language_of_work_or_name resource:Italian . { { ?l rdf:type ontology:literary_work } UNION { ?l rdf:type ontology:text } } } } . FILTER ( ?i < ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q29552 Q324516
P710
Q350604
USER
How many armed conflicts have Democratic Party or Choctaw as their participant ?
(c(Q350604),P710,Q29552) (c(Q350604),P710,Q324516)
action count
action union
action filter_type
action find_reverse
entity Q29552
relation P710
type Q350604
action filter_type
action find_reverse
entity Q324516
relation P710
type Q350604
[{'concept': 'Q350604'}, 'P710', 'Q29552'] [{'concept': 'Q350604'}, 'P710', 'Q324516']
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { ?n property:P710 ?z . VALUES ( ?z ) { ( resource:Q324516 ) ( resource:Q29552 ) } }
Democratic Party Choctaw
action count
action union
action filter_type
action find_reverse
entity Democratic Party
relation participant
type armed conflict
action filter_type
action find_reverse
entity Choctaw
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Democratic Party'] [{'concept': 'armed conflict'}, 'participant', 'Choctaw']
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { ?n property:participant ?z . VALUES ( ?z ) { ( resource:Choctaw ) ( resource:Democratic_Party ) } }
[]
armed conflict
SYSTEM
2
Q26013 Q1186260
(c(Q350604),P710,Q29552) (c(Q350604),P710,Q324516)
action count
action union
action filter_type
action find_reverse
entity Q29552
relation P710
type Q350604
action filter_type
action find_reverse
entity Q324516
relation P710
type Q350604
[ANSWER]
[{'concept': 'Q350604'}, 'P710', 'Q29552'] [{'concept': 'Q350604'}, 'P710', 'Q324516']
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { ?n property:P710 ?z . VALUES ( ?z ) { ( resource:Q324516 ) ( resource:Q29552 ) } }
War of 1812 Creek War
2
action count
action union
action filter_type
action find_reverse
entity Democratic Party
relation participant
type armed conflict
action filter_type
action find_reverse
entity Choctaw
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Democratic Party'] [{'concept': 'armed conflict'}, 'participant', 'Choctaw']
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { ?n property:participant ?z . VALUES ( ?z ) { ( resource:Choctaw ) ( resource:Democratic_Party ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q29552
P102
Q15619164 Q6619679
USER
How many abstract beings and fictional humanoids are members of Democratic Party ?
(c(Q15619164),P102,Q29552) (c(Q6619679),P102,Q29552)
action count
action union
action filter_type
action find_reverse
entity Q29552
relation P102
type Q15619164
action filter_type
action find_reverse
entity Q29552
relation P102
type Q6619679
[{'concept': 'Q15619164'}, 'P102', 'Q29552'] [{'concept': 'Q6619679'}, 'P102', 'Q29552']
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?o . VALUES ( ?o ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } }
Democratic Party
action count
action union
action filter_type
action find_reverse
entity Democratic Party
relation member of political party
type abstract being
action filter_type
action find_reverse
entity Democratic Party
relation member of political party
type fictional humanoid
[{'concept': 'abstract being'}, 'member of political party', 'Democratic Party'] [{'concept': 'fictional humanoid'}, 'member of political party', 'Democratic Party']
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?o . VALUES ( ?o ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } }
[]
abstract being fictional humanoid
SYSTEM
2 abstract beings and 1 fictional humanoids
Q249898 Q5335019 Q5490053
(c(Q15619164),P102,Q29552) (c(Q6619679),P102,Q29552)
action count
action union
action filter_type
action find_reverse
entity Q29552
relation P102
type Q15619164
action filter_type
action find_reverse
entity Q29552
relation P102
type Q6619679
[ANSWER]
[{'concept': 'Q15619164'}, 'P102', 'Q29552'] [{'concept': 'Q6619679'}, 'P102', 'Q29552']
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?o . VALUES ( ?o ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } }
David Palmer Ed Kealty Frank Underwood
2 abstract beings and 1 fictional humanoids
action count
action union
action filter_type
action find_reverse
entity Democratic Party
relation member of political party
type abstract being
action filter_type
action find_reverse
entity Democratic Party
relation member of political party
type fictional humanoid
[{'concept': 'abstract being'}, 'member of political party', 'Democratic Party'] [{'concept': 'fictional humanoid'}, 'member of political party', 'Democratic Party']
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?o . VALUES ( ?o ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4931628 Q16093984
P106
Q12737077
USER
Which occupations are the professions of Frank Megaro or Bob Adams ?
OR((Q16093984,P106,c(Q12737077)), (Q4931628,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16093984
relation P106
action find
entity Q4931628
relation P106
type Q12737077
{'OR': [['Q16093984', 'P106', {'concept': 'Q12737077'}], ['Q4931628', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q16093984 property:P106 ?y } UNION { resource:Q4931628 property:P106 ?y } } . ?y rdf:type ontology:Q12737077 }
Bob Adams Frank Megaro
action filter_type
action union
action find
entity Frank Megaro
relation occupation
action find
entity Bob Adams
relation occupation
type occupation
{'OR': [['Frank Megaro', 'occupation', {'concept': 'occupation'}], ['Bob Adams', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Frank_Megaro property:occupation ?y } UNION { resource:Bob_Adams property:occupation ?y } } . ?y rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
OR((Q16093984,P106,c(Q12737077)), (Q4931628,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16093984
relation P106
action find
entity Q4931628
relation P106
type Q12737077
The professions of Frank Megaro or Bob Adams are a [ANSWER]
{'OR': [['Q16093984', 'P106', {'concept': 'Q12737077'}], ['Q4931628', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q16093984 property:P106 ?y } UNION { resource:Q4931628 property:P106 ?y } } . ?y rdf:type ontology:Q12737077 }
politician
The professions of Frank Megaro or Bob Adams are a politician
politician
action filter_type
action union
action find
entity Frank Megaro
relation occupation
action find
entity Bob Adams
relation occupation
type occupation
{'OR': [['Frank Megaro', 'occupation', {'concept': 'occupation'}], ['Bob Adams', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Frank_Megaro property:occupation ?y } UNION { resource:Bob_Adams property:occupation ?y } } . ?y rdf:type ontology:occupation }
[]