Simple Question (Direct)
Simple Question
Q1612382
P69
Q163740
USER
Which nonprofit organization is the alma mater of Ira W. Wood ?
(Q1612382,P69,c(Q163740))
action filter_type
action find
entity Q1612382
relation P69
type Q163740
['Q1612382', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?r WHERE { resource:Q1612382 property:P69 ?r . ?r rdf:type ontology:Q163740 }
Ira W. Wood
action filter_type
action find
entity Ira W. Wood
relation educated at
type nonprofit organization
['Ira W. Wood', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?r WHERE { resource:Ira_W._Wood property:educated_at ?r . ?r rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q21578
SYSTEM
Princeton University
Q21578
(Q1612382,P69,c(Q163740))
action filter_type
action find
entity Q1612382
relation P69
type Q163740
[ANSWER] is the alma mater of Ira W. Wood
['Q1612382', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?r WHERE { resource:Q1612382 property:P69 ?r . ?r rdf:type ontology:Q163740 }
Princeton University
Princeton University is the alma mater of Ira W. Wood
Princeton University
action filter_type
action find
entity Ira W. Wood
relation educated at
type nonprofit organization
['Ira W. Wood', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?r WHERE { resource:Ira_W._Wood property:educated_at ?r . ?r rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1612382
P102
Q7210356
USER
Which party is Ira W. Wood affiliated with ?
(Q1612382,P102,c(Q7210356))
action filter_type
action find
entity Q1612382
relation P102
type Q7210356
['Q1612382', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q1612382 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Ira W. Wood
action filter_type
action find
entity Ira W. Wood
relation member of political party
type political organization
['Ira W. Wood', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Ira_W._Wood property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q1612382,P102,c(Q7210356))
action filter_type
action find
entity Q1612382
relation P102
type Q7210356
Ira W. Wood is affiliated with [ANSWER]
['Q1612382', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q1612382 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Republican Party
Ira W. Wood is affiliated with Republican Party
Republican Party
action filter_type
action find
entity Ira W. Wood
relation member of political party
type political organization
['Ira W. Wood', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Ira_W._Wood property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5536102
Q7210356
USER
And what about George Airey Kirkpatrick?
(Q5536102,P102,c(Q7210356))
action filter_type
action find
entity Q5536102
relation P102
type Q7210356
['Q5536102', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q5536102 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
George Airey Kirkpatrick
action filter_type
action find
entity George Airey Kirkpatrick
relation member of political party
type political organization
['George Airey Kirkpatrick', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:George_Airey_Kirkpatrick property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q909827
SYSTEM
Conservative Party of Canada
Q909827
(Q5536102,P102,c(Q7210356))
action filter_type
action find
entity Q5536102
relation P102
type Q7210356
[ANSWER]
['Q5536102', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q5536102 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Conservative Party of Canada
Conservative Party of Canada
action filter_type
action find
entity George Airey Kirkpatrick
relation member of political party
type political organization
['George Airey Kirkpatrick', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:George_Airey_Kirkpatrick property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q29468
P102
Q6619679 Q15619164
USER
How many fictional humanoids and abstract beings belong to the political party Republican Party ?
(c(Q6619679),P102,Q29468) (c(Q15619164),P102,Q29468)
action count
action union
action filter_type
action find_reverse
entity Q29468
relation P102
type Q6619679
action filter_type
action find_reverse
entity Q29468
relation P102
type Q15619164
[{'concept': 'Q6619679'}, 'P102', 'Q29468'] [{'concept': 'Q15619164'}, 'P102', 'Q29468']
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { ?f property:P102 resource:Q29468 . ?f rdf:type ontology:Q6619679 } UNION { ?f property:P102 resource:Q29468 . ?f rdf:type ontology:Q15619164 } }
Republican Party
action count
action union
action filter_type
action find_reverse
entity Republican Party
relation member of political party
type fictional humanoid
action filter_type
action find_reverse
entity Republican Party
relation member of political party
type abstract being
[{'concept': 'fictional humanoid'}, 'member of political party', 'Republican Party'] [{'concept': 'abstract being'}, 'member of political party', 'Republican Party']
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { ?f property:member_of_political_party resource:Republican_Party . ?f rdf:type ontology:fictional_humanoid } UNION { ?f property:member_of_political_party resource:Republican_Party . ?f rdf:type ontology:abstract_being } }
[]
fictional humanoid abstract being
SYSTEM
1 fictional humanoids and 3 abstract beings
Q5567565 Q601836 Q7356093 Q8704
(c(Q6619679),P102,Q29468) (c(Q15619164),P102,Q29468)
action count
action union
action filter_type
action find_reverse
entity Q29468
relation P102
type Q6619679
action filter_type
action find_reverse
entity Q29468
relation P102
type Q15619164
[ANSWER]
[{'concept': 'Q6619679'}, 'P102', 'Q29468'] [{'concept': 'Q15619164'}, 'P102', 'Q29468']
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { ?f property:P102 resource:Q29468 . ?f rdf:type ontology:Q6619679 } UNION { ?f property:P102 resource:Q29468 . ?f rdf:type ontology:Q15619164 } }
Glen Allen Walken Bree Van de Kamp Rod Walt Disney
1 fictional humanoids and 3 abstract beings
action count
action union
action filter_type
action find_reverse
entity Republican Party
relation member of political party
type fictional humanoid
action filter_type
action find_reverse
entity Republican Party
relation member of political party
type abstract being
[{'concept': 'fictional humanoid'}, 'member of political party', 'Republican Party'] [{'concept': 'abstract being'}, 'member of political party', 'Republican Party']
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { ?f property:member_of_political_party resource:Republican_Party . ?f rdf:type ontology:fictional_humanoid } UNION { ?f property:member_of_political_party resource:Republican_Party . ?f rdf:type ontology:abstract_being } }
[]