Simple Question (Direct)
Simple Question
Q8009200
P102
Q7210356
USER
Which party does William Forbes Mackenzie belong to ?
(Q8009200,P102,c(Q7210356))
action filter_type
action find
entity Q8009200
relation P102
type Q7210356
['Q8009200', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q8009200 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
William Forbes Mackenzie
action filter_type
action find
entity William Forbes Mackenzie
relation member of political party
type political organization
['William Forbes Mackenzie', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:William_Forbes_Mackenzie property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q8009200,P102,c(Q7210356))
action filter_type
action find
entity Q8009200
relation P102
type Q7210356
William Forbes Mackenzie belongs to [ANSWER]
['Q8009200', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q8009200 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Conservative Party
William Forbes Mackenzie belongs to Conservative Party
Conservative Party
action filter_type
action find
entity William Forbes Mackenzie
relation member of political party
type political organization
['William Forbes Mackenzie', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:William_Forbes_Mackenzie property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8009200
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q9626,P39,c(Q12737077))
action filter_type
action find
entity Q8009200
relation P39
type Q12737077
['Q9626', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q8009200 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
William Forbes Mackenzie
action filter_type
action find
entity William Forbes Mackenzie
relation position held
type occupation
['Conservative Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:William_Forbes_Mackenzie property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q9626,P39,c(Q12737077))
action filter_type
action find
entity Q8009200
relation P39
type Q12737077
The [ANSWER] was a position held by that person
['Q9626', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q8009200 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by that person
Member of Parliament in the United Kingdom
action filter_type
action find
entity William Forbes Mackenzie
relation position held
type occupation
['Conservative Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:William_Forbes_Mackenzie property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q16707842 Q559043
P17
Q15617994
USER
Does that occupation belong to Dabel ?
(Q16707842,P17,Q559043)
action is_in
entity Q559043
action find
entity Q16707842
relation P17
['Q16707842', 'P17', 'Q559043']
ASK WHERE { resource:Q16707842 property:P17 resource:Q559043 }
Member of Parliament in the United Kingdom Dabel
action is_in
entity Dabel
action find
entity Member of Parliament in the United Kingdom
relation country
['Member of Parliament in the United Kingdom', 'country', 'Dabel']
ASK WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:country resource:Dabel }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q16707842,P17,Q559043)
action is_in
entity Q559043
action find
entity Q16707842
relation P17
[ANSWER]
['Q16707842', 'P17', 'Q559043']
ASK WHERE { resource:Q16707842 property:P17 resource:Q559043 }
No
action is_in
entity Dabel
action find
entity Member of Parliament in the United Kingdom
relation country
['Member of Parliament in the United Kingdom', 'country', 'Dabel']
ASK WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:country resource:Dabel }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q36180 Q8009200
P106 P7
Q502895
USER
Which people have William Forbes Mackenzie as their brother and have a job as writer ?
AND((c(Q502895),P7,Q8009200), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q8009200
relation P7
action find_reverse
entity Q36180
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q8009200'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?u WHERE { ?u property:P7 resource:Q8009200 . ?u property:P106 resource:Q36180 . ?u rdf:type ontology:Q502895 }
writer William Forbes Mackenzie
action filter_type
action intersection
action find_reverse
entity William Forbes Mackenzie
relation brother
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'William Forbes Mackenzie'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?u WHERE { ?u property:brother resource:William_Forbes_Mackenzie . ?u property:occupation resource:writer . ?u rdf:type ontology:common_name }
[]
common name
Q4768579
SYSTEM
Anne Mackenzie
Q4768579
AND((c(Q502895),P7,Q8009200), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q8009200
relation P7
action find_reverse
entity Q36180
relation P106
type Q502895
[ANSWER] have William Forbes Mackenzie as their brother and have a job as writer
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q8009200'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?u WHERE { ?u property:P7 resource:Q8009200 . ?u property:P106 resource:Q36180 . ?u rdf:type ontology:Q502895 }
Anne Mackenzie
Anne Mackenzie have William Forbes Mackenzie as their brother and have a job as writer
Anne Mackenzie
action filter_type
action intersection
action find_reverse
entity William Forbes Mackenzie
relation brother
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'William Forbes Mackenzie'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?u WHERE { ?u property:brother resource:William_Forbes_Mackenzie . ?u property:occupation resource:writer . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q4768579 Q8009200
P9
Q502895
USER
Did William Forbes Mackenzie have that one as their sibling ?
(Q8009200,P9,Q4768579)
action is_in
entity Q4768579
action find
entity Q8009200
relation P9
['Q8009200', 'P9', 'Q4768579']
ASK WHERE { resource:Q8009200 property:P9 resource:Q4768579 }
Anne Mackenzie William Forbes Mackenzie
action is_in
entity Anne Mackenzie
action find
entity William Forbes Mackenzie
relation sister
['William Forbes Mackenzie', 'sister', 'Anne Mackenzie']
ASK WHERE { resource:William_Forbes_Mackenzie property:sister resource:Anne_Mackenzie }
[]
common name
SYSTEM
YES
(Q8009200,P9,Q4768579)
action is_in
entity Q4768579
action find
entity Q8009200
relation P9
[ANSWER]
['Q8009200', 'P9', 'Q4768579']
ASK WHERE { resource:Q8009200 property:P9 resource:Q4768579 }
Yes
action is_in
entity Anne Mackenzie
action find
entity William Forbes Mackenzie
relation sister
['William Forbes Mackenzie', 'sister', 'Anne Mackenzie']
ASK WHERE { resource:William_Forbes_Mackenzie property:sister resource:Anne_Mackenzie }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q8009200 Q4768579
P9
Q502895
USER
Does Anne Mackenzie have William Forbes Mackenzie as thier sibling ?
(Q8009200,P9,Q4768579)
action is_in
entity Q4768579
action find
entity Q8009200
relation P9
['Q8009200', 'P9', 'Q4768579']
ASK WHERE { resource:Q8009200 property:P9 resource:Q4768579 }
William Forbes Mackenzie Anne Mackenzie
action is_in
entity Anne Mackenzie
action find
entity William Forbes Mackenzie
relation sister
['William Forbes Mackenzie', 'sister', 'Anne Mackenzie']
ASK WHERE { resource:William_Forbes_Mackenzie property:sister resource:Anne_Mackenzie }
[]
common name
SYSTEM
YES
(Q8009200,P9,Q4768579)
action is_in
entity Q4768579
action find
entity Q8009200
relation P9
[ANSWER]
['Q8009200', 'P9', 'Q4768579']
ASK WHERE { resource:Q8009200 property:P9 resource:Q4768579 }
Yes
action is_in
entity Anne Mackenzie
action find
entity William Forbes Mackenzie
relation sister
['William Forbes Mackenzie', 'sister', 'Anne Mackenzie']
ASK WHERE { resource:William_Forbes_Mackenzie property:sister resource:Anne_Mackenzie }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q9626 Q145
P17
Q15617994
USER
Is Conservative Party located in United Kingdom ?
(Q9626,P17,Q145)
action is_in
entity Q145
action find
entity Q9626
relation P17
['Q9626', 'P17', 'Q145']
ASK WHERE { resource:Q9626 property:P17 resource:Q145 }
Conservative Party United Kingdom
action is_in
entity United Kingdom
action find
entity Conservative Party
relation country
['Conservative Party', 'country', 'United Kingdom']
ASK WHERE { resource:Conservative_Party property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q9626,P17,Q145)
action is_in
entity Q145
action find
entity Q9626
relation P17
[ANSWER]
['Q9626', 'P17', 'Q145']
ASK WHERE { resource:Q9626 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Conservative Party
relation country
['Conservative Party', 'country', 'United Kingdom']
ASK WHERE { resource:Conservative_Party property:country resource:United_Kingdom }
[]