Simple Question (Direct)
Simple Question
Q1021139
P47
Q20667921
USER
Which french administrative divisions have a shared border with Colombier ?
(Q1021139,P47,c(Q20667921))
action filter_type
action find
entity Q1021139
relation P47
type Q20667921
['Q1021139', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q1021139 property:P47 ?s . ?s rdf:type ontology:Q20667921 }
Colombier
action filter_type
action find
entity Colombier
relation shares border with
type type of french administrative division
['Colombier', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Colombier property:shares_border_with ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q603278 Q1106456 Q1105557
SYSTEM
Bourg-Argental, Saint-Julien-Molin-Molette, Thélis-la-Combe
Q603278 Q1105557 Q616231 Q1105662 Q1155269 Q1151559 Q1106456 Q1116227
(Q1021139,P47,c(Q20667921))
action filter_type
action find
entity Q1021139
relation P47
type Q20667921
[ANSWERS] have a shared border with Colombier
['Q1021139', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q1021139 property:P47 ?s . ?s rdf:type ontology:Q20667921 }
Bourg-Argental Thélis-la-Combe Véranne La Valla-en-Gier Graix Doizieux Saint-Julien-Molin-Molette Saint-Appolinard
Bourg-Argental, Saint-Julien-Molin-Molette and Thélis-la-Combe have a shared border with Colombier
Bourg-Argental Saint-Julien-Molin-Molette Thélis-la-Combe
action filter_type
action find
entity Colombier
relation shares border with
type type of french administrative division
['Colombier', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Colombier property:shares_border_with ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q603278 Q1106456 Q1105557
P17
Q15617994
USER
Which administrative territories are Bourg-Argental, Saint-Julien-Molin-Molette and Thélis-la-Combe located in ?
(Q603278,P17,c(Q15617994)) (Q1106456,P17,c(Q15617994)) (Q1105557,P17,c(Q15617994))
action union
action filter_type
action find
entity Q603278
relation P17
type Q15617994
action filter_type
action find
entity Q1106456
relation P17
type Q15617994
action filter_type
action find
entity Q1105557
relation P17
type Q15617994
['Q603278', 'P17', {'concept': 'Q15617994'}] ['Q1106456', 'P17', {'concept': 'Q15617994'}] ['Q1105557', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { VALUES ( ?p ) { ( resource:Q1106456 ) ( resource:Q603278 ) } . ?p property:P17 ?b }
Bourg-Argental Saint-Julien-Molin-Molette Thélis-la-Combe
action union
action filter_type
action find
entity Bourg-Argental
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Saint-Julien-Molin-Molette
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Thélis-la-Combe
relation country
type designation for an administrative territorial entity
['Bourg-Argental', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Saint-Julien-Molin-Molette', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Thélis-la-Combe', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { VALUES ( ?p ) { ( resource:Saint-Julien-Molin-Molette ) ( resource:Bourg-Argental ) } . ?p property:country ?b }
[]
designation for an administrative territorial entity
Q142 Q142 Q142
SYSTEM
France
Q142 Q142 Q142
(Q603278,P17,c(Q15617994)) (Q1106456,P17,c(Q15617994)) (Q1105557,P17,c(Q15617994))
action union
action filter_type
action find
entity Q603278
relation P17
type Q15617994
action filter_type
action find
entity Q1106456
relation P17
type Q15617994
action filter_type
action find
entity Q1105557
relation P17
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] are Bourg-Argental, Saint-Julien-Molin-Molette and Thélis-la-Combe located in
['Q603278', 'P17', {'concept': 'Q15617994'}] ['Q1106456', 'P17', {'concept': 'Q15617994'}] ['Q1105557', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { VALUES ( ?p ) { ( resource:Q1106456 ) ( resource:Q603278 ) } . ?p property:P17 ?b }
France France France
France, France and France are Bourg-Argental, Saint-Julien-Molin-Molette and Thélis-la-Combe located in
France France France
action union
action filter_type
action find
entity Bourg-Argental
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Saint-Julien-Molin-Molette
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Thélis-la-Combe
relation country
type designation for an administrative territorial entity
['Bourg-Argental', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Saint-Julien-Molin-Molette', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Thélis-la-Combe', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { VALUES ( ?p ) { ( resource:Saint-Julien-Molin-Molette ) ( resource:Bourg-Argental ) } . ?p property:country ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q603278
P1376
Q20667921
USER
Which french administrative division has Bourg-Argental has its first city ?
(Q603278,P1376,c(Q20667921))
action filter_type
action find
entity Q603278
relation P1376
type Q20667921
['Q603278', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q603278 property:P1376 ?l . ?l rdf:type ontology:Q20667921 }
Bourg-Argental
action filter_type
action find
entity Bourg-Argental
relation capital of
type type of french administrative division
['Bourg-Argental', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Bourg-Argental property:capital_of ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q963598
SYSTEM
canton of Bourg-Argental
Q963598
(Q603278,P1376,c(Q20667921))
action filter_type
action find
entity Q603278
relation P1376
type Q20667921
Which french administrative division has Bourg-Argental has its first city
['Q603278', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q603278 property:P1376 ?l . ?l rdf:type ontology:Q20667921 }
canton of Bourg-Argental
Which french administrative division has Bourg-Argental has its first city
canton of Bourg-Argental
action filter_type
action find
entity Bourg-Argental
relation capital of
type type of french administrative division
['Bourg-Argental', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Bourg-Argental property:capital_of ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6655 Q1106456
P47 P421
Q20667921
USER
Which french administrative divisions are next to the border of Saint-Julien-Molin-Molette and have UTC+01:00 as time zone ?
AND((c(Q20667921),P47,Q1106456), (c(Q20667921),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q1106456
relation P47
action find_reverse
entity Q6655
relation P421
type Q20667921
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q1106456'], [{'concept': 'Q20667921'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?g WHERE { ?g property:P421 resource:Q6655 . ?g property:P47 resource:Q1106456 . ?g rdf:type ontology:Q20667921 }
UTC+01:00 Saint-Julien-Molin-Molette
action filter_type
action intersection
action find_reverse
entity Saint-Julien-Molin-Molette
relation shares border with
action find_reverse
entity UTC+01:00
relation located in time zone
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Julien-Molin-Molette'], [{'concept': 'type of french administrative division'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?g WHERE { ?g property:located_in_time_zone resource:UTC+01:00 . ?g property:shares_border_with resource:Saint-Julien-Molin-Molette . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q166536 Q45200 Q1116227
SYSTEM
Saint-Jacques-d'Atticieux, Saint-Marcel-lès-Annonay, Saint-Appolinard
Q166536 Q45200 Q1116227
AND((c(Q20667921),P47,Q1106456), (c(Q20667921),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q1106456
relation P47
action find_reverse
entity Q6655
relation P421
type Q20667921
[ANSWERS] are next to the border of Saint-Julien-Molin-Molette and have UTC+01:00 as time zone
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q1106456'], [{'concept': 'Q20667921'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?g WHERE { ?g property:P421 resource:Q6655 . ?g property:P47 resource:Q1106456 . ?g rdf:type ontology:Q20667921 }
Saint-Jacques-d'Atticieux Saint-Marcel-lès-Annonay Saint-Appolinard
Saint-Jacques-d'Atticieux, Saint-Marcel-lès-Annonay and Saint-Appolinard are next to the border of Saint-Julien-Molin-Molette and have UTC+01:00 as time zone
Saint-Jacques-d'Atticieux Saint-Marcel-lès-Annonay Saint-Appolinard
action filter_type
action intersection
action find_reverse
entity Saint-Julien-Molin-Molette
relation shares border with
action find_reverse
entity UTC+01:00
relation located in time zone
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Julien-Molin-Molette'], [{'concept': 'type of french administrative division'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?g WHERE { ?g property:located_in_time_zone resource:UTC+01:00 . ?g property:shares_border_with resource:Saint-Julien-Molin-Molette . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q355304 Q15324 Q20667921
USER
Which french administrative divisions are located nearby min number of watercourses and bodies of water ?
(c(Q20667921),P206,c(Q355304)|c(Q15324))
action argmin
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q15324
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?p WHERE { VALUES ( ?m ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } . ?z rdf:type ?m } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) ?w WHERE { { ?w rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q15324 . ?w property:P206 ?o } UNION { ?w property:P206 ?o . ?o rdf:type ontology:Q355304 . ?w rdf:type ontology:Q20667921 } } GROUP BY ?w } . FILTER ( ?y = ?b ) }
action argmin
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type body of water
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?p WHERE { VALUES ( ?m ) { ( ontology:watercourse ) ( ontology:body_of_water ) } . ?z rdf:type ?m } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) ?w WHERE { { ?w rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:body_of_water . ?w property:located_next_to_body_of_water ?o } UNION { ?w property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse . ?w rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?w } . FILTER ( ?y = ?b ) }
[]
watercourse body of water type of french administrative division
Q47045 Q249884 Q44401
SYSTEM
Saint-Denis, Saint-Pierre, Cayenne
Q224023 Q3769 Q1649363 Q467030 Q956943 Q877744 Q147606 Q429770 Q160199 Q266886 Q1014763 Q652100 Q683550 Q453263 Q1326390 Q751619 Q14112 Q47045 Q926768 Q1649370 Q1617681 Q654000 Q249884 Q1031980 Q1014814 Q662942 Q382048 Q1164176 Q26583 Q478215 Q1757048 Q1014771 Q1014731 Q44401 Q1001582 Q691092 Q752535 Q1165029
(c(Q20667921),P206,c(Q355304)|c(Q15324))
action argmin
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q15324
[ANSWERS] are located nearby min number of watercourses and bodies of water
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?p WHERE { VALUES ( ?m ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } . ?z rdf:type ?m } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) ?w WHERE { { ?w rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q15324 . ?w property:P206 ?o } UNION { ?w property:P206 ?o . ?o rdf:type ontology:Q355304 . ?w rdf:type ontology:Q20667921 } } GROUP BY ?w } . FILTER ( ?y = ?b ) }
Penvénan French Guiana Saint-Leu L'Île-Rousse Le Port Le Portel Fort-Mahon-Plage La Possession Cherbourg-Octeville Sisco Trois-Bassins Saint-Philippe Urville-Nacqueville Pleumeur-Bodou Petite-Île Sérignan Corsica Saint-Denis Tahaa Saint-André Saint-Louis Monticello Saint-Pierre Escalles Les Avirons Sainte-Marie Tardinghen Saint-Léonard Béhuard Saint-Benoît Sainte-Suzanne L'Étang-Salé Sainte-Rose Cayenne Batz-sur-Mer Bras-Panon Valras-Plage Le Pouliguen
Saint-Denis, Saint-Pierre and Cayenne are located nearby min number of watercourses and bodies of water
Saint-Denis Saint-Pierre Cayenne
action argmin
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type body of water
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?p WHERE { VALUES ( ?m ) { ( ontology:watercourse ) ( ontology:body_of_water ) } . ?z rdf:type ?m } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) ?w WHERE { { ?w rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:body_of_water . ?w property:located_next_to_body_of_water ?o } UNION { ?w property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse . ?w rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?w } . FILTER ( ?y = ?b ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q166536
P47
Q20667921
USER
How many french administrative divisions share the border with Saint-Jacques-d'Atticieux ?
(Q166536,P47,c(Q20667921))
action count
action filter_type
action find
entity Q166536
relation P47
type Q20667921
['Q166536', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q166536 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Saint-Jacques-d'Atticieux
action count
action filter_type
action find
entity Saint-Jacques-d'Atticieux
relation shares border with
type type of french administrative division
["Saint-Jacques-d'Atticieux", 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Saint-Jacques-d'Atticieux property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
6
Q195026 Q195507 Q1106456 Q965319 Q166578 Q1116227
(Q166536,P47,c(Q20667921))
action count
action filter_type
action find
entity Q166536
relation P47
type Q20667921
[ANSWER]
['Q166536', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q166536 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Brossainc Savas Saint-Julien-Molin-Molette Maclas Vinzieux Saint-Appolinard
6
action count
action filter_type
action find
entity Saint-Jacques-d'Atticieux
relation shares border with
type type of french administrative division
["Saint-Jacques-d'Atticieux", 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Saint-Jacques-d'Atticieux property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1222556
Q20667921
USER
And also tell me about Le Châtel?
(Q1222556,P47,c(Q20667921))
action count
action filter_type
action find
entity Q1222556
relation P47
type Q20667921
['Q1222556', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q1222556 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
Le Châtel
action count
action filter_type
action find
entity Le Châtel
relation shares border with
type type of french administrative division
['Le Châtel', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Le_Châtel property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
4
(Q1222556,P47,c(Q20667921))
action count
action filter_type
action find
entity Q1222556
relation P47
type Q20667921
[ANSWER]
['Q1222556', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q1222556 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
4
action count
action filter_type
action find
entity Le Châtel
relation shares border with
type type of french administrative division
['Le Châtel', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Le_Châtel property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]