Simple Question (Direct)
Simple Question
Q6211171
P69
Q3918
USER
Where was Joe Mays educated ?
(Q6211171,P69,c(Q3918))
action filter_type
action find
entity Q6211171
relation P69
type Q3918
['Q6211171', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?b WHERE { resource:Q6211171 property:P69 ?b . ?b rdf:type ontology:Q3918 }
Joe Mays
action filter_type
action find
entity Joe Mays
relation educated at
type university
['Joe Mays', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?b WHERE { resource:Joe_Mays property:educated_at ?b . ?b rdf:type ontology:university }
[]
university
Q2000624
SYSTEM
North Dakota State University
Q2000624
(Q6211171,P69,c(Q3918))
action filter_type
action find
entity Q6211171
relation P69
type Q3918
Joe Mays was educated at [ANSWER]
['Q6211171', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?b WHERE { resource:Q6211171 property:P69 ?b . ?b rdf:type ontology:Q3918 }
North Dakota State University
Joe Mays was educated at North Dakota State University
North Dakota State University
action filter_type
action find
entity Joe Mays
relation educated at
type university
['Joe Mays', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?b WHERE { resource:Joe_Mays property:educated_at ?b . ?b rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6211171
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q2000624,P19,c(Q56061))
action filter_type
action find
entity Q6211171
relation P19
type Q56061
['Q2000624', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q6211171 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Joe Mays
action filter_type
action find
entity Joe Mays
relation place of birth
type administrative territorial entity
['North Dakota State University', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Joe_Mays property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1297
SYSTEM
Chicago
Q1297
(Q2000624,P19,c(Q56061))
action filter_type
action find
entity Q6211171
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q2000624', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q6211171 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Chicago
Chicago is the place of birth of that person
Chicago
action filter_type
action find
entity Joe Mays
relation place of birth
type administrative territorial entity
['North Dakota State University', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Joe_Mays property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1297 Q6451042
P19
Q502895
USER
Was Kyle Andrews born at that administrative territory ?
(Q6451042,P19,Q1297)
action is_in
entity Q1297
action find
entity Q6451042
relation P19
['Q6451042', 'P19', 'Q1297']
ASK WHERE { resource:Q6451042 property:P19 resource:Q1297 }
Chicago Kyle Andrews
action is_in
entity Chicago
action find
entity Kyle Andrews
relation place of birth
['Kyle Andrews', 'place of birth', 'Chicago']
ASK WHERE { resource:Kyle_Andrews property:place_of_birth resource:Chicago }
[]
common name
SYSTEM
YES
(Q6451042,P19,Q1297)
action is_in
entity Q1297
action find
entity Q6451042
relation P19
[ANSWER]
['Q6451042', 'P19', 'Q1297']
ASK WHERE { resource:Q6451042 property:P19 resource:Q1297 }
Yes
action is_in
entity Chicago
action find
entity Kyle Andrews
relation place of birth
['Kyle Andrews', 'place of birth', 'Chicago']
ASK WHERE { resource:Kyle_Andrews property:place_of_birth resource:Chicago }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20113664 Q6451042
P27
Q15617994
USER
Which administrative territories do Kyle Andrews or Gerard Laumans belong to ?
OR((Q6451042,P27,c(Q15617994)), (Q20113664,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6451042
relation P27
action find
entity Q20113664
relation P27
type Q15617994
{'OR': [['Q6451042', 'P27', {'concept': 'Q15617994'}], ['Q20113664', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q6451042 property:P27 ?y } UNION { resource:Q20113664 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Gerard Laumans Kyle Andrews
action filter_type
action union
action find
entity Kyle Andrews
relation country of citizenship
action find
entity Gerard Laumans
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kyle Andrews', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gerard Laumans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Kyle_Andrews property:country_of_citizenship ?y } UNION { resource:Gerard_Laumans property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q29999
SYSTEM
United States of America, Kingdom of the Netherlands
Q30 Q29999
OR((Q6451042,P27,c(Q15617994)), (Q20113664,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6451042
relation P27
action find
entity Q20113664
relation P27
type Q15617994
Kyle Andrews or Gerard Laumans belong to [ANSWERS]
{'OR': [['Q6451042', 'P27', {'concept': 'Q15617994'}], ['Q20113664', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q6451042 property:P27 ?y } UNION { resource:Q20113664 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
United States of America Kingdom of the Netherlands
Kyle Andrews or Gerard Laumans belong to United States of America and Kingdom of the Netherlands
United States of America Kingdom of the Netherlands
action filter_type
action union
action find
entity Kyle Andrews
relation country of citizenship
action find
entity Gerard Laumans
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kyle Andrews', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gerard Laumans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Kyle_Andrews property:country_of_citizenship ?y } UNION { resource:Gerard_Laumans property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P17
Q35798 Q23719064
USER
How many executive branches or annual awards are located in United States of America ?
(c(Q35798),P17,Q30) (c(Q23719064),P17,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P17
type Q35798
action filter_type
action find_reverse
entity Q30
relation P17
type Q23719064
[{'concept': 'Q35798'}, 'P17', 'Q30'] [{'concept': 'Q23719064'}, 'P17', 'Q30']
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q35798 ) ( ontology:Q23719064 ) } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country
type executive branch
action filter_type
action find_reverse
entity United States of America
relation country
type annual award
[{'concept': 'executive branch'}, 'country', 'United States of America'] [{'concept': 'annual award'}, 'country', 'United States of America']
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:executive_branch ) ( ontology:annual_award ) } }
[]
executive branch annual award
SYSTEM
5
Q1453796 Q2824550 Q1623817 Q639738 Q280481
(c(Q35798),P17,Q30) (c(Q23719064),P17,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P17
type Q35798
action filter_type
action find_reverse
entity Q30
relation P17
type Q23719064
[ANSWER]
[{'concept': 'Q35798'}, 'P17', 'Q30'] [{'concept': 'Q23719064'}, 'P17', 'Q30']
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q35798 ) ( ontology:Q23719064 ) } }
United States Food Administration Presidency of Bill Clinton Cabinet of Lyndon B. Johnson United States Cabinet Grammy Award for Best Traditional Pop Vocal Album
5
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country
type executive branch
action filter_type
action find_reverse
entity United States of America
relation country
type annual award
[{'concept': 'executive branch'}, 'country', 'United States of America'] [{'concept': 'annual award'}, 'country', 'United States of America']
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:executive_branch ) ( ontology:annual_award ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P6
Q502895
USER
Which people are the head of government of United States of America ?
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q30 property:P6 ?e . ?e rdf:type ontology:Q502895 }
United States of America
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:United_States_of_America property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]
common name
Q76 Q9916 Q22686
SYSTEM
Barack Obama, Dwight D. Eisenhower, Donald Trump
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q35236 Q12325 Q33866 Q35648 Q9588 Q9582 Q35041 Q207 Q11813 Q91 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q11869 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
[ANSWERS] are the head of government of United States of America
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q30 property:P6 ?e . ?e rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Herbert Hoover James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William McKinley George W. Bush James Madison Abraham Lincoln Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William Henry Harrison Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
Barack Obama, Dwight D. Eisenhower and Donald Trump are the head of government of United States of America
Barack Obama Dwight D. Eisenhower Donald Trump
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:United_States_of_America property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q76 Q9916 Q22686
P734
Q82799
USER
Who are associated with Barack Obama, Dwight D. Eisenhower and Donald Trump ?
(Q76,P734,c(Q82799)) (Q9916,P734,c(Q82799)) (Q22686,P734,c(Q82799))
action union
action filter_type
action find
entity Q76
relation P734
type Q82799
action filter_type
action find
entity Q9916
relation P734
type Q82799
action filter_type
action find
entity Q22686
relation P734
type Q82799
['Q76', 'P734', {'concept': 'Q82799'}] ['Q9916', 'P734', {'concept': 'Q82799'}] ['Q22686', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:Q82799 . resource:Q76 property:P734 ?x } UNION { resource:Q9916 property:P734 ?x . ?x rdf:type ontology:Q82799 } }
Barack Obama Dwight D. Eisenhower Donald Trump
action union
action filter_type
action find
entity Barack Obama
relation family name
type name
action filter_type
action find
entity Dwight D. Eisenhower
relation family name
type name
action filter_type
action find
entity Donald Trump
relation family name
type name
['Barack Obama', 'family name', {'concept': 'name'}] ['Dwight D. Eisenhower', 'family name', {'concept': 'name'}] ['Donald Trump', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:name . resource:Barack_Obama property:family_name ?x } UNION { resource:Dwight_D._Eisenhower property:family_name ?x . ?x rdf:type ontology:name } }
[]
name
Q5280414 Q20748923 Q16944413
SYSTEM
Obama, Eisenhower, Trump
Q5280414 Q20748923 Q16944413
(Q76,P734,c(Q82799)) (Q9916,P734,c(Q82799)) (Q22686,P734,c(Q82799))
action union
action filter_type
action find
entity Q76
relation P734
type Q82799
action filter_type
action find
entity Q9916
relation P734
type Q82799
action filter_type
action find
entity Q22686
relation P734
type Q82799
[ANSWERS] are associated with Barack Obama, Dwight D. Eisenhower and Donald Trump
['Q76', 'P734', {'concept': 'Q82799'}] ['Q9916', 'P734', {'concept': 'Q82799'}] ['Q22686', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:Q82799 . resource:Q76 property:P734 ?x } UNION { resource:Q9916 property:P734 ?x . ?x rdf:type ontology:Q82799 } }
Obama Eisenhower Trump
Obama, Eisenhower and Trump are associated with Barack Obama, Dwight D. Eisenhower and Donald Trump
Obama Eisenhower Trump
action union
action filter_type
action find
entity Barack Obama
relation family name
type name
action filter_type
action find
entity Dwight D. Eisenhower
relation family name
type name
action filter_type
action find
entity Donald Trump
relation family name
type name
['Barack Obama', 'family name', {'concept': 'name'}] ['Dwight D. Eisenhower', 'family name', {'concept': 'name'}] ['Donald Trump', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:name . resource:Barack_Obama property:family_name ?x } UNION { resource:Dwight_D._Eisenhower property:family_name ?x . ?x rdf:type ontology:name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P610
Q14524493
USER
Which is the highest peak of United States of America ?
(Q30,P610,c(Q14524493))
action filter_type
action find
entity Q30
relation P610
type Q14524493
['Q30', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?z WHERE { resource:Q30 property:P610 ?z . ?z rdf:type ontology:Q14524493 }
United States of America
action filter_type
action find
entity United States of America
relation highest point
type terrain
['United States of America', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?z WHERE { resource:United_States_of_America property:highest_point ?z . ?z rdf:type ontology:terrain }
[]
terrain
Q130018
SYSTEM
Denali
Q130018
(Q30,P610,c(Q14524493))
action filter_type
action find
entity Q30
relation P610
type Q14524493
[ANSWER] is the highest peak of United States of America
['Q30', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?z WHERE { resource:Q30 property:P610 ?z . ?z rdf:type ontology:Q14524493 }
Denali
Denali is the highest peak of United States of America
Denali
action filter_type
action find
entity United States of America
relation highest point
type terrain
['United States of America', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?z WHERE { resource:United_States_of_America property:highest_point ?z . ?z rdf:type ontology:terrain }
[]