Simple Question (Direct)
Simple Question
Q69041
P47
Q15617994
USER
Which administrative territories have a shared border with Mendrisio ?
(Q69041,P47,c(Q15617994))
action filter_type
action find
entity Q69041
relation P47
type Q15617994
['Q69041', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q69041 property:P47 ?e . ?e rdf:type ontology:Q15617994 }
Mendrisio
action filter_type
action find
entity Mendrisio
relation shares border with
type designation for an administrative territorial entity
['Mendrisio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Mendrisio property:shares_border_with ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q41041 Q244120 Q39216
SYSTEM
Viggiù, Bizzarone, Porto Ceresio
Q39916 Q40810 Q244120 Q39895 Q41041 Q39216
(Q69041,P47,c(Q15617994))
action filter_type
action find
entity Q69041
relation P47
type Q15617994
[ANSWERS] have a shared border with Mendrisio
['Q69041', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q69041 property:P47 ?e . ?e rdf:type ontology:Q15617994 }
Saltrio Besano Bizzarone Clivio Viggiù Porto Ceresio
Viggiù, Bizzarone and Porto Ceresio have a shared border with Mendrisio
Viggiù Bizzarone Porto Ceresio
action filter_type
action find
entity Mendrisio
relation shares border with
type designation for an administrative territorial entity
['Mendrisio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Mendrisio property:shares_border_with ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q244120
P19
Q502895
USER
Who was born at that administrative territory ?
(c(Q502895),P19,Q244120)
action filter_type
action find_reverse
entity Q244120
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q244120']
SELECT DISTINCT ?a WHERE { ?a property:P19 resource:Q244120 . ?a rdf:type ontology:Q502895 }
Bizzarone
action filter_type
action find_reverse
entity Bizzarone
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bizzarone']
SELECT DISTINCT ?a WHERE { ?a property:place_of_birth resource:Bizzarone . ?a rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q41041
SYSTEM
Did you mean Viggiù ?
Q41041 Q244120 Q39216
(c(Q502895),P19,Q41041) (c(Q502895),P19,Q244120) (c(Q502895),P19,Q39216)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q41041'] [{'concept': 'Q502895'}, 'P19', 'Q244120'] [{'concept': 'Q502895'}, 'P19', 'Q39216']
SELECT DISTINCT ?a WHERE { ?a property:P19 resource:Q244120 . ?a rdf:type ontology:Q502895 }
Viggiù Bizzarone Porto Ceresio
Did you mean Viggiù ?
Viggiù
[{'concept': 'common name'}, 'place of birth', 'Viggiù'] [{'concept': 'common name'}, 'place of birth', 'Bizzarone'] [{'concept': 'common name'}, 'place of birth', 'Porto Ceresio']
SELECT DISTINCT ?a WHERE { ?a property:place_of_birth resource:Bizzarone . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Bizzarone. Could you tell me the answer for that?
(c(Q502895),P19,Q244120)
Q244120
[{'concept': 'Q502895'}, 'P19', 'Q244120']
[{'concept': 'common name'}, 'place of birth', 'Bizzarone']
[]
Q3629275
SYSTEM
Attilio Papis
Q3629275
(c(Q502895),P19,Q244120)
action filter_type
action find_reverse
entity Q244120
relation P19
type Q502895
[ANSWER] was born at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q244120']
SELECT DISTINCT ?a WHERE { ?a property:P19 resource:Q244120 . ?a rdf:type ontology:Q502895 }
Attilio Papis
Attilio Papis was born at that administrative territory
Attilio Papis
action filter_type
action find_reverse
entity Bizzarone
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bizzarone']
SELECT DISTINCT ?a WHERE { ?a property:place_of_birth resource:Bizzarone . ?a rdf:type ontology:common_name }
[]