Simple Question (Direct)
Simple Question
Q1077989
P47
Q20667921
USER
Which french administrative divisions are adjacent to Bion ?
(Q1077989,P47,c(Q20667921))
action filter_type
action find
entity Q1077989
relation P47
type Q20667921
['Q1077989', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q20667921 . resource:Q1077989 property:P47 ?a }
Bion
action filter_type
action find
entity Bion
relation shares border with
type type of french administrative division
['Bion', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_french_administrative_division . resource:Bion property:shares_border_with ?a }
[]
type of french administrative division
Q21979868 Q1103491 Q530999
SYSTEM
Romagny-Fontenay, Saint-Clément-Rancoudray, Notre-Dame-du-Touchet
Q325187 Q1103491 Q21979878 Q21979868 Q530999 Q1062776
(Q1077989,P47,c(Q20667921))
action filter_type
action find
entity Q1077989
relation P47
type Q20667921
Of [ANSWERS] are adjacent to Bion
['Q1077989', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q20667921 . resource:Q1077989 property:P47 ?a }
Mortain Saint-Clément-Rancoudray Mortain-Bocage Romagny-Fontenay Notre-Dame-du-Touchet Saint-Jean-du-Corail
Of Romagny-Fontenay, Saint-Clément-Rancoudray and Notre-Dame-du-Touchet are adjacent to Bion
Romagny-Fontenay Saint-Clément-Rancoudray Notre-Dame-du-Touchet
action filter_type
action find
entity Bion
relation shares border with
type type of french administrative division
['Bion', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_french_administrative_division . resource:Bion property:shares_border_with ?a }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q21979868 Q1103491 Q530999
P47
Q20667921
USER
Which french administrative divisions share border with Romagny-Fontenay, Saint-Clément-Rancoudray and Notre-Dame-du-Touchet ?
(c(Q20667921),P47,Q21979868) (c(Q20667921),P47,Q1103491) (c(Q20667921),P47,Q530999)
action union
action filter_type
action find
entity Q21979868
relation P47
type Q20667921
action filter_type
action find
entity Q1103491
relation P47
type Q20667921
action filter_type
action find
entity Q530999
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q21979868'] [{'concept': 'Q20667921'}, 'P47', 'Q1103491'] [{'concept': 'Q20667921'}, 'P47', 'Q530999']
SELECT DISTINCT ?t WHERE { VALUES ( ?p ) { ( resource:Q21979868 ) ( resource:Q1103491 ) } . ?p property:P47 ?t }
Romagny-Fontenay Saint-Clément-Rancoudray Notre-Dame-du-Touchet
action union
action filter_type
action find
entity Romagny-Fontenay
relation shares border with
type type of french administrative division
action filter_type
action find
entity Saint-Clément-Rancoudray
relation shares border with
type type of french administrative division
action filter_type
action find
entity Notre-Dame-du-Touchet
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Romagny-Fontenay'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Clément-Rancoudray'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Notre-Dame-du-Touchet']
SELECT DISTINCT ?t WHERE { VALUES ( ?p ) { ( resource:Romagny-Fontenay ) ( resource:Saint-Clément-Rancoudray ) } . ?p property:shares_border_with ?t }
[]
type of french administrative division
Q635135 Q629791 Q21979868
SYSTEM
Le Teilleul, Sourdeval, Romagny-Fontenay
Q1001153 Q1102903 Q530999 Q680572 Q1063697 Q1063683 Q1063724 Q630205 Q1077989 Q1103124 Q1103514 Q21979878 Q680572 Q1071592 Q629791 Q685416 Q630205 Q1062776 Q1077989 Q21979878 Q1001315 Q1102903 Q1071457 Q627245 Q635135 Q1062776 Q1077989 Q21979868 Q1063564
(c(Q20667921),P47,Q21979868) (c(Q20667921),P47,Q1103491) (c(Q20667921),P47,Q530999)
action union
action filter_type
action find
entity Q21979868
relation P47
type Q20667921
action filter_type
action find
entity Q1103491
relation P47
type Q20667921
action filter_type
action find
entity Q530999
relation P47
type Q20667921
[ANSWERS] share border with Romagny-Fontenay, Saint-Clément-Rancoudray and Notre-Dame-du-Touchet
[{'concept': 'Q20667921'}, 'P47', 'Q21979868'] [{'concept': 'Q20667921'}, 'P47', 'Q1103491'] [{'concept': 'Q20667921'}, 'P47', 'Q530999']
SELECT DISTINCT ?t WHERE { VALUES ( ?p ) { ( resource:Q21979868 ) ( resource:Q1103491 ) } . ?p property:P47 ?t }
Fontenay Villechien Notre-Dame-du-Touchet Saint-Barthélemy Bellefontaine Juvigny-le-Tertre La Bazoge Le Neufbourg Bion Le Mesnil-Rainfray Milly Mortain-Bocage Saint-Barthélemy Chérencé-le-Roussel Sourdeval Ger Le Neufbourg Saint-Jean-du-Corail Bion Mortain-Bocage Barenton Villechien Ferrières Saint-Symphorien-des-Monts Le Teilleul Saint-Jean-du-Corail Bion Romagny-Fontenay Husson
Le Teilleul, Sourdeval and Romagny-Fontenay share border with Romagny-Fontenay, Saint-Clément-Rancoudray and Notre-Dame-du-Touchet
Le Teilleul Sourdeval Romagny-Fontenay
action union
action filter_type
action find
entity Romagny-Fontenay
relation shares border with
type type of french administrative division
action filter_type
action find
entity Saint-Clément-Rancoudray
relation shares border with
type type of french administrative division
action filter_type
action find
entity Notre-Dame-du-Touchet
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Romagny-Fontenay'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Clément-Rancoudray'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Notre-Dame-du-Touchet']
SELECT DISTINCT ?t WHERE { VALUES ( ?p ) { ( resource:Romagny-Fontenay ) ( resource:Saint-Clément-Rancoudray ) } . ?p property:shares_border_with ?t }
[]
Clarification
Simple Question|Single Entity|Indirect
Q635135
P1376
Q20667921
USER
Which french administrative division has that one as its county seat ?
(Q635135,P1376,c(Q20667921))
action filter_type
action find
entity Q635135
relation P1376
type Q20667921
['Q635135', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { resource:Q635135 property:P1376 ?x . ?x rdf:type ontology:Q20667921 }
Le Teilleul
action filter_type
action find
entity Le Teilleul
relation capital of
type type of french administrative division
['Le Teilleul', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { resource:Le_Teilleul property:capital_of ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q629791
SYSTEM
Did you mean Sourdeval ?
Q635135 Q629791 Q21979868
(Q635135,P1376,c(Q20667921)) (Q629791,P1376,c(Q20667921)) (Q21979868,P1376,c(Q20667921))
[ANSWER]
['Q635135', 'P1376', {'concept': 'Q20667921'}] ['Q629791', 'P1376', {'concept': 'Q20667921'}] ['Q21979868', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { resource:Q635135 property:P1376 ?x . ?x rdf:type ontology:Q20667921 }
Le Teilleul Sourdeval Romagny-Fontenay
Did you mean Sourdeval ?
Sourdeval
['Le Teilleul', 'capital of', {'concept': 'type of french administrative division'}] ['Sourdeval', 'capital of', {'concept': 'type of french administrative division'}] ['Romagny-Fontenay', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { resource:Le_Teilleul property:capital_of ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
No, I meant Le Teilleul. Could you tell me the answer for that?
(Q635135,P1376,c(Q20667921))
Q635135
['Q635135', 'P1376', {'concept': 'Q20667921'}]
['Le Teilleul', 'capital of', {'concept': 'type of french administrative division'}]
[]
Q628231
SYSTEM
canton of Le Teilleul
Q628231
(Q635135,P1376,c(Q20667921))
action filter_type
action find
entity Q635135
relation P1376
type Q20667921
The [ANSWER] has that one as its county seat
['Q635135', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { resource:Q635135 property:P1376 ?x . ?x rdf:type ontology:Q20667921 }
canton of Le Teilleul
The canton of Le Teilleul has that one as its county seat
canton of Le Teilleul
action filter_type
action find
entity Le Teilleul
relation capital of
type type of french administrative division
['Le Teilleul', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { resource:Le_Teilleul property:capital_of ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q628231 Q142
P17
Q15617994
USER
Is that french administrative division present in France ?
(Q628231,P17,Q142)
action is_in
entity Q142
action find
entity Q628231
relation P17
['Q628231', 'P17', 'Q142']
ASK WHERE { resource:Q628231 property:P17 resource:Q142 }
canton of Le Teilleul France
action is_in
entity France
action find
entity canton of Le Teilleul
relation country
['canton of Le Teilleul', 'country', 'France']
ASK WHERE { resource:canton_of_Le_Teilleul property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q628231,P17,Q142)
action is_in
entity Q142
action find
entity Q628231
relation P17
[ANSWER]
['Q628231', 'P17', 'Q142']
ASK WHERE { resource:Q628231 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity canton of Le Teilleul
relation country
['canton of Le Teilleul', 'country', 'France']
ASK WHERE { resource:canton_of_Le_Teilleul property:country resource:France }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q628231
P36
Q20667921
USER
Which french administrative division is the capital of canton of Le Teilleul ?
(Q628231,P36,c(Q20667921))
action filter_type
action find
entity Q628231
relation P36
type Q20667921
['Q628231', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?i WHERE { resource:Q628231 property:P36 ?i . ?i rdf:type ontology:Q20667921 }
canton of Le Teilleul
action filter_type
action find
entity canton of Le Teilleul
relation capital
type type of french administrative division
['canton of Le Teilleul', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?i WHERE { resource:canton_of_Le_Teilleul property:capital ?i . ?i rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q635135
SYSTEM
Le Teilleul
Q635135
(Q628231,P36,c(Q20667921))
action filter_type
action find
entity Q628231
relation P36
type Q20667921
[ANSWER] is the capital of canton of [ANSWER]
['Q628231', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?i WHERE { resource:Q628231 property:P36 ?i . ?i rdf:type ontology:Q20667921 }
Le Teilleul
Le Teilleul is the capital of canton of Le Teilleul
Le Teilleul
action filter_type
action find
entity canton of Le Teilleul
relation capital
type type of french administrative division
['canton of Le Teilleul', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?i WHERE { resource:canton_of_Le_Teilleul property:capital ?i . ?i rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q580932
Q20667921
USER
And also tell me about canton of Beaumont-sur-Sarthe?
(Q580932,P36,c(Q20667921))
action filter_type
action find
entity Q580932
relation P36
type Q20667921
['Q580932', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q20667921 . resource:Q580932 property:P36 ?y }
canton of Beaumont-sur-Sarthe
action filter_type
action find
entity canton of Beaumont-sur-Sarthe
relation capital
type type of french administrative division
['canton of Beaumont-sur-Sarthe', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:type_of_french_administrative_division . resource:canton_of_Beaumont-sur-Sarthe property:capital ?y }
[]
type of french administrative division
Q1222870
SYSTEM
Beaumont-sur-Sarthe
Q1222870
(Q580932,P36,c(Q20667921))
action filter_type
action find
entity Q580932
relation P36
type Q20667921
[ANSWER]
['Q580932', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q20667921 . resource:Q580932 property:P36 ?y }
Beaumont-sur-Sarthe
Beaumont-sur-Sarthe
action filter_type
action find
entity canton of Beaumont-sur-Sarthe
relation capital
type type of french administrative division
['canton of Beaumont-sur-Sarthe', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:type_of_french_administrative_division . resource:canton_of_Beaumont-sur-Sarthe property:capital ?y }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q20667921 Q515
USER
Which cities are the county seat of exactly 4 french administrative divisions ?
(c(Q515),P1376,c(Q20667921))
action equal
action find_tuple_counts
relation P1376
type Q515
type Q20667921
value 4
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?w ) WHERE { ?g property:P1376 ?e . ?g rdf:type ontology:Q515 . ?e rdf:type ontology:Q20667921 } GROUP BY ?g } . FILTER ( ?w = 4 ) }
action equal
action find_tuple_counts
relation capital of
type city
type type of french administrative division
value 4
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?w ) WHERE { ?g property:capital_of ?e . ?g rdf:type ontology:city . ?e rdf:type ontology:type_of_french_administrative_division } GROUP BY ?g } . FILTER ( ?w = 4 ) }
[]
type of french administrative division city
Q6582
SYSTEM
Carcassonne
Q6582
(c(Q515),P1376,c(Q20667921))
action equal
action find_tuple_counts
relation P1376
type Q515
type Q20667921
value 4
[ANSWER] is the county seat of exactly 4 french administrative divisions
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?w ) WHERE { ?g property:P1376 ?e . ?g rdf:type ontology:Q515 . ?e rdf:type ontology:Q20667921 } GROUP BY ?g } . FILTER ( ?w = 4 ) }
Carcassonne
Carcassonne is the county seat of exactly 4 french administrative divisions
Carcassonne
action equal
action find_tuple_counts
relation capital of
type city
type type of french administrative division
value 4
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?w ) WHERE { ?g property:capital_of ?e . ?g rdf:type ontology:city . ?e rdf:type ontology:type_of_french_administrative_division } GROUP BY ?g } . FILTER ( ?w = 4 ) }
[]