Simple Question (Direct)
Simple Question
Q845048
P47
Q20667921
USER
Who share the border with Fontenois-lès-Montbozon ?
(Q845048,P47,c(Q20667921))
action filter_type
action find
entity Q845048
relation P47
type Q20667921
['Q845048', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q20667921 . resource:Q845048 property:P47 ?n }
Fontenois-lès-Montbozon
action filter_type
action find
entity Fontenois-lès-Montbozon
relation shares border with
type type of french administrative division
['Fontenois-lès-Montbozon', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:type_of_french_administrative_division . resource:Fontenois-lès-Montbozon property:shares_border_with ?n }
[]
type of french administrative division
Q845002 Q918945 Q283080
SYSTEM
Dampierre-sur-Linotte, Montbozon, Vy-lès-Filain
Q918945 Q904459 Q918940 Q283080 Q845002 Q918862 Q549273
(Q845048,P47,c(Q20667921))
action filter_type
action find
entity Q845048
relation P47
type Q20667921
And [ANSWERS] share the border with Fontenois-lès-Montbozon
['Q845048', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q20667921 . resource:Q845048 property:P47 ?n }
Montbozon Roche-sur-Linotte-et-Sorans-les-Cordiers Ormenans Vy-lès-Filain Dampierre-sur-Linotte Thiénans Bouhans-lès-Montbozon
And Dampierre-sur-Linotte, Montbozon and Vy-lès-Filain share the border with Fontenois-lès-Montbozon
Dampierre-sur-Linotte Montbozon Vy-lès-Filain
action filter_type
action find
entity Fontenois-lès-Montbozon
relation shares border with
type type of french administrative division
['Fontenois-lès-Montbozon', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:type_of_french_administrative_division . resource:Fontenois-lès-Montbozon property:shares_border_with ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q918945
P36
Q20667921
USER
Which french administrative division contains Montbozon as its capital ?
(c(Q20667921),P36,Q918945)
action filter_type
action find_reverse
entity Q918945
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q918945']
SELECT DISTINCT ?t WHERE { ?t property:P36 resource:Q918945 . ?t rdf:type ontology:Q20667921 }
Montbozon
action filter_type
action find_reverse
entity Montbozon
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Montbozon']
SELECT DISTINCT ?t WHERE { ?t property:capital resource:Montbozon . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1396309
SYSTEM
canton of Montbozon
Q1396309
(c(Q20667921),P36,Q918945)
action filter_type
action find_reverse
entity Q918945
relation P36
type Q20667921
The [ANSWER] contains Montbozon as its capital
[{'concept': 'Q20667921'}, 'P36', 'Q918945']
SELECT DISTINCT ?t WHERE { ?t property:P36 resource:Q918945 . ?t rdf:type ontology:Q20667921 }
canton of Montbozon
The canton of Montbozon contains Montbozon as its capital
canton of Montbozon
action filter_type
action find_reverse
entity Montbozon
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Montbozon']
SELECT DISTINCT ?t WHERE { ?t property:capital resource:Montbozon . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1396309
P1376
Q20667921
USER
Which french administrative division is center of administration for that one ?
(c(Q20667921),P1376,Q1396309)
action filter_type
action find_reverse
entity Q1396309
relation P1376
type Q20667921
[{'concept': 'Q20667921'}, 'P1376', 'Q1396309']
SELECT DISTINCT ?h WHERE { ?h property:P1376 resource:Q1396309 . ?h rdf:type ontology:Q20667921 }
canton of Montbozon
action filter_type
action find_reverse
entity canton of Montbozon
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Montbozon']
SELECT DISTINCT ?h WHERE { ?h property:capital_of resource:canton_of_Montbozon . ?h rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q918945
SYSTEM
Montbozon
Q918945
(c(Q20667921),P1376,Q1396309)
action filter_type
action find_reverse
entity Q1396309
relation P1376
type Q20667921
[ANSWER] is center of administration for that one
[{'concept': 'Q20667921'}, 'P1376', 'Q1396309']
SELECT DISTINCT ?h WHERE { ?h property:P1376 resource:Q1396309 . ?h rdf:type ontology:Q20667921 }
Montbozon
Montbozon is center of administration for that one
Montbozon
action filter_type
action find_reverse
entity canton of Montbozon
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Montbozon']
SELECT DISTINCT ?h WHERE { ?h property:capital_of resource:canton_of_Montbozon . ?h rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q8575586
P1376
Q15617994 Q20667921
USER
How many administrative territories have more number of french administrative divisions have their first city than Umayyad Caliphate ?
(c(Q20667921),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_type
action find
entity Q8575586
relation P1376
type Q15617994
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:P1376 ?z . ?g rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Q8575586 property:P1376 ?s . ?s rdf:type ontology:Q15617994 } } }
Umayyad Caliphate
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Umayyad Caliphate
relation capital of
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:capital_of ?z . ?g rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Umayyad_Caliphate property:capital_of ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity type of french administrative division
SYSTEM
90
Q12631 Q3368 Q2998020 Q3044731 Q12689 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q12574 Q12798 Q12792 Q12700 Q12703 Q12709 Q12569 Q12642 Q3216 Q3194 Q12804 Q12808 Q3326 Q3286 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q12789 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12730 Q12736 Q12657 Q12652 Q12556 Q12816 Q3353 Q3357 Q3278 Q3184 Q2900529 Q12772 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q12761 Q12765 Q3334 Q12572 Q12576 Q12578 Q12679 Q3113 Q12758 Q12753 Q12751 Q12564
(c(Q20667921),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_type
action find
entity Q8575586
relation P1376
type Q15617994
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:P1376 ?z . ?g rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Q8575586 property:P1376 ?s . ?s rdf:type ontology:Q15617994 } } }
Meuse Essonne Corse Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Loiret Vendée Vaucluse Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Morbihan Aveyron Aube Vienne Haute-Vienne Corrèze Cher Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Var Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Haute-Saône Saône-et-Loire Nièvre Moselle Indre-et-Loire Yonne Creuse Dordogne Charente-Maritime Ariège Bezirk Lothringen Tarn Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot Lot-et-Garonne Orne Allier Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
90
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Umayyad Caliphate
relation capital of
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:capital_of ?z . ?g rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Umayyad_Caliphate property:capital_of ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q819
P1376
Q15617994 Q20667921
USER
And what about Laos?
(c(Q20667921),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_type
action find
entity Q819
relation P1376
type Q15617994
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P1376 ?q . ?s rdf:type ontology:Q20667921 . ?q rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?o > ?p ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Q819 property:P1376 ?h . ?h rdf:type ontology:Q15617994 } } }
Laos
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Laos
relation capital of
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:capital_of ?q . ?s rdf:type ontology:type_of_french_administrative_division . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?o > ?p ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Laos property:capital_of ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity type of french administrative division
SYSTEM
90
Q12631 Q3368 Q2998020 Q3044731 Q12689 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q12574 Q12798 Q12792 Q12700 Q12703 Q12709 Q12569 Q12642 Q3216 Q3194 Q12804 Q12808 Q3326 Q3286 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q12789 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12730 Q12736 Q12657 Q12652 Q12556 Q12816 Q3353 Q3357 Q3278 Q3184 Q2900529 Q12772 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q12761 Q12765 Q3334 Q12572 Q12576 Q12578 Q12679 Q3113 Q12758 Q12753 Q12751 Q12564
(c(Q20667921),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_type
action find
entity Q819
relation P1376
type Q15617994
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P1376 ?q . ?s rdf:type ontology:Q20667921 . ?q rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?o > ?p ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Q819 property:P1376 ?h . ?h rdf:type ontology:Q15617994 } } }
Meuse Essonne Corse Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Loiret Vendée Vaucluse Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Morbihan Aveyron Aube Vienne Haute-Vienne Corrèze Cher Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Var Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Haute-Saône Saône-et-Loire Nièvre Moselle Indre-et-Loire Yonne Creuse Dordogne Charente-Maritime Ariège Bezirk Lothringen Tarn Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot Lot-et-Garonne Orne Allier Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
90
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Laos
relation capital of
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:capital_of ?q . ?s rdf:type ontology:type_of_french_administrative_division . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?o > ?p ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Laos property:capital_of ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]