Simple Question (Direct)
Simple Question
Q508109
P39
Q12737077
USER
Which occupation was a position for which Andrew Trumbo was appointed ?
(Q508109,P39,c(Q12737077))
action filter_type
action find
entity Q508109
relation P39
type Q12737077
['Q508109', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q508109 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Andrew Trumbo
action filter_type
action find
entity Andrew Trumbo
relation position held
type occupation
['Andrew Trumbo', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Andrew_Trumbo property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q13218630
SYSTEM
United States representative
Q13218630
(Q508109,P39,c(Q12737077))
action filter_type
action find
entity Q508109
relation P39
type Q12737077
The [ANSWER] was a position for which Andrew Trumbo was appointed
['Q508109', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q508109 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
United States representative
The United States representative was a position for which Andrew Trumbo was appointed
United States representative
action filter_type
action find
entity Andrew Trumbo
relation position held
type occupation
['Andrew Trumbo', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Andrew_Trumbo property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q508109
P21
Q290
USER
Which sex does that person belong to ?
(Q13218630,P21,c(Q290))
action filter_type
action find
entity Q508109
relation P21
type Q290
['Q13218630', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q508109 property:P21 ?l }
Andrew Trumbo
action filter_type
action find
entity Andrew Trumbo
relation gender
type sex
['United States representative', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Andrew_Trumbo property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q13218630,P21,c(Q290))
action filter_type
action find
entity Q508109
relation P21
type Q290
That person belongs to [ANSWER]
['Q13218630', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q508109 property:P21 ?l }
male
That person belongs to male
male
action filter_type
action find
entity Andrew Trumbo
relation gender
type sex
['United States representative', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Andrew_Trumbo property:gender ?l }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7109534 Q508109
P21
Q290
USER
Or Otto Briggs?
OR((Q508109,P21,c(Q290)), (Q7109534,P21,c(Q290)))
action filter_type
action union
action find
entity Q508109
relation P21
action find
entity Q7109534
relation P21
type Q290
{'OR': [['Q508109', 'P21', {'concept': 'Q290'}], ['Q7109534', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q508109 property:P21 ?s } UNION { resource:Q7109534 property:P21 ?s } } . ?s rdf:type ontology:Q290 }
Otto Briggs Andrew Trumbo
action filter_type
action union
action find
entity Andrew Trumbo
relation gender
action find
entity Otto Briggs
relation gender
type sex
{'OR': [['Andrew Trumbo', 'gender', {'concept': 'sex'}], ['Otto Briggs', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Andrew_Trumbo property:gender ?s } UNION { resource:Otto_Briggs property:gender ?s } } . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q508109,P21,c(Q290)), (Q7109534,P21,c(Q290)))
action filter_type
action union
action find
entity Q508109
relation P21
action find
entity Q7109534
relation P21
type Q290
[ANSWER]
{'OR': [['Q508109', 'P21', {'concept': 'Q290'}], ['Q7109534', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q508109 property:P21 ?s } UNION { resource:Q7109534 property:P21 ?s } } . ?s rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity Andrew Trumbo
relation gender
action find
entity Otto Briggs
relation gender
type sex
{'OR': [['Andrew Trumbo', 'gender', {'concept': 'sex'}], ['Otto Briggs', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Andrew_Trumbo property:gender ?s } UNION { resource:Otto_Briggs property:gender ?s } } . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7109534
P27
Q15617994
USER
Which administrative territory is Otto Briggs an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q7109534
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q7109534 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Otto Briggs
action filter_type
action find
entity Otto Briggs
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Otto_Briggs property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q7109534
relation P27
type Q15617994
The [ANSWER] is Otto Briggs an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q7109534 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
United States of America
The United States of America is Otto Briggs an inhabitant of
United States of America
action filter_type
action find
entity Otto Briggs
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Otto_Briggs property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q11817 Q11869
P6
Q502895
USER
Is Andrew Jackson and William Henry Harrison the head of the goverment of United States of America ?
(Q30,P6,Q11817) (Q30,P6,Q11869)
action is_in
entity Q30
action intersection
action find_reverse
entity Q11817
relation P6
action find_reverse
entity Q11869
relation P6
['Q30', 'P6', 'Q11817'] ['Q30', 'P6', 'Q11869']
ASK WHERE { resource:Q30 property:P6 resource:Q11817 . resource:Q30 property:P6 resource:Q11869 }
United States of America Andrew Jackson William Henry Harrison
action is_in
entity United States of America
action intersection
action find_reverse
entity Andrew Jackson
relation head of government
action find_reverse
entity William Henry Harrison
relation head of government
['United States of America', 'head of government', 'Andrew Jackson'] ['United States of America', 'head of government', 'William Henry Harrison']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Andrew_Jackson . resource:United_States_of_America property:head_of_government resource:William_Henry_Harrison }
[]
common name
SYSTEM
YES
(Q30,P6,Q11817) (Q30,P6,Q11869)
action is_in
entity Q30
action intersection
action find_reverse
entity Q11817
relation P6
action find_reverse
entity Q11869
relation P6
[ANSWER]
['Q30', 'P6', 'Q11817'] ['Q30', 'P6', 'Q11869']
ASK WHERE { resource:Q30 property:P6 resource:Q11817 . resource:Q30 property:P6 resource:Q11869 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity Andrew Jackson
relation head of government
action find_reverse
entity William Henry Harrison
relation head of government
['United States of America', 'head of government', 'Andrew Jackson'] ['United States of America', 'head of government', 'William Henry Harrison']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Andrew_Jackson . resource:United_States_of_America property:head_of_government resource:William_Henry_Harrison }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q508109
P102
Q7210356
USER
Which political organizations are Andrew Trumbo a member of ?
(Q508109,P102,c(Q7210356))
action filter_type
action find
entity Q508109
relation P102
type Q7210356
['Q508109', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q508109 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
Andrew Trumbo
action filter_type
action find
entity Andrew Trumbo
relation member of political party
type political organization
['Andrew Trumbo', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:Andrew_Trumbo property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
political organization
Q29552 Q42183
SYSTEM
Democratic Party, Whig Party
Q29552 Q42183
(Q508109,P102,c(Q7210356))
action filter_type
action find
entity Q508109
relation P102
type Q7210356
Party [ANSWERS] are Andrew Trumbo a member of
['Q508109', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q508109 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
Democratic Party Whig Party
Party Democratic Party and Whig Party are Andrew Trumbo a member of
Democratic Party Whig Party
action filter_type
action find
entity Andrew Trumbo
relation member of political party
type political organization
['Andrew Trumbo', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:Andrew_Trumbo property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]