Simple Question (Direct)
Simple Question
Q921724
P21
Q290
USER
Which sex does George Trafton belong to ?
(Q921724,P21,c(Q290))
action filter_type
action find
entity Q921724
relation P21
type Q290
['Q921724', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q921724 property:P21 ?s . ?s rdf:type ontology:Q290 }
George Trafton
action filter_type
action find
entity George Trafton
relation gender
type sex
['George Trafton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:George_Trafton property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q921724,P21,c(Q290))
action filter_type
action find
entity Q921724
relation P21
type Q290
George Trafton belongs to [ANSWER]
['Q921724', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q921724 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
George Trafton belongs to male
male
action filter_type
action find
entity George Trafton
relation gender
type sex
['George Trafton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:George_Trafton property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q921724
P20
Q56061
USER
Where did George Trafton die ?
(Q921724,P20,c(Q56061))
action filter_type
action find
entity Q921724
relation P20
type Q56061
['Q921724', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q921724 property:P20 ?g . ?g rdf:type ontology:Q56061 }
George Trafton
action filter_type
action find
entity George Trafton
relation place of death
type administrative territorial entity
['George Trafton', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:George_Trafton property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q921724,P20,c(Q56061))
action filter_type
action find
entity Q921724
relation P20
type Q56061
George Trafton died in [ANSWER]
['Q921724', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q921724 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Los Angeles
George Trafton died in Los Angeles
Los Angeles
action filter_type
action find
entity George Trafton
relation place of death
type administrative territorial entity
['George Trafton', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:George_Trafton property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1715087
P27
Q15617994
USER
How many administrative territories are the countries of citizenship of Józef Huss ?
(Q1715087,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1715087
relation P27
type Q15617994
['Q1715087', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Q1715087 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Józef Huss
action count
action filter_type
action find
entity Józef Huss
relation country of citizenship
type designation for an administrative territorial entity
['Józef Huss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Józef_Huss property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q36
(Q1715087,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1715087
relation P27
type Q15617994
[ANSWER]
['Q1715087', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Q1715087 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Poland
1
action count
action filter_type
action find
entity Józef Huss
relation country of citizenship
type designation for an administrative territorial entity
['Józef Huss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Józef_Huss property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4673076
P27
Q15617994
USER
Which administrative territory is the native country of Acel van Ommen ?
(Q4673076,P27,c(Q15617994))
action filter_type
action find
entity Q4673076
relation P27
type Q15617994
['Q4673076', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q4673076 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Acel van Ommen
action filter_type
action find
entity Acel van Ommen
relation country of citizenship
type designation for an administrative territorial entity
['Acel van Ommen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Acel_van_Ommen property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q928
SYSTEM
Philippines
Q928
(Q4673076,P27,c(Q15617994))
action filter_type
action find
entity Q4673076
relation P27
type Q15617994
[ANSWER] is the native country of Acel van Ommen
['Q4673076', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q4673076 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Philippines
Philippines is the native country of Acel van Ommen
Philippines
action filter_type
action find
entity Acel van Ommen
relation country of citizenship
type designation for an administrative territorial entity
['Acel van Ommen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Acel_van_Ommen property:country_of_citizenship ?b . ?b 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
Q928 Q34 Q977
P530
Q15617994
USER
Does that administrative territory have diplomatic associations with Sweden and Djibouti ?
(Q928,P530,Q34) (Q928,P530,Q977)
action is_in
entity Q928
action intersection
action find_reverse
entity Q34
relation P530
action find_reverse
entity Q977
relation P530
['Q928', 'P530', 'Q34'] ['Q928', 'P530', 'Q977']
ASK WHERE { resource:Q928 property:P530 resource:Q977 . resource:Q928 property:P530 resource:Q34 }
Philippines Sweden Djibouti
action is_in
entity Philippines
action intersection
action find_reverse
entity Sweden
relation diplomatic relation
action find_reverse
entity Djibouti
relation diplomatic relation
['Philippines', 'diplomatic relation', 'Sweden'] ['Philippines', 'diplomatic relation', 'Djibouti']
ASK WHERE { resource:Philippines property:diplomatic_relation resource:Djibouti . resource:Philippines property:diplomatic_relation resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q928,P530,Q34) (Q928,P530,Q977)
action is_in
entity Q928
action intersection
action find_reverse
entity Q34
relation P530
action find_reverse
entity Q977
relation P530
[ANSWER]
['Q928', 'P530', 'Q34'] ['Q928', 'P530', 'Q977']
ASK WHERE { resource:Q928 property:P530 resource:Q977 . resource:Q928 property:P530 resource:Q34 }
Yes
action is_in
entity Philippines
action intersection
action find_reverse
entity Sweden
relation diplomatic relation
action find_reverse
entity Djibouti
relation diplomatic relation
['Philippines', 'diplomatic relation', 'Sweden'] ['Philippines', 'diplomatic relation', 'Djibouti']
ASK WHERE { resource:Philippines property:diplomatic_relation resource:Djibouti . resource:Philippines property:diplomatic_relation resource:Sweden }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q5170787 Q921724
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of George Trafton and Cork Graham ?
AND((Q921724,P27,c(Q15617994)), (Q5170787,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q921724
relation P27
action find
entity Q5170787
relation P27
type Q15617994
{'AND': [['Q921724', 'P27', {'concept': 'Q15617994'}], ['Q5170787', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q921724 property:P27 ?k . resource:Q5170787 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Cork Graham George Trafton
action filter_type
action intersection
action find
entity George Trafton
relation country of citizenship
action find
entity Cork Graham
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['George Trafton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cork Graham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:George_Trafton property:country_of_citizenship ?k . resource:Cork_Graham property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q921724,P27,c(Q15617994)), (Q5170787,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q921724
relation P27
action find
entity Q5170787
relation P27
type Q15617994
[ANSWER] is the countries of citizenship of George Trafton and Cork Graham
{'AND': [['Q921724', 'P27', {'concept': 'Q15617994'}], ['Q5170787', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q921724 property:P27 ?k . resource:Q5170787 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
United States of America
United States of America is the countries of citizenship of George Trafton and Cork Graham
United States of America
action filter_type
action intersection
action find
entity George Trafton
relation country of citizenship
action find
entity Cork Graham
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['George Trafton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cork Graham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:George_Trafton property:country_of_citizenship ?k . resource:Cork_Graham property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q23040582 Q9696
P6
Q502895
USER
Does United States of America have Juho Koivisto and John F. Kennedy as its head of government ?
(Q30,P6,Q23040582) (Q30,P6,Q9696)
action is_in
entity Q30
action intersection
action find_reverse
entity Q23040582
relation P6
action find_reverse
entity Q9696
relation P6
['Q30', 'P6', 'Q23040582'] ['Q30', 'P6', 'Q9696']
ASK WHERE { resource:Q30 property:P6 resource:Q23040582 . resource:Q30 property:P6 resource:Q9696 }
United States of America Juho Koivisto John F. Kennedy
action is_in
entity United States of America
action intersection
action find_reverse
entity Juho Koivisto
relation head of government
action find_reverse
entity John F. Kennedy
relation head of government
['United States of America', 'head of government', 'Juho Koivisto'] ['United States of America', 'head of government', 'John F. Kennedy']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Juho_Koivisto . resource:United_States_of_America property:head_of_government resource:John_F._Kennedy }
[]
common name
SYSTEM
NO and YES respectively
(Q30,P6,Q23040582) (Q30,P6,Q9696)
action is_in
entity Q30
action intersection
action find_reverse
entity Q23040582
relation P6
action find_reverse
entity Q9696
relation P6
[ANSWER]
['Q30', 'P6', 'Q23040582'] ['Q30', 'P6', 'Q9696']
ASK WHERE { resource:Q30 property:P6 resource:Q23040582 . resource:Q30 property:P6 resource:Q9696 }
NO and YES respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Juho Koivisto
relation head of government
action find_reverse
entity John F. Kennedy
relation head of government
['United States of America', 'head of government', 'Juho Koivisto'] ['United States of America', 'head of government', 'John F. Kennedy']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Juho_Koivisto . resource:United_States_of_America property:head_of_government resource:John_F._Kennedy }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26271510 Q5170787
P27 P17
Q15617994
USER
Which administrative territories are Cork Graham an inhabitant of or are Banyu Tajun located in ?
OR((Q5170787,P27,c(Q15617994)), (Q26271510,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5170787
relation P27
action find
entity Q26271510
relation P17
type Q15617994
{'OR': [['Q5170787', 'P27', {'concept': 'Q15617994'}], ['Q26271510', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q26271510 property:P17 ?l } UNION { resource:Q5170787 property:P27 ?l } } }
Banyu Tajun Cork Graham
action filter_type
action union
action find
entity Cork Graham
relation country of citizenship
action find
entity Banyu Tajun
relation country
type designation for an administrative territorial entity
{'OR': [['Cork Graham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Banyu Tajun', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Banyu_Tajun property:country ?l } UNION { resource:Cork_Graham property:country_of_citizenship ?l } } }
[]
designation for an administrative territorial entity
Q754 Q252 Q30
SYSTEM
Trinidad and Tobago, Indonesia, United States of America
Q754 Q252 Q30
OR((Q5170787,P27,c(Q15617994)), (Q26271510,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5170787
relation P27
action find
entity Q26271510
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q5170787', 'P27', {'concept': 'Q15617994'}], ['Q26271510', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q26271510 property:P17 ?l } UNION { resource:Q5170787 property:P27 ?l } } }
Trinidad and Tobago Indonesia United States of America
Which administrative territories are Cork Graham an inhabitant of or are Banyu Tajun located in
Trinidad and Tobago Indonesia United States of America
action filter_type
action union
action find
entity Cork Graham
relation country of citizenship
action find
entity Banyu Tajun
relation country
type designation for an administrative territorial entity
{'OR': [['Cork Graham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Banyu Tajun', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Banyu_Tajun property:country ?l } UNION { resource:Cork_Graham property:country_of_citizenship ?l } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q252
P112
Q484652
USER
Which international organization was established by that administrative territory ?
(c(Q484652),P112,Q252)
action filter_type
action find_reverse
entity Q252
relation P112
type Q484652
[{'concept': 'Q484652'}, 'P112', 'Q252']
SELECT DISTINCT ?a WHERE { ?a property:P112 resource:Q252 . ?a rdf:type ontology:Q484652 }
Indonesia
action filter_type
action find_reverse
entity Indonesia
relation founder
type international organization
[{'concept': 'international organization'}, 'founder', 'Indonesia']
SELECT DISTINCT ?a WHERE { ?a property:founder resource:Indonesia . ?a rdf:type ontology:international_organization }
[]
international organization
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q754 Q252 Q30
(c(Q484652),P112,Q754) (c(Q484652),P112,Q252) (c(Q484652),P112,Q30)
[ANSWER]
[{'concept': 'Q484652'}, 'P112', 'Q754'] [{'concept': 'Q484652'}, 'P112', 'Q252'] [{'concept': 'Q484652'}, 'P112', 'Q30']
SELECT DISTINCT ?a WHERE { ?a property:P112 resource:Q252 . ?a rdf:type ontology:Q484652 }
Trinidad and Tobago Indonesia United States of America
Did you mean United States of America ?
United States of America
[{'concept': 'international organization'}, 'founder', 'Trinidad and Tobago'] [{'concept': 'international organization'}, 'founder', 'Indonesia'] [{'concept': 'international organization'}, 'founder', 'United States of America']
SELECT DISTINCT ?a WHERE { ?a property:founder resource:Indonesia . ?a rdf:type ontology:international_organization }
[]
Simple Question (Coreferenced)
USER
No, I meant Indonesia. Could you tell me the answer for that?
(c(Q484652),P112,Q252)
Q252
[{'concept': 'Q484652'}, 'P112', 'Q252']
[{'concept': 'international organization'}, 'founder', 'Indonesia']
[]
Q7768
SYSTEM
ASEAN
Q7768
(c(Q484652),P112,Q252)
action filter_type
action find_reverse
entity Q252
relation P112
type Q484652
[ANSWER] was established by that administrative territory
[{'concept': 'Q484652'}, 'P112', 'Q252']
SELECT DISTINCT ?a WHERE { ?a property:P112 resource:Q252 . ?a rdf:type ontology:Q484652 }
ASEAN
ASEAN was established by that administrative territory
ASEAN
action filter_type
action find_reverse
entity Indonesia
relation founder
type international organization
[{'concept': 'international organization'}, 'founder', 'Indonesia']
SELECT DISTINCT ?a WHERE { ?a property:founder resource:Indonesia . ?a rdf:type ontology:international_organization }
[]