Simple Question (Direct)
Simple Question
Q1607230
P102
Q7210356
USER
Which party is Henry S. Caulfield affiliated with ?
(Q1607230,P102,c(Q7210356))
action filter_type
action find
entity Q1607230
relation P102
type Q7210356
['Q1607230', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q1607230 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Henry S. Caulfield
action filter_type
action find
entity Henry S. Caulfield
relation member of political party
type political organization
['Henry S. Caulfield', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Henry_S._Caulfield property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q1607230,P102,c(Q7210356))
action filter_type
action find
entity Q1607230
relation P102
type Q7210356
Henry S. Caulfield is affiliated with [ANSWER]
['Q1607230', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q1607230 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Republican Party
Henry S. Caulfield is affiliated with Republican Party
Republican Party
action filter_type
action find
entity Henry S. Caulfield
relation member of political party
type political organization
['Henry S. Caulfield', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Henry_S._Caulfield property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1607230
P991
Q40231
USER
Which election was Henry S. Caulfield elected from ?
(c(Q40231),P991,Q1607230)
action filter_type
action find_reverse
entity Q1607230
relation P991
type Q40231
[{'concept': 'Q40231'}, 'P991', 'Q1607230']
SELECT DISTINCT ?b WHERE { ?b property:P991 resource:Q1607230 . ?b rdf:type ontology:Q40231 }
Henry S. Caulfield
action filter_type
action find_reverse
entity Henry S. Caulfield
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Henry S. Caulfield']
SELECT DISTINCT ?b WHERE { ?b property:successful_candidate resource:Henry_S._Caulfield . ?b rdf:type ontology:election }
[]
election
Q6879857
SYSTEM
Missouri gubernatorial election, 1928
Q6879857
(c(Q40231),P991,Q1607230)
action filter_type
action find_reverse
entity Q1607230
relation P991
type Q40231
Henry S. Caulfield was elected in [ANSWER]
[{'concept': 'Q40231'}, 'P991', 'Q1607230']
SELECT DISTINCT ?b WHERE { ?b property:P991 resource:Q1607230 . ?b rdf:type ontology:Q40231 }
Missouri gubernatorial election, 1928
Henry S. Caulfield was elected in Missouri gubernatorial election, 1928
Missouri gubernatorial election, 1928
action filter_type
action find_reverse
entity Henry S. Caulfield
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Henry S. Caulfield']
SELECT DISTINCT ?b WHERE { ?b property:successful_candidate resource:Henry_S._Caulfield . ?b rdf:type ontology:election }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q813866 Q1607230
P47 P20
Q56061
USER
Which administrative territories did Henry S. Caulfield expire or have a shared border with Bedford ?
OR((Q1607230,P20,c(Q56061)), (Q813866,P47,c(Q56061)))
action filter_type
action union
action find
entity Q1607230
relation P20
action find
entity Q813866
relation P47
type Q56061
{'OR': [['Q1607230', 'P20', {'concept': 'Q56061'}], ['Q813866', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q813866 property:P47 ?i } UNION { resource:Q1607230 property:P20 ?i } } . ?i rdf:type ontology:Q56061 }
Bedford Henry S. Caulfield
action filter_type
action union
action find
entity Henry S. Caulfield
relation place of death
action find
entity Bedford
relation shares border with
type administrative territorial entity
{'OR': [['Henry S. Caulfield', 'place of death', {'concept': 'administrative territorial entity'}], ['Bedford', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Bedford property:shares_border_with ?i } UNION { resource:Henry_S._Caulfield property:place_of_death ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q38022 Q206628
SYSTEM
St. Louis, Bedford Heights
Q38022 Q206628
OR((Q1607230,P20,c(Q56061)), (Q813866,P47,c(Q56061)))
action filter_type
action union
action find
entity Q1607230
relation P20
action find
entity Q813866
relation P47
type Q56061
[ANSWERS] did Henry S. Caulfield expire or have a shared border with Bedford
{'OR': [['Q1607230', 'P20', {'concept': 'Q56061'}], ['Q813866', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q813866 property:P47 ?i } UNION { resource:Q1607230 property:P20 ?i } } . ?i rdf:type ontology:Q56061 }
St. Louis Bedford Heights
St. Louis and Bedford Heights did Henry S. Caulfield expire or have a shared border with Bedford
St. Louis Bedford Heights
action filter_type
action union
action find
entity Henry S. Caulfield
relation place of death
action find
entity Bedford
relation shares border with
type administrative territorial entity
{'OR': [['Henry S. Caulfield', 'place of death', {'concept': 'administrative territorial entity'}], ['Bedford', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Bedford property:shares_border_with ?i } UNION { resource:Henry_S._Caulfield property:place_of_death ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16068880 Q206628
P27 P17
Q15617994
USER
Which administrative territories are Bedford Heights located in or are Rein Bosch an inhabitant of ?
OR((Q206628,P17,c(Q15617994)), (Q16068880,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q206628
relation P17
action find
entity Q16068880
relation P27
type Q15617994
{'OR': [['Q206628', 'P17', {'concept': 'Q15617994'}], ['Q16068880', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q206628 property:P17 ?l } UNION { resource:Q16068880 property:P27 ?l } } }
Rein Bosch Bedford Heights
action filter_type
action union
action find
entity Bedford Heights
relation country
action find
entity Rein Bosch
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Bedford Heights', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Rein Bosch', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Bedford_Heights property:country ?l } UNION { resource:Rein_Bosch property:country_of_citizenship ?l } } }
[]
designation for an administrative territorial entity
Q30 Q29999
SYSTEM
United States of America, Kingdom of the Netherlands
Q30 Q29999
OR((Q206628,P17,c(Q15617994)), (Q16068880,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q206628
relation P17
action find
entity Q16068880
relation P27
type Q15617994
Bedford Heights are located in the [ANSWERS] or are Rein Bosch an inhabitant of
{'OR': [['Q206628', 'P17', {'concept': 'Q15617994'}], ['Q16068880', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q206628 property:P17 ?l } UNION { resource:Q16068880 property:P27 ?l } } }
United States of America Kingdom of the Netherlands
Bedford Heights are located in the United States of America and Kingdom of the Netherlands or are Rein Bosch an inhabitant of
United States of America Kingdom of the Netherlands
action filter_type
action union
action find
entity Bedford Heights
relation country
action find
entity Rein Bosch
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Bedford Heights', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Rein Bosch', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Bedford_Heights property:country ?l } UNION { resource:Rein_Bosch property:country_of_citizenship ?l } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q30 Q29999
P6
Q502895
USER
Who are the heads of the government of United States of America and Kingdom of the Netherlands ?
(Q30,P6,c(Q502895)) (Q29999,P6,c(Q502895))
action union
action filter_type
action find
entity Q30
relation P6
type Q502895
action filter_type
action find
entity Q29999
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}] ['Q29999', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { VALUES ( ?j ) { ( resource:Q30 ) ( resource:Q29999 ) } . ?j property:P6 ?p }
United States of America Kingdom of the Netherlands
action union
action filter_type
action find
entity United States of America
relation head of government
type common name
action filter_type
action find
entity Kingdom of the Netherlands
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}] ['Kingdom of the Netherlands', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { VALUES ( ?j ) { ( resource:United_States_of_America ) ( resource:Kingdom_of_the_Netherlands ) } . ?j property:head_of_government ?p }
[]
common name
Q76 Q9916 Q22686
SYSTEM
Barack Obama, Dwight D. Eisenhower, Donald Trump
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 Q57792
(Q30,P6,c(Q502895)) (Q29999,P6,c(Q502895))
action union
action filter_type
action find
entity Q30
relation P6
type Q502895
action filter_type
action find
entity Q29999
relation P6
type Q502895
The heads of the government of United States of America and Kingdom of the Netherlands are President [ANSWERS]
['Q30', 'P6', {'concept': 'Q502895'}] ['Q29999', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { VALUES ( ?j ) { ( resource:Q30 ) ( resource:Q29999 ) } . ?j property:P6 ?p }
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 Mark Rutte
The heads of the government of United States of America and Kingdom of the Netherlands are President Barack Obama, Dwight D. Eisenhower and Donald Trump
Barack Obama Dwight D. Eisenhower Donald Trump
action union
action filter_type
action find
entity United States of America
relation head of government
type common name
action filter_type
action find
entity Kingdom of the Netherlands
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}] ['Kingdom of the Netherlands', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { VALUES ( ?j ) { ( resource:United_States_of_America ) ( resource:Kingdom_of_the_Netherlands ) } . ?j property:head_of_government ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q76
P921
Q4894405
USER
Which journalism genre has Barack Obama as its principal topic ?
(c(Q4894405),P921,Q76)
action filter_type
action find_reverse
entity Q76
relation P921
type Q4894405
[{'concept': 'Q4894405'}, 'P921', 'Q76']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q4894405 . ?k property:P921 resource:Q76 }
Barack Obama
action filter_type
action find_reverse
entity Barack Obama
relation main subject
type journalism genre
[{'concept': 'journalism genre'}, 'main subject', 'Barack Obama']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:journalism_genre . ?k property:main_subject resource:Barack_Obama }
[]
journalism genre
Q26279347
SYSTEM
Before a Visit From Obama, a Chelsea Block Goes on Lockdown
Q26279347
(c(Q4894405),P921,Q76)
action filter_type
action find_reverse
entity Q76
relation P921
type Q4894405
Before a Visit From Obama, a Chelsea Block goes on Lockdown has Barack Obama as its principal topic
[{'concept': 'Q4894405'}, 'P921', 'Q76']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q4894405 . ?k property:P921 resource:Q76 }
Before a Visit From Obama, a Chelsea Block Goes on Lockdown
Before a Visit From Obama, a Chelsea Block goes on Lockdown has Barack Obama as its principal topic
Before a Visit From Obama, a Chelsea Block Goes on Lockdown
action filter_type
action find_reverse
entity Barack Obama
relation main subject
type journalism genre
[{'concept': 'journalism genre'}, 'main subject', 'Barack Obama']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:journalism_genre . ?k property:main_subject resource:Barack_Obama }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q76
P138
Q16521
USER
Which taxons have that person as their namesake ?
(c(Q16521),P138,Q26279347)
action filter_type
action find_reverse
entity Q76
relation P138
type Q16521
[{'concept': 'Q16521'}, 'P138', 'Q26279347']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q16521 . ?d property:P138 resource:Q76 }
Barack Obama
action filter_type
action find_reverse
entity Barack Obama
relation named after
type taxon
[{'concept': 'taxon'}, 'named after', 'Before a Visit From Obama, a Chelsea Block Goes on Lockdown']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:taxon . ?d property:named_after resource:Barack_Obama }
[]
taxon
Q26857917 Q1390728 Q983134
SYSTEM
Baracktrema, Aptostichus barackobamai, Caloplaca obamae
Q26857917 Q1390728 Q983134 Q333408 Q26834330
(c(Q16521),P138,Q26279347)
action filter_type
action find_reverse
entity Q76
relation P138
type Q16521
[ANSWERS] have that person as their namesake
[{'concept': 'Q16521'}, 'P138', 'Q26279347']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q16521 . ?d property:P138 resource:Q76 }
Baracktrema Aptostichus barackobamai Caloplaca obamae Etheostoma obama Baracktrema obamai
Baracktrema, Aptostichus barackobamai and Caloplaca obamae have that person as their namesake
Baracktrema Aptostichus barackobamai Caloplaca obamae
action filter_type
action find_reverse
entity Barack Obama
relation named after
type taxon
[{'concept': 'taxon'}, 'named after', 'Before a Visit From Obama, a Chelsea Block Goes on Lockdown']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:taxon . ?d property:named_after resource:Barack_Obama }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P138
Q502895
USER
How many people are the etymology of that taxon ?
(Q1390728,P138,c(Q502895))
['Q1390728', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1390728 property:P138 ?z . ?z rdf:type ontology:Q502895 }
['Aptostichus barackobamai', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Aptostichus_barackobamai property:named_after ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q1390728
SYSTEM
Did you mean Aptostichus barackobamai ?
(Q26857917,P138,c(Q502895)) (Q1390728,P138,c(Q502895)) (Q983134,P138,c(Q502895))
[ANSWER]
['Q26857917', 'P138', {'concept': 'Q502895'}] ['Q1390728', 'P138', {'concept': 'Q502895'}] ['Q983134', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1390728 property:P138 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Aptostichus barackobamai ?
Aptostichus barackobamai
['Baracktrema', 'named after', {'concept': 'common name'}] ['Aptostichus barackobamai', 'named after', {'concept': 'common name'}] ['Caloplaca obamae', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Aptostichus_barackobamai property:named_after ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1390728,P138,c(Q502895))
['Q1390728', 'P138', {'concept': 'Q502895'}]
['Aptostichus barackobamai', 'named after', {'concept': 'common name'}]
[]
SYSTEM
1
Q76
(Q1390728,P138,c(Q502895))
[ANSWER]
['Q1390728', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1390728 property:P138 ?z . ?z rdf:type ontology:Q502895 }
Barack Obama
1
['Aptostichus barackobamai', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Aptostichus_barackobamai property:named_after ?z . ?z rdf:type ontology:common_name }
[]