Simple Question (Direct)
Simple Question
Q22045
P47
Q15617994
USER
Which administrative territories have a shared border with Armeno ?
(Q22045,P47,c(Q15617994))
action filter_type
action find
entity Q22045
relation P47
type Q15617994
['Q22045', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q22045 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Armeno
action filter_type
action find
entity Armeno
relation shares border with
type designation for an administrative territorial entity
['Armeno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Armeno property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q23662 Q22039 Q22554
SYSTEM
Omegna, Ameno, Pettenasco
Q22554 Q22039 Q22182 Q22493 Q22504 Q23268 Q23662 Q22560 Q22512 Q23582
(Q22045,P47,c(Q15617994))
action filter_type
action find
entity Q22045
relation P47
type Q15617994
[ANSWERS] have a shared border with Armeno
['Q22045', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q22045 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Pettenasco Ameno Colazza Massino Visconti Miasino Brovello-Carpugnino Omegna Pisano Nebbiuno Gignese
Omegna, Ameno and Pettenasco have a shared border with Armeno
Omegna Ameno Pettenasco
action filter_type
action find
entity Armeno
relation shares border with
type designation for an administrative territorial entity
['Armeno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Armeno property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q23662 Q22039 Q22554
P47
Q15617994
USER
Which administrative territories share border with Omegna, Ameno and Pettenasco ?
(c(Q15617994),P47,Q23662) (c(Q15617994),P47,Q22039) (c(Q15617994),P47,Q22554)
action union
action filter_type
action find
entity Q23662
relation P47
type Q15617994
action filter_type
action find
entity Q22039
relation P47
type Q15617994
action filter_type
action find
entity Q22554
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q23662'] [{'concept': 'Q15617994'}, 'P47', 'Q22039'] [{'concept': 'Q15617994'}, 'P47', 'Q22554']
SELECT DISTINCT ?m WHERE { ?g property:P47 ?m . VALUES ( ?g ) { ( resource:Q23662 ) ( resource:Q22039 ) } }
Omegna Ameno Pettenasco
action union
action filter_type
action find
entity Omegna
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Ameno
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Pettenasco
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Omegna'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ameno'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Pettenasco']
SELECT DISTINCT ?m WHERE { ?g property:shares_border_with ?m . VALUES ( ?g ) { ( resource:Omegna ) ( resource:Ameno ) } }
[]
designation for an administrative territorial entity
Q23709 Q23662 Q22045
SYSTEM
Valstrona, Omegna, Armeno
Q22045 Q22554 Q23574 Q23657 Q23590 Q23582 Q23689 Q23686 Q23709 Q23700 Q23296 Q22045 Q22536 Q22504 Q22472 Q22095 Q22182 Q22045 Q22536 Q22504 Q22549 Q23662 Q23657
(c(Q15617994),P47,Q23662) (c(Q15617994),P47,Q22039) (c(Q15617994),P47,Q22554)
action union
action filter_type
action find
entity Q23662
relation P47
type Q15617994
action filter_type
action find
entity Q22039
relation P47
type Q15617994
action filter_type
action find
entity Q22554
relation P47
type Q15617994
[ANSWERS] share border with Omegna, Ameno and Pettenasco
[{'concept': 'Q15617994'}, 'P47', 'Q23662'] [{'concept': 'Q15617994'}, 'P47', 'Q22039'] [{'concept': 'Q15617994'}, 'P47', 'Q22554']
SELECT DISTINCT ?m WHERE { ?g property:P47 ?m . VALUES ( ?g ) { ( resource:Q23662 ) ( resource:Q22039 ) } }
Armeno Pettenasco Germagno Nonio Gravellona Toce Gignese Quarna Sotto Quarna Sopra Valstrona Stresa Casale Corte Cerro Armeno Orta San Giulio Miasino Invorio Bolzano Novarese Colazza Armeno Orta San Giulio Miasino Pella Omegna Nonio
Valstrona, Omegna and Armeno share border with Omegna, Ameno and Pettenasco
Valstrona Omegna Armeno
action union
action filter_type
action find
entity Omegna
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Ameno
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Pettenasco
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Omegna'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ameno'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Pettenasco']
SELECT DISTINCT ?m WHERE { ?g property:shares_border_with ?m . VALUES ( ?g ) { ( resource:Omegna ) ( resource:Ameno ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23709
P17
Q15617994
USER
Which administrative territory is that one present in ?
(Q23709,P17,c(Q15617994))
action filter_type
action find
entity Q23709
relation P17
type Q15617994
['Q23709', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q23709 property:P17 ?s }
Valstrona
action filter_type
action find
entity Valstrona
relation country
type designation for an administrative territorial entity
['Valstrona', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Valstrona property:country ?s }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q22045
SYSTEM
Did you mean Armeno ?
Q23709 Q23662 Q22045
(Q23709,P17,c(Q15617994)) (Q23662,P17,c(Q15617994)) (Q22045,P17,c(Q15617994))
[ANSWER]
['Q23709', 'P17', {'concept': 'Q15617994'}] ['Q23662', 'P17', {'concept': 'Q15617994'}] ['Q22045', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q23709 property:P17 ?s }
Valstrona Omegna Armeno
Did you mean Armeno ?
Armeno
['Valstrona', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Omegna', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Armeno', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Valstrona property:country ?s }
[]
Simple Question (Coreferenced)
USER
No, I meant Valstrona. Could you tell me the answer for that?
(Q23709,P17,c(Q15617994))
Q23709
['Q23709', 'P17', {'concept': 'Q15617994'}]
['Valstrona', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q23709,P17,c(Q15617994))
action filter_type
action find
entity Q23709
relation P17
type Q15617994
That one is in [ANSWER]
['Q23709', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q23709 property:P17 ?s }
Italy
That one is in Italy
Italy
action filter_type
action find
entity Valstrona
relation country
type designation for an administrative territorial entity
['Valstrona', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Valstrona property:country ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23709
P19
Q502895
USER
Which person was born at Valstrona ?
(c(Q502895),P19,Q23709)
action filter_type
action find_reverse
entity Q23709
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q23709']
SELECT DISTINCT ?o WHERE { ?o property:P19 resource:Q23709 . ?o rdf:type ontology:Q502895 }
Valstrona
action filter_type
action find_reverse
entity Valstrona
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Valstrona']
SELECT DISTINCT ?o WHERE { ?o property:place_of_birth resource:Valstrona . ?o rdf:type ontology:common_name }
[]
common name
Q3929059
SYSTEM
Raffaele De Giuli
Q3929059
(c(Q502895),P19,Q23709)
action filter_type
action find_reverse
entity Q23709
relation P19
type Q502895
[ANSWER] was born at Valstrona
[{'concept': 'Q502895'}, 'P19', 'Q23709']
SELECT DISTINCT ?o WHERE { ?o property:P19 resource:Q23709 . ?o rdf:type ontology:Q502895 }
Raffaele De Giuli
Raffaele De Giuli was born at Valstrona
Raffaele De Giuli
action filter_type
action find_reverse
entity Valstrona
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Valstrona']
SELECT DISTINCT ?o WHERE { ?o property:place_of_birth resource:Valstrona . ?o rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q3929059 Q7115174
P27
Q15617994
USER
Is Oxen Park the native country of that person ?
(Q3929059,P27,Q7115174)
action is_in
entity Q7115174
action find
entity Q3929059
relation P27
['Q3929059', 'P27', 'Q7115174']
ASK WHERE { resource:Q3929059 property:P27 resource:Q7115174 }
Raffaele De Giuli Oxen Park
action is_in
entity Oxen Park
action find
entity Raffaele De Giuli
relation country of citizenship
['Raffaele De Giuli', 'country of citizenship', 'Oxen Park']
ASK WHERE { resource:Raffaele_De_Giuli property:country_of_citizenship resource:Oxen_Park }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3929059,P27,Q7115174)
action is_in
entity Q7115174
action find
entity Q3929059
relation P27
[ANSWER]
['Q3929059', 'P27', 'Q7115174']
ASK WHERE { resource:Q3929059 property:P27 resource:Q7115174 }
No
action is_in
entity Oxen Park
action find
entity Raffaele De Giuli
relation country of citizenship
['Raffaele De Giuli', 'country of citizenship', 'Oxen Park']
ASK WHERE { resource:Raffaele_De_Giuli property:country_of_citizenship resource:Oxen_Park }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q222 Q2083840
P530
Q15617994
USER
Does Italy have diplomatic relations with Albania and Pfirschbach ?
(Q38,P530,Q222) (Q38,P530,Q2083840)
action is_in
entity Q38
action intersection
action find_reverse
entity Q222
relation P530
action find_reverse
entity Q2083840
relation P530
['Q38', 'P530', 'Q222'] ['Q38', 'P530', 'Q2083840']
ASK WHERE { resource:Q38 property:P530 resource:Q222 . resource:Q38 property:P530 resource:Q2083840 }
Italy Albania Pfirschbach
action is_in
entity Italy
action intersection
action find_reverse
entity Albania
relation diplomatic relation
action find_reverse
entity Pfirschbach
relation diplomatic relation
['Italy', 'diplomatic relation', 'Albania'] ['Italy', 'diplomatic relation', 'Pfirschbach']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Albania . resource:Italy property:diplomatic_relation resource:Pfirschbach }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q38,P530,Q222) (Q38,P530,Q2083840)
action is_in
entity Q38
action intersection
action find_reverse
entity Q222
relation P530
action find_reverse
entity Q2083840
relation P530
[ANSWER]
['Q38', 'P530', 'Q222'] ['Q38', 'P530', 'Q2083840']
ASK WHERE { resource:Q38 property:P530 resource:Q222 . resource:Q38 property:P530 resource:Q2083840 }
YES and NO respectively
action is_in
entity Italy
action intersection
action find_reverse
entity Albania
relation diplomatic relation
action find_reverse
entity Pfirschbach
relation diplomatic relation
['Italy', 'diplomatic relation', 'Albania'] ['Italy', 'diplomatic relation', 'Pfirschbach']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Albania . resource:Italy property:diplomatic_relation resource:Pfirschbach }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P1001
Q1292279
USER
Which political borders have control over the jurisdiction of Italy ?
action filter_type
action find_reverse
entity Q38
relation P1001
type Q1292279
SELECT DISTINCT ?w WHERE { ?w property:P1001 resource:Q38 . ?w rdf:type ontology:Q1292279 }
Italy
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type political border
SELECT DISTINCT ?w WHERE { ?w property:applies_to_jurisdiction resource:Italy . ?w rdf:type ontology:political_border }
[]
political border
Q1991288 Q1991956 Q17351788
SYSTEM
France–Italy border, Austria–Italy border, Italy–Spain border
Q1991956 Q17351788 Q664063 Q572463 Q17351785 Q17351786 Q17351787 Q17351688 Q17351733 Q1991264 Q2457562 Q17351761 Q17351692 Q17351789 Q1991288
action filter_type
action find_reverse
entity Q38
relation P1001
type Q1292279
[ANSWERS] have control over the jurisdiction of Italy
SELECT DISTINCT ?w WHERE { ?w property:P1001 resource:Q38 . ?w rdf:type ontology:Q1292279 }
Austria–Italy border Italy–Spain border Italy–Switzerland border Italy–Slovenia border Italy–Libya border Italy–Malta border Italy–Montenegro border Albania–Italy border Croatia–Italy border Italy–San Marino border Italy–Vatican City border Greece–Italy border Algeria–Italy border Italy–Tunisia border France–Italy border
France–Italy border, Austria–Italy border and Italy–Spain border have control over the jurisdiction of Italy
France–Italy border Austria–Italy border Italy–Spain border
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type political border
SELECT DISTINCT ?w WHERE { ?w property:applies_to_jurisdiction resource:Italy . ?w rdf:type ontology:political_border }
[]