Simple Question (Direct)
Simple Question
Q1098682
P17
Q15617994
USER
Which administrative territory is Bucamps located in ?
(Q1098682,P17,c(Q15617994))
action filter_type
action find
entity Q1098682
relation P17
type Q15617994
['Q1098682', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1098682 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Bucamps
action filter_type
action find
entity Bucamps
relation country
type designation for an administrative territorial entity
['Bucamps', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Bucamps property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1098682,P17,c(Q15617994))
action filter_type
action find
entity Q1098682
relation P17
type Q15617994
Bucamps is located in [ANSWER]
['Q1098682', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1098682 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
France
Bucamps is located in France
France
action filter_type
action find
entity Bucamps
relation country
type designation for an administrative territorial entity
['Bucamps', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Bucamps property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1098682
P47
Q20667921
USER
Which french administrative divisions are next to the border of Bucamps ?
(c(Q20667921),P47,Q1098682)
action filter_type
action find
entity Q1098682
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q1098682']
SELECT DISTINCT ?l WHERE { resource:Q1098682 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Bucamps
action filter_type
action find
entity Bucamps
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Bucamps']
SELECT DISTINCT ?l WHERE { resource:Bucamps property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q959594 Q1409178 Q1095577
SYSTEM
Noyers-Saint-Martin, Nourard-le-Franc, Catillon-Fumechon
Q1166713 Q613752 Q1095577 Q1334325 Q741438 Q959594 Q1409178
(c(Q20667921),P47,Q1098682)
action filter_type
action find
entity Q1098682
relation P47
type Q20667921
[ANSWERS] are next to the border of Bucamps
[{'concept': 'Q20667921'}, 'P47', 'Q1098682']
SELECT DISTINCT ?l WHERE { resource:Q1098682 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Thieux Le Quesnel-Aubry Catillon-Fumechon Wavignies Montreuil-sur-Brêche Noyers-Saint-Martin Nourard-le-Franc
Noyers-Saint-Martin, Nourard-le-Franc and Catillon-Fumechon are next to the border of Bucamps
Noyers-Saint-Martin Nourard-le-Franc Catillon-Fumechon
action filter_type
action find
entity Bucamps
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Bucamps']
SELECT DISTINCT ?l WHERE { resource:Bucamps property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q959594 Q1409178 Q1095577
P47
Q20667921
USER
Which french administrative divisions are bordered by Noyers-Saint-Martin, Nourard-le-Franc and Catillon-Fumechon ?
(c(Q20667921),P47,Q959594) (c(Q20667921),P47,Q1409178) (c(Q20667921),P47,Q1095577)
action union
action filter_type
action find
entity Q959594
relation P47
type Q20667921
action filter_type
action find
entity Q1409178
relation P47
type Q20667921
action filter_type
action find
entity Q1095577
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q959594'] [{'concept': 'Q20667921'}, 'P47', 'Q1409178'] [{'concept': 'Q20667921'}, 'P47', 'Q1095577']
SELECT DISTINCT ?k WHERE { VALUES ( ?v ) { ( resource:Q1409178 ) ( resource:Q959594 ) } . ?v property:P47 ?k }
Noyers-Saint-Martin Nourard-le-Franc Catillon-Fumechon
action union
action filter_type
action find
entity Noyers-Saint-Martin
relation shares border with
type type of french administrative division
action filter_type
action find
entity Nourard-le-Franc
relation shares border with
type type of french administrative division
action filter_type
action find
entity Catillon-Fumechon
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Noyers-Saint-Martin'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Nourard-le-Franc'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Catillon-Fumechon']
SELECT DISTINCT ?k WHERE { VALUES ( ?v ) { ( resource:Nourard-le-Franc ) ( resource:Noyers-Saint-Martin ) } . ?v property:shares_border_with ?k }
[]
type of french administrative division
Q1331906 Q389077 Q389077
SYSTEM
Reuil-sur-Brêche for 1st, Saint-Just-en-Chaussée for 2nd, 3rd
Q1166713 Q1365017 Q1098682 Q1095521 Q741438 Q1331906 Q1336612 Q1065228 Q389077 Q1098682 Q613752 Q1095577 Q785914 Q1161329 Q1336735 Q389077 Q1098682 Q387478 Q1409178 Q1334325 Q1335507
(c(Q20667921),P47,Q959594) (c(Q20667921),P47,Q1409178) (c(Q20667921),P47,Q1095577)
action union
action filter_type
action find
entity Q959594
relation P47
type Q20667921
action filter_type
action find
entity Q1409178
relation P47
type Q20667921
action filter_type
action find
entity Q1095577
relation P47
type Q20667921
[ANSWERS]
[{'concept': 'Q20667921'}, 'P47', 'Q959594'] [{'concept': 'Q20667921'}, 'P47', 'Q1409178'] [{'concept': 'Q20667921'}, 'P47', 'Q1095577']
SELECT DISTINCT ?k WHERE { VALUES ( ?v ) { ( resource:Q1409178 ) ( resource:Q959594 ) } . ?v property:P47 ?k }
Thieux Sainte-Eusoye Bucamps Campremy Montreuil-sur-Brêche Reuil-sur-Brêche Noirémont Saint-André-Farivillers Saint-Just-en-Chaussée Bucamps Le Quesnel-Aubry Catillon-Fumechon Le Plessier-sur-Bulles Le Mesnil-sur-Bulles Valescourt Saint-Just-en-Chaussée Bucamps Ansauvillers Nourard-le-Franc Wavignies Quinquempoix
The Reuil-sur-Brêche, Saint-Just-en-Chaussée and Saint-Just-en-Chaussée are bordered by Noyers-Saint-Martin, Nourard-le-Franc and Catillon-Fumechon
Reuil-sur-Brêche Saint-Just-en-Chaussée Saint-Just-en-Chaussée
action union
action filter_type
action find
entity Noyers-Saint-Martin
relation shares border with
type type of french administrative division
action filter_type
action find
entity Nourard-le-Franc
relation shares border with
type type of french administrative division
action filter_type
action find
entity Catillon-Fumechon
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Noyers-Saint-Martin'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Nourard-le-Franc'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Catillon-Fumechon']
SELECT DISTINCT ?k WHERE { VALUES ( ?v ) { ( resource:Nourard-le-Franc ) ( resource:Noyers-Saint-Martin ) } . ?v property:shares_border_with ?k }
[]
Clarification
Simple Question|Single Entity|Indirect
Q389077
P36
Q20667921
USER
Which french administrative division contains that one as its capital ?
(c(Q20667921),P36,Q389077)
action filter_type
action find_reverse
entity Q389077
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q389077']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q20667921 . ?o property:P36 resource:Q389077 }
Saint-Just-en-Chaussée
action filter_type
action find_reverse
entity Saint-Just-en-Chaussée
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Saint-Just-en-Chaussée']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:type_of_french_administrative_division . ?o property:capital resource:Saint-Just-en-Chaussée }
[]
type of french administrative division
Clarification for simple ques.
Q1331906
SYSTEM
Did you mean Reuil-sur-Brêche ?
Q1331906 Q389077 Q389077
(c(Q20667921),P36,Q1331906) (c(Q20667921),P36,Q389077) (c(Q20667921),P36,Q389077)
[ANSWER]
[{'concept': 'Q20667921'}, 'P36', 'Q1331906'] [{'concept': 'Q20667921'}, 'P36', 'Q389077'] [{'concept': 'Q20667921'}, 'P36', 'Q389077']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q20667921 . ?o property:P36 resource:Q389077 }
Reuil-sur-Brêche Saint-Just-en-Chaussée Saint-Just-en-Chaussée
Did you mean Reuil-sur-Brêche ?
Reuil-sur-Brêche
[{'concept': 'type of french administrative division'}, 'capital', 'Reuil-sur-Brêche'] [{'concept': 'type of french administrative division'}, 'capital', 'Saint-Just-en-Chaussée'] [{'concept': 'type of french administrative division'}, 'capital', 'Saint-Just-en-Chaussée']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:type_of_french_administrative_division . ?o property:capital resource:Saint-Just-en-Chaussée }
[]
Simple Question (Coreferenced)
USER
No, I meant Saint-Just-en-Chaussée. Could you tell me the answer for that?
(c(Q20667921),P36,Q389077)
Q389077
[{'concept': 'Q20667921'}, 'P36', 'Q389077']
[{'concept': 'type of french administrative division'}, 'capital', 'Saint-Just-en-Chaussée']
[]
Q726975
SYSTEM
canton of Saint-Just-en-Chaussée
Q726975
(c(Q20667921),P36,Q389077)
action filter_type
action find_reverse
entity Q389077
relation P36
type Q20667921
The [ANSWER] contains that one as its capital
[{'concept': 'Q20667921'}, 'P36', 'Q389077']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q20667921 . ?o property:P36 resource:Q389077 }
canton of Saint-Just-en-Chaussée
The canton of Saint-Just-en-Chaussée contains that one as its capital
canton of Saint-Just-en-Chaussée
action filter_type
action find_reverse
entity Saint-Just-en-Chaussée
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Saint-Just-en-Chaussée']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:type_of_french_administrative_division . ?o property:capital resource:Saint-Just-en-Chaussée }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q726975
P36
Q20667921
USER
Which french administrative division is associated to that one as the capital ?
(Q726975,P36,c(Q20667921))
action filter_type
action find
entity Q726975
relation P36
type Q20667921
['Q726975', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q726975 property:P36 ?p . ?p rdf:type ontology:Q20667921 }
canton of Saint-Just-en-Chaussée
action filter_type
action find
entity canton of Saint-Just-en-Chaussée
relation capital
type type of french administrative division
['canton of Saint-Just-en-Chaussée', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:canton_of_Saint-Just-en-Chaussée property:capital ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q389077
SYSTEM
Saint-Just-en-Chaussée
Q389077
(Q726975,P36,c(Q20667921))
action filter_type
action find
entity Q726975
relation P36
type Q20667921
[ANSWER] is associated to that one as the capital
['Q726975', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q726975 property:P36 ?p . ?p rdf:type ontology:Q20667921 }
Saint-Just-en-Chaussée
Saint-Just-en-Chaussée is associated to that one as the capital
Saint-Just-en-Chaussée
action filter_type
action find
entity canton of Saint-Just-en-Chaussée
relation capital
type type of french administrative division
['canton of Saint-Just-en-Chaussée', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:canton_of_Saint-Just-en-Chaussée property:capital ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q1267889 Q355304 Q20667921
USER
Which french administrative divisions are situated in the neighbourhood of exactly 2 waterways and watercourses ?
(c(Q20667921),P206,c(Q1267889)|c(Q355304))
action equal
action union
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action find_tuple_counts
relation P206
type Q20667921
type Q355304
value 2
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?l WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } } GROUP BY ?l } . FILTER ( ?h = 2 ) }
action equal
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
value 2
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?l WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:waterway ) ( ontology:watercourse ) } } GROUP BY ?l } . FILTER ( ?h = 2 ) }
[]
waterway watercourse type of french administrative division
Q20892
SYSTEM
Le Mont-Saint-Michel
Q20892
(c(Q20667921),P206,c(Q1267889)|c(Q355304))
action equal
action union
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action find_tuple_counts
relation P206
type Q20667921
type Q355304
value 2
[ANSWER] is situated in the neighbourhood of exactly 2 waterways and watercourses
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?l WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } } GROUP BY ?l } . FILTER ( ?h = 2 ) }
Le Mont-Saint-Michel
Le Mont-Saint-Michel is situated in the neighbourhood of exactly 2 waterways and watercourses
Le Mont-Saint-Michel
action equal
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
value 2
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?l WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:waterway ) ( ontology:watercourse ) } } GROUP BY ?l } . FILTER ( ?h = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q20667921 Q502895 Q12280
USER
How many french administrative divisions are exactly 1 people and bridges named after ?
(c(Q502895)|c(Q12280),P138,c(Q20667921))
action count
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q502895
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q12280
value 1
[[{'concept': 'Q502895'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?o WHERE { { ?e property:P138 ?o . ?o rdf:type ontology:Q20667921 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P138 ?o . ?e rdf:type ontology:Q12280 . ?o rdf:type ontology:Q20667921 } } GROUP BY ?o } . FILTER ( ?h = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type common name
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type bridge
value 1
[[{'concept': 'common name'}, {'concept': 'bridge'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?o WHERE { { ?e property:named_after ?o . ?o rdf:type ontology:type_of_french_administrative_division . ?e rdf:type ontology:common_name } UNION { ?e property:named_after ?o . ?e rdf:type ontology:bridge . ?o rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?o } . FILTER ( ?h = 1 ) }
[]
type of french administrative division common name bridge
SYSTEM
4
Q16532200 Q208793 Q18199186 Q233909
(c(Q502895)|c(Q12280),P138,c(Q20667921))
action count
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q502895
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q12280
value 1
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?o WHERE { { ?e property:P138 ?o . ?o rdf:type ontology:Q20667921 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P138 ?o . ?e rdf:type ontology:Q12280 . ?o rdf:type ontology:Q20667921 } } GROUP BY ?o } . FILTER ( ?h = 1 ) }
Bercy Saint-Omer Grenelle Alfortville
4
action count
action equal
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type common name
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type bridge
value 1
[[{'concept': 'common name'}, {'concept': 'bridge'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?o WHERE { { ?e property:named_after ?o . ?o rdf:type ontology:type_of_french_administrative_division . ?e rdf:type ontology:common_name } UNION { ?e property:named_after ?o . ?e rdf:type ontology:bridge . ?o rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?o } . FILTER ( ?h = 1 ) }
[]