Simple Question (Direct)
Simple Question
Q139055
P734
Q82799
USER
Which name is associated with Gaetano Martino ?
(Q139055,P734,c(Q82799))
action filter_type
action find
entity Q139055
relation P734
type Q82799
['Q139055', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q139055 property:P734 ?a . ?a rdf:type ontology:Q82799 }
Gaetano Martino
action filter_type
action find
entity Gaetano Martino
relation family name
type name
['Gaetano Martino', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Gaetano_Martino property:family_name ?a . ?a rdf:type ontology:name }
[]
name
Q18002394
SYSTEM
Martino
Q18002394
(Q139055,P734,c(Q82799))
action filter_type
action find
entity Q139055
relation P734
type Q82799
[ANSWER] is associated with Gaetano [ANSWER]
['Q139055', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q139055 property:P734 ?a . ?a rdf:type ontology:Q82799 }
Martino
Martino is associated with Gaetano Martino
Martino
action filter_type
action find
entity Gaetano Martino
relation family name
type name
['Gaetano Martino', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Gaetano_Martino property:family_name ?a . ?a rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1841252 Q139055
P20
Q56061
USER
Which administrative territories did the expiration of Gaetano Martino or Nakamura Nakazo I occur ?
OR((Q139055,P20,c(Q56061)), (Q1841252,P20,c(Q56061)))
action filter_type
action union
action find
entity Q139055
relation P20
action find
entity Q1841252
relation P20
type Q56061
{'OR': [['Q139055', 'P20', {'concept': 'Q56061'}], ['Q1841252', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?o ) { ( resource:Q139055 ) ( resource:Q1841252 ) } . ?o property:P20 ?u } . ?u rdf:type ontology:Q56061 }
Nakamura Nakazo I Gaetano Martino
action filter_type
action union
action find
entity Gaetano Martino
relation place of death
action find
entity Nakamura Nakazo I
relation place of death
type administrative territorial entity
{'OR': [['Gaetano Martino', 'place of death', {'concept': 'administrative territorial entity'}], ['Nakamura Nakazo I', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?o ) { ( resource:Gaetano_Martino ) ( resource:Nakamura_Nakazo_I ) } . ?o property:place_of_death ?u } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q215646 Q220
SYSTEM
Edo, Rome
Q215646 Q220
OR((Q139055,P20,c(Q56061)), (Q1841252,P20,c(Q56061)))
action filter_type
action union
action find
entity Q139055
relation P20
action find
entity Q1841252
relation P20
type Q56061
The expiration of Gaetano Martino or Nakamura Nakazo I occurred in [ANSWERS]
{'OR': [['Q139055', 'P20', {'concept': 'Q56061'}], ['Q1841252', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?o ) { ( resource:Q139055 ) ( resource:Q1841252 ) } . ?o property:P20 ?u } . ?u rdf:type ontology:Q56061 }
Edo Rome
The expiration of Gaetano Martino or Nakamura Nakazo I occurred in Edo and Rome
Edo Rome
action filter_type
action union
action find
entity Gaetano Martino
relation place of death
action find
entity Nakamura Nakazo I
relation place of death
type administrative territorial entity
{'OR': [['Gaetano Martino', 'place of death', {'concept': 'administrative territorial entity'}], ['Nakamura Nakazo I', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?o ) { ( resource:Gaetano_Martino ) ( resource:Nakamura_Nakazo_I ) } . ?o property:place_of_death ?u } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q220
P1071
Q12146012
USER
Which underground building has that administrative territory as its terminal assembly location ?
(c(Q12146012),P1071,Q220)
action filter_type
action find_reverse
entity Q220
relation P1071
type Q12146012
[{'concept': 'Q12146012'}, 'P1071', 'Q220']
SELECT DISTINCT ?d WHERE { ?d property:P1071 resource:Q220 . ?d rdf:type ontology:Q12146012 }
Rome
action filter_type
action find_reverse
entity Rome
relation location of final assembly
type underground building
[{'concept': 'underground building'}, 'location of final assembly', 'Rome']
SELECT DISTINCT ?d WHERE { ?d property:location_of_final_assembly resource:Rome . ?d rdf:type ontology:underground_building }
[]
underground building
Clarification for simple ques.
Q220
SYSTEM
Did you mean Rome ?
Q215646 Q220
(c(Q12146012),P1071,Q215646) (c(Q12146012),P1071,Q220)
[ANSWER]
[{'concept': 'Q12146012'}, 'P1071', 'Q215646'] [{'concept': 'Q12146012'}, 'P1071', 'Q220']
SELECT DISTINCT ?d WHERE { ?d property:P1071 resource:Q220 . ?d rdf:type ontology:Q12146012 }
Edo Rome
Did you mean Rome ?
Rome
[{'concept': 'underground building'}, 'location of final assembly', 'Edo'] [{'concept': 'underground building'}, 'location of final assembly', 'Rome']
SELECT DISTINCT ?d WHERE { ?d property:location_of_final_assembly resource:Rome . ?d rdf:type ontology:underground_building }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q12146012),P1071,Q220)
[{'concept': 'Q12146012'}, 'P1071', 'Q220']
[{'concept': 'underground building'}, 'location of final assembly', 'Rome']
[]
Q19328242
SYSTEM
Galleria Pasa
Q19328242
(c(Q12146012),P1071,Q220)
action filter_type
action find_reverse
entity Q220
relation P1071
type Q12146012
[ANSWER] has that administrative territory as its terminal assembly location
[{'concept': 'Q12146012'}, 'P1071', 'Q220']
SELECT DISTINCT ?d WHERE { ?d property:P1071 resource:Q220 . ?d rdf:type ontology:Q12146012 }
Galleria Pasa
Galleria Pasa has that administrative territory as its terminal assembly location
Galleria Pasa
action filter_type
action find_reverse
entity Rome
relation location of final assembly
type underground building
[{'concept': 'underground building'}, 'location of final assembly', 'Rome']
SELECT DISTINCT ?d WHERE { ?d property:location_of_final_assembly resource:Rome . ?d rdf:type ontology:underground_building }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q19328242 Q244027 Q2402432
P17
Q15617994
USER
Is that underground building situated in Albese con Cassano and San Cristóbal Totonicapán ?
(Q19328242,P17,Q244027) (Q19328242,P17,Q2402432)
action is_in
entity Q19328242
action intersection
action find_reverse
entity Q244027
relation P17
action find_reverse
entity Q2402432
relation P17
['Q19328242', 'P17', 'Q244027'] ['Q19328242', 'P17', 'Q2402432']
ASK WHERE { resource:Q19328242 property:P17 resource:Q244027 . resource:Q19328242 property:P17 resource:Q2402432 }
Galleria Pasa Albese con Cassano San Cristóbal Totonicapán
action is_in
entity Galleria Pasa
action intersection
action find_reverse
entity Albese con Cassano
relation country
action find_reverse
entity San Cristóbal Totonicapán
relation country
['Galleria Pasa', 'country', 'Albese con Cassano'] ['Galleria Pasa', 'country', 'San Cristóbal Totonicapán']
ASK WHERE { resource:Galleria_Pasa property:country resource:Albese_con_Cassano . resource:Galleria_Pasa property:country resource:San_Cristóbal_Totonicapán }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q19328242,P17,Q244027) (Q19328242,P17,Q2402432)
action is_in
entity Q19328242
action intersection
action find_reverse
entity Q244027
relation P17
action find_reverse
entity Q2402432
relation P17
[ANSWER]
['Q19328242', 'P17', 'Q244027'] ['Q19328242', 'P17', 'Q2402432']
ASK WHERE { resource:Q19328242 property:P17 resource:Q244027 . resource:Q19328242 property:P17 resource:Q2402432 }
No
action is_in
entity Galleria Pasa
action intersection
action find_reverse
entity Albese con Cassano
relation country
action find_reverse
entity San Cristóbal Totonicapán
relation country
['Galleria Pasa', 'country', 'Albese con Cassano'] ['Galleria Pasa', 'country', 'San Cristóbal Totonicapán']
ASK WHERE { resource:Galleria_Pasa property:country resource:Albese_con_Cassano . resource:Galleria_Pasa property:country resource:San_Cristóbal_Totonicapán }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19328242
P84
Q502895
USER
Who is the designer of that underground building ?
action filter_type
action find
entity Q19328242
relation P84
type Q502895
SELECT DISTINCT ?e WHERE { resource:Q19328242 property:P84 ?e . ?e rdf:type ontology:Q502895 }
Galleria Pasa
action filter_type
action find
entity Galleria Pasa
relation architect
type common name
SELECT DISTINCT ?e WHERE { resource:Galleria_Pasa property:architect ?e . ?e rdf:type ontology:common_name }
[]
common name
Q2600272
SYSTEM
Cesare Bazzani
Q2600272
action filter_type
action find
entity Q19328242
relation P84
type Q502895
The designer of that underground building is Giulio [ANSWER]
SELECT DISTINCT ?e WHERE { resource:Q19328242 property:P84 ?e . ?e rdf:type ontology:Q502895 }
Cesare Bazzani
The designer of that underground building is Giulio Cesare Bazzani
Cesare Bazzani
action filter_type
action find
entity Galleria Pasa
relation architect
type common name
SELECT DISTINCT ?e WHERE { resource:Galleria_Pasa property:architect ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19328242
P1071
Q56061
USER
Where is the final place of assembly for Galleria Pasa ?
(Q19328242,P1071,c(Q56061))
action filter_type
action find
entity Q19328242
relation P1071
type Q56061
['Q19328242', 'P1071', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q19328242 property:P1071 ?i . ?i rdf:type ontology:Q56061 }
Galleria Pasa
action filter_type
action find
entity Galleria Pasa
relation location of final assembly
type administrative territorial entity
['Galleria Pasa', 'location of final assembly', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Galleria_Pasa property:location_of_final_assembly ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q19328242,P1071,c(Q56061))
action filter_type
action find
entity Q19328242
relation P1071
type Q56061
The final place of assembly for Galleria is in [ANSWER]
['Q19328242', 'P1071', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q19328242 property:P1071 ?i . ?i rdf:type ontology:Q56061 }
Rome
The final place of assembly for Galleria is in Rome
Rome
action filter_type
action find
entity Galleria Pasa
relation location of final assembly
type administrative territorial entity
['Galleria Pasa', 'location of final assembly', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Galleria_Pasa property:location_of_final_assembly ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q19328242
P17
Q15617994
USER
How many administrative territories are Galleria Pasa a part of ?
(Q19328242,P17,c(Q15617994))
action count
action filter_type
action find
entity Q19328242
relation P17
type Q15617994
['Q19328242', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Q19328242 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Galleria Pasa
action count
action filter_type
action find
entity Galleria Pasa
relation country
type designation for an administrative territorial entity
['Galleria Pasa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Galleria_Pasa property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q38
(Q19328242,P17,c(Q15617994))
action count
action filter_type
action find
entity Q19328242
relation P17
type Q15617994
[ANSWER]
['Q19328242', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Q19328242 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Italy
1
action count
action filter_type
action find
entity Galleria Pasa
relation country
type designation for an administrative territorial entity
['Galleria Pasa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Galleria_Pasa property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5949878 Q1841252
P27
Q15617994
USER
Which administrative territories are the native countriesof Nakamura Nakazo I or Mohammad Reza Tonekaboni ?
OR((Q1841252,P27,c(Q15617994)), (Q5949878,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1841252
relation P27
action find
entity Q5949878
relation P27
type Q15617994
{'OR': [['Q1841252', 'P27', {'concept': 'Q15617994'}], ['Q5949878', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?g ) { ( resource:Q5949878 ) ( resource:Q1841252 ) } . ?g property:P27 ?c } . ?c rdf:type ontology:Q15617994 }
Mohammad Reza Tonekaboni Nakamura Nakazo I
action filter_type
action union
action find
entity Nakamura Nakazo I
relation country of citizenship
action find
entity Mohammad Reza Tonekaboni
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Nakamura Nakazo I', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mohammad Reza Tonekaboni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?g ) { ( resource:Mohammad_Reza_Tonekaboni ) ( resource:Nakamura_Nakazo_I ) } . ?g property:country_of_citizenship ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q794
SYSTEM
Japan, Iran
Q17 Q794
OR((Q1841252,P27,c(Q15617994)), (Q5949878,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1841252
relation P27
action find
entity Q5949878
relation P27
type Q15617994
[ANSWERS] are the native countriesof Nakamura Nakazo I or Mohammad Reza Tonekaboni
{'OR': [['Q1841252', 'P27', {'concept': 'Q15617994'}], ['Q5949878', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?g ) { ( resource:Q5949878 ) ( resource:Q1841252 ) } . ?g property:P27 ?c } . ?c rdf:type ontology:Q15617994 }
Japan Iran
Japan and Iran are the native countriesof Nakamura Nakazo I or Mohammad Reza Tonekaboni
Japan Iran
action filter_type
action union
action find
entity Nakamura Nakazo I
relation country of citizenship
action find
entity Mohammad Reza Tonekaboni
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Nakamura Nakazo I', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mohammad Reza Tonekaboni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?g ) { ( resource:Mohammad_Reza_Tonekaboni ) ( resource:Nakamura_Nakazo_I ) } . ?g property:country_of_citizenship ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q17 Q794
P17
Q15617994
USER
Which administrative territories are those ones a part of ?
(Q17,P17,c(Q15617994)) (Q794,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q17', 'P17', {'concept': 'Q15617994'}] ['Q794', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { VALUES ( ?s ) { ( resource:Q17 ) ( resource:Q794 ) } . ?j rdf:type ontology:Q15617994 . ?s property:P17 ?j }
Japan Iran
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Japan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Iran', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { VALUES ( ?s ) { ( resource:Japan ) ( resource:Iran ) } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:country ?j }
[]
designation for an administrative territorial entity
Q17 Q794
SYSTEM
Japan, Iran
Q17 Q794
(Q17,P17,c(Q15617994)) (Q794,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS] are those ones a part of
['Q17', 'P17', {'concept': 'Q15617994'}] ['Q794', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { VALUES ( ?s ) { ( resource:Q17 ) ( resource:Q794 ) } . ?j rdf:type ontology:Q15617994 . ?s property:P17 ?j }
Japan Iran
Japan and Iran are those ones a part of
Japan Iran
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Japan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Iran', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { VALUES ( ?s ) { ( resource:Japan ) ( resource:Iran ) } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:country ?j }
[]