Simple Question (Direct)
Simple Question
Q7308613
P119
Q43229
USER
Where was Reginald Bosanquet buried ?
(Q7308613,P119,c(Q43229))
action filter_type
action find
entity Q7308613
relation P119
type Q43229
['Q7308613', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?a WHERE { resource:Q7308613 property:P119 ?a . ?a rdf:type ontology:Q43229 }
Reginald Bosanquet
action filter_type
action find
entity Reginald Bosanquet
relation place of burial
type organization
['Reginald Bosanquet', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?a WHERE { resource:Reginald_Bosanquet property:place_of_burial ?a . ?a rdf:type ontology:organization }
[]
organization
Q2114941
SYSTEM
Putney Vale Cemetery
Q2114941
(Q7308613,P119,c(Q43229))
action filter_type
action find
entity Q7308613
relation P119
type Q43229
Reginald Bosanquet was buried in [ANSWER]
['Q7308613', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?a WHERE { resource:Q7308613 property:P119 ?a . ?a rdf:type ontology:Q43229 }
Putney Vale Cemetery
Reginald Bosanquet was buried in Putney Vale Cemetery
Putney Vale Cemetery
action filter_type
action find
entity Reginald Bosanquet
relation place of burial
type organization
['Reginald Bosanquet', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?a WHERE { resource:Reginald_Bosanquet property:place_of_burial ?a . ?a rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7308613
P40
Q502895
USER
Whose child is that one ?
(c(Q502895),P40,Q2114941)
action filter_type
action find_reverse
entity Q7308613
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q2114941']
SELECT DISTINCT ?q WHERE { ?q property:P40 resource:Q7308613 . ?q rdf:type ontology:Q502895 }
Reginald Bosanquet
action filter_type
action find_reverse
entity Reginald Bosanquet
relation child
type common name
[{'concept': 'common name'}, 'child', 'Putney Vale Cemetery']
SELECT DISTINCT ?q WHERE { ?q property:child resource:Reginald_Bosanquet . ?q rdf:type ontology:common_name }
[]
common name
Q3528988
SYSTEM
Bernard Bosanquet
Q3528988
(c(Q502895),P40,Q2114941)
action filter_type
action find_reverse
entity Q7308613
relation P40
type Q502895
[ANSWER] is that one
[{'concept': 'Q502895'}, 'P40', 'Q2114941']
SELECT DISTINCT ?q WHERE { ?q property:P40 resource:Q7308613 . ?q rdf:type ontology:Q502895 }
Bernard Bosanquet
Bernard Bosanquet is that one
Bernard Bosanquet
action filter_type
action find_reverse
entity Reginald Bosanquet
relation child
type common name
[{'concept': 'common name'}, 'child', 'Putney Vale Cemetery']
SELECT DISTINCT ?q WHERE { ?q property:child resource:Reginald_Bosanquet . ?q rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q3528988
P21 P22
Q502895
USER
Which people are the offspring of Bernard Bosanquet and are a male ?
AND((c(Q502895),P22,Q3528988), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3528988
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3528988'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P22 resource:Q3528988 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
male Bernard Bosanquet
action filter_type
action intersection
action find_reverse
entity Bernard Bosanquet
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Bernard Bosanquet'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:father resource:Bernard_Bosanquet . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]
common name
Q7308613
SYSTEM
Reginald Bosanquet
Q7308613
AND((c(Q502895),P22,Q3528988), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3528988
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] is the offspring of Bernard Bosanquet and is a male
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3528988'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P22 resource:Q3528988 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
Reginald Bosanquet
Reginald Bosanquet is the offspring of Bernard Bosanquet and is a male
Reginald Bosanquet
action filter_type
action intersection
action find_reverse
entity Bernard Bosanquet
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Bernard Bosanquet'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:father resource:Bernard_Bosanquet . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7308613 Q1321
P1412
Q34770
USER
Is Spanish spoken by that person ?
(Q7308613,P1412,Q1321)
action is_in
entity Q1321
action find
entity Q7308613
relation P1412
['Q7308613', 'P1412', 'Q1321']
ASK WHERE { resource:Q7308613 property:P1412 resource:Q1321 }
Reginald Bosanquet Spanish
action is_in
entity Spanish
action find
entity Reginald Bosanquet
relation languages spoken, written or signed
['Reginald Bosanquet', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Reginald_Bosanquet property:languages_spoken,_written_or_signed resource:Spanish }
[]
language
SYSTEM
NO
(Q7308613,P1412,Q1321)
action is_in
entity Q1321
action find
entity Q7308613
relation P1412
[ANSWER]
['Q7308613', 'P1412', 'Q1321']
ASK WHERE { resource:Q7308613 property:P1412 resource:Q1321 }
No
action is_in
entity Spanish
action find
entity Reginald Bosanquet
relation languages spoken, written or signed
['Reginald Bosanquet', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Reginald_Bosanquet property:languages_spoken,_written_or_signed resource:Spanish }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7308613
P27
Q15617994
USER
Which administrative territory is Reginald Bosanquet an inhabitant of ?
(Q7308613,P27,c(Q15617994))
action filter_type
action find
entity Q7308613
relation P27
type Q15617994
['Q7308613', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q7308613 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Reginald Bosanquet
action filter_type
action find
entity Reginald Bosanquet
relation country of citizenship
type designation for an administrative territorial entity
['Reginald Bosanquet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Reginald_Bosanquet property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7308613,P27,c(Q15617994))
action filter_type
action find
entity Q7308613
relation P27
type Q15617994
The [ANSWER] is Reginald Bosanquet an inhabitant of
['Q7308613', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q7308613 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is Reginald Bosanquet an inhabitant of
United Kingdom
action filter_type
action find
entity Reginald Bosanquet
relation country of citizenship
type designation for an administrative territorial entity
['Reginald Bosanquet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Reginald_Bosanquet property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q333264
Q15617994
USER
And how about Chris Smith, Baron Smith of Finsbury?
(Q333264,P27,c(Q15617994))
action filter_type
action find
entity Q333264
relation P27
type Q15617994
['Q333264', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q333264 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Chris Smith, Baron Smith of Finsbury
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation country of citizenship
type designation for an administrative territorial entity
['Chris Smith, Baron Smith of Finsbury', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Chris_Smith,_Baron_Smith_of_Finsbury property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q333264,P27,c(Q15617994))
action filter_type
action find
entity Q333264
relation P27
type Q15617994
[ANSWER]
['Q333264', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q333264 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation country of citizenship
type designation for an administrative territorial entity
['Chris Smith, Baron Smith of Finsbury', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Chris_Smith,_Baron_Smith_of_Finsbury property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q145 Q9682 Q11425047
P35
Q502895
USER
Did that administrative territory elected Elizabeth II and Hiroshi Sakaguchi as its head of state ?
(Q145,P35,Q9682) (Q145,P35,Q11425047)
action is_in
entity Q145
action intersection
action find_reverse
entity Q9682
relation P35
action find_reverse
entity Q11425047
relation P35
['Q145', 'P35', 'Q9682'] ['Q145', 'P35', 'Q11425047']
ASK WHERE { resource:Q145 property:P35 resource:Q9682 . resource:Q145 property:P35 resource:Q11425047 }
United Kingdom Elizabeth II Hiroshi Sakaguchi
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Elizabeth II
relation head of state
action find_reverse
entity Hiroshi Sakaguchi
relation head of state
['United Kingdom', 'head of state', 'Elizabeth II'] ['United Kingdom', 'head of state', 'Hiroshi Sakaguchi']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:Elizabeth_II . resource:United_Kingdom property:head_of_state resource:Hiroshi_Sakaguchi }
[]
common name
SYSTEM
YES and NO respectively
(Q145,P35,Q9682) (Q145,P35,Q11425047)
action is_in
entity Q145
action intersection
action find_reverse
entity Q9682
relation P35
action find_reverse
entity Q11425047
relation P35
[ANSWER]
['Q145', 'P35', 'Q9682'] ['Q145', 'P35', 'Q11425047']
ASK WHERE { resource:Q145 property:P35 resource:Q9682 . resource:Q145 property:P35 resource:Q11425047 }
YES and NO respectively
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Elizabeth II
relation head of state
action find_reverse
entity Hiroshi Sakaguchi
relation head of state
['United Kingdom', 'head of state', 'Elizabeth II'] ['United Kingdom', 'head of state', 'Hiroshi Sakaguchi']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:Elizabeth_II . resource:United_Kingdom property:head_of_state resource:Hiroshi_Sakaguchi }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7308613 Q1376987
P69
Q1244442
USER
Is that person an alumni of New College ?
(Q7308613,P69,Q1376987)
action is_in
entity Q1376987
action find
entity Q7308613
relation P69
['Q7308613', 'P69', 'Q1376987']
ASK WHERE { resource:Q7308613 property:P69 resource:Q1376987 }
Reginald Bosanquet New College
action is_in
entity New College
action find
entity Reginald Bosanquet
relation educated at
['Reginald Bosanquet', 'educated at', 'New College']
ASK WHERE { resource:Reginald_Bosanquet property:educated_at resource:New_College }
[]
school building
SYSTEM
YES
(Q7308613,P69,Q1376987)
action is_in
entity Q1376987
action find
entity Q7308613
relation P69
[ANSWER]
['Q7308613', 'P69', 'Q1376987']
ASK WHERE { resource:Q7308613 property:P69 resource:Q1376987 }
Yes
action is_in
entity New College
action find
entity Reginald Bosanquet
relation educated at
['Reginald Bosanquet', 'educated at', 'New College']
ASK WHERE { resource:Reginald_Bosanquet property:educated_at resource:New_College }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q970 Q145
P463
Q484652
USER
Which international organizations were United Kingdom or Comoros a member of ?
OR((Q145,P463,c(Q484652)), (Q970,P463,c(Q484652)))
action filter_type
action union
action find
entity Q145
relation P463
action find
entity Q970
relation P463
type Q484652
{'OR': [['Q145', 'P463', {'concept': 'Q484652'}], ['Q970', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q145 property:P463 ?i } UNION { resource:Q970 property:P463 ?i } } . ?i rdf:type ontology:Q484652 }
Comoros United Kingdom
action filter_type
action union
action find
entity United Kingdom
relation member of
action find
entity Comoros
relation member of
type international organization
{'OR': [['United Kingdom', 'member of', {'concept': 'international organization'}], ['Comoros', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?i WHERE { { { resource:United_Kingdom property:member_of ?i } UNION { resource:Comoros property:member_of ?i } } . ?i rdf:type ontology:international_organization }
[]
international organization
Q42262 Q7184 Q37143 Q294278 Q496967 Q1065 Q19771 Q1043527 Q81299 Q7785
SYSTEM
Some of them are European Space Agency, North Atlantic Treaty Organisation, G8, African, Caribbean and Pacific Group of States, Alliance of Small Island States, United Nations, G20, Multilateral Investment Guarantee Agency, Organization for Security and Co-operation in Europe, Commonwealth of Nations
Q496967 Q81299 Q1065 Q7785 Q19771 Q188822 Q37143 Q294278 Q7184 Q42262 Q1043527
OR((Q145,P463,c(Q484652)), (Q970,P463,c(Q484652)))
action filter_type
action union
action find
entity Q145
relation P463
action find
entity Q970
relation P463
type Q484652
[ANSWERS] were United Kingdom or Comoros a member of
{'OR': [['Q145', 'P463', {'concept': 'Q484652'}], ['Q970', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q145 property:P463 ?i } UNION { resource:Q970 property:P463 ?i } } . ?i rdf:type ontology:Q484652 }
Alliance of Small Island States Organization for Security and Co-operation in Europe United Nations Commonwealth of Nations G20 Asian Development Bank G8 African, Caribbean and Pacific Group of States North Atlantic Treaty Organisation European Space Agency Multilateral Investment Guarantee Agency
European Space Agency, North Atlantic Treaty Organisation, G8, African, Caribbean and Pacific Group of States, Alliance of Small Island States, United Nations, G20, Multilateral Investment Guarantee Agency, Organization for Security and Co-operation in Europe and Commonwealth of Nations were United Kingdom or Comoros a member of
European Space Agency North Atlantic Treaty Organisation G8 African, Caribbean and Pacific Group of States Alliance of Small Island States United Nations G20 Multilateral Investment Guarantee Agency Organization for Security and Co-operation in Europe Commonwealth of Nations
action filter_type
action union
action find
entity United Kingdom
relation member of
action find
entity Comoros
relation member of
type international organization
{'OR': [['United Kingdom', 'member of', {'concept': 'international organization'}], ['Comoros', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?i WHERE { { { resource:United_Kingdom property:member_of ?i } UNION { resource:Comoros property:member_of ?i } } . ?i rdf:type ontology:international_organization }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P108
Q484652 Q502895
USER
How many international organizations are the employers of approximately the same number of people as that international organization ?
(c(Q502895),P108,c(Q484652))
[{'concept': 'Q502895'}, 'P108', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q3053337 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q484652 }
[{'concept': 'common name'}, 'employer', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:employer ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:international_organization }
[]
international organization common name
Comparative|Count over More/Less|Single entity type|Clarification
Q1043527
SYSTEM
Did you mean Multilateral Investment Guarantee Agency ?
(c(Q502895),P108,c(Q484652))
[ANSWER]
[{'concept': 'Q502895'}, 'P108', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q3053337 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q484652 }
Did you mean Multilateral Investment Guarantee Agency ?
Multilateral Investment Guarantee Agency
[{'concept': 'common name'}, 'employer', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:employer ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:international_organization }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant European Space Agency. Could you tell me the answer for that?
(c(Q502895),P108,c(Q484652))
Q42262
[{'concept': 'Q502895'}, 'P108', {'concept': 'Q484652'}]
[{'concept': 'common name'}, 'employer', {'concept': 'international organization'}]
[]
SYSTEM
19
Q1117074 Q81299 Q4951 Q697711 Q204344 Q188822 Q54129 Q122880 Q7801 Q8475 Q7164 Q47488 Q7804 Q1045198 Q192177 Q182000 Q7184 Q42262 Q134102
(c(Q502895),P108,c(Q484652))
[ANSWER]
[{'concept': 'Q502895'}, 'P108', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q3053337 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q484652 }
Commonwealth War Graves Commission Organization for Security and Co-operation in Europe Court of Justice of the European Union European Space Operations Centre World Food Program Asian Development Bank International Labour Organization European Court of Human Rights International Court of Justice Interpol World Bank International Criminal Court International Monetary Fund Permanent Court of Arbitration Union for the Mediterranean United Nations Conference on Trade and Development North Atlantic Treaty Organisation European Space Agency Organisation internationale de la Francophonie
19
[{'concept': 'common name'}, 'employer', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:employer ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:international_organization }
[]