Simple Question (Direct)
Simple Question
Q1385983
P21
Q290
USER
What is the sex of Ezekiel A. Straw ?
(Q1385983,P21,c(Q290))
action filter_type
action find
entity Q1385983
relation P21
type Q290
['Q1385983', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q1385983 property:P21 ?s . ?s rdf:type ontology:Q290 }
Ezekiel A. Straw
action filter_type
action find
entity Ezekiel A. Straw
relation gender
type sex
['Ezekiel A. Straw', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Ezekiel_A._Straw property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1385983,P21,c(Q290))
action filter_type
action find
entity Q1385983
relation P21
type Q290
[ANSWER] . the sex of Ezekiel A is
['Q1385983', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q1385983 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
Male . the sex of Ezekiel A is
male
action filter_type
action find
entity Ezekiel A. Straw
relation gender
type sex
['Ezekiel A. Straw', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Ezekiel_A._Straw property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1385983
P102
Q7210356
USER
Which political organization is Ezekiel A. Straw a member of ?
(Q1385983,P102,c(Q7210356))
action filter_type
action find
entity Q1385983
relation P102
type Q7210356
['Q1385983', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q1385983 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Ezekiel A. Straw
action filter_type
action find
entity Ezekiel A. Straw
relation member of political party
type political organization
['Ezekiel A. Straw', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Ezekiel_A._Straw property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q1385983,P102,c(Q7210356))
action filter_type
action find
entity Q1385983
relation P102
type Q7210356
The [ANSWER] is Ezekiel A. Straw a member of
['Q1385983', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q1385983 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Republican Party
The Republican Party is Ezekiel A. Straw a member of
Republican Party
action filter_type
action find
entity Ezekiel A. Straw
relation member of political party
type political organization
['Ezekiel A. Straw', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Ezekiel_A._Straw property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29468
P710
Q40231
USER
What event was that political organization a participant of ?
(c(Q40231),P710,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P710
type Q40231
[{'concept': 'Q40231'}, 'P710', 'Q29468']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q29468 . ?t rdf:type ontology:Q40231 }
Republican Party
action filter_type
action find_reverse
entity Republican Party
relation participant
type election
[{'concept': 'election'}, 'participant', 'Republican Party']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:Republican_Party . ?t rdf:type ontology:election }
[]
election
Q17092711
SYSTEM
Republican Party presidential primaries, 2016
Q17092711
(c(Q40231),P710,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P710
type Q40231
What event was that political organization a participant of
[{'concept': 'Q40231'}, 'P710', 'Q29468']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q29468 . ?t rdf:type ontology:Q40231 }
Republican Party presidential primaries, 2016
What event was that political organization a participant of
Republican Party presidential primaries, 2016
action filter_type
action find_reverse
entity Republican Party
relation participant
type election
[{'concept': 'election'}, 'participant', 'Republican Party']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:Republican_Party . ?t rdf:type ontology:election }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q17092711 Q30
P17
Q15617994
USER
Is that election located in United States of America ?
(Q17092711,P17,Q30)
action is_in
entity Q30
action find
entity Q17092711
relation P17
['Q17092711', 'P17', 'Q30']
ASK WHERE { resource:Q17092711 property:P17 resource:Q30 }
Republican Party presidential primaries, 2016 United States of America
action is_in
entity United States of America
action find
entity Republican Party presidential primaries, 2016
relation country
['Republican Party presidential primaries, 2016', 'country', 'United States of America']
ASK WHERE { resource:Republican_Party_presidential_primaries,_2016 property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q17092711,P17,Q30)
action is_in
entity Q30
action find
entity Q17092711
relation P17
[ANSWER]
['Q17092711', 'P17', 'Q30']
ASK WHERE { resource:Q17092711 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Republican Party presidential primaries, 2016
relation country
['Republican Party presidential primaries, 2016', 'country', 'United States of America']
ASK WHERE { resource:Republican_Party_presidential_primaries,_2016 property:country resource:United_States_of_America }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1385983
P39
Q12737077
USER
Which occupations were the positions for which Ezekiel A. Straw were appointed ?
(Q1385983,P39,c(Q12737077))
action filter_type
action find
entity Q1385983
relation P39
type Q12737077
['Q1385983', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1385983 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Ezekiel A. Straw
action filter_type
action find
entity Ezekiel A. Straw
relation position held
type occupation
['Ezekiel A. Straw', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Ezekiel_A._Straw property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q5589687 Q19264592
SYSTEM
Governor of New Hampshire, member of the State Senate of New Hampshire
Q5589687 Q19264592
(Q1385983,P39,c(Q12737077))
action filter_type
action find
entity Q1385983
relation P39
type Q12737077
[ANSWERS] were the positions for which Ezekiel A. Straw were appointed
['Q1385983', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1385983 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Governor of New Hampshire member of the State Senate of New Hampshire
Governor of New Hampshire and member of the State Senate of New Hampshire were the positions for which Ezekiel A. Straw were appointed
Governor of New Hampshire member of the State Senate of New Hampshire
action filter_type
action find
entity Ezekiel A. Straw
relation position held
type occupation
['Ezekiel A. Straw', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Ezekiel_A._Straw property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5725999 Q1385983
P39 P106
Q12737077
USER
Which occupations were the positions held by Ezekiel A. Straw or have Benjamin Carroll Tharp as his/her as a career ?
OR((Q1385983,P39,c(Q12737077)), (Q5725999,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1385983
relation P39
action find
entity Q5725999
relation P106
type Q12737077
{'OR': [['Q1385983', 'P39', {'concept': 'Q12737077'}], ['Q5725999', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1385983 property:P39 ?j } UNION { resource:Q5725999 property:P106 ?j } } . ?j rdf:type ontology:Q12737077 }
Benjamin Carroll Tharp Ezekiel A. Straw
action filter_type
action union
action find
entity Ezekiel A. Straw
relation position held
action find
entity Benjamin Carroll Tharp
relation occupation
type occupation
{'OR': [['Ezekiel A. Straw', 'position held', {'concept': 'occupation'}], ['Benjamin Carroll Tharp', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Ezekiel_A._Straw property:position_held ?j } UNION { resource:Benjamin_Carroll_Tharp property:occupation ?j } } . ?j rdf:type ontology:occupation }
[]
occupation
Q5589687 Q19264592 Q2374149
SYSTEM
Governor of New Hampshire, member of the State Senate of New Hampshire, botanist
Q5589687 Q19264592 Q2374149
OR((Q1385983,P39,c(Q12737077)), (Q5725999,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1385983
relation P39
action find
entity Q5725999
relation P106
type Q12737077
[ANSWERS] were the positions held by Ezekiel A. Straw or have Benjamin Carroll Tharp as his/her as a career
{'OR': [['Q1385983', 'P39', {'concept': 'Q12737077'}], ['Q5725999', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1385983 property:P39 ?j } UNION { resource:Q5725999 property:P106 ?j } } . ?j rdf:type ontology:Q12737077 }
Governor of New Hampshire member of the State Senate of New Hampshire botanist
Governor of New Hampshire, member of the State Senate of New Hampshire and botanist were the positions held by Ezekiel A. Straw or have Benjamin Carroll Tharp as his/her as a career
Governor of New Hampshire member of the State Senate of New Hampshire botanist
action filter_type
action union
action find
entity Ezekiel A. Straw
relation position held
action find
entity Benjamin Carroll Tharp
relation occupation
type occupation
{'OR': [['Ezekiel A. Straw', 'position held', {'concept': 'occupation'}], ['Benjamin Carroll Tharp', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Ezekiel_A._Straw property:position_held ?j } UNION { resource:Benjamin_Carroll_Tharp property:occupation ?j } } . ?j rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6783163 Q1385983
P27
Q15617994
USER
Which administrative territories are Ezekiel A. Straw and Mashiska Washington a civilian of ?
AND((Q1385983,P27,c(Q15617994)), (Q6783163,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1385983
relation P27
action find
entity Q6783163
relation P27
type Q15617994
{'AND': [['Q1385983', 'P27', {'concept': 'Q15617994'}], ['Q6783163', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q1385983 property:P27 ?n . resource:Q6783163 property:P27 ?n }
Mashiska Washington Ezekiel A. Straw
action filter_type
action intersection
action find
entity Ezekiel A. Straw
relation country of citizenship
action find
entity Mashiska Washington
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Ezekiel A. Straw', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mashiska Washington', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ezekiel_A._Straw property:country_of_citizenship ?n . resource:Mashiska_Washington property:country_of_citizenship ?n }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q1385983,P27,c(Q15617994)), (Q6783163,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1385983
relation P27
action find
entity Q6783163
relation P27
type Q15617994
[ANSWER] is Ezekiel A. Straw and Mashiska Washington a civilian of
{'AND': [['Q1385983', 'P27', {'concept': 'Q15617994'}], ['Q6783163', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q1385983 property:P27 ?n . resource:Q6783163 property:P27 ?n }
United States of America
United States of America is Ezekiel A. Straw and Mashiska Washington a civilian of
United States of America
action filter_type
action intersection
action find
entity Ezekiel A. Straw
relation country of citizenship
action find
entity Mashiska Washington
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Ezekiel A. Straw', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mashiska Washington', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ezekiel_A._Straw property:country_of_citizenship ?n . resource:Mashiska_Washington property:country_of_citizenship ?n }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P6
Q502895
USER
How many people are the head of government of that administrative territory ?
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Q30 property:P6 ?f . ?f rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:United_States_of_America property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
common name
SYSTEM
44
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
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
[ANSWER]
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Q30 property:P6 ?f . ?f rdf:type ontology:Q502895 }
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
44
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:United_States_of_America property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q3108185
P710
Q1190554
USER
How many events have United States of America and Ba'athist Iraq as their participant ?
(c(Q1190554),P710,Q30) (c(Q1190554),P710,Q3108185)
action count
action intersection
action filter_type
action find_reverse
entity Q30
relation P710
type Q1190554
action filter_type
action find_reverse
entity Q3108185
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q30'] [{'concept': 'Q1190554'}, 'P710', 'Q3108185']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P710 resource:Q30 . ?j rdf:type ontology:Q1190554 . ?j property:P710 resource:Q3108185 . ?j rdf:type ontology:Q1190554 }
United States of America Ba'athist Iraq
action count
action intersection
action filter_type
action find_reverse
entity United States of America
relation participant
type event
action filter_type
action find_reverse
entity Ba'athist Iraq
relation participant
type event
[{'concept': 'event'}, 'participant', 'United States of America'] [{'concept': 'event'}, 'participant', "Ba'athist Iraq"]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:participant resource:United_States_of_America . ?j rdf:type ontology:event . ?j property:participant resource:Ba'athist_Iraq . ?j rdf:type ontology:event }
[]
event
SYSTEM
7
Q1634629 Q2237268 Q3636553 Q4870165 Q4872216 Q1402530 Q3636251
(c(Q1190554),P710,Q30) (c(Q1190554),P710,Q3108185)
action count
action intersection
action filter_type
action find_reverse
entity Q30
relation P710
type Q1190554
action filter_type
action find_reverse
entity Q3108185
relation P710
type Q1190554
[ANSWER]
[{'concept': 'Q1190554'}, 'P710', 'Q30'] [{'concept': 'Q1190554'}, 'P710', 'Q3108185']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P710 resource:Q30 . ?j rdf:type ontology:Q1190554 . ?j property:P710 resource:Q3108185 . ?j rdf:type ontology:Q1190554 }
Battle of Medina Ridge Battle of Umm Qasr Battle of Norfolk Battle for Jalibah Airfield Battle of Rumaila Battle of 73 Easting Battle of Wadi Al-Batin
7
action count
action intersection
action filter_type
action find_reverse
entity United States of America
relation participant
type event
action filter_type
action find_reverse
entity Ba'athist Iraq
relation participant
type event
[{'concept': 'event'}, 'participant', 'United States of America'] [{'concept': 'event'}, 'participant', "Ba'athist Iraq"]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:participant resource:United_States_of_America . ?j rdf:type ontology:event . ?j property:participant resource:Ba'athist_Iraq . ?j rdf:type ontology:event }
[]