Simple Question (Direct)
Simple Question
Q429310
P47
Q20667921
USER
Which french administrative divisions have a shared border with Bruis ?
(Q429310,P47,c(Q20667921))
action filter_type
action find
entity Q429310
relation P47
type Q20667921
['Q429310', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q429310 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Bruis
action filter_type
action find
entity Bruis
relation shares border with
type type of french administrative division
['Bruis', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Bruis property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1075742 Q1087615 Q284455
SYSTEM
Valdrôme, Moydans, Saint-Dizier-en-Diois
Q1085911 Q646433 Q863596 Q1086047 Q1087615 Q1009436 Q1075742 Q284455
(Q429310,P47,c(Q20667921))
action filter_type
action find
entity Q429310
relation P47
type Q20667921
[ANSWERS] have a shared border with Bruis
['Q429310', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q429310 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Sainte-Marie Pommerol La Charce Montmorin Moydans Establet Valdrôme Saint-Dizier-en-Diois
Valdrôme, Moydans and Saint-Dizier-en-Diois have a shared border with Bruis
Valdrôme Moydans Saint-Dizier-en-Diois
action filter_type
action find
entity Bruis
relation shares border with
type type of french administrative division
['Bruis', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Bruis property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1075742
P17
Q15617994
USER
Which administrative territory is that french administrative division present in ?
(Q1075742,P17,c(Q15617994))
action filter_type
action find
entity Q1075742
relation P17
type Q15617994
['Q1075742', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q1075742 property:P17 ?r }
Valdrôme
action filter_type
action find
entity Valdrôme
relation country
type designation for an administrative territorial entity
['Valdrôme', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Valdrôme property:country ?r }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1075742
SYSTEM
Did you mean Valdrôme ?
Q1075742 Q1087615 Q284455
(Q1075742,P17,c(Q15617994)) (Q1087615,P17,c(Q15617994)) (Q284455,P17,c(Q15617994))
[ANSWER]
['Q1075742', 'P17', {'concept': 'Q15617994'}] ['Q1087615', 'P17', {'concept': 'Q15617994'}] ['Q284455', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q1075742 property:P17 ?r }
Valdrôme Moydans Saint-Dizier-en-Diois
Did you mean Valdrôme ?
Valdrôme
['Valdrôme', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moydans', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Saint-Dizier-en-Diois', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Valdrôme property:country ?r }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1075742,P17,c(Q15617994))
['Q1075742', 'P17', {'concept': 'Q15617994'}]
['Valdrôme', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q1075742,P17,c(Q15617994))
action filter_type
action find
entity Q1075742
relation P17
type Q15617994
That french administrative division is in [ANSWER]
['Q1075742', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q1075742 property:P17 ?r }
France
That french administrative division is in France
France
action filter_type
action find
entity Valdrôme
relation country
type designation for an administrative territorial entity
['Valdrôme', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Valdrôme property:country ?r }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q7725634
USER
How many administrative territories are the countries of origin of more number of collectables or literary works than that administrative territory ?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q2342494
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?p ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?a rdf:type ?p } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P495 resource:Q142 . { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?l rdf:type ?c } } } . FILTER ( ?s > ?r ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?p ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?a rdf:type ?p } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:country_of_origin resource:France . { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?l rdf:type ?c } } } . FILTER ( ?s > ?r ) }
[]
designation for an administrative territorial entity collectable literary work
SYSTEM
2
Q145 Q30
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q2342494
type Q7725634
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?p ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?a rdf:type ?p } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P495 resource:Q142 . { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?l rdf:type ?c } } } . FILTER ( ?s > ?r ) }
United Kingdom United States of America
2
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?p ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?a rdf:type ?p } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:country_of_origin resource:France . { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?l rdf:type ?c } } } . FILTER ( ?s > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q181946
P159
Q20667921 Q7210356 Q334453
USER
How many french administrative divisions are the head office for greater number of political organizations and divisions located than Argenteuil ?
(c(Q7210356)|c(Q334453),P159,c(Q20667921))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q334453
action count
action filter_multi_types
action find_reverse
entity Q181946
relation P159
type Q7210356
type Q334453
[[{'concept': 'Q7210356'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) ?m WHERE { { ?h property:P159 ?m . ?h rdf:type ontology:Q334453 . ?m rdf:type ontology:Q20667921 } UNION { ?h property:P159 ?m . ?m rdf:type ontology:Q20667921 . ?h rdf:type ontology:Q7210356 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { { ?d rdf:type ontology:Q7210356 } UNION { ?d rdf:type ontology:Q334453 } } . ?d property:P159 resource:Q181946 } } . FILTER ( ?v > ?n ) }
Argenteuil
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type division
action count
action filter_multi_types
action find_reverse
entity Argenteuil
relation headquarters location
type political organization
type division
[[{'concept': 'political organization'}, {'concept': 'division'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) ?m WHERE { { ?h property:headquarters_location ?m . ?h rdf:type ontology:division . ?m rdf:type ontology:type_of_french_administrative_division } UNION { ?h property:headquarters_location ?m . ?m rdf:type ontology:type_of_french_administrative_division . ?h rdf:type ontology:political_organization } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { { ?d rdf:type ontology:political_organization } UNION { ?d rdf:type ontology:division } } . ?d property:headquarters_location resource:Argenteuil } } . FILTER ( ?v > ?n ) }
[]
type of french administrative division political organization division
SYSTEM
31
Q9733 Q659327 Q134674 Q22690 Q132671 Q274774 Q476687 Q203529 Q172455 Q174019 Q37719 Q225451 Q241021 Q1069988 Q193370 Q71724 Q694800 Q30974 Q81621 Q958857 Q189153 Q209086 Q947069 Q1022934 Q166640 Q253721 Q48958 Q120161 Q319933 Q44401 Q14112
(c(Q7210356)|c(Q334453),P159,c(Q20667921))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q334453
action count
action filter_multi_types
action find_reverse
entity Q181946
relation P159
type Q7210356
type Q334453
[ANSWER]
[[{'concept': 'Q7210356'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) ?m WHERE { { ?h property:P159 ?m . ?h rdf:type ontology:Q334453 . ?m rdf:type ontology:Q20667921 } UNION { ?h property:P159 ?m . ?m rdf:type ontology:Q20667921 . ?h rdf:type ontology:Q7210356 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { { ?d rdf:type ontology:Q7210356 } UNION { ?d rdf:type ontology:Q334453 } } . ?d property:P159 resource:Q181946 } } . FILTER ( ?v > ?n ) }
Nouméa Chens-sur-Léman Bayonne Metz Pau Viviers Trégueux Lons-le-Saunier Boulogne-Billancourt Béziers Beaurainville Villeneuve-la-Garenne Montrouge Écaquelon Montreuil Lorient Ugine Rouen Fort-de-France Roumazières-Loubert Saint-Cloud Pantin Le Lamentin Faaa Levallois-Perret Malakoff Neuilly-sur-Seine Saint-Florent-le-Vieil Yerres Cayenne Corsica
31
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type division
action count
action filter_multi_types
action find_reverse
entity Argenteuil
relation headquarters location
type political organization
type division
[[{'concept': 'political organization'}, {'concept': 'division'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) ?m WHERE { { ?h property:headquarters_location ?m . ?h rdf:type ontology:division . ?m rdf:type ontology:type_of_french_administrative_division } UNION { ?h property:headquarters_location ?m . ?m rdf:type ontology:type_of_french_administrative_division . ?h rdf:type ontology:political_organization } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { { ?d rdf:type ontology:political_organization } UNION { ?d rdf:type ontology:division } } . ?d property:headquarters_location resource:Argenteuil } } . FILTER ( ?v > ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q219383
P159
Q20667921 Q7210356 Q334453
USER
And what about Saint-Uze?
(c(Q7210356)|c(Q334453),P159,c(Q20667921))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q334453
action count
action filter_multi_types
action find_reverse
entity Q219383
relation P159
type Q7210356
type Q334453
[[{'concept': 'Q7210356'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:P159 resource:Q219383 . { VALUES ( ?q ) { ( ontology:Q7210356 ) ( ontology:Q334453 ) } . ?u rdf:type ?q } } } . FILTER ( ?r > ?f ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) ?m WHERE { { ?m rdf:type ontology:Q20667921 . ?p rdf:type ontology:Q7210356 . ?p property:P159 ?m } UNION { ?p property:P159 ?m . ?p rdf:type ontology:Q334453 . ?m rdf:type ontology:Q20667921 } } GROUP BY ?m } }
Saint-Uze
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type division
action count
action filter_multi_types
action find_reverse
entity Saint-Uze
relation headquarters location
type political organization
type division
[[{'concept': 'political organization'}, {'concept': 'division'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:headquarters_location resource:Saint-Uze . { VALUES ( ?q ) { ( ontology:political_organization ) ( ontology:division ) } . ?u rdf:type ?q } } } . FILTER ( ?r > ?f ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) ?m WHERE { { ?m rdf:type ontology:type_of_french_administrative_division . ?p rdf:type ontology:political_organization . ?p property:headquarters_location ?m } UNION { ?p property:headquarters_location ?m . ?p rdf:type ontology:division . ?m rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?m } }
[]
type of french administrative division political organization division
SYSTEM
31
Q9733 Q659327 Q134674 Q22690 Q132671 Q274774 Q476687 Q203529 Q172455 Q174019 Q37719 Q225451 Q241021 Q1069988 Q193370 Q71724 Q694800 Q30974 Q81621 Q958857 Q189153 Q209086 Q947069 Q1022934 Q166640 Q253721 Q48958 Q120161 Q319933 Q44401 Q14112
(c(Q7210356)|c(Q334453),P159,c(Q20667921))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q334453
action count
action filter_multi_types
action find_reverse
entity Q219383
relation P159
type Q7210356
type Q334453
[ANSWER]
[[{'concept': 'Q7210356'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:P159 resource:Q219383 . { VALUES ( ?q ) { ( ontology:Q7210356 ) ( ontology:Q334453 ) } . ?u rdf:type ?q } } } . FILTER ( ?r > ?f ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) ?m WHERE { { ?m rdf:type ontology:Q20667921 . ?p rdf:type ontology:Q7210356 . ?p property:P159 ?m } UNION { ?p property:P159 ?m . ?p rdf:type ontology:Q334453 . ?m rdf:type ontology:Q20667921 } } GROUP BY ?m } }
Nouméa Chens-sur-Léman Bayonne Metz Pau Viviers Trégueux Lons-le-Saunier Boulogne-Billancourt Béziers Beaurainville Villeneuve-la-Garenne Montrouge Écaquelon Montreuil Lorient Ugine Rouen Fort-de-France Roumazières-Loubert Saint-Cloud Pantin Le Lamentin Faaa Levallois-Perret Malakoff Neuilly-sur-Seine Saint-Florent-le-Vieil Yerres Cayenne Corsica
31
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type division
action count
action filter_multi_types
action find_reverse
entity Saint-Uze
relation headquarters location
type political organization
type division
[[{'concept': 'political organization'}, {'concept': 'division'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:headquarters_location resource:Saint-Uze . { VALUES ( ?q ) { ( ontology:political_organization ) ( ontology:division ) } . ?u rdf:type ?q } } } . FILTER ( ?r > ?f ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) ?m WHERE { { ?m rdf:type ontology:type_of_french_administrative_division . ?p rdf:type ontology:political_organization . ?p property:headquarters_location ?m } UNION { ?p property:headquarters_location ?m . ?p rdf:type ontology:division . ?m rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?m } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1410258 Q1075742
P47
Q20667921
USER
Which french administrative divisions have a shared border with Valdrôme or Les Bizots ?
OR((Q1075742,P47,c(Q20667921)), (Q1410258,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q1075742
relation P47
action find
entity Q1410258
relation P47
type Q20667921
{'OR': [['Q1075742', 'P47', {'concept': 'Q20667921'}], ['Q1410258', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?v ) { ( resource:Q1075742 ) ( resource:Q1410258 ) } . ?v property:P47 ?a } . ?a rdf:type ontology:Q20667921 }
Les Bizots Valdrôme
action filter_type
action union
action find
entity Valdrôme
relation shares border with
action find
entity Les Bizots
relation shares border with
type type of french administrative division
{'OR': [['Valdrôme', 'shares border with', {'concept': 'type of french administrative division'}], ['Les Bizots', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?v ) { ( resource:Valdrôme ) ( resource:Les_Bizots ) } . ?v property:shares_border_with ?a } . ?a rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q384494 Q284455 Q1081903 Q613919 Q1365776 Q1625698 Q1086047 Q1087784 Q738931 Q1060503
SYSTEM
Some of them are La Bâtie-des-Fonds, Saint-Dizier-en-Diois, Beaurières, Charmoy, Saône-et-Loire, Blanzy, Torcy, Montmorin, L'Épine, Saint-Eusèbe, Saône-et-Loire, Charens
Q429310 Q1424755 Q1086047 Q1625698 Q650530 Q1081903 Q384494 Q1060503 Q1075785 Q284455 Q1087784 Q613919 Q1365776 Q738931
OR((Q1075742,P47,c(Q20667921)), (Q1410258,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q1075742
relation P47
action find
entity Q1410258
relation P47
type Q20667921
[ANSWERS] have a shared border with Valdrôme or Les Bizots
{'OR': [['Q1075742', 'P47', {'concept': 'Q20667921'}], ['Q1410258', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?v ) { ( resource:Q1075742 ) ( resource:Q1410258 ) } . ?v property:P47 ?a } . ?a rdf:type ontology:Q20667921 }
Bruis Montcenis Montmorin Torcy La Piarre Beaurières La Bâtie-des-Fonds Charens Les Prés Saint-Dizier-en-Diois L'Épine Charmoy, Saône-et-Loire Blanzy Saint-Eusèbe, Saône-et-Loire
La Bâtie-des-Fonds, Saint-Dizier-en-Diois, Beaurières, Charmoy, Saône-et-Loire, Blanzy, Torcy, Montmorin, L'Épine, Saint-Eusèbe, Saône-et-Loire and Charens have a shared border with Valdrôme or Les Bizots
La Bâtie-des-Fonds Saint-Dizier-en-Diois Beaurières Charmoy, Saône-et-Loire Blanzy Torcy Montmorin L'Épine Saint-Eusèbe, Saône-et-Loire Charens
action filter_type
action union
action find
entity Valdrôme
relation shares border with
action find
entity Les Bizots
relation shares border with
type type of french administrative division
{'OR': [['Valdrôme', 'shares border with', {'concept': 'type of french administrative division'}], ['Les Bizots', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?v ) { ( resource:Valdrôme ) ( resource:Les_Bizots ) } . ?v property:shares_border_with ?a } . ?a rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions share border with that french administrative division ?
(Q613919,P47,c(Q20667921))
['Q613919', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q613919 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
['Charmoy, Saône-et-Loire', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Charmoy,_Saône-et-Loire property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q1060503
SYSTEM
Did you mean Charens ?
(Q384494,P47,c(Q20667921)) (Q284455,P47,c(Q20667921)) (Q1081903,P47,c(Q20667921)) (Q613919,P47,c(Q20667921)) (Q1365776,P47,c(Q20667921)) (Q1625698,P47,c(Q20667921)) (Q1086047,P47,c(Q20667921)) (Q1087784,P47,c(Q20667921)) (Q738931,P47,c(Q20667921)) (Q1060503,P47,c(Q20667921))
[ANSWER]
['Q384494', 'P47', {'concept': 'Q20667921'}] ['Q284455', 'P47', {'concept': 'Q20667921'}] ['Q1081903', 'P47', {'concept': 'Q20667921'}] ['Q613919', 'P47', {'concept': 'Q20667921'}] ['Q1365776', 'P47', {'concept': 'Q20667921'}] ['Q1625698', 'P47', {'concept': 'Q20667921'}] ['Q1086047', 'P47', {'concept': 'Q20667921'}] ['Q1087784', 'P47', {'concept': 'Q20667921'}] ['Q738931', 'P47', {'concept': 'Q20667921'}] ['Q1060503', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q613919 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Did you mean Charens ?
Charens
['La Bâtie-des-Fonds', 'shares border with', {'concept': 'type of french administrative division'}] ['Saint-Dizier-en-Diois', 'shares border with', {'concept': 'type of french administrative division'}] ['Beaurières', 'shares border with', {'concept': 'type of french administrative division'}] ['Charmoy, Saône-et-Loire', 'shares border with', {'concept': 'type of french administrative division'}] ['Blanzy', 'shares border with', {'concept': 'type of french administrative division'}] ['Torcy', 'shares border with', {'concept': 'type of french administrative division'}] ['Montmorin', 'shares border with', {'concept': 'type of french administrative division'}] ["L'Épine", 'shares border with', {'concept': 'type of french administrative division'}] ['Saint-Eusèbe, Saône-et-Loire', 'shares border with', {'concept': 'type of french administrative division'}] ['Charens', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Charmoy,_Saône-et-Loire property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Charmoy, Saône-et-Loire. Could you tell me the answer for that?
(Q613919,P47,c(Q20667921))
Q613919
['Q613919', 'P47', {'concept': 'Q20667921'}]
['Charmoy, Saône-et-Loire', 'shares border with', {'concept': 'type of french administrative division'}]
[]
SYSTEM
8
Q1626558 Q1424755 Q1625508 Q1465522 Q1410258 Q579243 Q1464495 Q1365776
(Q613919,P47,c(Q20667921))
[ANSWER]
['Q613919', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q613919 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Saint-Symphorien-de-Marmagne Montcenis Uchon Saint-Berain-sous-Sanvignes Les Bizots La Tagnière Saint-Eugène Blanzy
8
['Charmoy, Saône-et-Loire', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Charmoy,_Saône-et-Loire property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q292657
Q571
USER
And what about îles des Saintes?
(Q292657,P85,c(Q571))
action count
action filter_type
action find
entity Q292657
relation P85
type Q571
['Q292657', 'P85', {'concept': 'Q571'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { resource:Q292657 property:P85 ?f . ?f rdf:type ontology:Q571 }
îles des Saintes
action count
action filter_type
action find
entity îles des Saintes
relation anthem
type book
['îles des Saintes', 'anthem', {'concept': 'book'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { resource:îles_des_Saintes property:anthem ?f . ?f rdf:type ontology:book }
[]
book
SYSTEM
1
(Q292657,P85,c(Q571))
action count
action filter_type
action find
entity Q292657
relation P85
type Q571
[ANSWER]
['Q292657', 'P85', {'concept': 'Q571'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { resource:Q292657 property:P85 ?f . ?f rdf:type ontology:Q571 }
1
action count
action filter_type
action find
entity îles des Saintes
relation anthem
type book
['îles des Saintes', 'anthem', {'concept': 'book'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { resource:îles_des_Saintes property:anthem ?f . ?f rdf:type ontology:book }
[]