Simple Question (Direct)
Simple Question
Q6219073
P20
Q56061
USER
Where did the expiration of John Andrew Rea occur ?
(Q6219073,P20,c(Q56061))
action filter_type
action find
entity Q6219073
relation P20
type Q56061
['Q6219073', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q6219073 property:P20 ?w . ?w rdf:type ontology:Q56061 }
John Andrew Rea
action filter_type
action find
entity John Andrew Rea
relation place of death
type administrative territorial entity
['John Andrew Rea', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:John_Andrew_Rea property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q199797
SYSTEM
Tacoma
Q199797
(Q6219073,P20,c(Q56061))
action filter_type
action find
entity Q6219073
relation P20
type Q56061
The expiration of John Andrew Rea occurred in [ANSWER]
['Q6219073', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q6219073 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Tacoma
The expiration of John Andrew Rea occurred in Tacoma
Tacoma
action filter_type
action find
entity John Andrew Rea
relation place of death
type administrative territorial entity
['John Andrew Rea', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:John_Andrew_Rea property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6219073
P69
Q163740
USER
Which nonprofit organization is the alma mater of John Andrew Rea ?
(Q6219073,P69,c(Q163740))
action filter_type
action find
entity Q6219073
relation P69
type Q163740
['Q6219073', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?w WHERE { resource:Q6219073 property:P69 ?w . ?w rdf:type ontology:Q163740 }
John Andrew Rea
action filter_type
action find
entity John Andrew Rea
relation educated at
type nonprofit organization
['John Andrew Rea', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?w WHERE { resource:John_Andrew_Rea property:educated_at ?w . ?w rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49115
SYSTEM
Cornell University
Q49115
(Q6219073,P69,c(Q163740))
action filter_type
action find
entity Q6219073
relation P69
type Q163740
[ANSWER] is the alma mater of John Andrew Rea
['Q6219073', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?w WHERE { resource:Q6219073 property:P69 ?w . ?w rdf:type ontology:Q163740 }
Cornell University
Cornell University is the alma mater of John Andrew Rea
Cornell University
action filter_type
action find
entity John Andrew Rea
relation educated at
type nonprofit organization
['John Andrew Rea', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?w WHERE { resource:John_Andrew_Rea property:educated_at ?w . ?w rdf:type ontology:nonprofit_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6909632
Q163740
USER
And how about Mordecai Wyatt Johnson?
(Q6909632,P69,c(Q163740))
action filter_type
action find
entity Q6909632
relation P69
type Q163740
['Q6909632', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?t WHERE { resource:Q6909632 property:P69 ?t . ?t rdf:type ontology:Q163740 }
Mordecai Wyatt Johnson
action filter_type
action find
entity Mordecai Wyatt Johnson
relation educated at
type nonprofit organization
['Mordecai Wyatt Johnson', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?t WHERE { resource:Mordecai_Wyatt_Johnson property:educated_at ?t . ?t rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q131252 Q1068752 Q13371
SYSTEM
University of Chicago, Howard University, Harvard University
Q131252 Q1068752 Q13371
(Q6909632,P69,c(Q163740))
action filter_type
action find
entity Q6909632
relation P69
type Q163740
[ANSWERS]
['Q6909632', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?t WHERE { resource:Q6909632 property:P69 ?t . ?t rdf:type ontology:Q163740 }
University of Chicago Howard University Harvard University
University of Chicago Howard University Harvard University
action filter_type
action find
entity Mordecai Wyatt Johnson
relation educated at
type nonprofit organization
['Mordecai Wyatt Johnson', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?t WHERE { resource:Mordecai_Wyatt_Johnson property:educated_at ?t . ?t rdf:type ontology:nonprofit_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q49115 Q235034
P108
Q502895
USER
How many people work for Cornell University and University of Pittsburgh ?
(c(Q502895),P108,Q49115) (c(Q502895),P108,Q235034)
action count
action intersection
action filter_type
action find_reverse
entity Q49115
relation P108
type Q502895
action filter_type
action find_reverse
entity Q235034
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q49115'] [{'concept': 'Q502895'}, 'P108', 'Q235034']
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P108 resource:Q49115 . ?v rdf:type ontology:Q502895 . ?v property:P108 resource:Q235034 . ?v rdf:type ontology:Q502895 }
Cornell University University of Pittsburgh
action count
action intersection
action filter_type
action find_reverse
entity Cornell University
relation employer
type common name
action filter_type
action find_reverse
entity University of Pittsburgh
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Cornell University'] [{'concept': 'common name'}, 'employer', 'University of Pittsburgh']
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:employer resource:Cornell_University . ?v rdf:type ontology:common_name . ?v property:employer resource:University_of_Pittsburgh . ?v rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q7129255 Q467169
(c(Q502895),P108,Q49115) (c(Q502895),P108,Q235034)
action count
action intersection
action filter_type
action find_reverse
entity Q49115
relation P108
type Q502895
action filter_type
action find_reverse
entity Q235034
relation P108
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P108', 'Q49115'] [{'concept': 'Q502895'}, 'P108', 'Q235034']
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P108 resource:Q49115 . ?v rdf:type ontology:Q502895 . ?v property:P108 resource:Q235034 . ?v rdf:type ontology:Q502895 }
Pamela Samuelson Diane Ackerman
2
action count
action intersection
action filter_type
action find_reverse
entity Cornell University
relation employer
type common name
action filter_type
action find_reverse
entity University of Pittsburgh
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Cornell University'] [{'concept': 'common name'}, 'employer', 'University of Pittsburgh']
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:employer resource:Cornell_University . ?v rdf:type ontology:common_name . ?v property:employer resource:University_of_Pittsburgh . ?v rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q217293 Q13371
P17
Q15617994
USER
Which administrative territories are Harvard University or Gercourt-et-Drillancourt present in ?
OR((Q13371,P17,c(Q15617994)), (Q217293,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13371
relation P17
action find
entity Q217293
relation P17
type Q15617994
{'OR': [['Q13371', 'P17', {'concept': 'Q15617994'}], ['Q217293', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { VALUES ( ?s ) { ( resource:Q13371 ) ( resource:Q217293 ) } . ?s property:P17 ?v } }
Gercourt-et-Drillancourt Harvard University
action filter_type
action union
action find
entity Harvard University
relation country
action find
entity Gercourt-et-Drillancourt
relation country
type designation for an administrative territorial entity
{'OR': [['Harvard University', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Gercourt-et-Drillancourt', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?s ) { ( resource:Harvard_University ) ( resource:Gercourt-et-Drillancourt ) } . ?s property:country ?v } }
[]
designation for an administrative territorial entity
Q142 Q30
SYSTEM
France, United States of America
Q142 Q30
OR((Q13371,P17,c(Q15617994)), (Q217293,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13371
relation P17
action find
entity Q217293
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q13371', 'P17', {'concept': 'Q15617994'}], ['Q217293', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { VALUES ( ?s ) { ( resource:Q13371 ) ( resource:Q217293 ) } . ?s property:P17 ?v } }
France United States of America
Which administrative territories are Harvard University or Gercourt-et-Drillancourt present in
France United States of America
action filter_type
action union
action find
entity Harvard University
relation country
action find
entity Gercourt-et-Drillancourt
relation country
type designation for an administrative territorial entity
{'OR': [['Harvard University', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Gercourt-et-Drillancourt', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?s ) { ( resource:Harvard_University ) ( resource:Gercourt-et-Drillancourt ) } . ?s property:country ?v } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q142 Q30
P6
Q502895
USER
Which people do France and United States of America serve as the head of government for ?
(Q142,P6,c(Q502895)) (Q30,P6,c(Q502895))
action union
action filter_type
action find
entity Q142
relation P6
type Q502895
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q142', 'P6', {'concept': 'Q502895'}] ['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { resource:Q142 property:P6 ?p . ?p rdf:type ontology:Q502895 } UNION { resource:Q30 property:P6 ?p . ?p rdf:type ontology:Q502895 } }
France United States of America
action union
action filter_type
action find
entity France
relation head of government
type common name
action filter_type
action find
entity United States of America
relation head of government
type common name
['France', 'head of government', {'concept': 'common name'}] ['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { resource:France property:head_of_government ?p . ?p rdf:type ontology:common_name } UNION { resource:United_States_of_America property:head_of_government ?p . ?p rdf:type ontology:common_name } }
[]
common name
Q76 Q9916 Q22686
SYSTEM
Barack Obama, Dwight D. Eisenhower, Donald Trump
Q10287 Q7711 Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q9588 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q142,P6,c(Q502895)) (Q30,P6,c(Q502895))
action union
action filter_type
action find
entity Q142
relation P6
type Q502895
action filter_type
action find
entity Q30
relation P6
type Q502895
France and United States of America serve as the head of government for [ANSWERS]
['Q142', 'P6', {'concept': 'Q502895'}] ['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { resource:Q142 property:P6 ?p . ?p rdf:type ontology:Q502895 } UNION { resource:Q30 property:P6 ?p . ?p rdf:type ontology:Q502895 } }
Manuel Valls Jean-Marc Ayrault Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover 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 McKinley 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
France and United States of America serve as the head of government for Barack Obama, Dwight D. Eisenhower and Donald Trump
Barack Obama Dwight D. Eisenhower Donald Trump
action union
action filter_type
action find
entity France
relation head of government
type common name
action filter_type
action find
entity United States of America
relation head of government
type common name
['France', 'head of government', {'concept': 'common name'}] ['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { resource:France property:head_of_government ?p . ?p rdf:type ontology:common_name } UNION { resource:United_States_of_America property:head_of_government ?p . ?p rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q76 Q9916 Q22686
P40
Q502895
USER
Who have Barack Obama, Dwight D. Eisenhower and Donald Trump as an offspring ?
(c(Q502895),P40,Q76) (c(Q502895),P40,Q9916) (c(Q502895),P40,Q22686)
action union
action filter_type
action find_reverse
entity Q76
relation P40
type Q502895
action filter_type
action find_reverse
entity Q9916
relation P40
type Q502895
action filter_type
action find_reverse
entity Q22686
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q76'] [{'concept': 'Q502895'}, 'P40', 'Q9916'] [{'concept': 'Q502895'}, 'P40', 'Q22686']
SELECT DISTINCT ?b WHERE { { ?b property:P40 resource:Q9916 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P40 resource:Q76 . ?b rdf:type ontology:Q502895 } }
Barack Obama Dwight D. Eisenhower Donald Trump
action union
action filter_type
action find_reverse
entity Barack Obama
relation child
type common name
action filter_type
action find_reverse
entity Dwight D. Eisenhower
relation child
type common name
action filter_type
action find_reverse
entity Donald Trump
relation child
type common name
[{'concept': 'common name'}, 'child', 'Barack Obama'] [{'concept': 'common name'}, 'child', 'Dwight D. Eisenhower'] [{'concept': 'common name'}, 'child', 'Donald Trump']
SELECT DISTINCT ?b WHERE { { ?b property:child resource:Dwight_D._Eisenhower . ?b rdf:type ontology:common_name } UNION { ?b property:child resource:Barack_Obama . ?b rdf:type ontology:common_name } }
[]
common name
Q649593 Q3752663 Q766106
SYSTEM
Barack Obama, Sr., Fred Trump, Ann Dunham
Q766106 Q4115068 Q649593 Q20760306 Q15997423 Q22952511 Q3752663
(c(Q502895),P40,Q76) (c(Q502895),P40,Q9916) (c(Q502895),P40,Q22686)
action union
action filter_type
action find_reverse
entity Q76
relation P40
type Q502895
action filter_type
action find_reverse
entity Q9916
relation P40
type Q502895
action filter_type
action find_reverse
entity Q22686
relation P40
type Q502895
[ANSWERS] have Barack Obama, Dwight D. Eisenhower and Donald Trump as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q76'] [{'concept': 'Q502895'}, 'P40', 'Q9916'] [{'concept': 'Q502895'}, 'P40', 'Q22686']
SELECT DISTINCT ?b WHERE { { ?b property:P40 resource:Q9916 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P40 resource:Q76 . ?b rdf:type ontology:Q502895 } }
Ann Dunham Lolo Soetoro Barack Obama, Sr. David Jacob Eisenhower Ida Stover Eisenhower Mary Anne MacLeod Fred Trump
Barack Obama, Sr., Fred Trump and Ann Dunham have Barack Obama, Dwight D. Eisenhower and Donald Trump as an offspring
Barack Obama, Sr. Fred Trump Ann Dunham
action union
action filter_type
action find_reverse
entity Barack Obama
relation child
type common name
action filter_type
action find_reverse
entity Dwight D. Eisenhower
relation child
type common name
action filter_type
action find_reverse
entity Donald Trump
relation child
type common name
[{'concept': 'common name'}, 'child', 'Barack Obama'] [{'concept': 'common name'}, 'child', 'Dwight D. Eisenhower'] [{'concept': 'common name'}, 'child', 'Donald Trump']
SELECT DISTINCT ?b WHERE { { ?b property:child resource:Dwight_D._Eisenhower . ?b rdf:type ontology:common_name } UNION { ?b property:child resource:Barack_Obama . ?b rdf:type ontology:common_name } }
[]