Simple Question (Direct)
Simple Question
Q5071140
P58
Q502895
USER
Who wrote the screenplay for Chandler ?
(Q5071140,P58,c(Q502895))
action filter_type
action find
entity Q5071140
relation P58
type Q502895
['Q5071140', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q5071140 property:P58 ?l . ?l rdf:type ontology:Q502895 }
Chandler
action filter_type
action find
entity Chandler
relation screenwriter
type common name
['Chandler', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Chandler property:screenwriter ?l . ?l rdf:type ontology:common_name }
[]
common name
Q3182413
SYSTEM
John Sacret Young
Q3182413
(Q5071140,P58,c(Q502895))
action filter_type
action find
entity Q5071140
relation P58
type Q502895
For [ANSWER] wrote the screenplay for Chandler
['Q5071140', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q5071140 property:P58 ?l . ?l rdf:type ontology:Q502895 }
John Sacret Young
For John Sacret Young wrote the screenplay for Chandler
John Sacret Young
action filter_type
action find
entity Chandler
relation screenwriter
type common name
['Chandler', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Chandler property:screenwriter ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5071140
P364
Q34770
USER
Which language was used originally for the creation of that work of art ?
(Q3182413,P364,c(Q34770))
action filter_type
action find
entity Q5071140
relation P364
type Q34770
['Q3182413', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q5071140 property:P364 ?p . ?p rdf:type ontology:Q34770 }
Chandler
action filter_type
action find
entity Chandler
relation original language of work
type language
['John Sacret Young', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Chandler property:original_language_of_work ?p . ?p rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q3182413,P364,c(Q34770))
action filter_type
action find
entity Q5071140
relation P364
type Q34770
[ANSWER] was used originally for the creation of that work of art
['Q3182413', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q5071140 property:P364 ?p . ?p rdf:type ontology:Q34770 }
English
English was used originally for the creation of that work of art
English
action filter_type
action find
entity Chandler
relation original language of work
type language
['John Sacret Young', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Chandler property:original_language_of_work ?p . ?p rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19546868 Q5071140
P495 P17
Q15617994
USER
Which administrative territories are the countries of origin of Chandler or do Stationsplein belong to ?
OR((Q5071140,P495,c(Q15617994)), (Q19546868,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5071140
relation P495
action find
entity Q19546868
relation P17
type Q15617994
{'OR': [['Q5071140', 'P495', {'concept': 'Q15617994'}], ['Q19546868', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q19546868 property:P17 ?h } UNION { resource:Q5071140 property:P495 ?h } } . ?h rdf:type ontology:Q15617994 }
Stationsplein Chandler
action filter_type
action union
action find
entity Chandler
relation country of origin
action find
entity Stationsplein
relation country
type designation for an administrative territorial entity
{'OR': [['Chandler', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Stationsplein', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Stationsplein property:country ?h } UNION { resource:Chandler property:country_of_origin ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q55
SYSTEM
United States of America, Netherlands
Q30 Q55
OR((Q5071140,P495,c(Q15617994)), (Q19546868,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5071140
relation P495
action find
entity Q19546868
relation P17
type Q15617994
[ANSWERS] are the countries of origin of Chandler or do Stationsplein belong to
{'OR': [['Q5071140', 'P495', {'concept': 'Q15617994'}], ['Q19546868', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q19546868 property:P17 ?h } UNION { resource:Q5071140 property:P495 ?h } } . ?h rdf:type ontology:Q15617994 }
United States of America Netherlands
United States of America and Netherlands are the countries of origin of Chandler or do Stationsplein belong to
United States of America Netherlands
action filter_type
action union
action find
entity Chandler
relation country of origin
action find
entity Stationsplein
relation country
type designation for an administrative territorial entity
{'OR': [['Chandler', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Stationsplein', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Stationsplein property:country ?h } UNION { resource:Chandler property:country_of_origin ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q30 Q55
P6
Q502895
USER
What people are United States of America and Netherlands the head of goverment of ?
(Q30,P6,c(Q502895)) (Q55,P6,c(Q502895))
action union
action filter_type
action find
entity Q30
relation P6
type Q502895
action filter_type
action find
entity Q55
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}] ['Q55', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?n property:P6 ?g . VALUES ( ?n ) { ( resource:Q30 ) ( resource:Q55 ) } }
United States of America 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 Netherlands
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}] ['Netherlands', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?n property:head_of_government ?g . VALUES ( ?n ) { ( resource:United_States_of_America ) ( resource:Netherlands ) } }
[]
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 Q693053 Q686476 Q159840 Q133386 Q57792 Q345481 Q471204 Q983186 Q380970 Q951705 Q781813 Q736026 Q221411 Q634025 Q719701 Q735519 Q318320 Q318334 Q12769
(Q30,P6,c(Q502895)) (Q55,P6,c(Q502895))
action union
action filter_type
action find
entity Q30
relation P6
type Q502895
action filter_type
action find
entity Q55
relation P6
type Q502895
United States of America and Netherlands the head of goverment of are President [ANSWERS]
['Q30', 'P6', {'concept': 'Q502895'}] ['Q55', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?n property:P6 ?g . VALUES ( ?n ) { ( resource:Q30 ) ( resource:Q55 ) } }
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 Dirk Jan de Geer Hendrikus Colijn Ruud Lubbers Jan Peter Balkenende Mark Rutte Piet de Jong Barend Biesheuvel Charles Ruijs de Beerenbrouck Jelle Zijlstra Pieter Sjoerds Gerbrandy Jan de Quay Jo Cals Wim Kok Wim Schermerhorn Victor Marijnen Louis Beel Joop den Uyl Dries van Agt Willem Drees
United States of America and Netherlands the head of goverment of 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 Netherlands
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}] ['Netherlands', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?n property:head_of_government ?g . VALUES ( ?n ) { ( resource:United_States_of_America ) ( resource:Netherlands ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q76 Q9916 Q22686
P102
Q7210356
USER
Which political organizations are Barack Obama, Dwight D. Eisenhower and Donald Trump a member of ?
(Q76,P102,c(Q7210356)) (Q9916,P102,c(Q7210356)) (Q22686,P102,c(Q7210356))
action union
action filter_type
action find
entity Q76
relation P102
type Q7210356
action filter_type
action find
entity Q9916
relation P102
type Q7210356
action filter_type
action find
entity Q22686
relation P102
type Q7210356
['Q76', 'P102', {'concept': 'Q7210356'}] ['Q9916', 'P102', {'concept': 'Q7210356'}] ['Q22686', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?w ) { ( resource:Q9916 ) ( resource:Q76 ) } . ?w property:P102 ?l }
Barack Obama Dwight D. Eisenhower Donald Trump
action union
action filter_type
action find
entity Barack Obama
relation member of political party
type political organization
action filter_type
action find
entity Dwight D. Eisenhower
relation member of political party
type political organization
action filter_type
action find
entity Donald Trump
relation member of political party
type political organization
['Barack Obama', 'member of political party', {'concept': 'political organization'}] ['Dwight D. Eisenhower', 'member of political party', {'concept': 'political organization'}] ['Donald Trump', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?w ) { ( resource:Dwight_D._Eisenhower ) ( resource:Barack_Obama ) } . ?w property:member_of_political_party ?l }
[]
political organization
Q29552 Q29468 Q29468
SYSTEM
Democratic Party for 1st, Republican Party for 2nd, 3rd
Q29552 Q29468 Q29468
(Q76,P102,c(Q7210356)) (Q9916,P102,c(Q7210356)) (Q22686,P102,c(Q7210356))
action union
action filter_type
action find
entity Q76
relation P102
type Q7210356
action filter_type
action find
entity Q9916
relation P102
type Q7210356
action filter_type
action find
entity Q22686
relation P102
type Q7210356
[ANSWERS]
['Q76', 'P102', {'concept': 'Q7210356'}] ['Q9916', 'P102', {'concept': 'Q7210356'}] ['Q22686', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?w ) { ( resource:Q9916 ) ( resource:Q76 ) } . ?w property:P102 ?l }
Democratic Party Republican Party Republican Party
Party Democratic Party, Republican Party and Republican Party are Barack Obama, Dwight D. Eisenhower and Donald Trump a member of
Democratic Party Republican Party Republican Party
action union
action filter_type
action find
entity Barack Obama
relation member of political party
type political organization
action filter_type
action find
entity Dwight D. Eisenhower
relation member of political party
type political organization
action filter_type
action find
entity Donald Trump
relation member of political party
type political organization
['Barack Obama', 'member of political party', {'concept': 'political organization'}] ['Dwight D. Eisenhower', 'member of political party', {'concept': 'political organization'}] ['Donald Trump', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?w ) { ( resource:Dwight_D._Eisenhower ) ( resource:Barack_Obama ) } . ?w property:member_of_political_party ?l }
[]
Clarification
Simple Question|Single Entity|Indirect
Q76
P161
Q838948
USER
What are the name of works of art staring that person ?
(c(Q838948),P161,Q76)
action filter_type
action find_reverse
entity Q76
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q76']
SELECT DISTINCT ?p WHERE { ?p property:P161 resource:Q76 . ?p rdf:type ontology:Q838948 }
Barack Obama
action filter_type
action find_reverse
entity Barack Obama
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Barack Obama']
SELECT DISTINCT ?p WHERE { ?p property:cast_member resource:Barack_Obama . ?p rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q76
SYSTEM
Did you mean Barack Obama ?
Q29552 Q29468 Q29468
(c(Q838948),P161,Q29552) (c(Q838948),P161,Q29468) (c(Q838948),P161,Q29468)
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q29552'] [{'concept': 'Q838948'}, 'P161', 'Q29468'] [{'concept': 'Q838948'}, 'P161', 'Q29468']
SELECT DISTINCT ?p WHERE { ?p property:P161 resource:Q76 . ?p rdf:type ontology:Q838948 }
Democratic Party Republican Party Republican Party
Did you mean Barack Obama ?
Barack Obama
[{'concept': 'work of art'}, 'cast member', 'Democratic Party'] [{'concept': 'work of art'}, 'cast member', 'Republican Party'] [{'concept': 'work of art'}, 'cast member', 'Republican Party']
SELECT DISTINCT ?p WHERE { ?p property:cast_member resource:Barack_Obama . ?p rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P161,Q76)
[{'concept': 'Q838948'}, 'P161', 'Q76']
[{'concept': 'work of art'}, 'cast member', 'Barack Obama']
[]
Q21686679 Q20630763 Q464964
SYSTEM
B.B. King: The Life of Riley, The Yes Men Are Revolting, The Dictator
Q1552765 Q3289753 Q464964 Q21686679 Q2497575 Q5003876 Q20630763
(c(Q838948),P161,Q76)
action filter_type
action find_reverse
entity Q76
relation P161
type Q838948
The name of works of art staring that person are [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q76']
SELECT DISTINCT ?p WHERE { ?p property:P161 resource:Q76 . ?p rdf:type ontology:Q838948 }
I'm Still Here Marching Band The Dictator B.B. King: The Life of Riley Fall of the Republic - The Presidency of Barack Obama By the People: The Election of Barack Obama The Yes Men Are Revolting
The name of works of art staring that person are B.B. King: The Life of Riley, The Yes Men Are Revolting and The Dictator
B.B. King: The Life of Riley The Yes Men Are Revolting The Dictator
action filter_type
action find_reverse
entity Barack Obama
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Barack Obama']
SELECT DISTINCT ?p WHERE { ?p property:cast_member resource:Barack_Obama . ?p rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q76
P1412
Q34770
USER
Which language can Barack Obama read ?
(Q76,P1412,c(Q34770))
action filter_type
action find
entity Q76
relation P1412
type Q34770
['Q76', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q76 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
Barack Obama
action filter_type
action find
entity Barack Obama
relation languages spoken, written or signed
type language
['Barack Obama', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Barack_Obama property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q76,P1412,c(Q34770))
action filter_type
action find
entity Q76
relation P1412
type Q34770
Barack Obama can read an [ANSWER]
['Q76', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q76 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
English
Barack Obama can read an English
English
action filter_type
action find
entity Barack Obama
relation languages spoken, written or signed
type language
['Barack Obama', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Barack_Obama property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]