Simple Question (Direct)
Simple Question
Q6182987
P102
Q7210356
USER
Which party does Jerome X. O'Donovan belong to ?
(Q6182987,P102,c(Q7210356))
action filter_type
action find
entity Q6182987
relation P102
type Q7210356
['Q6182987', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q7210356 . resource:Q6182987 property:P102 ?r }
Jerome X. O'Donovan
action filter_type
action find
entity Jerome X. O'Donovan
relation member of political party
type political organization
["Jerome X. O'Donovan", 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_organization . resource:Jerome_X._O'Donovan property:member_of_political_party ?r }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q6182987,P102,c(Q7210356))
action filter_type
action find
entity Q6182987
relation P102
type Q7210356
The [ANSWER] does Jerome X. O'Donovan belong to
['Q6182987', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q7210356 . resource:Q6182987 property:P102 ?r }
Democratic Party
The Democratic Party does Jerome X. O'Donovan belong to
Democratic Party
action filter_type
action find
entity Jerome X. O'Donovan
relation member of political party
type political organization
["Jerome X. O'Donovan", 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_organization . resource:Jerome_X._O'Donovan property:member_of_political_party ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6182987
P241
Q781132
USER
Which military branch is that person affiliated to ?
(Q29552,P241,c(Q781132))
action filter_type
action find
entity Q6182987
relation P241
type Q781132
['Q29552', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?b WHERE { resource:Q6182987 property:P241 ?b . ?b rdf:type ontology:Q781132 }
Jerome X. O'Donovan
action filter_type
action find
entity Jerome X. O'Donovan
relation military branch
type military branch
['Democratic Party', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?b WHERE { resource:Jerome_X._O'Donovan property:military_branch ?b . ?b rdf:type ontology:military_branch }
[]
military branch
Q11218
SYSTEM
United States Marine Corps
Q11218
(Q29552,P241,c(Q781132))
action filter_type
action find
entity Q6182987
relation P241
type Q781132
That person is affiliated with [ANSWER]
['Q29552', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?b WHERE { resource:Q6182987 property:P241 ?b . ?b rdf:type ontology:Q781132 }
United States Marine Corps
That person is affiliated with United States Marine Corps
United States Marine Corps
action filter_type
action find
entity Jerome X. O'Donovan
relation military branch
type military branch
['Democratic Party', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?b WHERE { resource:Jerome_X._O'Donovan property:military_branch ?b . ?b rdf:type ontology:military_branch }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q11220 Q11218
P241
Q502895
USER
Which people have United States Marine Corps and United States Navy as the related army branch ?
AND((c(Q502895),P241,Q11218), (c(Q502895),P241,Q11220))
action filter_type
action intersection
action find_reverse
entity Q11218
relation P241
action find_reverse
entity Q11220
relation P241
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P241', 'Q11218'], [{'concept': 'Q502895'}, 'P241', 'Q11220']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P241 resource:Q11218 . ?k property:P241 resource:Q11220 }
United States Navy United States Marine Corps
action filter_type
action intersection
action find_reverse
entity United States Marine Corps
relation military branch
action find_reverse
entity United States Navy
relation military branch
type common name
{'AND': [[{'concept': 'common name'}, 'military branch', 'United States Marine Corps'], [{'concept': 'common name'}, 'military branch', 'United States Navy']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:military_branch resource:United_States_Marine_Corps . ?k property:military_branch resource:United_States_Navy }
[]
common name
Q212048 Q5336267 Q982181 Q1359895 Q1345645 Q6286421 Q7611433 Q5024399 Q7326804 Q1563985
SYSTEM
Some of them are Glenn Ford, Eddie Mahan, Jeremiah Wright, James Gregory, Montel Williams, Joseph R. Lamonde, Sterling Johnson, Jr., Calvin Graham, Richard Jadick, Lawrence E. Imhoff
Q6282849 Q1345645 Q7326804 Q1359895 Q295935 Q1889152 Q4670544 Q2073295 Q7287631 Q1563985 Q7789784 Q7611433 Q16015909 Q6286421 Q5561006 Q982181 Q5024399 Q7297683 Q5336267 Q212048
AND((c(Q502895),P241,Q11218), (c(Q502895),P241,Q11220))
action filter_type
action intersection
action find_reverse
entity Q11218
relation P241
action find_reverse
entity Q11220
relation P241
type Q502895
[ANSWERS] have United States Marine Corps and United States Navy as the related army branch
{'AND': [[{'concept': 'Q502895'}, 'P241', 'Q11218'], [{'concept': 'Q502895'}, 'P241', 'Q11220']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P241 resource:Q11218 . ?k property:P241 resource:Q11220 }
Joseph Edward Connolly Montel Williams Richard Jadick James Gregory John Philip Sousa Mike Mansfield Abuhena Saifulislam Pete McCloskey Ralph Hickox Lawrence E. Imhoff Thomas Francis Prendergast Sterling Johnson, Jr. Matthew McKeon Joseph R. Lamonde Gilbert Johnson Jeremiah Wright Calvin Graham Ray K. Edwards Eddie Mahan Glenn Ford
Glenn Ford, Eddie Mahan, Jeremiah Wright, James Gregory, Montel Williams, Joseph R. Lamonde, Sterling Johnson, Jr., Calvin Graham, Richard Jadick and Lawrence E. Imhoff have United States Marine Corps and United States Navy as the related army branch
Glenn Ford Eddie Mahan Jeremiah Wright James Gregory Montel Williams Joseph R. Lamonde Sterling Johnson, Jr. Calvin Graham Richard Jadick Lawrence E. Imhoff
action filter_type
action intersection
action find_reverse
entity United States Marine Corps
relation military branch
action find_reverse
entity United States Navy
relation military branch
type common name
{'AND': [[{'concept': 'common name'}, 'military branch', 'United States Marine Corps'], [{'concept': 'common name'}, 'military branch', 'United States Navy']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:military_branch resource:United_States_Marine_Corps . ?k property:military_branch resource:United_States_Navy }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5336267
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q5336267,P27,c(Q15617994))
action filter_type
action find
entity Q5336267
relation P27
type Q15617994
['Q5336267', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q5336267 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Eddie Mahan
action filter_type
action find
entity Eddie Mahan
relation country of citizenship
type designation for an administrative territorial entity
['Eddie Mahan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Eddie_Mahan property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q5024399
SYSTEM
Did you mean Calvin Graham ?
Q212048 Q5336267 Q982181 Q1359895 Q1345645 Q6286421 Q7611433 Q5024399 Q7326804 Q1563985
(Q212048,P27,c(Q15617994)) (Q5336267,P27,c(Q15617994)) (Q982181,P27,c(Q15617994)) (Q1359895,P27,c(Q15617994)) (Q1345645,P27,c(Q15617994)) (Q6286421,P27,c(Q15617994)) (Q7611433,P27,c(Q15617994)) (Q5024399,P27,c(Q15617994)) (Q7326804,P27,c(Q15617994)) (Q1563985,P27,c(Q15617994))
[ANSWER]
['Q212048', 'P27', {'concept': 'Q15617994'}] ['Q5336267', 'P27', {'concept': 'Q15617994'}] ['Q982181', 'P27', {'concept': 'Q15617994'}] ['Q1359895', 'P27', {'concept': 'Q15617994'}] ['Q1345645', 'P27', {'concept': 'Q15617994'}] ['Q6286421', 'P27', {'concept': 'Q15617994'}] ['Q7611433', 'P27', {'concept': 'Q15617994'}] ['Q5024399', 'P27', {'concept': 'Q15617994'}] ['Q7326804', 'P27', {'concept': 'Q15617994'}] ['Q1563985', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q5336267 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Glenn Ford Eddie Mahan Jeremiah Wright James Gregory Montel Williams Joseph R. Lamonde Sterling Johnson, Jr. Calvin Graham Richard Jadick Lawrence E. Imhoff
Did you mean Calvin Graham ?
Calvin Graham
['Glenn Ford', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Eddie Mahan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Jeremiah Wright', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['James Gregory', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Montel Williams', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Joseph R. Lamonde', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Sterling Johnson, Jr.', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Calvin Graham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Richard Jadick', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Lawrence E. Imhoff', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Eddie_Mahan property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Eddie Mahan. Could you tell me the answer for that?
(Q5336267,P27,c(Q15617994))
Q5336267
['Q5336267', 'P27', {'concept': 'Q15617994'}]
['Eddie Mahan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q5336267,P27,c(Q15617994))
action filter_type
action find
entity Q5336267
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q5336267', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q5336267 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
United States of America
The United States of America is that person an inhabitant of
United States of America
action filter_type
action find
entity Eddie Mahan
relation country of citizenship
type designation for an administrative territorial entity
['Eddie Mahan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Eddie_Mahan property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11218
P287
Q17335294
USER
Which coat of arms had designs produced by United States Marine Corps ?
(c(Q17335294),P287,Q11218)
action filter_type
action find_reverse
entity Q11218
relation P287
type Q17335294
[{'concept': 'Q17335294'}, 'P287', 'Q11218']
SELECT DISTINCT ?o WHERE { ?o property:P287 resource:Q11218 . ?o rdf:type ontology:Q17335294 }
United States Marine Corps
action filter_type
action find_reverse
entity United States Marine Corps
relation designer
type flag or coat of arms
[{'concept': 'flag or coat of arms'}, 'designer', 'United States Marine Corps']
SELECT DISTINCT ?o WHERE { ?o property:designer resource:United_States_Marine_Corps . ?o rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q5456897
SYSTEM
Flag of the United States Marine Corps
Q5456897
(c(Q17335294),P287,Q11218)
action filter_type
action find_reverse
entity Q11218
relation P287
type Q17335294
The [ANSWER] had designs produced by United States Marine Corps
[{'concept': 'Q17335294'}, 'P287', 'Q11218']
SELECT DISTINCT ?o WHERE { ?o property:P287 resource:Q11218 . ?o rdf:type ontology:Q17335294 }
Flag of the United States Marine Corps
The Flag of the United States Marine Corps had designs produced by United States Marine Corps
Flag of the United States Marine Corps
action filter_type
action find_reverse
entity United States Marine Corps
relation designer
type flag or coat of arms
[{'concept': 'flag or coat of arms'}, 'designer', 'United States Marine Corps']
SELECT DISTINCT ?o WHERE { ?o property:designer resource:United_States_Marine_Corps . ?o rdf:type ontology:flag_or_coat_of_arms }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P287
Q43229 Q17335294
USER
How many coats of arms had designs created by more number of organizations than that coat of arms ?
(c(Q17335294),P287,c(Q43229))
action count
action greater
action find_tuple_counts
relation P287
type Q17335294
type Q43229
action count
action filter_type
action find
entity Q5456897
relation P287
type Q17335294
[{'concept': 'Q17335294'}, 'P287', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?t ) WHERE { ?l property:P287 ?z . ?l rdf:type ontology:Q17335294 . ?z rdf:type ontology:Q43229 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Q5456897 property:P287 ?x . ?x rdf:type ontology:Q17335294 } } . FILTER ( ?t > ?o ) }
action count
action greater
action find_tuple_counts
relation designer
type flag or coat of arms
type organization
action count
action filter_type
action find
entity Flag of the United States Marine Corps
relation designer
type flag or coat of arms
[{'concept': 'flag or coat of arms'}, 'designer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?t ) WHERE { ?l property:designer ?z . ?l rdf:type ontology:flag_or_coat_of_arms . ?z rdf:type ontology:organization } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Flag_of_the_United_States_Marine_Corps property:designer ?x . ?x rdf:type ontology:flag_or_coat_of_arms } } . FILTER ( ?t > ?o ) }
[]
organization flag or coat of arms
SYSTEM
3
Q15961950 Q2411538 Q2336202
(c(Q17335294),P287,c(Q43229))
action count
action greater
action find_tuple_counts
relation P287
type Q17335294
type Q43229
action count
action filter_type
action find
entity Q5456897
relation P287
type Q17335294
[ANSWER]
[{'concept': 'Q17335294'}, 'P287', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?t ) WHERE { ?l property:P287 ?z . ?l rdf:type ontology:Q17335294 . ?z rdf:type ontology:Q43229 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Q5456897 property:P287 ?x . ?x rdf:type ontology:Q17335294 } } . FILTER ( ?t > ?o ) }
Flag of Montgomery County, Maryland Flag of Hertfordshire Flag of Northumberland
3
action count
action greater
action find_tuple_counts
relation designer
type flag or coat of arms
type organization
action count
action filter_type
action find
entity Flag of the United States Marine Corps
relation designer
type flag or coat of arms
[{'concept': 'flag or coat of arms'}, 'designer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?t ) WHERE { ?l property:designer ?z . ?l rdf:type ontology:flag_or_coat_of_arms . ?z rdf:type ontology:organization } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { resource:Flag_of_the_United_States_Marine_Corps property:designer ?x . ?x rdf:type ontology:flag_or_coat_of_arms } } . FILTER ( ?t > ?o ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3569103 Q5336267
P607
Q198
USER
Which wars did Eddie Mahan and Willie Reid take part in ?
AND((Q5336267,P607,c(Q198)), (Q3569103,P607,c(Q198)))
action filter_type
action intersection
action find
entity Q5336267
relation P607
action find
entity Q3569103
relation P607
type Q198
{'AND': [['Q5336267', 'P607', {'concept': 'Q198'}], ['Q3569103', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?y WHERE { resource:Q5336267 property:P607 ?y . resource:Q3569103 property:P607 ?y . ?y rdf:type ontology:Q198 }
Willie Reid Eddie Mahan
action filter_type
action intersection
action find
entity Eddie Mahan
relation conflict
action find
entity Willie Reid
relation conflict
type war
{'AND': [['Eddie Mahan', 'conflict', {'concept': 'war'}], ['Willie Reid', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?y WHERE { resource:Eddie_Mahan property:conflict ?y . resource:Willie_Reid property:conflict ?y . ?y rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
AND((Q5336267,P607,c(Q198)), (Q3569103,P607,c(Q198)))
action filter_type
action intersection
action find
entity Q5336267
relation P607
action find
entity Q3569103
relation P607
type Q198
Eddie Mahan and Willie Reid took in part in [ANSWER]
{'AND': [['Q5336267', 'P607', {'concept': 'Q198'}], ['Q3569103', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?y WHERE { resource:Q5336267 property:P607 ?y . resource:Q3569103 property:P607 ?y . ?y rdf:type ontology:Q198 }
World War I
Eddie Mahan and Willie Reid took in part in World War I
World War I
action filter_type
action intersection
action find
entity Eddie Mahan
relation conflict
action find
entity Willie Reid
relation conflict
type war
{'AND': [['Eddie Mahan', 'conflict', {'concept': 'war'}], ['Willie Reid', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?y WHERE { resource:Eddie_Mahan property:conflict ?y . resource:Willie_Reid property:conflict ?y . ?y rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q212048
P26
Q502895
USER
Who are married to Glenn Ford ?
(Q212048,P26,c(Q502895))
action filter_type
action find
entity Q212048
relation P26
type Q502895
['Q212048', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q212048 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Glenn Ford
action filter_type
action find
entity Glenn Ford
relation spouse
type common name
['Glenn Ford', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Glenn_Ford property:spouse ?q . ?q rdf:type ontology:common_name }
[]
common name
Q6377050 Q256117
SYSTEM
Kathryn Hays, Eleanor Powell
Q6377050 Q256117
(Q212048,P26,c(Q502895))
action filter_type
action find
entity Q212048
relation P26
type Q502895
In [ANSWERS] are married to Glenn Ford
['Q212048', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q212048 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Kathryn Hays Eleanor Powell
In Kathryn Hays and Eleanor Powell are married to Glenn Ford
Kathryn Hays Eleanor Powell
action filter_type
action find
entity Glenn Ford
relation spouse
type common name
['Glenn Ford', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Glenn_Ford property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7172462
Q502895
USER
And how about Peter Adams?
(Q7172462,P26,c(Q502895))
action filter_type
action find
entity Q7172462
relation P26
type Q502895
['Q7172462', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q7172462 property:P26 ?h }
Peter Adams
action filter_type
action find
entity Peter Adams
relation spouse
type common name
['Peter Adams', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Peter_Adams property:spouse ?h }
[]
common name
Q3815617
SYSTEM
Kirsty Child
Q3815617
(Q7172462,P26,c(Q502895))
action filter_type
action find
entity Q7172462
relation P26
type Q502895
[ANSWER]
['Q7172462', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q7172462 property:P26 ?h }
Kirsty Child
Kirsty Child
action filter_type
action find
entity Peter Adams
relation spouse
type common name
['Peter Adams', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Peter_Adams property:spouse ?h }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q590908 Q30
P6 P344
Q502895
USER
Which people are United States of America the head of goverment of or are appointed as the cinematographers of Chess Fever ?
OR((Q30,P6,c(Q502895)), (Q590908,P344,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q590908
relation P344
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q590908', 'P344', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q590908 property:P344 ?j } UNION { resource:Q30 property:P6 ?j } } . ?j rdf:type ontology:Q502895 }
Chess Fever United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Chess Fever
relation director of photography
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Chess Fever', 'director of photography', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Chess_Fever property:director_of_photography ?j } UNION { resource:United_States_of_America property:head_of_government ?j } } . ?j rdf:type ontology:common_name }
[]
common name
Q33866 Q23 Q76 Q12312 Q36023 Q9916 Q11869 Q11812 Q22686 Q11896
SYSTEM
Some of them are Theodore Roosevelt, George Washington, Barack Obama, Franklin Pierce, Calvin Coolidge, Dwight D. Eisenhower, William Henry Harrison, Thomas Jefferson, Donald Trump, Zachary Taylor
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q35498 Q9582 Q35686 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q487671 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q36023 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q590908,P344,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q590908
relation P344
type Q502895
[ANSWERS] are United States of America the head of goverment of or are appointed as the cinematographers of Chess Fever
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q590908', 'P344', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q590908 property:P344 ?j } UNION { resource:Q30 property:P6 ?j } } . ?j 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 Chester A. Arthur Gerald Ford Rutherford B. Hayes William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Anatoli Golovnya John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Calvin Coolidge 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
Theodore Roosevelt, George Washington, Barack Obama, Franklin Pierce, Calvin Coolidge, Dwight D. Eisenhower, William Henry Harrison, Thomas Jefferson, Donald Trump and Zachary Taylor are United States of America the head of goverment of or are appointed as the cinematographers of Chess Fever
Theodore Roosevelt George Washington Barack Obama Franklin Pierce Calvin Coolidge Dwight D. Eisenhower William Henry Harrison Thomas Jefferson Donald Trump Zachary Taylor
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Chess Fever
relation director of photography
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Chess Fever', 'director of photography', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Chess_Fever property:director_of_photography ?j } UNION { resource:United_States_of_America property:head_of_government ?j } } . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q33866 Q23 Q76 Q12312 Q36023 Q9916 Q11869 Q11812 Q22686 Q11896
P26
Q502895
USER
Who are the spouse of those ones ?
(c(Q502895),P26,Q33866) (c(Q502895),P26,Q23) (c(Q502895),P26,Q76) (c(Q502895),P26,Q12312) (c(Q502895),P26,Q36023) (c(Q502895),P26,Q9916) (c(Q502895),P26,Q11869) (c(Q502895),P26,Q11812) (c(Q502895),P26,Q22686) (c(Q502895),P26,Q11896)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q33866'] [{'concept': 'Q502895'}, 'P26', 'Q23'] [{'concept': 'Q502895'}, 'P26', 'Q76'] [{'concept': 'Q502895'}, 'P26', 'Q12312'] [{'concept': 'Q502895'}, 'P26', 'Q36023'] [{'concept': 'Q502895'}, 'P26', 'Q9916'] [{'concept': 'Q502895'}, 'P26', 'Q11869'] [{'concept': 'Q502895'}, 'P26', 'Q11812'] [{'concept': 'Q502895'}, 'P26', 'Q22686'] [{'concept': 'Q502895'}, 'P26', 'Q11896']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . VALUES ( ?a ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } . ?a property:P26 ?q }
Theodore Roosevelt George Washington Barack Obama Franklin Pierce Calvin Coolidge Dwight D. Eisenhower William Henry Harrison Thomas Jefferson Donald Trump Zachary Taylor
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Theodore Roosevelt'] [{'concept': 'common name'}, 'spouse', 'George Washington'] [{'concept': 'common name'}, 'spouse', 'Barack Obama'] [{'concept': 'common name'}, 'spouse', 'Franklin Pierce'] [{'concept': 'common name'}, 'spouse', 'Calvin Coolidge'] [{'concept': 'common name'}, 'spouse', 'Dwight D. Eisenhower'] [{'concept': 'common name'}, 'spouse', 'William Henry Harrison'] [{'concept': 'common name'}, 'spouse', 'Thomas Jefferson'] [{'concept': 'common name'}, 'spouse', 'Donald Trump'] [{'concept': 'common name'}, 'spouse', 'Zachary Taylor']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . VALUES ( ?a ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } . ?a property:spouse ?q }
[]
common name
Q13133 Q191789 Q432473
SYSTEM
Michelle Obama, Martha Washington, Melania Trump
Q237590 Q2836599 Q191789 Q13133 Q238371 Q234287 Q233686 Q255190 Q238001 Q432473 Q2597050 Q242351 Q234302
(c(Q502895),P26,Q33866) (c(Q502895),P26,Q23) (c(Q502895),P26,Q76) (c(Q502895),P26,Q12312) (c(Q502895),P26,Q36023) (c(Q502895),P26,Q9916) (c(Q502895),P26,Q11869) (c(Q502895),P26,Q11812) (c(Q502895),P26,Q22686) (c(Q502895),P26,Q11896)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
The spouse of those ones are [ANSWERS]
[{'concept': 'Q502895'}, 'P26', 'Q33866'] [{'concept': 'Q502895'}, 'P26', 'Q23'] [{'concept': 'Q502895'}, 'P26', 'Q76'] [{'concept': 'Q502895'}, 'P26', 'Q12312'] [{'concept': 'Q502895'}, 'P26', 'Q36023'] [{'concept': 'Q502895'}, 'P26', 'Q9916'] [{'concept': 'Q502895'}, 'P26', 'Q11869'] [{'concept': 'Q502895'}, 'P26', 'Q11812'] [{'concept': 'Q502895'}, 'P26', 'Q22686'] [{'concept': 'Q502895'}, 'P26', 'Q11896']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . VALUES ( ?a ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } . ?a property:P26 ?q }
Edith Roosevelt Alice Hathaway Lee Roosevelt Martha Washington Michelle Obama Jane Pierce Grace Coolidge Mamie Eisenhower Anna Harrison Martha Jefferson Melania Trump Marla Maples Ivana Trump Margaret Taylor
The spouse of those ones are Michelle Obama, Martha Washington and Melania Trump
Michelle Obama Martha Washington Melania Trump
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Theodore Roosevelt'] [{'concept': 'common name'}, 'spouse', 'George Washington'] [{'concept': 'common name'}, 'spouse', 'Barack Obama'] [{'concept': 'common name'}, 'spouse', 'Franklin Pierce'] [{'concept': 'common name'}, 'spouse', 'Calvin Coolidge'] [{'concept': 'common name'}, 'spouse', 'Dwight D. Eisenhower'] [{'concept': 'common name'}, 'spouse', 'William Henry Harrison'] [{'concept': 'common name'}, 'spouse', 'Thomas Jefferson'] [{'concept': 'common name'}, 'spouse', 'Donald Trump'] [{'concept': 'common name'}, 'spouse', 'Zachary Taylor']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . VALUES ( ?a ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } . ?a property:spouse ?q }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q13133 Q191789 Q432473
P26
Q502895
USER
Which people have those ones as spouse ?
(c(Q502895),P26,Q13133) (c(Q502895),P26,Q191789) (c(Q502895),P26,Q432473)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q13133'] [{'concept': 'Q502895'}, 'P26', 'Q191789'] [{'concept': 'Q502895'}, 'P26', 'Q432473']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . VALUES ( ?g ) { ( resource:Q237590 ) ( resource:Q2836599 ) ( resource:Q191789 ) } . ?g property:P26 ?p }
Michelle Obama Martha Washington Melania Trump
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Michelle Obama'] [{'concept': 'common name'}, 'spouse', 'Martha Washington'] [{'concept': 'common name'}, 'spouse', 'Melania Trump']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . VALUES ( ?g ) { ( resource:Edith_Roosevelt ) ( resource:Alice_Hathaway_Lee_Roosevelt ) ( resource:Martha_Washington ) } . ?g property:spouse ?p }
[]
common name
Q76 Q22686 Q23
SYSTEM
Barack Obama, Donald Trump, George Washington
Q76 Q1162023 Q23 Q22686
(c(Q502895),P26,Q13133) (c(Q502895),P26,Q191789) (c(Q502895),P26,Q432473)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS] have those ones as spouse
[{'concept': 'Q502895'}, 'P26', 'Q13133'] [{'concept': 'Q502895'}, 'P26', 'Q191789'] [{'concept': 'Q502895'}, 'P26', 'Q432473']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . VALUES ( ?g ) { ( resource:Q237590 ) ( resource:Q2836599 ) ( resource:Q191789 ) } . ?g property:P26 ?p }
Barack Obama Daniel Parke Custis George Washington Donald Trump
Barack Obama, Donald Trump and George Washington have those ones as spouse
Barack Obama Donald Trump George Washington
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Michelle Obama'] [{'concept': 'common name'}, 'spouse', 'Martha Washington'] [{'concept': 'common name'}, 'spouse', 'Melania Trump']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . VALUES ( ?g ) { ( resource:Edith_Roosevelt ) ( resource:Alice_Hathaway_Lee_Roosevelt ) ( resource:Martha_Washington ) } . ?g property:spouse ?p }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q76 Q22686 Q23
P22
Q502895
USER
Who have Barack Obama, Donald Trump and George Washington as a father ?
(c(Q502895),P22,Q76) (c(Q502895),P22,Q22686) (c(Q502895),P22,Q23)
action union
action filter_type
action find_reverse
entity Q76
relation P22
type Q502895
action filter_type
action find_reverse
entity Q22686
relation P22
type Q502895
action filter_type
action find_reverse
entity Q23
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q76'] [{'concept': 'Q502895'}, 'P22', 'Q22686'] [{'concept': 'Q502895'}, 'P22', 'Q23']
SELECT DISTINCT ?e WHERE { { ?e property:P22 resource:Q76 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P22 resource:Q22686 . ?e rdf:type ontology:Q502895 } }
Barack Obama Donald Trump George Washington
action union
action filter_type
action find_reverse
entity Barack Obama
relation father
type common name
action filter_type
action find_reverse
entity Donald Trump
relation father
type common name
action filter_type
action find_reverse
entity George Washington
relation father
type common name
[{'concept': 'common name'}, 'father', 'Barack Obama'] [{'concept': 'common name'}, 'father', 'Donald Trump'] [{'concept': 'common name'}, 'father', 'George Washington']
SELECT DISTINCT ?e WHERE { { ?e property:father resource:Barack_Obama . ?e rdf:type ontology:common_name } UNION { ?e property:father resource:Donald_Trump . ?e rdf:type ontology:common_name } }
[]
common name
Q3713655 Q239411 Q1701323
SYSTEM
Donald Trump Jr., Ivanka Yael Trump, John Parke Custis
Q15070048 Q15070044 Q3713655 Q239411 Q3731533 Q12071552 Q23000814 Q21004273 Q1701323
(c(Q502895),P22,Q76) (c(Q502895),P22,Q22686) (c(Q502895),P22,Q23)
action union
action filter_type
action find_reverse
entity Q76
relation P22
type Q502895
action filter_type
action find_reverse
entity Q22686
relation P22
type Q502895
action filter_type
action find_reverse
entity Q23
relation P22
type Q502895
[ANSWERS] have Barack Obama, Donald Trump and George Washington as a father
[{'concept': 'Q502895'}, 'P22', 'Q76'] [{'concept': 'Q502895'}, 'P22', 'Q22686'] [{'concept': 'Q502895'}, 'P22', 'Q23']
SELECT DISTINCT ?e WHERE { { ?e property:P22 resource:Q76 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P22 resource:Q22686 . ?e rdf:type ontology:Q502895 } }
Sasha Obama Malia Obama Donald Trump Jr. Ivanka Yael Trump Eric Trump Tiffany Trump Barron Trump Martha Parke Custis John Parke Custis
Donald Trump Jr., Ivanka Yael Trump and John Parke Custis have Barack Obama, Donald Trump and George Washington as a father
Donald Trump Jr. Ivanka Yael Trump John Parke Custis
action union
action filter_type
action find_reverse
entity Barack Obama
relation father
type common name
action filter_type
action find_reverse
entity Donald Trump
relation father
type common name
action filter_type
action find_reverse
entity George Washington
relation father
type common name
[{'concept': 'common name'}, 'father', 'Barack Obama'] [{'concept': 'common name'}, 'father', 'Donald Trump'] [{'concept': 'common name'}, 'father', 'George Washington']
SELECT DISTINCT ?e WHERE { { ?e property:father resource:Barack_Obama . ?e rdf:type ontology:common_name } UNION { ?e property:father resource:Donald_Trump . ?e rdf:type ontology:common_name } }
[]