Simple Question (Direct)
Simple Question
Q1323816
P47
Q20667921
USER
Which french administrative divisions are adjacent to Ségus ?
(Q1323816,P47,c(Q20667921))
action filter_type
action find
entity Q1323816
relation P47
type Q20667921
['Q1323816', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q1323816 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Ségus
action filter_type
action find
entity Ségus
relation shares border with
type type of french administrative division
['Ségus', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Ségus property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q3327 Q972910 Q1323215
SYSTEM
Lourdes, Salles, Saint-Pé-de-Bigorre
Q1325916 Q1323215 Q972910 Q3327 Q132818 Q1326106
(Q1323816,P47,c(Q20667921))
action filter_type
action find
entity Q1323816
relation P47
type Q20667921
[ANSWERS] are adjacent to Ségus
['Q1323816', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q1323816 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Ouzous Saint-Pé-de-Bigorre Salles Lourdes Omex Ossen
Lourdes, Salles and Saint-Pé-de-Bigorre are adjacent to Ségus
Lourdes Salles Saint-Pé-de-Bigorre
action filter_type
action find
entity Ségus
relation shares border with
type type of french administrative division
['Ségus', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Ségus property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1323215
P36
Q20667921
USER
Which french administrative division has that one as its capital ?
(c(Q20667921),P36,Q1323215)
action filter_type
action find_reverse
entity Q1323215
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q1323215']
SELECT DISTINCT ?b WHERE { ?b property:P36 resource:Q1323215 . ?b rdf:type ontology:Q20667921 }
Saint-Pé-de-Bigorre
action filter_type
action find_reverse
entity Saint-Pé-de-Bigorre
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Saint-Pé-de-Bigorre']
SELECT DISTINCT ?b WHERE { ?b property:capital resource:Saint-Pé-de-Bigorre . ?b rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q972910
SYSTEM
Did you mean Salles ?
Q3327 Q972910 Q1323215
(c(Q20667921),P36,Q3327) (c(Q20667921),P36,Q972910) (c(Q20667921),P36,Q1323215)
[ANSWER]
[{'concept': 'Q20667921'}, 'P36', 'Q3327'] [{'concept': 'Q20667921'}, 'P36', 'Q972910'] [{'concept': 'Q20667921'}, 'P36', 'Q1323215']
SELECT DISTINCT ?b WHERE { ?b property:P36 resource:Q1323215 . ?b rdf:type ontology:Q20667921 }
Lourdes Salles Saint-Pé-de-Bigorre
Did you mean Salles ?
Salles
[{'concept': 'type of french administrative division'}, 'capital', 'Lourdes'] [{'concept': 'type of french administrative division'}, 'capital', 'Salles'] [{'concept': 'type of french administrative division'}, 'capital', 'Saint-Pé-de-Bigorre']
SELECT DISTINCT ?b WHERE { ?b property:capital resource:Saint-Pé-de-Bigorre . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
No, I meant Saint-Pé-de-Bigorre. Could you tell me the answer for that?
(c(Q20667921),P36,Q1323215)
Q1323215
[{'concept': 'Q20667921'}, 'P36', 'Q1323215']
[{'concept': 'type of french administrative division'}, 'capital', 'Saint-Pé-de-Bigorre']
[]
Q742120
SYSTEM
canton of Saint-Pé-de-Bigorre
Q742120
(c(Q20667921),P36,Q1323215)
action filter_type
action find_reverse
entity Q1323215
relation P36
type Q20667921
The [ANSWER] has that one as its capital
[{'concept': 'Q20667921'}, 'P36', 'Q1323215']
SELECT DISTINCT ?b WHERE { ?b property:P36 resource:Q1323215 . ?b rdf:type ontology:Q20667921 }
canton of Saint-Pé-de-Bigorre
The canton of Saint-Pé-de-Bigorre has that one as its capital
canton of Saint-Pé-de-Bigorre
action filter_type
action find_reverse
entity Saint-Pé-de-Bigorre
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Saint-Pé-de-Bigorre']
SELECT DISTINCT ?b WHERE { ?b property:capital resource:Saint-Pé-de-Bigorre . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q742120 Q18088
P17
Q15617994
USER
Is that french administrative division situated in Mottalciata ?
(Q742120,P17,Q18088)
action is_in
entity Q18088
action find
entity Q742120
relation P17
['Q742120', 'P17', 'Q18088']
ASK WHERE { resource:Q742120 property:P17 resource:Q18088 }
canton of Saint-Pé-de-Bigorre Mottalciata
action is_in
entity Mottalciata
action find
entity canton of Saint-Pé-de-Bigorre
relation country
['canton of Saint-Pé-de-Bigorre', 'country', 'Mottalciata']
ASK WHERE { resource:canton_of_Saint-Pé-de-Bigorre property:country resource:Mottalciata }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q742120,P17,Q18088)
action is_in
entity Q18088
action find
entity Q742120
relation P17
[ANSWER]
['Q742120', 'P17', 'Q18088']
ASK WHERE { resource:Q742120 property:P17 resource:Q18088 }
No
action is_in
entity Mottalciata
action find
entity canton of Saint-Pé-de-Bigorre
relation country
['canton of Saint-Pé-de-Bigorre', 'country', 'Mottalciata']
ASK WHERE { resource:canton_of_Saint-Pé-de-Bigorre property:country resource:Mottalciata }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q742120
P1376
Q20667921
USER
How many french administrative divisions are the capital of canton of Saint-Pé-de-Bigorre ?
(c(Q20667921),P1376,Q742120)
action count
action filter_type
action find_reverse
entity Q742120
relation P1376
type Q20667921
[{'concept': 'Q20667921'}, 'P1376', 'Q742120']
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { ?q property:P1376 resource:Q742120 . ?q rdf:type ontology:Q20667921 }
canton of Saint-Pé-de-Bigorre
action count
action filter_type
action find_reverse
entity canton of Saint-Pé-de-Bigorre
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Saint-Pé-de-Bigorre']
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { ?q property:capital_of resource:canton_of_Saint-Pé-de-Bigorre . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
1
Q1323215
(c(Q20667921),P1376,Q742120)
action count
action filter_type
action find_reverse
entity Q742120
relation P1376
type Q20667921
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', 'Q742120']
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { ?q property:P1376 resource:Q742120 . ?q rdf:type ontology:Q20667921 }
Saint-Pé-de-Bigorre
1
action count
action filter_type
action find_reverse
entity canton of Saint-Pé-de-Bigorre
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Saint-Pé-de-Bigorre']
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { ?q property:capital_of resource:canton_of_Saint-Pé-de-Bigorre . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1726305
P36
Q20667921
USER
Which french administrative division is known as the capital of canton of Montesquieu-Volvestre ?
(Q1726305,P36,c(Q20667921))
action filter_type
action find
entity Q1726305
relation P36
type Q20667921
['Q1726305', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q20667921 . resource:Q1726305 property:P36 ?j }
canton of Montesquieu-Volvestre
action filter_type
action find
entity canton of Montesquieu-Volvestre
relation capital
type type of french administrative division
['canton of Montesquieu-Volvestre', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:type_of_french_administrative_division . resource:canton_of_Montesquieu-Volvestre property:capital ?j }
[]
type of french administrative division
Q1152867
SYSTEM
Montesquieu-Volvestre
Q1152867
(Q1726305,P36,c(Q20667921))
action filter_type
action find
entity Q1726305
relation P36
type Q20667921
[ANSWER] is known as the capital of canton of [ANSWER]
['Q1726305', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q20667921 . resource:Q1726305 property:P36 ?j }
Montesquieu-Volvestre
Montesquieu-Volvestre is known as the capital of canton of Montesquieu-Volvestre
Montesquieu-Volvestre
action filter_type
action find
entity canton of Montesquieu-Volvestre
relation capital
type type of french administrative division
['canton of Montesquieu-Volvestre', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:type_of_french_administrative_division . resource:canton_of_Montesquieu-Volvestre property:capital ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1152867
P1376
Q20667921
USER
Which french administrative division has that one as its county seat ?
(Q1152867,P1376,c(Q20667921))
action filter_type
action find
entity Q1152867
relation P1376
type Q20667921
['Q1152867', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { resource:Q1152867 property:P1376 ?r . ?r rdf:type ontology:Q20667921 }
Montesquieu-Volvestre
action filter_type
action find
entity Montesquieu-Volvestre
relation capital of
type type of french administrative division
['Montesquieu-Volvestre', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { resource:Montesquieu-Volvestre property:capital_of ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1726305
SYSTEM
canton of Montesquieu-Volvestre
Q1726305
(Q1152867,P1376,c(Q20667921))
action filter_type
action find
entity Q1152867
relation P1376
type Q20667921
The [ANSWER] has that one as its county seat
['Q1152867', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { resource:Q1152867 property:P1376 ?r . ?r rdf:type ontology:Q20667921 }
canton of Montesquieu-Volvestre
The canton of Montesquieu-Volvestre has that one as its county seat
canton of Montesquieu-Volvestre
action filter_type
action find
entity Montesquieu-Volvestre
relation capital of
type type of french administrative division
['Montesquieu-Volvestre', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { resource:Montesquieu-Volvestre property:capital_of ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1726305 Q142
P17
Q15617994
USER
Is that french administrative division situated in France ?
(Q1726305,P17,Q142)
action is_in
entity Q142
action find
entity Q1726305
relation P17
['Q1726305', 'P17', 'Q142']
ASK WHERE { resource:Q1726305 property:P17 resource:Q142 }
canton of Montesquieu-Volvestre France
action is_in
entity France
action find
entity canton of Montesquieu-Volvestre
relation country
['canton of Montesquieu-Volvestre', 'country', 'France']
ASK WHERE { resource:canton_of_Montesquieu-Volvestre property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1726305,P17,Q142)
action is_in
entity Q142
action find
entity Q1726305
relation P17
[ANSWER]
['Q1726305', 'P17', 'Q142']
ASK WHERE { resource:Q1726305 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity canton of Montesquieu-Volvestre
relation country
['canton of Montesquieu-Volvestre', 'country', 'France']
ASK WHERE { resource:canton_of_Montesquieu-Volvestre property:country resource:France }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q175189 Q1323215
P47
Q20667921
USER
Which french administrative divisions are bordered by Saint-Pé-de-Bigorre or Mouzens ?
OR((Q1323215,P47,c(Q20667921)), (Q175189,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q1323215
relation P47
action find
entity Q175189
relation P47
type Q20667921
{'OR': [['Q1323215', 'P47', {'concept': 'Q20667921'}], ['Q175189', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q1323215 property:P47 ?d } UNION { resource:Q175189 property:P47 ?d } } . ?d rdf:type ontology:Q20667921 }
Mouzens Saint-Pé-de-Bigorre
action filter_type
action union
action find
entity Saint-Pé-de-Bigorre
relation shares border with
action find
entity Mouzens
relation shares border with
type type of french administrative division
{'OR': [['Saint-Pé-de-Bigorre', 'shares border with', {'concept': 'type of french administrative division'}], ['Mouzens', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Saint-Pé-de-Bigorre property:shares_border_with ?d } UNION { resource:Mouzens property:shares_border_with ?d } } . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1076504 Q132818 Q174434 Q1328653 Q1323816 Q645112 Q196565 Q972910 Q3327 Q671281
SYSTEM
Some of them are Marnac, Omex, Asson, Peyrouse, Ségus, Lestelle-Bétharram, Berbiguières, Salles, Lourdes, Montaut
Q865476 Q174434 Q1328653 Q1323816 Q645112 Q196565 Q972910 Q671281 Q1076504 Q3327 Q21979646 Q132818
OR((Q1323215,P47,c(Q20667921)), (Q175189,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q1323215
relation P47
action find
entity Q175189
relation P47
type Q20667921
[ANSWERS] are bordered by Saint-Pé-de-Bigorre or Mouzens
{'OR': [['Q1323215', 'P47', {'concept': 'Q20667921'}], ['Q175189', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q1323215 property:P47 ?d } UNION { resource:Q175189 property:P47 ?d } } . ?d rdf:type ontology:Q20667921 }
Campagne Asson Peyrouse Ségus Lestelle-Bétharram Berbiguières Salles Montaut Marnac Lourdes Coux-et-Bigaroque-Mouzens Omex
Marnac, Omex, Asson, Peyrouse, Ségus, Lestelle-Bétharram, Berbiguières, Salles, Lourdes and Montaut are bordered by Saint-Pé-de-Bigorre or Mouzens
Marnac Omex Asson Peyrouse Ségus Lestelle-Bétharram Berbiguières Salles Lourdes Montaut
action filter_type
action union
action find
entity Saint-Pé-de-Bigorre
relation shares border with
action find
entity Mouzens
relation shares border with
type type of french administrative division
{'OR': [['Saint-Pé-de-Bigorre', 'shares border with', {'concept': 'type of french administrative division'}], ['Mouzens', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Saint-Pé-de-Bigorre property:shares_border_with ?d } UNION { resource:Mouzens property:shares_border_with ?d } } . ?d rdf:type ontology:type_of_french_administrative_division }
[]