Simple Question (Direct)
Simple Question
Q57272
P102
Q7210356
USER
Which political organization is Paul Biya a member of ?
(Q57272,P102,c(Q7210356))
action filter_type
action find
entity Q57272
relation P102
type Q7210356
['Q57272', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q57272 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Paul Biya
action filter_type
action find
entity Paul Biya
relation member of political party
type political organization
['Paul Biya', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Paul_Biya property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
political organization
Q953447
SYSTEM
Cameroon People's Democratic Movement
Q953447
(Q57272,P102,c(Q7210356))
action filter_type
action find
entity Q57272
relation P102
type Q7210356
The [ANSWER] is Paul Biya a member of
['Q57272', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q57272 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Cameroon People's Democratic Movement
The Cameroon People's Democratic Movement is Paul Biya a member of
Cameroon People's Democratic Movement
action filter_type
action find
entity Paul Biya
relation member of political party
type political organization
['Paul Biya', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Paul_Biya property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q57272
P140
Q874405
USER
What is the religious affiliation of that person ?
(Q953447,P140,c(Q874405))
action filter_type
action find
entity Q57272
relation P140
type Q874405
['Q953447', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?r WHERE { resource:Q57272 property:P140 ?r . ?r rdf:type ontology:Q874405 }
Paul Biya
action filter_type
action find
entity Paul Biya
relation religion
type social group
["Cameroon People's Democratic Movement", 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?r WHERE { resource:Paul_Biya property:religion ?r . ?r rdf:type ontology:social_group }
[]
social group
Q1841
SYSTEM
Catholicism
Q1841
(Q953447,P140,c(Q874405))
action filter_type
action find
entity Q57272
relation P140
type Q874405
The religious affiliation of that person is a [ANSWER]
['Q953447', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?r WHERE { resource:Q57272 property:P140 ?r . ?r rdf:type ontology:Q874405 }
Catholicism
The religious affiliation of that person is a Catholicism
Catholicism
action filter_type
action find
entity Paul Biya
relation religion
type social group
["Cameroon People's Democratic Movement", 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?r WHERE { resource:Paul_Biya property:religion ?r . ?r rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6138142
P22
Q502895
USER
Who have James Loch as a father ?
(c(Q502895),P22,Q6138142)
action filter_type
action find_reverse
entity Q6138142
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q6138142']
SELECT DISTINCT ?m WHERE { ?m property:P22 resource:Q6138142 . ?m rdf:type ontology:Q502895 }
James Loch
action filter_type
action find_reverse
entity James Loch
relation father
type common name
[{'concept': 'common name'}, 'father', 'James Loch']
SELECT DISTINCT ?m WHERE { ?m property:father resource:James_Loch . ?m rdf:type ontology:common_name }
[]
common name
Q5596898 Q3642855
SYSTEM
Granville Gower Loch, Henry Loch, 1st Baron Loch
Q5596898 Q3642855
(c(Q502895),P22,Q6138142)
action filter_type
action find_reverse
entity Q6138142
relation P22
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q6138142']
SELECT DISTINCT ?m WHERE { ?m property:P22 resource:Q6138142 . ?m rdf:type ontology:Q502895 }
Granville Gower Loch Henry Loch, 1st Baron Loch
Granville Gower Loch and Henry Loch, 1st Baron Loch have James Loch as a father
Granville Gower Loch Henry Loch, 1st Baron Loch
action filter_type
action find_reverse
entity James Loch
relation father
type common name
[{'concept': 'common name'}, 'father', 'James Loch']
SELECT DISTINCT ?m WHERE { ?m property:father resource:James_Loch . ?m rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3642855
P7
Q502895
USER
Who is a sibling of that one ?
(c(Q502895),P7,Q3642855)
action filter_type
action find
entity Q3642855
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q3642855']
SELECT DISTINCT ?q WHERE { resource:Q3642855 property:P7 ?q . ?q rdf:type ontology:Q502895 }
Henry Loch, 1st Baron Loch
action filter_type
action find
entity Henry Loch, 1st Baron Loch
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Henry Loch, 1st Baron Loch']
SELECT DISTINCT ?q WHERE { resource:Henry_Loch,_1st_Baron_Loch property:brother ?q . ?q rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q3642855
SYSTEM
Did you mean Henry Loch, 1st Baron Loch ?
Q5596898 Q3642855
(c(Q502895),P7,Q5596898) (c(Q502895),P7,Q3642855)
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q5596898'] [{'concept': 'Q502895'}, 'P7', 'Q3642855']
SELECT DISTINCT ?q WHERE { resource:Q3642855 property:P7 ?q . ?q rdf:type ontology:Q502895 }
Granville Gower Loch Henry Loch, 1st Baron Loch
Did you mean Henry Loch, 1st Baron Loch ?
Henry Loch, 1st Baron Loch
[{'concept': 'common name'}, 'brother', 'Granville Gower Loch'] [{'concept': 'common name'}, 'brother', 'Henry Loch, 1st Baron Loch']
SELECT DISTINCT ?q WHERE { resource:Henry_Loch,_1st_Baron_Loch property:brother ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P7,Q3642855)
[{'concept': 'Q502895'}, 'P7', 'Q3642855']
[{'concept': 'common name'}, 'brother', 'Henry Loch, 1st Baron Loch']
[]
Q5596898
SYSTEM
Granville Gower Loch
Q5596898
(c(Q502895),P7,Q3642855)
action filter_type
action find
entity Q3642855
relation P7
type Q502895
A sibling of that one is the [ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q3642855']
SELECT DISTINCT ?q WHERE { resource:Q3642855 property:P7 ?q . ?q rdf:type ontology:Q502895 }
Granville Gower Loch
A sibling of that one is the Granville Gower Loch
Granville Gower Loch
action filter_type
action find
entity Henry Loch, 1st Baron Loch
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Henry Loch, 1st Baron Loch']
SELECT DISTINCT ?q WHERE { resource:Henry_Loch,_1st_Baron_Loch property:brother ?q . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3642855
P39
Q4164871 Q12737077
USER
How many positions and occupations were the positions held by Henry Loch, 1st Baron Loch ?
(Q3642855,P39,c(Q4164871)) (Q3642855,P39,c(Q12737077))
action count
action union
action filter_type
action find
entity Q3642855
relation P39
type Q4164871
action filter_type
action find
entity Q3642855
relation P39
type Q12737077
['Q3642855', 'P39', {'concept': 'Q4164871'}] ['Q3642855', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { resource:Q3642855 property:P39 ?z . ?z rdf:type ontology:Q4164871 } UNION { resource:Q3642855 property:P39 ?z . ?z rdf:type ontology:Q12737077 } }
Henry Loch, 1st Baron Loch
action count
action union
action filter_type
action find
entity Henry Loch, 1st Baron Loch
relation position held
type position
action filter_type
action find
entity Henry Loch, 1st Baron Loch
relation position held
type occupation
['Henry Loch, 1st Baron Loch', 'position held', {'concept': 'position'}] ['Henry Loch, 1st Baron Loch', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { resource:Henry_Loch,_1st_Baron_Loch property:position_held ?z . ?z rdf:type ontology:position } UNION { resource:Henry_Loch,_1st_Baron_Loch property:position_held ?z . ?z rdf:type ontology:occupation } }
[]
position occupation
SYSTEM
1 positions and 1 occupations
Q1571023 Q1790061
(Q3642855,P39,c(Q4164871)) (Q3642855,P39,c(Q12737077))
action count
action union
action filter_type
action find
entity Q3642855
relation P39
type Q4164871
action filter_type
action find
entity Q3642855
relation P39
type Q12737077
[ANSWER]
['Q3642855', 'P39', {'concept': 'Q4164871'}] ['Q3642855', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { resource:Q3642855 property:P39 ?z . ?z rdf:type ontology:Q4164871 } UNION { resource:Q3642855 property:P39 ?z . ?z rdf:type ontology:Q12737077 } }
Governor of Victoria Lieutenant Governor of the Isle of Man
1 positions and 1 occupations
action count
action union
action filter_type
action find
entity Henry Loch, 1st Baron Loch
relation position held
type position
action filter_type
action find
entity Henry Loch, 1st Baron Loch
relation position held
type occupation
['Henry Loch, 1st Baron Loch', 'position held', {'concept': 'position'}] ['Henry Loch, 1st Baron Loch', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { resource:Henry_Loch,_1st_Baron_Loch property:position_held ?z . ?z rdf:type ontology:position } UNION { resource:Henry_Loch,_1st_Baron_Loch property:position_held ?z . ?z rdf:type ontology:occupation } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3642855
P166
Q2003221
USER
What were received by Henry Loch, 1st Baron Loch ?
(Q3642855,P166,c(Q2003221))
action filter_type
action find
entity Q3642855
relation P166
type Q2003221
['Q3642855', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?f WHERE { resource:Q3642855 property:P166 ?f . ?f rdf:type ontology:Q2003221 }
Henry Loch, 1st Baron Loch
action filter_type
action find
entity Henry Loch, 1st Baron Loch
relation award received
type chivalric order
['Henry Loch, 1st Baron Loch', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?f WHERE { resource:Henry_Loch,_1st_Baron_Loch property:award_received ?f . ?f rdf:type ontology:chivalric_order }
[]
chivalric order
Q12177423 Q12177451
SYSTEM
Knight Grand Cross of the Order of St Michael and St George, Knight Grand Cross of the Order of the Bath
Q12177423 Q12177451
(Q3642855,P166,c(Q2003221))
action filter_type
action find
entity Q3642855
relation P166
type Q2003221
The [ANSWERS] were received by Henry Loch, 1st Baron Loch
['Q3642855', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?f WHERE { resource:Q3642855 property:P166 ?f . ?f rdf:type ontology:Q2003221 }
Knight Grand Cross of the Order of St Michael and St George Knight Grand Cross of the Order of the Bath
The Knight Grand Cross of the Order of St Michael and St George and Knight Grand Cross of the Order of the Bath were received by Henry Loch, 1st Baron Loch
Knight Grand Cross of the Order of St Michael and St George Knight Grand Cross of the Order of the Bath
action filter_type
action find
entity Henry Loch, 1st Baron Loch
relation award received
type chivalric order
['Henry Loch, 1st Baron Loch', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?f WHERE { resource:Henry_Loch,_1st_Baron_Loch property:award_received ?f . ?f rdf:type ontology:chivalric_order }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q637730
Q2003221
USER
And how about William Francis Patrick Napier?
(Q637730,P166,c(Q2003221))
action filter_type
action find
entity Q637730
relation P166
type Q2003221
['Q637730', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?h WHERE { resource:Q637730 property:P166 ?h . ?h rdf:type ontology:Q2003221 }
William Francis Patrick Napier
action filter_type
action find
entity William Francis Patrick Napier
relation award received
type chivalric order
['William Francis Patrick Napier', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?h WHERE { resource:William_Francis_Patrick_Napier property:award_received ?h . ?h rdf:type ontology:chivalric_order }
[]
chivalric order
Q12177470
SYSTEM
Knight Commander of the Order of the Bath
Q12177470
(Q637730,P166,c(Q2003221))
action filter_type
action find
entity Q637730
relation P166
type Q2003221
[ANSWER]
['Q637730', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?h WHERE { resource:Q637730 property:P166 ?h . ?h rdf:type ontology:Q2003221 }
Knight Commander of the Order of the Bath
Knight Commander of the Order of the Bath
action filter_type
action find
entity William Francis Patrick Napier
relation award received
type chivalric order
['William Francis Patrick Napier', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?h WHERE { resource:William_Francis_Patrick_Napier property:award_received ?h . ?h rdf:type ontology:chivalric_order }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q12177470 Q145
P17
Q15617994
USER
Is that chivalric order present in United Kingdom ?
(Q12177470,P17,Q145)
action is_in
entity Q145
action find
entity Q12177470
relation P17
['Q12177470', 'P17', 'Q145']
ASK WHERE { resource:Q12177470 property:P17 resource:Q145 }
Knight Commander of the Order of the Bath United Kingdom
action is_in
entity United Kingdom
action find
entity Knight Commander of the Order of the Bath
relation country
['Knight Commander of the Order of the Bath', 'country', 'United Kingdom']
ASK WHERE { resource:Knight_Commander_of_the_Order_of_the_Bath property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q12177470,P17,Q145)
action is_in
entity Q145
action find
entity Q12177470
relation P17
[ANSWER]
['Q12177470', 'P17', 'Q145']
ASK WHERE { resource:Q12177470 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Knight Commander of the Order of the Bath
relation country
['Knight Commander of the Order of the Bath', 'country', 'United Kingdom']
ASK WHERE { resource:Knight_Commander_of_the_Order_of_the_Bath property:country resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q12177423 Q145 Q594609
P17
Q15617994
USER
Is Knight Grand Cross of the Order of St Michael and St George situated in United Kingdom and Nittel ?
(Q12177423,P17,Q145) (Q12177423,P17,Q594609)
action is_in
entity Q12177423
action intersection
action find_reverse
entity Q145
relation P17
action find_reverse
entity Q594609
relation P17
['Q12177423', 'P17', 'Q145'] ['Q12177423', 'P17', 'Q594609']
ASK WHERE { resource:Q12177423 property:P17 resource:Q145 . resource:Q12177423 property:P17 resource:Q594609 }
Knight Grand Cross of the Order of St Michael and St George United Kingdom Nittel
action is_in
entity Knight Grand Cross of the Order of St Michael and St George
action intersection
action find_reverse
entity United Kingdom
relation country
action find_reverse
entity Nittel
relation country
['Knight Grand Cross of the Order of St Michael and St George', 'country', 'United Kingdom'] ['Knight Grand Cross of the Order of St Michael and St George', 'country', 'Nittel']
ASK WHERE { resource:Knight_Grand_Cross_of_the_Order_of_St_Michael_and_St_George property:country resource:United_Kingdom . resource:Knight_Grand_Cross_of_the_Order_of_St_Michael_and_St_George property:country resource:Nittel }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q12177423,P17,Q145) (Q12177423,P17,Q594609)
action is_in
entity Q12177423
action intersection
action find_reverse
entity Q145
relation P17
action find_reverse
entity Q594609
relation P17
[ANSWER]
['Q12177423', 'P17', 'Q145'] ['Q12177423', 'P17', 'Q594609']
ASK WHERE { resource:Q12177423 property:P17 resource:Q145 . resource:Q12177423 property:P17 resource:Q594609 }
YES and NO respectively
action is_in
entity Knight Grand Cross of the Order of St Michael and St George
action intersection
action find_reverse
entity United Kingdom
relation country
action find_reverse
entity Nittel
relation country
['Knight Grand Cross of the Order of St Michael and St George', 'country', 'United Kingdom'] ['Knight Grand Cross of the Order of St Michael and St George', 'country', 'Nittel']
ASK WHERE { resource:Knight_Grand_Cross_of_the_Order_of_St_Michael_and_St_George property:country resource:United_Kingdom . resource:Knight_Grand_Cross_of_the_Order_of_St_Michael_and_St_George property:country resource:Nittel }
[]