Simple Question (Direct)
Simple Question
Q600531
P47
Q20667921
USER
Which french administrative divisions are adjacent to Catheux ?
(Q600531,P47,c(Q20667921))
action filter_type
action find
entity Q600531
relation P47
type Q20667921
['Q600531', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q600531 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Catheux
action filter_type
action find
entity Catheux
relation shares border with
type type of french administrative division
['Catheux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Catheux property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q748650 Q1337636 Q584182
SYSTEM
Crèvecœur-le-Grand, Fontaine-Bonneleau, Lavacquerie
Q1166690 Q1161272 Q748650 Q1337636 Q584182 Q683065 Q767174 Q661445
(Q600531,P47,c(Q20667921))
action filter_type
action find
entity Q600531
relation P47
type Q20667921
[ANSWERS] are adjacent to Catheux
['Q600531', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q600531 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Le Saulchoy Le Gallet Crèvecœur-le-Grand Fontaine-Bonneleau Lavacquerie Le Mesnil-Conteville Hétomesnil Choqueuse-les-Bénards
Crèvecœur-le-Grand, Fontaine-Bonneleau and Lavacquerie are adjacent to Catheux
Crèvecœur-le-Grand Fontaine-Bonneleau Lavacquerie
action filter_type
action find
entity Catheux
relation shares border with
type type of french administrative division
['Catheux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Catheux property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q584182
P17
Q15617994
USER
Which administrative territory is that french administrative division a part of ?
(Q584182,P17,c(Q15617994))
action filter_type
action find
entity Q584182
relation P17
type Q15617994
['Q584182', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q584182 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Lavacquerie
action filter_type
action find
entity Lavacquerie
relation country
type designation for an administrative territorial entity
['Lavacquerie', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lavacquerie property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q584182
SYSTEM
Did you mean Lavacquerie ?
Q748650 Q1337636 Q584182
(Q748650,P17,c(Q15617994)) (Q1337636,P17,c(Q15617994)) (Q584182,P17,c(Q15617994))
[ANSWER]
['Q748650', 'P17', {'concept': 'Q15617994'}] ['Q1337636', 'P17', {'concept': 'Q15617994'}] ['Q584182', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q584182 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Crèvecœur-le-Grand Fontaine-Bonneleau Lavacquerie
Did you mean Lavacquerie ?
Lavacquerie
['Crèvecœur-le-Grand', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Fontaine-Bonneleau', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lavacquerie', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lavacquerie property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q584182,P17,c(Q15617994))
['Q584182', 'P17', {'concept': 'Q15617994'}]
['Lavacquerie', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q584182,P17,c(Q15617994))
action filter_type
action find
entity Q584182
relation P17
type Q15617994
[ANSWER] is that french administrative division a part of
['Q584182', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q584182 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
France
France is that french administrative division a part of
France
action filter_type
action find
entity Lavacquerie
relation country
type designation for an administrative territorial entity
['Lavacquerie', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lavacquerie property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q142
P840
Q11424 Q223393
USER
How many films or literary genres have their narrative set in France ?
(c(Q11424),P840,Q142) (c(Q223393),P840,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P840
type Q11424
action filter_type
action find_reverse
entity Q142
relation P840
type Q223393
[{'concept': 'Q11424'}, 'P840', 'Q142'] [{'concept': 'Q223393'}, 'P840', 'Q142']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { VALUES ( ?c ) { ( ontology:Q11424 ) ( ontology:Q223393 ) } . ?q rdf:type ?c }
France
action count
action union
action filter_type
action find_reverse
entity France
relation narrative location
type film
action filter_type
action find_reverse
entity France
relation narrative location
type literary genre
[{'concept': 'film'}, 'narrative location', 'France'] [{'concept': 'literary genre'}, 'narrative location', 'France']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { VALUES ( ?c ) { ( ontology:film ) ( ontology:literary_genre ) } . ?q rdf:type ?c }
[]
film literary genre
SYSTEM
3
Q179673 Q748412 Q21086691
(c(Q11424),P840,Q142) (c(Q223393),P840,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P840
type Q11424
action filter_type
action find_reverse
entity Q142
relation P840
type Q223393
[ANSWER]
[{'concept': 'Q11424'}, 'P840', 'Q142'] [{'concept': 'Q223393'}, 'P840', 'Q142']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { VALUES ( ?c ) { ( ontology:Q11424 ) ( ontology:Q223393 ) } . ?q rdf:type ?c }
Beauty and the Beast Asterix and the Vikings Bispen på Børglum og hans frænde
3
action count
action union
action filter_type
action find_reverse
entity France
relation narrative location
type film
action filter_type
action find_reverse
entity France
relation narrative location
type literary genre
[{'concept': 'film'}, 'narrative location', 'France'] [{'concept': 'literary genre'}, 'narrative location', 'France']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { VALUES ( ?c ) { ( ontology:film ) ( ontology:literary_genre ) } . ?q rdf:type ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q748650
P1376
Q20667921
USER
Which french administrative division has Crèvecœur-le-Grand as its capital ?
(Q748650,P1376,c(Q20667921))
action filter_type
action find
entity Q748650
relation P1376
type Q20667921
['Q748650', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q748650 property:P1376 ?j . ?j rdf:type ontology:Q20667921 }
Crèvecœur-le-Grand
action filter_type
action find
entity Crèvecœur-le-Grand
relation capital of
type type of french administrative division
['Crèvecœur-le-Grand', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Crèvecœur-le-Grand property:capital_of ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q623546
SYSTEM
canton of Crèvecœur-le-Grand
Q623546
(Q748650,P1376,c(Q20667921))
action filter_type
action find
entity Q748650
relation P1376
type Q20667921
The [ANSWER] has Crèvecœur-le-Grand as its capital
['Q748650', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q748650 property:P1376 ?j . ?j rdf:type ontology:Q20667921 }
canton of Crèvecœur-le-Grand
The canton of Crèvecœur-le-Grand has Crèvecœur-le-Grand as its capital
canton of Crèvecœur-le-Grand
action filter_type
action find
entity Crèvecœur-le-Grand
relation capital of
type type of french administrative division
['Crèvecœur-le-Grand', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Crèvecœur-le-Grand property:capital_of ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q989788
Q20667921
USER
And also tell me about Villersexel?
(Q989788,P1376,c(Q20667921))
action filter_type
action find
entity Q989788
relation P1376
type Q20667921
['Q989788', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q989788 property:P1376 ?m . ?m rdf:type ontology:Q20667921 }
Villersexel
action filter_type
action find
entity Villersexel
relation capital of
type type of french administrative division
['Villersexel', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Villersexel property:capital_of ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1700463
SYSTEM
canton of Villersexel
Q1700463
(Q989788,P1376,c(Q20667921))
action filter_type
action find
entity Q989788
relation P1376
type Q20667921
[ANSWER]
['Q989788', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q989788 property:P1376 ?m . ?m rdf:type ontology:Q20667921 }
canton of Villersexel
canton of Villersexel
action filter_type
action find
entity Villersexel
relation capital of
type type of french administrative division
['Villersexel', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Villersexel property:capital_of ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1700463 Q663953
P1376
Q20667921
USER
Is Les Châtelliers-Châteaumur the capital of that one ?
(Q663953,P1376,Q1700463)
action is_in
entity Q663953
action find
entity Q1700463
relation P1376
['Q663953', 'P1376', 'Q1700463']
ASK WHERE { resource:Q1700463 property:P1376 resource:Q663953 }
canton of Villersexel Les Châtelliers-Châteaumur
action is_in
entity Les Châtelliers-Châteaumur
action find
entity canton of Villersexel
relation capital of
['Les Châtelliers-Châteaumur', 'capital of', 'canton of Villersexel']
ASK WHERE { resource:canton_of_Villersexel property:capital_of resource:Les_Châtelliers-Châteaumur }
[]
type of french administrative division
SYSTEM
NO
(Q663953,P1376,Q1700463)
action is_in
entity Q663953
action find
entity Q1700463
relation P1376
[ANSWER]
['Q663953', 'P1376', 'Q1700463']
ASK WHERE { resource:Q1700463 property:P1376 resource:Q663953 }
No
action is_in
entity Les Châtelliers-Châteaumur
action find
entity canton of Villersexel
relation capital of
['Les Châtelliers-Châteaumur', 'capital of', 'canton of Villersexel']
ASK WHERE { resource:canton_of_Villersexel property:capital_of resource:Les_Châtelliers-Châteaumur }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q748650
P47
Q20667921
USER
How many french administrative divisions are bordered by Crèvecœur-le-Grand ?
(c(Q20667921),P47,Q748650)
action count
action filter_type
action find_reverse
entity Q748650
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q748650']
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:Q20667921 . ?f property:P47 resource:Q748650 }
Crèvecœur-le-Grand
action count
action filter_type
action find_reverse
entity Crèvecœur-le-Grand
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Crèvecœur-le-Grand']
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:type_of_french_administrative_division . ?f property:shares_border_with resource:Crèvecœur-le-Grand }
[]
type of french administrative division
SYSTEM
8
Q1161272 Q387374 Q767174 Q1106751 Q1332353 Q1089779 Q1332090 Q600531
(c(Q20667921),P47,Q748650)
action count
action filter_type
action find_reverse
entity Q748650
relation P47
type Q20667921
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q748650']
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:Q20667921 . ?f property:P47 resource:Q748650 }
Le Gallet Lihus Hétomesnil Blicourt Viefvillers Francastel Rotangy Catheux
8
action count
action filter_type
action find_reverse
entity Crèvecœur-le-Grand
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Crèvecœur-le-Grand']
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:type_of_french_administrative_division . ?f property:shares_border_with resource:Crèvecœur-le-Grand }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q748650
P166
Q618779
USER
Which award was received by that french administrative division ?
action filter_type
action find
entity Q748650
relation P166
type Q618779
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q618779 . resource:Q748650 property:P166 ?p }
Crèvecœur-le-Grand
action filter_type
action find
entity Crèvecœur-le-Grand
relation award received
type award
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:award . resource:Crèvecœur-le-Grand property:award_received ?p }
[]
award
Q2727598
SYSTEM
Croix de guerre 1914–1918
Q2727598
action filter_type
action find
entity Q748650
relation P166
type Q618779
The [ANSWER] was received by that french administrative division
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q618779 . resource:Q748650 property:P166 ?p }
Croix de guerre 1914–1918
The Croix de guerre 1914–1918 was received by that french administrative division
Croix de guerre 1914–1918
action filter_type
action find
entity Crèvecœur-le-Grand
relation award received
type award
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:award . resource:Crèvecœur-le-Grand property:award_received ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q748650
P47
Q20667921
USER
How many french administrative divisions are bordered by Crèvecœur-le-Grand ?
(Q748650,P47,c(Q20667921))
action count
action filter_type
action find
entity Q748650
relation P47
type Q20667921
['Q748650', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Q748650 property:P47 ?a . ?a rdf:type ontology:Q20667921 }
Crèvecœur-le-Grand
action count
action filter_type
action find
entity Crèvecœur-le-Grand
relation shares border with
type type of french administrative division
['Crèvecœur-le-Grand', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Crèvecœur-le-Grand property:shares_border_with ?a . ?a rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
8
Q1161272 Q387374 Q1332353 Q1106751 Q1089779 Q1332090 Q767174 Q600531
(Q748650,P47,c(Q20667921))
action count
action filter_type
action find
entity Q748650
relation P47
type Q20667921
[ANSWER]
['Q748650', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Q748650 property:P47 ?a . ?a rdf:type ontology:Q20667921 }
Le Gallet Lihus Viefvillers Blicourt Francastel Rotangy Hétomesnil Catheux
8
action count
action filter_type
action find
entity Crèvecœur-le-Grand
relation shares border with
type type of french administrative division
['Crèvecœur-le-Grand', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Crèvecœur-le-Grand property:shares_border_with ?a . ?a rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1700463
P36
Q20667921
USER
Which french administrative division is known as the capital of canton of Villersexel ?
(Q1700463,P36,c(Q20667921))
action filter_type
action find
entity Q1700463
relation P36
type Q20667921
['Q1700463', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q1700463 property:P36 ?d . ?d rdf:type ontology:Q20667921 }
canton of Villersexel
action filter_type
action find
entity canton of Villersexel
relation capital
type type of french administrative division
['canton of Villersexel', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:canton_of_Villersexel property:capital ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q989788
SYSTEM
Villersexel
Q989788
(Q1700463,P36,c(Q20667921))
action filter_type
action find
entity Q1700463
relation P36
type Q20667921
[ANSWER] is known as the capital of canton of [ANSWER]
['Q1700463', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q1700463 property:P36 ?d . ?d rdf:type ontology:Q20667921 }
Villersexel
Villersexel is known as the capital of canton of Villersexel
Villersexel
action filter_type
action find
entity canton of Villersexel
relation capital
type type of french administrative division
['canton of Villersexel', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:canton_of_Villersexel property:capital ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q374101
Q20667921
USER
And what about arrondissement of Pontivy?
(Q374101,P36,c(Q20667921))
action filter_type
action find
entity Q374101
relation P36
type Q20667921
['Q374101', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q374101 property:P36 ?f . ?f rdf:type ontology:Q20667921 }
arrondissement of Pontivy
action filter_type
action find
entity arrondissement of Pontivy
relation capital
type type of french administrative division
['arrondissement of Pontivy', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:arrondissement_of_Pontivy property:capital ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q55905
SYSTEM
Pontivy
Q55905
(Q374101,P36,c(Q20667921))
action filter_type
action find
entity Q374101
relation P36
type Q20667921
[ANSWER]
['Q374101', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q374101 property:P36 ?f . ?f rdf:type ontology:Q20667921 }
Pontivy
Pontivy
action filter_type
action find
entity arrondissement of Pontivy
relation capital
type type of french administrative division
['arrondissement of Pontivy', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:arrondissement_of_Pontivy property:capital ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]