Simple Question (Direct)
Simple Question
Q47335
P17
Q15617994
USER
Which administrative territory does Faggeto Lario belong to ?
(Q47335,P17,c(Q15617994))
action filter_type
action find
entity Q47335
relation P17
type Q15617994
['Q47335', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q47335 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Faggeto Lario
action filter_type
action find
entity Faggeto Lario
relation country
type designation for an administrative territorial entity
['Faggeto Lario', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Faggeto_Lario property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q47335,P17,c(Q15617994))
action filter_type
action find
entity Q47335
relation P17
type Q15617994
Faggeto Lario belongs to [ANSWER]
['Q47335', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q47335 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Italy
Faggeto Lario belongs to Italy
Italy
action filter_type
action find
entity Faggeto Lario
relation country
type designation for an administrative territorial entity
['Faggeto Lario', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Faggeto_Lario property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47335
P19
Q502895
USER
Who has location of birth at Faggeto Lario ?
(c(Q502895),P19,Q47335)
action filter_type
action find_reverse
entity Q47335
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q47335']
SELECT DISTINCT ?f WHERE { ?f property:P19 resource:Q47335 . ?f rdf:type ontology:Q502895 }
Faggeto Lario
action filter_type
action find_reverse
entity Faggeto Lario
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Faggeto Lario']
SELECT DISTINCT ?f WHERE { ?f property:place_of_birth resource:Faggeto_Lario . ?f rdf:type ontology:common_name }
[]
common name
Q1097982
SYSTEM
Claudio Bonivento
Q1097982
(c(Q502895),P19,Q47335)
action filter_type
action find_reverse
entity Q47335
relation P19
type Q502895
[ANSWER] has location of birth at Faggeto Lario
[{'concept': 'Q502895'}, 'P19', 'Q47335']
SELECT DISTINCT ?f WHERE { ?f property:P19 resource:Q47335 . ?f rdf:type ontology:Q502895 }
Claudio Bonivento
Claudio Bonivento has location of birth at Faggeto Lario
Claudio Bonivento
action filter_type
action find_reverse
entity Faggeto Lario
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Faggeto Lario']
SELECT DISTINCT ?f WHERE { ?f property:place_of_birth resource:Faggeto_Lario . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1097982
P21
Q290
USER
What is the sex of that person ?
(Q1097982,P21,c(Q290))
action filter_type
action find
entity Q1097982
relation P21
type Q290
['Q1097982', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q1097982 property:P21 ?m }
Claudio Bonivento
action filter_type
action find
entity Claudio Bonivento
relation gender
type sex
['Claudio Bonivento', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Claudio_Bonivento property:gender ?m }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1097982,P21,c(Q290))
action filter_type
action find
entity Q1097982
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q1097982', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q1097982 property:P21 ?m }
male
The sex of that person is a male
male
action filter_type
action find
entity Claudio Bonivento
relation gender
type sex
['Claudio Bonivento', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Claudio_Bonivento property:gender ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1097982
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q6581097,P1412,c(Q34770))
action filter_type
action find
entity Q1097982
relation P1412
type Q34770
['Q6581097', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q1097982 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
Claudio Bonivento
action filter_type
action find
entity Claudio Bonivento
relation languages spoken, written or signed
type language
['male', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Claudio_Bonivento property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q6581097,P1412,c(Q34770))
action filter_type
action find
entity Q1097982
relation P1412
type Q34770
The [ANSWER] is that person capable of writing
['Q6581097', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q1097982 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
Italian
The Italian is that person capable of writing
Italian
action filter_type
action find
entity Claudio Bonivento
relation languages spoken, written or signed
type language
['male', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Claudio_Bonivento property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q21280533 Q47335
P47 P17
Q15617994
USER
Which administrative territories have a shared border with Faggeto Lario or are Vähä Virkajärvi present in ?
OR((Q47335,P47,c(Q15617994)), (Q21280533,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q47335
relation P47
action find
entity Q21280533
relation P17
type Q15617994
{'OR': [['Q47335', 'P47', {'concept': 'Q15617994'}], ['Q21280533', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q47335 property:P47 ?b } UNION { resource:Q21280533 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Vähä Virkajärvi Faggeto Lario
action filter_type
action union
action find
entity Faggeto Lario
relation shares border with
action find
entity Vähä Virkajärvi
relation country
type designation for an administrative territorial entity
{'OR': [['Faggeto Lario', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Vähä Virkajärvi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Faggeto_Lario property:shares_border_with ?b } UNION { resource:Vähä_Virkajärvi property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q244027 Q244131 Q244021 Q244231 Q47341 Q47344 Q33 Q244340 Q47211 Q47378
SYSTEM
Some of them are Albese con Cassano, Blevio, Albavilla, Carate Urio, Laglio, Torno, Finland, Caslino d'Erba, Erba, Tavernerio
Q244027 Q47400 Q244188 Q244231 Q244021 Q244131 Q244340 Q47399 Q47211 Q47344 Q47378 Q47341 Q33
OR((Q47335,P47,c(Q15617994)), (Q21280533,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q47335
relation P47
action find
entity Q21280533
relation P17
type Q15617994
[ANSWERS] have a shared border with Faggeto Lario or are Vähä Virkajärvi present in
{'OR': [['Q47335', 'P47', {'concept': 'Q15617994'}], ['Q21280533', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q47335 property:P47 ?b } UNION { resource:Q21280533 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Albese con Cassano Pognana Lario Caglio Carate Urio Albavilla Blevio Caslino d'Erba Nesso Erba Torno Tavernerio Laglio Finland
Albese con Cassano, Blevio, Albavilla, Carate Urio, Laglio, Torno, Finland, Caslino d'Erba, Erba and Tavernerio have a shared border with Faggeto Lario or are Vähä Virkajärvi present in
Albese con Cassano Blevio Albavilla Carate Urio Laglio Torno Finland Caslino d'Erba Erba Tavernerio
action filter_type
action union
action find
entity Faggeto Lario
relation shares border with
action find
entity Vähä Virkajärvi
relation country
type designation for an administrative territorial entity
{'OR': [['Faggeto Lario', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Vähä Virkajärvi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Faggeto_Lario property:shares_border_with ?b } UNION { resource:Vähä_Virkajärvi property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q15617994 Q56061
USER
How many administrative territories or administrative territories are partner town of that administrative territory ?
(c(Q15617994),P190,Q47211) (c(Q56061),P190,Q47211) (c(Q15617994),P190,Q244027) (c(Q56061),P190,Q244027) (c(Q15617994),P190,Q244131) (c(Q56061),P190,Q244131) (c(Q15617994),P190,Q244021) (c(Q56061),P190,Q244021) (c(Q15617994),P190,Q244231) (c(Q56061),P190,Q244231) (c(Q15617994),P190,Q47341) (c(Q56061),P190,Q47341) (c(Q15617994),P190,Q47344) (c(Q56061),P190,Q47344) (c(Q15617994),P190,Q33) (c(Q56061),P190,Q33) (c(Q15617994),P190,Q244340) (c(Q56061),P190,Q244340) (c(Q15617994),P190,Q47211) (c(Q56061),P190,Q47211) (c(Q15617994),P190,Q47378) (c(Q56061),P190,Q47378)
[{'concept': 'Q15617994'}, 'P190', 'Q47211'] [{'concept': 'Q56061'}, 'P190', 'Q47211'] [{'concept': 'Q15617994'}, 'P190', 'Q244027'] [{'concept': 'Q56061'}, 'P190', 'Q244027'] [{'concept': 'Q15617994'}, 'P190', 'Q244131'] [{'concept': 'Q56061'}, 'P190', 'Q244131'] [{'concept': 'Q15617994'}, 'P190', 'Q244021'] [{'concept': 'Q56061'}, 'P190', 'Q244021'] [{'concept': 'Q15617994'}, 'P190', 'Q244231'] [{'concept': 'Q56061'}, 'P190', 'Q244231'] [{'concept': 'Q15617994'}, 'P190', 'Q47341'] [{'concept': 'Q56061'}, 'P190', 'Q47341'] [{'concept': 'Q15617994'}, 'P190', 'Q47344'] [{'concept': 'Q56061'}, 'P190', 'Q47344'] [{'concept': 'Q15617994'}, 'P190', 'Q33'] [{'concept': 'Q56061'}, 'P190', 'Q33'] [{'concept': 'Q15617994'}, 'P190', 'Q244340'] [{'concept': 'Q56061'}, 'P190', 'Q244340'] [{'concept': 'Q15617994'}, 'P190', 'Q47211'] [{'concept': 'Q56061'}, 'P190', 'Q47211'] [{'concept': 'Q15617994'}, 'P190', 'Q47378'] [{'concept': 'Q56061'}, 'P190', 'Q47378']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P190 resource:Q353731 } UNION { ?y property:P190 resource:Q353731 } UNION { ?z property:P190 resource:Q244027 } UNION { ?y property:P190 resource:Q244027 } UNION { ?z property:P190 resource:Q244131 } UNION { ?y property:P190 resource:Q244131 } UNION { ?z property:P190 resource:Q244021 } UNION { ?y property:P190 resource:Q244021 } UNION { ?z property:P190 resource:Q244231 } UNION { ?y property:P190 resource:Q244231 } UNION { ?z property:P190 resource:Q47341 } UNION { ?y property:P190 resource:Q47341 } UNION { ?z property:P190 resource:Q47344 } UNION { ?y property:P190 resource:Q47344 } UNION { ?z property:P190 resource:Q16836846 } UNION { ?y property:P190 resource:Q16836846 } UNION { ?z property:P190 resource:Q244340 } UNION { ?y property:P190 resource:Q244340 } UNION { ?z property:P190 resource:Q353731 } UNION { ?y property:P190 resource:Q353731 } UNION { ?z property:P190 resource:Q47378 } UNION { ?y property:P190 resource:Q47378 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Albese con Cassano'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Albese con Cassano'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Blevio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Blevio'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Albavilla'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Albavilla'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Carate Urio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Carate Urio'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Laglio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Laglio'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Torno'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Torno'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Finland'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Finland'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', "Caslino d'Erba"] [{'concept': 'administrative territorial entity'}, 'sister city', "Caslino d'Erba"] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Tavernerio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Tavernerio']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:sister_city resource:Erba } UNION { ?y property:sister_city resource:Erba } UNION { ?z property:sister_city resource:Albese_con_Cassano } UNION { ?y property:sister_city resource:Albese_con_Cassano } UNION { ?z property:sister_city resource:Blevio } UNION { ?y property:sister_city resource:Blevio } UNION { ?z property:sister_city resource:Albavilla } UNION { ?y property:sister_city resource:Albavilla } UNION { ?z property:sister_city resource:Carate_Urio } UNION { ?y property:sister_city resource:Carate_Urio } UNION { ?z property:sister_city resource:Laglio } UNION { ?y property:sister_city resource:Laglio } UNION { ?z property:sister_city resource:Torno } UNION { ?y property:sister_city resource:Torno } UNION { ?z property:sister_city resource:Finland } UNION { ?y property:sister_city resource:Finland } UNION { ?z property:sister_city resource:Caslino_d'Erba } UNION { ?y property:sister_city resource:Caslino_d'Erba } UNION { ?z property:sister_city resource:Erba } UNION { ?y property:sister_city resource:Erba } UNION { ?z property:sister_city resource:Tavernerio } UNION { ?y property:sister_city resource:Tavernerio } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
designation for an administrative territorial entity administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q47341
SYSTEM
Did you mean Laglio ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P190 resource:Q353731 } UNION { ?y property:P190 resource:Q353731 } UNION { ?z property:P190 resource:Q244027 } UNION { ?y property:P190 resource:Q244027 } UNION { ?z property:P190 resource:Q244131 } UNION { ?y property:P190 resource:Q244131 } UNION { ?z property:P190 resource:Q244021 } UNION { ?y property:P190 resource:Q244021 } UNION { ?z property:P190 resource:Q244231 } UNION { ?y property:P190 resource:Q244231 } UNION { ?z property:P190 resource:Q47341 } UNION { ?y property:P190 resource:Q47341 } UNION { ?z property:P190 resource:Q47344 } UNION { ?y property:P190 resource:Q47344 } UNION { ?z property:P190 resource:Q16836846 } UNION { ?y property:P190 resource:Q16836846 } UNION { ?z property:P190 resource:Q244340 } UNION { ?y property:P190 resource:Q244340 } UNION { ?z property:P190 resource:Q353731 } UNION { ?y property:P190 resource:Q353731 } UNION { ?z property:P190 resource:Q47378 } UNION { ?y property:P190 resource:Q47378 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Did you mean Laglio ?
Laglio
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:sister_city resource:Erba } UNION { ?y property:sister_city resource:Erba } UNION { ?z property:sister_city resource:Albese_con_Cassano } UNION { ?y property:sister_city resource:Albese_con_Cassano } UNION { ?z property:sister_city resource:Blevio } UNION { ?y property:sister_city resource:Blevio } UNION { ?z property:sister_city resource:Albavilla } UNION { ?y property:sister_city resource:Albavilla } UNION { ?z property:sister_city resource:Carate_Urio } UNION { ?y property:sister_city resource:Carate_Urio } UNION { ?z property:sister_city resource:Laglio } UNION { ?y property:sister_city resource:Laglio } UNION { ?z property:sister_city resource:Torno } UNION { ?y property:sister_city resource:Torno } UNION { ?z property:sister_city resource:Finland } UNION { ?y property:sister_city resource:Finland } UNION { ?z property:sister_city resource:Caslino_d'Erba } UNION { ?y property:sister_city resource:Caslino_d'Erba } UNION { ?z property:sister_city resource:Erba } UNION { ?y property:sister_city resource:Erba } UNION { ?z property:sister_city resource:Tavernerio } UNION { ?y property:sister_city resource:Tavernerio } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Erba. Could you tell me the answer for that?
(c(Q15617994),P190,Q47211) (c(Q56061),P190,Q47211) (c(Q15617994),P190,Q244027) (c(Q56061),P190,Q244027) (c(Q15617994),P190,Q244131) (c(Q56061),P190,Q244131) (c(Q15617994),P190,Q244021) (c(Q56061),P190,Q244021) (c(Q15617994),P190,Q244231) (c(Q56061),P190,Q244231) (c(Q15617994),P190,Q47341) (c(Q56061),P190,Q47341) (c(Q15617994),P190,Q47344) (c(Q56061),P190,Q47344) (c(Q15617994),P190,Q33) (c(Q56061),P190,Q33) (c(Q15617994),P190,Q244340) (c(Q56061),P190,Q244340) (c(Q15617994),P190,Q47211) (c(Q56061),P190,Q47211) (c(Q15617994),P190,Q47378) (c(Q56061),P190,Q47378)
Q47211
[{'concept': 'Q15617994'}, 'P190', 'Q47211'] [{'concept': 'Q56061'}, 'P190', 'Q47211'] [{'concept': 'Q15617994'}, 'P190', 'Q244027'] [{'concept': 'Q56061'}, 'P190', 'Q244027'] [{'concept': 'Q15617994'}, 'P190', 'Q244131'] [{'concept': 'Q56061'}, 'P190', 'Q244131'] [{'concept': 'Q15617994'}, 'P190', 'Q244021'] [{'concept': 'Q56061'}, 'P190', 'Q244021'] [{'concept': 'Q15617994'}, 'P190', 'Q244231'] [{'concept': 'Q56061'}, 'P190', 'Q244231'] [{'concept': 'Q15617994'}, 'P190', 'Q47341'] [{'concept': 'Q56061'}, 'P190', 'Q47341'] [{'concept': 'Q15617994'}, 'P190', 'Q47344'] [{'concept': 'Q56061'}, 'P190', 'Q47344'] [{'concept': 'Q15617994'}, 'P190', 'Q33'] [{'concept': 'Q56061'}, 'P190', 'Q33'] [{'concept': 'Q15617994'}, 'P190', 'Q244340'] [{'concept': 'Q56061'}, 'P190', 'Q244340'] [{'concept': 'Q15617994'}, 'P190', 'Q47211'] [{'concept': 'Q56061'}, 'P190', 'Q47211'] [{'concept': 'Q15617994'}, 'P190', 'Q47378'] [{'concept': 'Q56061'}, 'P190', 'Q47378']
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Albese con Cassano'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Albese con Cassano'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Blevio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Blevio'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Albavilla'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Albavilla'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Carate Urio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Carate Urio'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Laglio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Laglio'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Torno'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Torno'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Finland'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Finland'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', "Caslino d'Erba"] [{'concept': 'administrative territorial entity'}, 'sister city', "Caslino d'Erba"] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Tavernerio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Tavernerio']
[]
SYSTEM
2
Q53512 Q7022
(c(Q15617994),P190,Q47211) (c(Q56061),P190,Q47211) (c(Q15617994),P190,Q244027) (c(Q56061),P190,Q244027) (c(Q15617994),P190,Q244131) (c(Q56061),P190,Q244131) (c(Q15617994),P190,Q244021) (c(Q56061),P190,Q244021) (c(Q15617994),P190,Q244231) (c(Q56061),P190,Q244231) (c(Q15617994),P190,Q47341) (c(Q56061),P190,Q47341) (c(Q15617994),P190,Q47344) (c(Q56061),P190,Q47344) (c(Q15617994),P190,Q33) (c(Q56061),P190,Q33) (c(Q15617994),P190,Q244340) (c(Q56061),P190,Q244340) (c(Q15617994),P190,Q47211) (c(Q56061),P190,Q47211) (c(Q15617994),P190,Q47378) (c(Q56061),P190,Q47378)
[ANSWER]
[{'concept': 'Q15617994'}, 'P190', 'Q47211'] [{'concept': 'Q56061'}, 'P190', 'Q47211'] [{'concept': 'Q15617994'}, 'P190', 'Q244027'] [{'concept': 'Q56061'}, 'P190', 'Q244027'] [{'concept': 'Q15617994'}, 'P190', 'Q244131'] [{'concept': 'Q56061'}, 'P190', 'Q244131'] [{'concept': 'Q15617994'}, 'P190', 'Q244021'] [{'concept': 'Q56061'}, 'P190', 'Q244021'] [{'concept': 'Q15617994'}, 'P190', 'Q244231'] [{'concept': 'Q56061'}, 'P190', 'Q244231'] [{'concept': 'Q15617994'}, 'P190', 'Q47341'] [{'concept': 'Q56061'}, 'P190', 'Q47341'] [{'concept': 'Q15617994'}, 'P190', 'Q47344'] [{'concept': 'Q56061'}, 'P190', 'Q47344'] [{'concept': 'Q15617994'}, 'P190', 'Q33'] [{'concept': 'Q56061'}, 'P190', 'Q33'] [{'concept': 'Q15617994'}, 'P190', 'Q244340'] [{'concept': 'Q56061'}, 'P190', 'Q244340'] [{'concept': 'Q15617994'}, 'P190', 'Q47211'] [{'concept': 'Q56061'}, 'P190', 'Q47211'] [{'concept': 'Q15617994'}, 'P190', 'Q47378'] [{'concept': 'Q56061'}, 'P190', 'Q47378']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P190 resource:Q353731 } UNION { ?y property:P190 resource:Q353731 } UNION { ?z property:P190 resource:Q244027 } UNION { ?y property:P190 resource:Q244027 } UNION { ?z property:P190 resource:Q244131 } UNION { ?y property:P190 resource:Q244131 } UNION { ?z property:P190 resource:Q244021 } UNION { ?y property:P190 resource:Q244021 } UNION { ?z property:P190 resource:Q244231 } UNION { ?y property:P190 resource:Q244231 } UNION { ?z property:P190 resource:Q47341 } UNION { ?y property:P190 resource:Q47341 } UNION { ?z property:P190 resource:Q47344 } UNION { ?y property:P190 resource:Q47344 } UNION { ?z property:P190 resource:Q16836846 } UNION { ?y property:P190 resource:Q16836846 } UNION { ?z property:P190 resource:Q244340 } UNION { ?y property:P190 resource:Q244340 } UNION { ?z property:P190 resource:Q353731 } UNION { ?y property:P190 resource:Q353731 } UNION { ?z property:P190 resource:Q47378 } UNION { ?y property:P190 resource:Q47378 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Cortale Fellbach
2
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Albese con Cassano'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Albese con Cassano'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Blevio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Blevio'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Albavilla'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Albavilla'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Carate Urio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Carate Urio'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Laglio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Laglio'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Torno'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Torno'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Finland'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Finland'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', "Caslino d'Erba"] [{'concept': 'administrative territorial entity'}, 'sister city', "Caslino d'Erba"] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Tavernerio'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Tavernerio']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:sister_city resource:Erba } UNION { ?y property:sister_city resource:Erba } UNION { ?z property:sister_city resource:Albese_con_Cassano } UNION { ?y property:sister_city resource:Albese_con_Cassano } UNION { ?z property:sister_city resource:Blevio } UNION { ?y property:sister_city resource:Blevio } UNION { ?z property:sister_city resource:Albavilla } UNION { ?y property:sister_city resource:Albavilla } UNION { ?z property:sister_city resource:Carate_Urio } UNION { ?y property:sister_city resource:Carate_Urio } UNION { ?z property:sister_city resource:Laglio } UNION { ?y property:sister_city resource:Laglio } UNION { ?z property:sister_city resource:Torno } UNION { ?y property:sister_city resource:Torno } UNION { ?z property:sister_city resource:Finland } UNION { ?y property:sister_city resource:Finland } UNION { ?z property:sister_city resource:Caslino_d'Erba } UNION { ?y property:sister_city resource:Caslino_d'Erba } UNION { ?z property:sister_city resource:Erba } UNION { ?y property:sister_city resource:Erba } UNION { ?z property:sister_city resource:Tavernerio } UNION { ?y property:sister_city resource:Tavernerio } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q492980 Q244231
P47
Q15617994
USER
Which administrative territories have an adjacent border with Carate Urio or San Piero Patti ?
OR((c(Q15617994),P47,Q244231), (c(Q15617994),P47,Q492980))
action filter_type
action union
action find_reverse
entity Q244231
relation P47
action find_reverse
entity Q492980
relation P47
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q244231'], [{'concept': 'Q15617994'}, 'P47', 'Q492980']]}
SELECT DISTINCT ?a WHERE { { { ?a property:P47 resource:Q492980 } UNION { ?a property:P47 resource:Q244231 } } . ?a rdf:type ontology:Q15617994 }
San Piero Patti Carate Urio
action filter_type
action union
action find_reverse
entity Carate Urio
relation shares border with
action find_reverse
entity San Piero Patti
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Carate Urio'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'San Piero Patti']]}
SELECT DISTINCT ?a WHERE { { { ?a property:shares_border_with resource:San_Piero_Patti } UNION { ?a property:shares_border_with resource:Carate_Urio } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q493440 Q244142 Q489948 Q491430 Q47344 Q492622 Q47341 Q47335 Q47403 Q493482
SYSTEM
Some of them are Floresta, Brienno, Patti, Raccuja, Torno, Montalbano Elicona, Laglio, Faggeto Lario, Moltrasio, Librizzi
Q491430 Q493440 Q244142 Q47403 Q489948 Q491715 Q47344 Q493482 Q47341 Q47335 Q492622
OR((c(Q15617994),P47,Q244231), (c(Q15617994),P47,Q492980))
action filter_type
action union
action find_reverse
entity Q244231
relation P47
action find_reverse
entity Q492980
relation P47
type Q15617994
[ANSWERS] have an adjacent border with Carate Urio or San Piero Patti
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q244231'], [{'concept': 'Q15617994'}, 'P47', 'Q492980']]}
SELECT DISTINCT ?a WHERE { { { ?a property:P47 resource:Q492980 } UNION { ?a property:P47 resource:Q244231 } } . ?a rdf:type ontology:Q15617994 }
Raccuja Floresta Brienno Moltrasio Patti Sant'Angelo di Brolo Torno Librizzi Laglio Faggeto Lario Montalbano Elicona
Floresta, Brienno, Patti, Raccuja, Torno, Montalbano Elicona, Laglio, Faggeto Lario, Moltrasio and Librizzi have an adjacent border with Carate Urio or San Piero Patti
Floresta Brienno Patti Raccuja Torno Montalbano Elicona Laglio Faggeto Lario Moltrasio Librizzi
action filter_type
action union
action find_reverse
entity Carate Urio
relation shares border with
action find_reverse
entity San Piero Patti
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Carate Urio'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'San Piero Patti']]}
SELECT DISTINCT ?a WHERE { { { ?a property:shares_border_with resource:San_Piero_Patti } UNION { ?a property:shares_border_with resource:Carate_Urio } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q489948
P20
Q502895
USER
Which people have Patti as the location of death ?
(c(Q502895),P20,Q489948)
action filter_type
action find_reverse
entity Q489948
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q489948']
SELECT DISTINCT ?w WHERE { ?w property:P20 resource:Q489948 . ?w rdf:type ontology:Q502895 }
Patti
action filter_type
action find_reverse
entity Patti
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Patti']
SELECT DISTINCT ?w WHERE { ?w property:place_of_death resource:Patti . ?w rdf:type ontology:common_name }
[]
common name
Q51000 Q21899320 Q3961260
SYSTEM
Adelaide del Vasto, Arnau Albertí, Simone Rau e Requesens
Q3876562 Q70134 Q51000 Q3659630 Q3770914 Q3850260 Q21899320 Q3961260 Q3605460 Q3750241
(c(Q502895),P20,Q489948)
action filter_type
action find_reverse
entity Q489948
relation P20
type Q502895
[ANSWERS] have Patti as the location of death
[{'concept': 'Q502895'}, 'P20', 'Q489948']
SELECT DISTINCT ?w WHERE { ?w property:P20 resource:Q489948 . ?w rdf:type ontology:Q502895 }
Nicolò Gatto Markward von Annweiler Adelaide del Vasto Carlo Mineo Giuseppe Maria Maragioglio Martino Orsino Arnau Albertí Simone Rau e Requesens Adolfo Parmaliana Francesco Maria Traina
Adelaide del Vasto, Arnau Albertí and Simone Rau e Requesens have Patti as the location of death
Adelaide del Vasto Arnau Albertí Simone Rau e Requesens
action filter_type
action find_reverse
entity Patti
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Patti']
SELECT DISTINCT ?w WHERE { ?w property:place_of_death resource:Patti . ?w rdf:type ontology:common_name }
[]