Simple Question (Direct)
Simple Question
Q13530001
P607
Q198
USER
Which battle did John Macnamara take part in ?
(Q13530001,P607,c(Q198))
action filter_type
action find
entity Q13530001
relation P607
type Q198
['Q13530001', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q13530001 property:P607 ?h . ?h rdf:type ontology:Q198 }
John Macnamara
action filter_type
action find
entity John Macnamara
relation conflict
type war
['John Macnamara', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:John_Macnamara property:conflict ?h . ?h rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q13530001,P607,c(Q198))
action filter_type
action find
entity Q13530001
relation P607
type Q198
John Macnamara took part in [ANSWER]
['Q13530001', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q13530001 property:P607 ?h . ?h rdf:type ontology:Q198 }
World War II
John Macnamara took part in World War II
World War II
action filter_type
action find
entity John Macnamara
relation conflict
type war
['John Macnamara', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:John_Macnamara property:conflict ?h . ?h rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13530001
P1412
Q34770
USER
Which language does John Macnamara speak in ?
(Q13530001,P1412,c(Q34770))
action filter_type
action find
entity Q13530001
relation P1412
type Q34770
['Q13530001', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q13530001 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
John Macnamara
action filter_type
action find
entity John Macnamara
relation languages spoken, written or signed
type language
['John Macnamara', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:John_Macnamara property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q13530001,P1412,c(Q34770))
action filter_type
action find
entity Q13530001
relation P1412
type Q34770
John Macnamara speaks [ANSWER]
['Q13530001', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q13530001 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
English
John Macnamara speaks English
English
action filter_type
action find
entity John Macnamara
relation languages spoken, written or signed
type language
['John Macnamara', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:John_Macnamara property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13530001
P102
Q7210356
USER
Which party does John Macnamara belong to ?
(Q13530001,P102,c(Q7210356))
action filter_type
action find
entity Q13530001
relation P102
type Q7210356
['Q13530001', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q13530001 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
John Macnamara
action filter_type
action find
entity John Macnamara
relation member of political party
type political organization
['John Macnamara', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:John_Macnamara property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q13530001,P102,c(Q7210356))
action filter_type
action find
entity Q13530001
relation P102
type Q7210356
John Macnamara belongs to [ANSWER]
['Q13530001', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q13530001 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Conservative Party
John Macnamara belongs to Conservative Party
Conservative Party
action filter_type
action find
entity John Macnamara
relation member of political party
type political organization
['John Macnamara', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:John_Macnamara property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13530001
P69
Q3914
USER
Which school is that person an alumni of ?
(Q9626,P69,c(Q3914))
action filter_type
action find
entity Q13530001
relation P69
type Q3914
['Q9626', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?d WHERE { resource:Q13530001 property:P69 ?d . ?d rdf:type ontology:Q3914 }
John Macnamara
action filter_type
action find
entity John Macnamara
relation educated at
type school
['Conservative Party', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?d WHERE { resource:John_Macnamara property:educated_at ?d . ?d rdf:type ontology:school }
[]
school
Q5639263
SYSTEM
Haileybury and Imperial Service College
Q5639263
(Q9626,P69,c(Q3914))
action filter_type
action find
entity Q13530001
relation P69
type Q3914
[ANSWER] is that person an alumni of
['Q9626', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?d WHERE { resource:Q13530001 property:P69 ?d . ?d rdf:type ontology:Q3914 }
Haileybury and Imperial Service College
Haileybury and Imperial Service College is that person an alumni of
Haileybury and Imperial Service College
action filter_type
action find
entity John Macnamara
relation educated at
type school
['Conservative Party', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?d WHERE { resource:John_Macnamara property:educated_at ?d . ?d rdf:type ontology:school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5639263
P17
Q15617994
USER
Which administrative territory does that school belong to ?
(Q5639263,P17,c(Q15617994))
action filter_type
action find
entity Q5639263
relation P17
type Q15617994
['Q5639263', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q5639263 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Haileybury and Imperial Service College
action filter_type
action find
entity Haileybury and Imperial Service College
relation country
type designation for an administrative territorial entity
['Haileybury and Imperial Service College', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Haileybury_and_Imperial_Service_College property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q5639263,P17,c(Q15617994))
action filter_type
action find
entity Q5639263
relation P17
type Q15617994
That school belongs to [ANSWER]
['Q5639263', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q5639263 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
United Kingdom
That school belongs to United Kingdom
United Kingdom
action filter_type
action find
entity Haileybury and Imperial Service College
relation country
type designation for an administrative territorial entity
['Haileybury and Imperial Service College', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Haileybury_and_Imperial_Service_College property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q17 Q13530001
P530 P27
Q15617994
USER
Which administrative territories are the countries of citizenship of John Macnamara and have diplomatic relationships with Japan ?
AND((Q13530001,P27,c(Q15617994)), (Q17,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q13530001
relation P27
action find
entity Q17
relation P530
type Q15617994
{'AND': [['Q13530001', 'P27', {'concept': 'Q15617994'}], ['Q17', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q13530001 property:P27 ?b . resource:Q17 property:P530 ?b . ?b rdf:type ontology:Q15617994 }
Japan John Macnamara
action filter_type
action intersection
action find
entity John Macnamara
relation country of citizenship
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['John Macnamara', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:John_Macnamara property:country_of_citizenship ?b . resource:Japan property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q13530001,P27,c(Q15617994)), (Q17,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q13530001
relation P27
action find
entity Q17
relation P530
type Q15617994
[ANSWER] is the countries of citizenship of John Macnamara and have diplomatic relationships with Japan
{'AND': [['Q13530001', 'P27', {'concept': 'Q15617994'}], ['Q17', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q13530001 property:P27 ?b . resource:Q17 property:P530 ?b . ?b rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the countries of citizenship of John Macnamara and have diplomatic relationships with Japan
United Kingdom
action filter_type
action intersection
action find
entity John Macnamara
relation country of citizenship
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['John Macnamara', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:John_Macnamara property:country_of_citizenship ?b . resource:Japan property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2578129 Q9626
P17
Q15617994
USER
Which administrative territories are Conservative Party or FC Daşoguz a part of ?
OR((Q9626,P17,c(Q15617994)), (Q2578129,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9626
relation P17
action find
entity Q2578129
relation P17
type Q15617994
{'OR': [['Q9626', 'P17', {'concept': 'Q15617994'}], ['Q2578129', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?g ) { ( resource:Q9626 ) ( resource:Q2578129 ) } . ?g property:P17 ?p } . ?p rdf:type ontology:Q15617994 }
FC Daşoguz Conservative Party
action filter_type
action union
action find
entity Conservative Party
relation country
action find
entity FC Daşoguz
relation country
type designation for an administrative territorial entity
{'OR': [['Conservative Party', 'country', {'concept': 'designation for an administrative territorial entity'}], ['FC Daşoguz', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?g ) { ( resource:Conservative_Party ) ( resource:FC_Daşoguz ) } . ?g property:country ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q874 Q145
SYSTEM
Turkmenistan, United Kingdom
Q874 Q145
OR((Q9626,P17,c(Q15617994)), (Q2578129,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9626
relation P17
action find
entity Q2578129
relation P17
type Q15617994
[ANSWERS] are Conservative Party or FC Daşoguz a part of
{'OR': [['Q9626', 'P17', {'concept': 'Q15617994'}], ['Q2578129', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?g ) { ( resource:Q9626 ) ( resource:Q2578129 ) } . ?g property:P17 ?p } . ?p rdf:type ontology:Q15617994 }
Turkmenistan United Kingdom
Turkmenistan and United Kingdom are Conservative Party or FC Daşoguz a part of
Turkmenistan United Kingdom
action filter_type
action union
action find
entity Conservative Party
relation country
action find
entity FC Daşoguz
relation country
type designation for an administrative territorial entity
{'OR': [['Conservative Party', 'country', {'concept': 'designation for an administrative territorial entity'}], ['FC Daşoguz', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?g ) { ( resource:Conservative_Party ) ( resource:FC_Daşoguz ) } . ?g property:country ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q874 Q145
P463
Q484652
USER
Which international organizations were Turkmenistan and United Kingdom a member of ?
(Q874,P463,c(Q484652)) (Q145,P463,c(Q484652))
action union
action filter_type
action find
entity Q874
relation P463
type Q484652
action filter_type
action find
entity Q145
relation P463
type Q484652
['Q874', 'P463', {'concept': 'Q484652'}] ['Q145', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?n WHERE { { resource:Q145 property:P463 ?n . ?n rdf:type ontology:Q484652 } UNION { resource:Q874 property:P463 ?n . ?n rdf:type ontology:Q484652 } }
Turkmenistan United Kingdom
action union
action filter_type
action find
entity Turkmenistan
relation member of
type international organization
action filter_type
action find
entity United Kingdom
relation member of
type international organization
['Turkmenistan', 'member of', {'concept': 'international organization'}] ['United Kingdom', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?n WHERE { { resource:United_Kingdom property:member_of ?n . ?n rdf:type ontology:international_organization } UNION { resource:Turkmenistan property:member_of ?n . ?n rdf:type ontology:international_organization } }
[]
international organization
Q81299 Q81299 Q19771
SYSTEM
Organization for Security and Co-operation in Europe for 1st, 2nd, G20 for 3rd
Q81299 Q1065 Q188822 Q1043527 Q81299 Q1065 Q42262 Q7184 Q7785 Q188822 Q19771 Q37143 Q1043527
(Q874,P463,c(Q484652)) (Q145,P463,c(Q484652))
action union
action filter_type
action find
entity Q874
relation P463
type Q484652
action filter_type
action find
entity Q145
relation P463
type Q484652
[ANSWERS]
['Q874', 'P463', {'concept': 'Q484652'}] ['Q145', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?n WHERE { { resource:Q145 property:P463 ?n . ?n rdf:type ontology:Q484652 } UNION { resource:Q874 property:P463 ?n . ?n rdf:type ontology:Q484652 } }
Organization for Security and Co-operation in Europe United Nations Asian Development Bank Multilateral Investment Guarantee Agency Organization for Security and Co-operation in Europe United Nations European Space Agency North Atlantic Treaty Organisation Commonwealth of Nations Asian Development Bank G20 G8 Multilateral Investment Guarantee Agency
Organization for Security and Co-operation in Europe, Organization for Security and Co-operation in Europe and G20 were Turkmenistan and United Kingdom a member of
Organization for Security and Co-operation in Europe Organization for Security and Co-operation in Europe G20
action union
action filter_type
action find
entity Turkmenistan
relation member of
type international organization
action filter_type
action find
entity United Kingdom
relation member of
type international organization
['Turkmenistan', 'member of', {'concept': 'international organization'}] ['United Kingdom', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?n WHERE { { resource:United_Kingdom property:member_of ?n . ?n rdf:type ontology:international_organization } UNION { resource:Turkmenistan property:member_of ?n . ?n rdf:type ontology:international_organization } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q874
P610
Q14524493
USER
What is the highest point of that administrative territory ?
(Q874,P610,c(Q14524493))
action filter_type
action find
entity Q874
relation P610
type Q14524493
['Q874', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?v WHERE { resource:Q874 property:P610 ?v . ?v rdf:type ontology:Q14524493 }
Turkmenistan
action filter_type
action find
entity Turkmenistan
relation highest point
type terrain
['Turkmenistan', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?v WHERE { resource:Turkmenistan property:highest_point ?v . ?v rdf:type ontology:terrain }
[]
terrain
Clarification for simple ques.
Q874
SYSTEM
Did you mean Turkmenistan ?
Q81299 Q81299 Q19771
(Q81299,P610,c(Q14524493)) (Q81299,P610,c(Q14524493)) (Q19771,P610,c(Q14524493))
[ANSWER]
['Q81299', 'P610', {'concept': 'Q14524493'}] ['Q81299', 'P610', {'concept': 'Q14524493'}] ['Q19771', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?v WHERE { resource:Q874 property:P610 ?v . ?v rdf:type ontology:Q14524493 }
Organization for Security and Co-operation in Europe Organization for Security and Co-operation in Europe G20
Did you mean Turkmenistan ?
Turkmenistan
['Organization for Security and Co-operation in Europe', 'highest point', {'concept': 'terrain'}] ['Organization for Security and Co-operation in Europe', 'highest point', {'concept': 'terrain'}] ['G20', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?v WHERE { resource:Turkmenistan property:highest_point ?v . ?v rdf:type ontology:terrain }
[]
Simple Question (Coreferenced)
USER
Yes
(Q874,P610,c(Q14524493))
['Q874', 'P610', {'concept': 'Q14524493'}]
['Turkmenistan', 'highest point', {'concept': 'terrain'}]
[]
Q794684
SYSTEM
Aýrybaba
Q794684
(Q874,P610,c(Q14524493))
action filter_type
action find
entity Q874
relation P610
type Q14524493
The highest point of that administrative territory is the [ANSWER]
['Q874', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?v WHERE { resource:Q874 property:P610 ?v . ?v rdf:type ontology:Q14524493 }
Aýrybaba
The highest point of that administrative territory is the Aýrybaba
Aýrybaba
action filter_type
action find
entity Turkmenistan
relation highest point
type terrain
['Turkmenistan', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?v WHERE { resource:Turkmenistan property:highest_point ?v . ?v rdf:type ontology:terrain }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794684
P706
Q14524493
USER
Which terrain is that one located on ?
(Q794684,P706,c(Q14524493))
action filter_type
action find
entity Q794684
relation P706
type Q14524493
['Q794684', 'P706', {'concept': 'Q14524493'}]
SELECT DISTINCT ?g WHERE { resource:Q794684 property:P706 ?g . ?g rdf:type ontology:Q14524493 }
Aýrybaba
action filter_type
action find
entity Aýrybaba
relation located on terrain feature
type terrain
['Aýrybaba', 'located on terrain feature', {'concept': 'terrain'}]
SELECT DISTINCT ?g WHERE { resource:Aýrybaba property:located_on_terrain_feature ?g . ?g rdf:type ontology:terrain }
[]
terrain
Q3545429
SYSTEM
Köýtendag Range
Q3545429
(Q794684,P706,c(Q14524493))
action filter_type
action find
entity Q794684
relation P706
type Q14524493
That one is located in [ANSWER]
['Q794684', 'P706', {'concept': 'Q14524493'}]
SELECT DISTINCT ?g WHERE { resource:Q794684 property:P706 ?g . ?g rdf:type ontology:Q14524493 }
Köýtendag Range
That one is located in Köýtendag Range
Köýtendag Range
action filter_type
action find
entity Aýrybaba
relation located on terrain feature
type terrain
['Aýrybaba', 'located on terrain feature', {'concept': 'terrain'}]
SELECT DISTINCT ?g WHERE { resource:Aýrybaba property:located_on_terrain_feature ?g . ?g rdf:type ontology:terrain }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q794684
P17
Q15617994
USER
How many administrative territories are Aýrybaba a part of ?
(Q794684,P17,c(Q15617994))
action count
action filter_type
action find
entity Q794684
relation P17
type Q15617994
['Q794684', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b rdf:type ontology:Q15617994 . resource:Q794684 property:P17 ?b }
Aýrybaba
action count
action filter_type
action find
entity Aýrybaba
relation country
type designation for an administrative territorial entity
['Aýrybaba', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Aýrybaba property:country ?b }
[]
designation for an administrative territorial entity
SYSTEM
2
Q874 Q265
(Q794684,P17,c(Q15617994))
action count
action filter_type
action find
entity Q794684
relation P17
type Q15617994
[ANSWER]
['Q794684', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b rdf:type ontology:Q15617994 . resource:Q794684 property:P17 ?b }
Turkmenistan Uzbekistan
2
action count
action filter_type
action find
entity Aýrybaba
relation country
type designation for an administrative territorial entity
['Aýrybaba', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Aýrybaba property:country ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794684
P610
Q15617994
USER
Which administrative territory is that terrain the highest point of ?
action filter_type
action find_reverse
entity Q794684
relation P610
type Q15617994
SELECT DISTINCT ?d WHERE { ?d property:P610 resource:Q794684 . ?d rdf:type ontology:Q15617994 }
Aýrybaba
action filter_type
action find_reverse
entity Aýrybaba
relation highest point
type designation for an administrative territorial entity
SELECT DISTINCT ?d WHERE { ?d property:highest_point resource:Aýrybaba . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q874
SYSTEM
Turkmenistan
Q874
action filter_type
action find_reverse
entity Q794684
relation P610
type Q15617994
The [ANSWER] is that terrain the highest point of
SELECT DISTINCT ?d WHERE { ?d property:P610 resource:Q794684 . ?d rdf:type ontology:Q15617994 }
Turkmenistan
The Turkmenistan is that terrain the highest point of
Turkmenistan
action filter_type
action find_reverse
entity Aýrybaba
relation highest point
type designation for an administrative territorial entity
SELECT DISTINCT ?d WHERE { ?d property:highest_point resource:Aýrybaba . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]