Simple Question (Direct)
Simple Question
Q7482898
P102
Q7210356
USER
Which party does Tom Corcoran belong to ?
(Q7482898,P102,c(Q7210356))
action filter_type
action find
entity Q7482898
relation P102
type Q7210356
['Q7482898', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q7482898 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Tom Corcoran
action filter_type
action find
entity Tom Corcoran
relation member of political party
type political organization
['Tom Corcoran', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Tom_Corcoran property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q7482898,P102,c(Q7210356))
action filter_type
action find
entity Q7482898
relation P102
type Q7210356
Tom Corcoran belongs to [ANSWER]
['Q7482898', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q7482898 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Republican Party
Tom Corcoran belongs to Republican Party
Republican Party
action filter_type
action find
entity Tom Corcoran
relation member of political party
type political organization
['Tom Corcoran', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Tom_Corcoran property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7482898
P106
Q12737077
USER
What is the job of that person ?
(Q29468,P106,c(Q12737077))
action filter_type
action find
entity Q7482898
relation P106
type Q12737077
['Q29468', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q7482898 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Tom Corcoran
action filter_type
action find
entity Tom Corcoran
relation occupation
type occupation
['Republican Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Tom_Corcoran property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q29468,P106,c(Q12737077))
action filter_type
action find
entity Q7482898
relation P106
type Q12737077
The job of that person is a [ANSWER]
['Q29468', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q7482898 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
politician
The job of that person is a politician
politician
action filter_type
action find
entity Tom Corcoran
relation occupation
type occupation
['Republican Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Tom_Corcoran property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q82955 Q16193521
P106
Q502895
USER
Does Percy Commey have the profession as that occupation ?
(Q16193521,P106,Q82955)
action is_in
entity Q16193521
action find
entity Q82955
relation P106
['Q16193521', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q16193521 }
politician Percy Commey
action is_in
entity Percy Commey
action find
entity politician
relation occupation
['Percy Commey', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Percy_Commey }
[]
common name
SYSTEM
NO
(Q16193521,P106,Q82955)
action is_in
entity Q16193521
action find
entity Q82955
relation P106
[ANSWER]
['Q16193521', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q16193521 }
No
action is_in
entity Percy Commey
action find
entity politician
relation occupation
['Percy Commey', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Percy_Commey }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q82955
P921
Q2342494 Q223393
USER
How many collectables or literary genres are politician a main subject of ?
(c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { ?b property:P921 resource:Q82955 . ?b rdf:type ontology:Q2342494 } UNION { ?b rdf:type ontology:Q223393 . ?b property:P921 resource:Q82955 } }
politician
action count
action union
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { ?b property:main_subject resource:politician . ?b rdf:type ontology:collectable } UNION { ?b rdf:type ontology:literary_genre . ?b property:main_subject resource:politician } }
[]
collectable literary genre
SYSTEM
2
Q21815179 Q21601944
(c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { ?b property:P921 resource:Q82955 . ?b rdf:type ontology:Q2342494 } UNION { ?b rdf:type ontology:Q223393 . ?b property:P921 resource:Q82955 } }
worldstatesmen Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
2
action count
action union
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { ?b property:main_subject resource:politician . ?b rdf:type ontology:collectable } UNION { ?b rdf:type ontology:literary_genre . ?b property:main_subject resource:politician } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P39
Q502895
USER
Which person was appointed for the position of that occupation ?
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
SELECT DISTINCT ?d WHERE { ?d property:P39 resource:Q82955 . ?d rdf:type ontology:Q502895 }
politician
action filter_type
action find_reverse
entity politician
relation position held
type common name
SELECT DISTINCT ?d WHERE { ?d property:position_held resource:politician . ?d rdf:type ontology:common_name }
[]
common name
Q26215129
SYSTEM
Morteza Azari
Q26215129
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[ANSWER] was appointed for the position of that occupation
SELECT DISTINCT ?d WHERE { ?d property:P39 resource:Q82955 . ?d rdf:type ontology:Q502895 }
Morteza Azari
Morteza Azari was appointed for the position of that occupation
Morteza Azari
action filter_type
action find_reverse
entity politician
relation position held
type common name
SELECT DISTINCT ?d WHERE { ?d property:position_held resource:politician . ?d rdf:type ontology:common_name }
[]