Simple Question (Direct)
Simple Question
Q1508602
P102
Q7210356
USER
Which party does George Willard belong to ?
(Q1508602,P102,c(Q7210356))
action filter_type
action find
entity Q1508602
relation P102
type Q7210356
['Q1508602', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q1508602 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
George Willard
action filter_type
action find
entity George Willard
relation member of political party
type political organization
['George Willard', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:George_Willard property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q1508602,P102,c(Q7210356))
action filter_type
action find
entity Q1508602
relation P102
type Q7210356
George Willard belongs to [ANSWER]
['Q1508602', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q1508602 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Republican Party
George Willard belongs to Republican Party
Republican Party
action filter_type
action find
entity George Willard
relation member of political party
type political organization
['George Willard', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:George_Willard property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1508602
P39
Q12737077
USER
What were the positions held by George Willard ?
(Q1508602,P39,c(Q12737077))
action filter_type
action find
entity Q1508602
relation P39
type Q12737077
['Q1508602', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1508602 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
George Willard
action filter_type
action find
entity George Willard
relation position held
type occupation
['George Willard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:George_Willard property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q13218630 Q18654736
SYSTEM
United States representative, member of the Michigan House of Representatives
Q13218630 Q18654736
(Q1508602,P39,c(Q12737077))
action filter_type
action find
entity Q1508602
relation P39
type Q12737077
The positions held by George Willard were [ANSWERS]
['Q1508602', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1508602 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
United States representative member of the Michigan House of Representatives
The positions held by George Willard were United States representative and member of the Michigan House of Representatives
United States representative member of the Michigan House of Representatives
action filter_type
action find
entity George Willard
relation position held
type occupation
['George Willard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:George_Willard property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3725277
Q12737077
USER
And also tell me about Lars Jacobsen Thingnæsset?
(Q3725277,P39,c(Q12737077))
action filter_type
action find
entity Q3725277
relation P39
type Q12737077
['Q3725277', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3725277 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Lars Jacobsen Thingnæsset
action filter_type
action find
entity Lars Jacobsen Thingnæsset
relation position held
type occupation
['Lars Jacobsen Thingnæsset', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Lars_Jacobsen_Thingnæsset property:position_held ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q3725277,P39,c(Q12737077))
action filter_type
action find
entity Q3725277
relation P39
type Q12737077
[ANSWER]
['Q3725277', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3725277 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
member of the Parliament of Norway
member of the Parliament of Norway
action filter_type
action find
entity Lars Jacobsen Thingnæsset
relation position held
type occupation
['Lars Jacobsen Thingnæsset', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Lars_Jacobsen_Thingnæsset property:position_held ?n . ?n rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q9045502 Q55196 Q1198624
P1001
Q15617994
USER
Does that occupation have control over the jurisdiction of Xiangfang District and Luolong District ?
(Q9045502,P1001,Q55196) (Q9045502,P1001,Q1198624)
action is_in
entity Q9045502
action intersection
action find_reverse
entity Q55196
relation P1001
action find_reverse
entity Q1198624
relation P1001
['Q9045502', 'P1001', 'Q55196'] ['Q9045502', 'P1001', 'Q1198624']
ASK WHERE { resource:Q9045502 property:P1001 resource:Q1198624 . resource:Q9045502 property:P1001 resource:Q55196 }
member of the Parliament of Norway Xiangfang District Luolong District
action is_in
entity member of the Parliament of Norway
action intersection
action find_reverse
entity Xiangfang District
relation applies to jurisdiction
action find_reverse
entity Luolong District
relation applies to jurisdiction
['member of the Parliament of Norway', 'applies to jurisdiction', 'Xiangfang District'] ['member of the Parliament of Norway', 'applies to jurisdiction', 'Luolong District']
ASK WHERE { resource:member_of_the_Parliament_of_Norway property:applies_to_jurisdiction resource:Luolong_District . resource:member_of_the_Parliament_of_Norway property:applies_to_jurisdiction resource:Xiangfang_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q9045502,P1001,Q55196) (Q9045502,P1001,Q1198624)
action is_in
entity Q9045502
action intersection
action find_reverse
entity Q55196
relation P1001
action find_reverse
entity Q1198624
relation P1001
[ANSWER]
['Q9045502', 'P1001', 'Q55196'] ['Q9045502', 'P1001', 'Q1198624']
ASK WHERE { resource:Q9045502 property:P1001 resource:Q1198624 . resource:Q9045502 property:P1001 resource:Q55196 }
No
action is_in
entity member of the Parliament of Norway
action intersection
action find_reverse
entity Xiangfang District
relation applies to jurisdiction
action find_reverse
entity Luolong District
relation applies to jurisdiction
['member of the Parliament of Norway', 'applies to jurisdiction', 'Xiangfang District'] ['member of the Parliament of Norway', 'applies to jurisdiction', 'Luolong District']
ASK WHERE { resource:member_of_the_Parliament_of_Norway property:applies_to_jurisdiction resource:Luolong_District . resource:member_of_the_Parliament_of_Norway property:applies_to_jurisdiction resource:Xiangfang_District }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q18654736 Q23017 Q30
P17
Q15617994
USER
Is member of the Michigan House of Representatives present in Ellerstadt and United States of America ?
(Q18654736,P17,Q23017) (Q18654736,P17,Q30)
action is_in
entity Q18654736
action intersection
action find_reverse
entity Q23017
relation P17
action find_reverse
entity Q30
relation P17
['Q18654736', 'P17', 'Q23017'] ['Q18654736', 'P17', 'Q30']
ASK WHERE { resource:Q18654736 property:P17 resource:Q23017 . resource:Q18654736 property:P17 resource:Q30 }
member of the Michigan House of Representatives Ellerstadt United States of America
action is_in
entity member of the Michigan House of Representatives
action intersection
action find_reverse
entity Ellerstadt
relation country
action find_reverse
entity United States of America
relation country
['member of the Michigan House of Representatives', 'country', 'Ellerstadt'] ['member of the Michigan House of Representatives', 'country', 'United States of America']
ASK WHERE { resource:member_of_the_Michigan_House_of_Representatives property:country resource:Ellerstadt . resource:member_of_the_Michigan_House_of_Representatives property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q18654736,P17,Q23017) (Q18654736,P17,Q30)
action is_in
entity Q18654736
action intersection
action find_reverse
entity Q23017
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q18654736', 'P17', 'Q23017'] ['Q18654736', 'P17', 'Q30']
ASK WHERE { resource:Q18654736 property:P17 resource:Q23017 . resource:Q18654736 property:P17 resource:Q30 }
NO and YES respectively
action is_in
entity member of the Michigan House of Representatives
action intersection
action find_reverse
entity Ellerstadt
relation country
action find_reverse
entity United States of America
relation country
['member of the Michigan House of Representatives', 'country', 'Ellerstadt'] ['member of the Michigan House of Representatives', 'country', 'United States of America']
ASK WHERE { resource:member_of_the_Michigan_House_of_Representatives property:country resource:Ellerstadt . resource:member_of_the_Michigan_House_of_Representatives property:country resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2897713 Q55196
P27 P17
Q15617994
USER
Which administrative territories are Xiangfang District located in or are the countries of citizenship of Bernard Cottret ?
OR((Q55196,P17,c(Q15617994)), (Q2897713,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q55196
relation P17
action find
entity Q2897713
relation P27
type Q15617994
{'OR': [['Q55196', 'P17', {'concept': 'Q15617994'}], ['Q2897713', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q55196 property:P17 ?f } UNION { resource:Q2897713 property:P27 ?f } } . ?f rdf:type ontology:Q15617994 }
Bernard Cottret Xiangfang District
action filter_type
action union
action find
entity Xiangfang District
relation country
action find
entity Bernard Cottret
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Xiangfang District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bernard Cottret', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Xiangfang_District property:country ?f } UNION { resource:Bernard_Cottret property:country_of_citizenship ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q148
SYSTEM
France, People's Republic of China
Q142 Q148
OR((Q55196,P17,c(Q15617994)), (Q2897713,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q55196
relation P17
action find
entity Q2897713
relation P27
type Q15617994
[ANSWERS] are Xiangfang District located in or are the countries of citizenship of Bernard Cottret
{'OR': [['Q55196', 'P17', {'concept': 'Q15617994'}], ['Q2897713', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q55196 property:P17 ?f } UNION { resource:Q2897713 property:P27 ?f } } . ?f rdf:type ontology:Q15617994 }
France People's Republic of China
France and People's Republic of China are Xiangfang District located in or are the countries of citizenship of Bernard Cottret
France People's Republic of China
action filter_type
action union
action find
entity Xiangfang District
relation country
action find
entity Bernard Cottret
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Xiangfang District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bernard Cottret', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Xiangfang_District property:country ?f } UNION { resource:Bernard_Cottret property:country_of_citizenship ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2981152 Q30
P6 P1346
Q502895
USER
Which people do United States of America serve as the head of government for or won Primetime Emmy Award for Outstanding Guest Actress in a Comedy Series ?
OR((Q30,P6,c(Q502895)), (Q2981152,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q2981152
relation P1346
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q2981152', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q30 property:P6 ?n } UNION { resource:Q2981152 property:P1346 ?n } } . ?n rdf:type ontology:Q502895 }
Primetime Emmy Award for Outstanding Guest Actress in a Comedy Series United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Primetime Emmy Award for Outstanding Guest Actress in a Comedy Series
relation winner
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Primetime Emmy Award for Outstanding Guest Actress in a Comedy Series', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:United_States_of_America property:head_of_government ?n } UNION { resource:Primetime_Emmy_Award_for_Outstanding_Guest_Actress_in_a_Comedy_Series property:winner ?n } } . ?n rdf:type ontology:common_name }
[]
common name
Q34836 Q168724 Q36023 Q23685 Q8612 Q34296 Q207 Q22686 Q34460 Q33866
SYSTEM
Some of them are Ulysses S. Grant, Emma Thompson, Calvin Coolidge, Jimmy Carter, Andrew Johnson, Woodrow Wilson, George W. Bush, Donald Trump, Gwyneth Paltrow, Theodore Roosevelt
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q23505 Q35498 Q9582 Q242735 Q9960 Q14540 Q223281 Q207 Q11813 Q35236 Q23685 Q168724 Q9696 Q22686 Q255565 Q34597 Q36023 Q11881 Q239069 Q544465 Q9916 Q12312 Q239745 Q11806 Q34836 Q373895 Q35286 Q9640 Q35041 Q35686 Q11820 Q35678 Q188280 Q34460 Q229410 Q11869 Q34296 Q130549 Q8612 Q76 Q232511 Q238052 Q23 Q1124 Q230131 Q1545 Q11613 Q11896 Q8007 Q253916 Q11891 Q14941915
OR((Q30,P6,c(Q502895)), (Q2981152,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q2981152
relation P1346
type Q502895
United States of America serve as the head of government for President [ANSWERS]
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q2981152', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q30 property:P6 ?n } UNION { resource:Q2981152 property:P1346 ?n } } . ?n rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft George H. W. Bush Chester A. Arthur Gerald Ford Elaine Stritch Ronald Reagan Tina Fey Laura Linney George W. Bush James Madison Herbert Hoover Jimmy Carter Emma Thompson John F. Kennedy Donald Trump Carol Burnett James A. Garfield Calvin Coolidge John Tyler Jean Smart Kathy Bates Dwight D. Eisenhower Franklin Pierce Eileen Heckart John Adams Ulysses S. Grant Betty White Warren G. Harding Lyndon B. Johnson William McKinley Rutherford B. Hayes Martin Van Buren Benjamin Harrison Christina Applegate Gwyneth Paltrow Melissa Leo William Henry Harrison Woodrow Wilson Tracey Ullman Andrew Johnson Barack Obama Kathryn Joosten Swoosie Kurtz George Washington Bill Clinton Cloris Leachman Cyndi Lauper Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Colleen Dewhurst James K. Polk Uzo Aduba
United States of America serve as the head of government for President Ulysses S. Grant, Emma Thompson, Calvin Coolidge, Jimmy Carter, Andrew Johnson, Woodrow Wilson, George W. Bush, Donald Trump, Gwyneth Paltrow and Theodore Roosevelt
Ulysses S. Grant Emma Thompson Calvin Coolidge Jimmy Carter Andrew Johnson Woodrow Wilson George W. Bush Donald Trump Gwyneth Paltrow Theodore Roosevelt
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Primetime Emmy Award for Outstanding Guest Actress in a Comedy Series
relation winner
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Primetime Emmy Award for Outstanding Guest Actress in a Comedy Series', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:United_States_of_America property:head_of_government ?n } UNION { resource:Primetime_Emmy_Award_for_Outstanding_Guest_Actress_in_a_Comedy_Series property:winner ?n } } . ?n rdf:type ontology:common_name }
[]