Simple Question (Direct)
Simple Question
Q1110636
P47
Q20667921
USER
Which french administrative divisions are bordered by Astugue ?
(Q1110636,P47,c(Q20667921))
action filter_type
action find
entity Q1110636
relation P47
type Q20667921
['Q1110636', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q1110636 property:P47 ?e . ?e rdf:type ontology:Q20667921 }
Astugue
action filter_type
action find
entity Astugue
relation shares border with
type type of french administrative division
['Astugue', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Astugue property:shares_border_with ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1325797 Q541350 Q944995
SYSTEM
Orincles, Montgaillard, Loucrup
Q1325084 Q654802 Q541350 Q1326161 Q1325797 Q944995 Q1327618 Q1092921
(Q1110636,P47,c(Q20667921))
action filter_type
action find
entity Q1110636
relation P47
type Q20667921
[ANSWERS] are bordered by Astugue
['Q1110636', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q1110636 property:P47 ?e . ?e rdf:type ontology:Q20667921 }
Ossun-ez-Angles Trébons Montgaillard Neuilh Orincles Loucrup Labassère Arrayou-Lahitte
Orincles, Montgaillard and Loucrup are bordered by Astugue
Orincles Montgaillard Loucrup
action filter_type
action find
entity Astugue
relation shares border with
type type of french administrative division
['Astugue', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Astugue property:shares_border_with ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1325797
P17
Q15617994
USER
Which administrative territory is Orincles situated in ?
(Q1325797,P17,c(Q15617994))
action filter_type
action find
entity Q1325797
relation P17
type Q15617994
['Q1325797', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q1325797 property:P17 ?a }
Orincles
action filter_type
action find
entity Orincles
relation country
type designation for an administrative territorial entity
['Orincles', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Orincles property:country ?a }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1325797,P17,c(Q15617994))
action filter_type
action find
entity Q1325797
relation P17
type Q15617994
Orincles is situated in [ANSWER]
['Q1325797', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q1325797 property:P17 ?a }
France
Orincles is situated in France
France
action filter_type
action find
entity Orincles
relation country
type designation for an administrative territorial entity
['Orincles', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Orincles property:country ?a }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7917774
Q15617994
USER
And how about Vectis Formation?
(Q7917774,P17,c(Q15617994))
action filter_type
action find
entity Q7917774
relation P17
type Q15617994
['Q7917774', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q7917774 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Vectis Formation
action filter_type
action find
entity Vectis Formation
relation country
type designation for an administrative territorial entity
['Vectis Formation', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Vectis_Formation property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7917774,P17,c(Q15617994))
action filter_type
action find
entity Q7917774
relation P17
type Q15617994
[ANSWER]
['Q7917774', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q7917774 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Vectis Formation
relation country
type designation for an administrative territorial entity
['Vectis Formation', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Vectis_Formation property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1217913
P206
Q355304 Q1267889 Q20667921
USER
How many french administrative divisions are located nearby approximately the same number of watercourses and waterways as Saint-Agoulin ?
(c(Q20667921),P206,c(Q355304)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action count
action filter_multi_types
action find
entity Q1217913
relation P206
type Q355304
type Q1267889
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?v ) WHERE { { ?w property:P206 ?n . ?w rdf:type ontology:Q20667921 . ?n rdf:type ontology:Q355304 } UNION { ?w property:P206 ?n . ?n rdf:type ontology:Q1267889 . ?w rdf:type ontology:Q20667921 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Q1217913 property:P206 ?s . { VALUES ( ?t ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } . ?s rdf:type ?t } } } . FILTER ( ?v = ?k ) }
Saint-Agoulin
action count
action approx
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 waterway
action count
action filter_multi_types
action find
entity Saint-Agoulin
relation located next to body of water
type watercourse
type waterway
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?v ) WHERE { { ?w property:located_next_to_body_of_water ?n . ?w rdf:type ontology:type_of_french_administrative_division . ?n rdf:type ontology:watercourse } UNION { ?w property:located_next_to_body_of_water ?n . ?n rdf:type ontology:waterway . ?w rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Saint-Agoulin property:located_next_to_body_of_water ?s . { VALUES ( ?t ) { ( ontology:watercourse ) ( ontology:waterway ) } . ?s rdf:type ?t } } } . FILTER ( ?v = ?k ) }
[]
watercourse waterway type of french administrative division
SYSTEM
29
Q224023 Q245066 Q30974 Q877744 Q1221458 Q236736 Q160199 Q207253 Q675318 Q683550 Q1221814 Q849165 Q453263 Q1073039 Q921780 Q1162138 Q849065 Q849023 Q1031980 Q333447 Q382048 Q738523 Q1164176 Q1075733 Q1217913 Q545015 Q662229 Q273297 Q284445
(c(Q20667921),P206,c(Q355304)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action count
action filter_multi_types
action find
entity Q1217913
relation P206
type Q355304
type Q1267889
[ANSWER]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?v ) WHERE { { ?w property:P206 ?n . ?w rdf:type ontology:Q20667921 . ?n rdf:type ontology:Q355304 } UNION { ?w property:P206 ?n . ?n rdf:type ontology:Q1267889 . ?w rdf:type ontology:Q20667921 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Q1217913 property:P206 ?s . { VALUES ( ?t ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } . ?s rdf:type ?t } } } . FILTER ( ?v = ?k ) }
Penvénan Chouvigny Rouen Le Portel Saint-Quintin-sur-Sioule Vernon Cherbourg-Octeville Mantes-la-Jolie Bussières-et-Pruns Urville-Nacqueville Menat Saint-Bonnet-de-Rochefort Pleumeur-Bodou Poses Val-de-Reuil Isches Bègues Mazerier Escalles Aigueperse Tardinghen Saint-Gal-sur-Sioule Saint-Léonard La Roche-de-Glun Saint-Agoulin Chaptuzat Jenzat Ébreuil Pontgibaud
29
action count
action approx
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 waterway
action count
action filter_multi_types
action find
entity Saint-Agoulin
relation located next to body of water
type watercourse
type waterway
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?v ) WHERE { { ?w property:located_next_to_body_of_water ?n . ?w rdf:type ontology:type_of_french_administrative_division . ?n rdf:type ontology:watercourse } UNION { ?w property:located_next_to_body_of_water ?n . ?n rdf:type ontology:waterway . ?w rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Saint-Agoulin property:located_next_to_body_of_water ?s . { VALUES ( ?t ) { ( ontology:watercourse ) ( ontology:waterway ) } . ?s rdf:type ?t } } } . FILTER ( ?v = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q849165
P206
Q355304 Q1267889 Q20667921
USER
And how about Saint-Bonnet-de-Rochefort?
(c(Q20667921),P206,c(Q355304)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action count
action filter_multi_types
action find
entity Q849165
relation P206
type Q355304
type Q1267889
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?t WHERE { { ?t property:P206 ?f . ?t rdf:type ontology:Q20667921 . ?f rdf:type ontology:Q355304 } UNION { ?t property:P206 ?f . ?t rdf:type ontology:Q20667921 . ?f rdf:type ontology:Q1267889 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } } . resource:Q849165 property:P206 ?m } } . FILTER ( ?n = ?a ) }
Saint-Bonnet-de-Rochefort
action count
action approx
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 waterway
action count
action filter_multi_types
action find
entity Saint-Bonnet-de-Rochefort
relation located next to body of water
type watercourse
type waterway
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?t WHERE { { ?t property:located_next_to_body_of_water ?f . ?t rdf:type ontology:type_of_french_administrative_division . ?f rdf:type ontology:watercourse } UNION { ?t property:located_next_to_body_of_water ?f . ?t rdf:type ontology:type_of_french_administrative_division . ?f rdf:type ontology:waterway } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:watercourse ) ( ontology:waterway ) } } . resource:Saint-Bonnet-de-Rochefort property:located_next_to_body_of_water ?m } } . FILTER ( ?n = ?a ) }
[]
watercourse waterway type of french administrative division
SYSTEM
29
Q224023 Q245066 Q30974 Q877744 Q1221458 Q236736 Q160199 Q207253 Q675318 Q683550 Q1221814 Q849165 Q453263 Q1073039 Q921780 Q1162138 Q849065 Q849023 Q1031980 Q333447 Q382048 Q738523 Q1164176 Q1075733 Q1217913 Q545015 Q662229 Q273297 Q284445
(c(Q20667921),P206,c(Q355304)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action count
action filter_multi_types
action find
entity Q849165
relation P206
type Q355304
type Q1267889
[ANSWER]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?t WHERE { { ?t property:P206 ?f . ?t rdf:type ontology:Q20667921 . ?f rdf:type ontology:Q355304 } UNION { ?t property:P206 ?f . ?t rdf:type ontology:Q20667921 . ?f rdf:type ontology:Q1267889 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } } . resource:Q849165 property:P206 ?m } } . FILTER ( ?n = ?a ) }
Penvénan Chouvigny Rouen Le Portel Saint-Quintin-sur-Sioule Vernon Cherbourg-Octeville Mantes-la-Jolie Bussières-et-Pruns Urville-Nacqueville Menat Saint-Bonnet-de-Rochefort Pleumeur-Bodou Poses Val-de-Reuil Isches Bègues Mazerier Escalles Aigueperse Tardinghen Saint-Gal-sur-Sioule Saint-Léonard La Roche-de-Glun Saint-Agoulin Chaptuzat Jenzat Ébreuil Pontgibaud
29
action count
action approx
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 waterway
action count
action filter_multi_types
action find
entity Saint-Bonnet-de-Rochefort
relation located next to body of water
type watercourse
type waterway
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?t WHERE { { ?t property:located_next_to_body_of_water ?f . ?t rdf:type ontology:type_of_french_administrative_division . ?f rdf:type ontology:watercourse } UNION { ?t property:located_next_to_body_of_water ?f . ?t rdf:type ontology:type_of_french_administrative_division . ?f rdf:type ontology:waterway } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:watercourse ) ( ontology:waterway ) } } . resource:Saint-Bonnet-de-Rochefort property:located_next_to_body_of_water ?m } } . FILTER ( ?n = ?a ) }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q849165
Q355304
USER
And which watercourse?
(Q849165,P206,c(Q355304))
action filter_type
action find
entity Q849165
relation P206
type Q355304
['Q849165', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?w WHERE { resource:Q849165 property:P206 ?w . ?w rdf:type ontology:Q355304 }
Saint-Bonnet-de-Rochefort
action filter_type
action find
entity Saint-Bonnet-de-Rochefort
relation located next to body of water
type watercourse
['Saint-Bonnet-de-Rochefort', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?w WHERE { resource:Saint-Bonnet-de-Rochefort property:located_next_to_body_of_water ?w . ?w rdf:type ontology:watercourse }
[]
watercourse
Q946604
SYSTEM
Sioule
Q946604
(Q849165,P206,c(Q355304))
action filter_type
action find
entity Q849165
relation P206
type Q355304
[ANSWER]
['Q849165', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?w WHERE { resource:Q849165 property:P206 ?w . ?w rdf:type ontology:Q355304 }
Sioule
Sioule
action filter_type
action find
entity Saint-Bonnet-de-Rochefort
relation located next to body of water
type watercourse
['Saint-Bonnet-de-Rochefort', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?w WHERE { resource:Saint-Bonnet-de-Rochefort property:located_next_to_body_of_water ?w . ?w rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q946604 Q277684 Q142
P17
Q15617994
USER
Is that watercourse present in Matrice and France ?
(Q946604,P17,Q277684) (Q946604,P17,Q142)
action is_in
entity Q946604
action intersection
action find_reverse
entity Q277684
relation P17
action find_reverse
entity Q142
relation P17
['Q946604', 'P17', 'Q277684'] ['Q946604', 'P17', 'Q142']
ASK WHERE { resource:Q946604 property:P17 resource:Q142 . resource:Q946604 property:P17 resource:Q277684 }
Sioule Matrice France
action is_in
entity Sioule
action intersection
action find_reverse
entity Matrice
relation country
action find_reverse
entity France
relation country
['Sioule', 'country', 'Matrice'] ['Sioule', 'country', 'France']
ASK WHERE { resource:Sioule property:country resource:France . resource:Sioule property:country resource:Matrice }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q946604,P17,Q277684) (Q946604,P17,Q142)
action is_in
entity Q946604
action intersection
action find_reverse
entity Q277684
relation P17
action find_reverse
entity Q142
relation P17
[ANSWER]
['Q946604', 'P17', 'Q277684'] ['Q946604', 'P17', 'Q142']
ASK WHERE { resource:Q946604 property:P17 resource:Q142 . resource:Q946604 property:P17 resource:Q277684 }
NO and YES respectively
action is_in
entity Sioule
action intersection
action find_reverse
entity Matrice
relation country
action find_reverse
entity France
relation country
['Sioule', 'country', 'Matrice'] ['Sioule', 'country', 'France']
ASK WHERE { resource:Sioule property:country resource:France . resource:Sioule property:country resource:Matrice }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1325797 Q782714
P47
Q20667921
USER
Does Becquigny share the border with Orincles ?
(Q1325797,P47,Q782714)
action is_in
entity Q782714
action find
entity Q1325797
relation P47
['Q1325797', 'P47', 'Q782714']
ASK WHERE { resource:Q1325797 property:P47 resource:Q782714 }
Orincles Becquigny
action is_in
entity Becquigny
action find
entity Orincles
relation shares border with
['Orincles', 'shares border with', 'Becquigny']
ASK WHERE { resource:Orincles property:shares_border_with resource:Becquigny }
[]
type of french administrative division
SYSTEM
NO
(Q1325797,P47,Q782714)
action is_in
entity Q782714
action find
entity Q1325797
relation P47
[ANSWER]
['Q1325797', 'P47', 'Q782714']
ASK WHERE { resource:Q1325797 property:P47 resource:Q782714 }
No
action is_in
entity Becquigny
action find
entity Orincles
relation shares border with
['Orincles', 'shares border with', 'Becquigny']
ASK WHERE { resource:Orincles property:shares_border_with resource:Becquigny }
[]