Simple Question (Direct)
Simple Question
Q270155
P17
Q15617994
USER
Which administrative territory does Follo, Liguria belong to ?
(Q270155,P17,c(Q15617994))
action filter_type
action find
entity Q270155
relation P17
type Q15617994
['Q270155', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q270155 property:P17 ?i }
Follo, Liguria
action filter_type
action find
entity Follo, Liguria
relation country
type designation for an administrative territorial entity
['Follo, Liguria', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Follo,_Liguria property:country ?i }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q270155,P17,c(Q15617994))
action filter_type
action find
entity Q270155
relation P17
type Q15617994
Follo , Liguria belongs to Southern [ANSWER]
['Q270155', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q270155 property:P17 ?i }
Italy
Follo , Liguria belongs to Southern Italy
Italy
action filter_type
action find
entity Follo, Liguria
relation country
type designation for an administrative territorial entity
['Follo, Liguria', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Follo,_Liguria property:country ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q270155
P47
Q15617994
USER
Which administrative territories share border with Follo, Liguria ?
(Q270155,P47,c(Q15617994))
action filter_type
action find
entity Q270155
relation P47
type Q15617994
['Q270155', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q270155 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
Follo, Liguria
action filter_type
action find
entity Follo, Liguria
relation shares border with
type designation for an administrative territorial entity
['Follo, Liguria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Follo,_Liguria property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q8611 Q269978 Q270362
SYSTEM
La Spezia, Beverino, Vezzano Ligure
Q8611 Q270362 Q270064 Q52239 Q270000 Q269978
(Q270155,P47,c(Q15617994))
action filter_type
action find
entity Q270155
relation P47
type Q15617994
[ANSWERS] share border with Follo, Liguria
['Q270155', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q270155 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
La Spezia Vezzano Ligure Calice al Cornoviglio Podenzana Bolano Beverino
La Spezia, Beverino and Vezzano Ligure share border with Follo, Liguria
La Spezia Beverino Vezzano Ligure
action filter_type
action find
entity Follo, Liguria
relation shares border with
type designation for an administrative territorial entity
['Follo, Liguria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Follo,_Liguria property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q270155
Q56061
USER
And which administrative territory?
(Q270155,P47,c(Q56061))
action filter_type
action find
entity Q270155
relation P47
type Q56061
['Q270155', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q270155 property:P47 ?w . ?w rdf:type ontology:Q56061 }
Follo, Liguria
action filter_type
action find
entity Follo, Liguria
relation shares border with
type administrative territorial entity
['Follo, Liguria', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Follo,_Liguria property:shares_border_with ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270288
SYSTEM
Riccò del Golfo di Spezia
Q270288
(Q270155,P47,c(Q56061))
action filter_type
action find
entity Q270155
relation P47
type Q56061
[ANSWER]
['Q270155', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q270155 property:P47 ?w . ?w rdf:type ontology:Q56061 }
Riccò del Golfo di Spezia
Riccò del Golfo di Spezia
action filter_type
action find
entity Follo, Liguria
relation shares border with
type administrative territorial entity
['Follo, Liguria', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Follo,_Liguria property:shares_border_with ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6655 Q270288
P47 P421
Q56061
USER
Which administrative territories are bordered by Riccò del Golfo di Spezia and have UTC+01:00 as their time zone ?
AND((c(Q56061),P47,Q270288), (c(Q56061),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q270288
relation P47
action find_reverse
entity Q6655
relation P421
type Q56061
{'AND': [[{'concept': 'Q56061'}, 'P47', 'Q270288'], [{'concept': 'Q56061'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?y WHERE { ?y property:P47 resource:Q270288 . ?y property:P421 resource:Q6655 . ?y rdf:type ontology:Q56061 }
UTC+01:00 Riccò del Golfo di Spezia
action filter_type
action intersection
action find_reverse
entity Riccò del Golfo di Spezia
relation shares border with
action find_reverse
entity UTC+01:00
relation located in time zone
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'shares border with', 'Riccò del Golfo di Spezia'], [{'concept': 'administrative territorial entity'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?y WHERE { ?y property:shares_border_with resource:Riccò_del_Golfo_di_Spezia . ?y property:located_in_time_zone resource:UTC+01:00 . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270155
SYSTEM
Follo, Liguria
Q270155
AND((c(Q56061),P47,Q270288), (c(Q56061),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q270288
relation P47
action find_reverse
entity Q6655
relation P421
type Q56061
[ANSWER] is bordered by Riccò del Golfo di Spezia and have UTC+01:00 as their time zone
{'AND': [[{'concept': 'Q56061'}, 'P47', 'Q270288'], [{'concept': 'Q56061'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?y WHERE { ?y property:P47 resource:Q270288 . ?y property:P421 resource:Q6655 . ?y rdf:type ontology:Q56061 }
Follo, Liguria
Follo, Liguria is bordered by Riccò del Golfo di Spezia and have UTC+01:00 as their time zone
Follo, Liguria
action filter_type
action intersection
action find_reverse
entity Riccò del Golfo di Spezia
relation shares border with
action find_reverse
entity UTC+01:00
relation located in time zone
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'shares border with', 'Riccò del Golfo di Spezia'], [{'concept': 'administrative territorial entity'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?y WHERE { ?y property:shares_border_with resource:Riccò_del_Golfo_di_Spezia . ?y property:located_in_time_zone resource:UTC+01:00 . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1372427 Q270288
P19 P17
Q15617994
USER
Which administrative territories are Riccò del Golfo di Spezia located in or were Eugen Confeld von Felbert born in ?
OR((Q270288,P17,c(Q15617994)), (Q1372427,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q270288
relation P17
action find
entity Q1372427
relation P19
type Q15617994
{'OR': [['Q270288', 'P17', {'concept': 'Q15617994'}], ['Q1372427', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q270288 property:P17 ?p } UNION { resource:Q1372427 property:P19 ?p } } . ?p rdf:type ontology:Q15617994 }
Eugen Confeld von Felbert Riccò del Golfo di Spezia
action filter_type
action union
action find
entity Riccò del Golfo di Spezia
relation country
action find
entity Eugen Confeld von Felbert
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Riccò del Golfo di Spezia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Eugen Confeld von Felbert', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Riccò_del_Golfo_di_Spezia property:country ?p } UNION { resource:Eugen_Confeld_von_Felbert property:place_of_birth ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q2805
SYSTEM
Italy, Krefeld
Q38 Q2805
OR((Q270288,P17,c(Q15617994)), (Q1372427,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q270288
relation P17
action find
entity Q1372427
relation P19
type Q15617994
Riccò del Golfo di Spezia are located in born in the [ANSWERS]
{'OR': [['Q270288', 'P17', {'concept': 'Q15617994'}], ['Q1372427', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q270288 property:P17 ?p } UNION { resource:Q1372427 property:P19 ?p } } . ?p rdf:type ontology:Q15617994 }
Italy Krefeld
Riccò del Golfo di Spezia are located in born in the Italy and Krefeld
Italy Krefeld
action filter_type
action union
action find
entity Riccò del Golfo di Spezia
relation country
action find
entity Eugen Confeld von Felbert
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Riccò del Golfo di Spezia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Eugen Confeld von Felbert', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Riccò_del_Golfo_di_Spezia property:country ?p } UNION { resource:Eugen_Confeld_von_Felbert property:place_of_birth ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q2805
P47
Q15617994
USER
Which administrative territories are adjacent to Italy and Krefeld ?
(Q38,P47,c(Q15617994)) (Q2805,P47,c(Q15617994))
action union
action filter_type
action find
entity Q38
relation P47
type Q15617994
action filter_type
action find
entity Q2805
relation P47
type Q15617994
['Q38', 'P47', {'concept': 'Q15617994'}] ['Q2805', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { resource:Q38 property:P47 ?g . ?g rdf:type ontology:Q15617994 } UNION { resource:Q2805 property:P47 ?g . ?g rdf:type ontology:Q15617994 } }
Italy Krefeld
action union
action filter_type
action find
entity Italy
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Krefeld
relation shares border with
type designation for an administrative territorial entity
['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Krefeld', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { resource:Italy property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Krefeld property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q142 Q39 Q215
SYSTEM
France, Switzerland, Slovenia
Q142 Q215 Q238 Q39 Q4105
(Q38,P47,c(Q15617994)) (Q2805,P47,c(Q15617994))
action union
action filter_type
action find
entity Q38
relation P47
type Q15617994
action filter_type
action find
entity Q2805
relation P47
type Q15617994
[ANSWERS] are adjacent to Italy and Krefeld
['Q38', 'P47', {'concept': 'Q15617994'}] ['Q2805', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { resource:Q38 property:P47 ?g . ?g rdf:type ontology:Q15617994 } UNION { resource:Q2805 property:P47 ?g . ?g rdf:type ontology:Q15617994 } }
France Slovenia San Marino Switzerland Meerbusch
France, Switzerland and Slovenia are adjacent to Italy and Krefeld
France Switzerland Slovenia
action union
action filter_type
action find
entity Italy
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Krefeld
relation shares border with
type designation for an administrative territorial entity
['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Krefeld', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { resource:Italy property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Krefeld property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q39
P137
Q41176
USER
Which building can be described as facility operator of that administrative territory ?
(c(Q41176),P137,Q39)
action filter_type
action find_reverse
entity Q39
relation P137
type Q41176
[{'concept': 'Q41176'}, 'P137', 'Q39']
SELECT DISTINCT ?b WHERE { ?b property:P137 resource:Q39 . ?b rdf:type ontology:Q41176 }
Switzerland
action filter_type
action find_reverse
entity Switzerland
relation operator
type building
[{'concept': 'building'}, 'operator', 'Switzerland']
SELECT DISTINCT ?b WHERE { ?b property:operator resource:Switzerland . ?b rdf:type ontology:building }
[]
building
Clarification for simple ques.
Q215
SYSTEM
Did you mean Slovenia ?
Q142 Q39 Q215
(c(Q41176),P137,Q142) (c(Q41176),P137,Q39) (c(Q41176),P137,Q215)
[ANSWER]
[{'concept': 'Q41176'}, 'P137', 'Q142'] [{'concept': 'Q41176'}, 'P137', 'Q39'] [{'concept': 'Q41176'}, 'P137', 'Q215']
SELECT DISTINCT ?b WHERE { ?b property:P137 resource:Q39 . ?b rdf:type ontology:Q41176 }
France Switzerland Slovenia
Did you mean Slovenia ?
Slovenia
[{'concept': 'building'}, 'operator', 'France'] [{'concept': 'building'}, 'operator', 'Switzerland'] [{'concept': 'building'}, 'operator', 'Slovenia']
SELECT DISTINCT ?b WHERE { ?b property:operator resource:Switzerland . ?b rdf:type ontology:building }
[]
Simple Question (Coreferenced)
USER
No, I meant Switzerland. Could you tell me the answer for that?
(c(Q41176),P137,Q39)
Q39
[{'concept': 'Q41176'}, 'P137', 'Q39']
[{'concept': 'building'}, 'operator', 'Switzerland']
[]
Q894830
SYSTEM
Embassy of Switzerland, Bonn
Q894830
(c(Q41176),P137,Q39)
action filter_type
action find_reverse
entity Q39
relation P137
type Q41176
[ANSWER] can be described as facility operator of that administrative territory
[{'concept': 'Q41176'}, 'P137', 'Q39']
SELECT DISTINCT ?b WHERE { ?b property:P137 resource:Q39 . ?b rdf:type ontology:Q41176 }
Embassy of Switzerland, Bonn
Embassy of Switzerland, Bonn can be described as facility operator of that administrative territory
Embassy of Switzerland, Bonn
action filter_type
action find_reverse
entity Switzerland
relation operator
type building
[{'concept': 'building'}, 'operator', 'Switzerland']
SELECT DISTINCT ?b WHERE { ?b property:operator resource:Switzerland . ?b rdf:type ontology:building }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q894830 Q1769126 Q183
P17
Q1048835
USER
Is that building present in Cernadilla and Germany ?
(Q894830,P17,Q1769126) (Q894830,P17,Q183)
action is_in
entity Q894830
action intersection
action find_reverse
entity Q1769126
relation P17
action find_reverse
entity Q183
relation P17
['Q894830', 'P17', 'Q1769126'] ['Q894830', 'P17', 'Q183']
ASK WHERE { resource:Q894830 property:P17 resource:Q1769126 . resource:Q894830 property:P17 resource:Q183 }
Embassy of Switzerland, Bonn Cernadilla Germany
action is_in
entity Embassy of Switzerland, Bonn
action intersection
action find_reverse
entity Cernadilla
relation country
action find_reverse
entity Germany
relation country
['Embassy of Switzerland, Bonn', 'country', 'Cernadilla'] ['Embassy of Switzerland, Bonn', 'country', 'Germany']
ASK WHERE { resource:Embassy_of_Switzerland,_Bonn property:country resource:Cernadilla . resource:Embassy_of_Switzerland,_Bonn property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q894830,P17,Q1769126) (Q894830,P17,Q183)
action is_in
entity Q894830
action intersection
action find_reverse
entity Q1769126
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q894830', 'P17', 'Q1769126'] ['Q894830', 'P17', 'Q183']
ASK WHERE { resource:Q894830 property:P17 resource:Q1769126 . resource:Q894830 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity Embassy of Switzerland, Bonn
action intersection
action find_reverse
entity Cernadilla
relation country
action find_reverse
entity Germany
relation country
['Embassy of Switzerland, Bonn', 'country', 'Cernadilla'] ['Embassy of Switzerland, Bonn', 'country', 'Germany']
ASK WHERE { resource:Embassy_of_Switzerland,_Bonn property:country resource:Cernadilla . resource:Embassy_of_Switzerland,_Bonn property:country resource:Germany }
[]