Simple Question (Direct)
Simple Question
Q43096
P47
Q20667921
USER
Who share the border with Le Pin ?
(Q43096,P47,c(Q20667921))
action filter_type
action find
entity Q43096
relation P47
type Q20667921
['Q43096', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q43096 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Le Pin
action filter_type
action find
entity Le Pin
relation shares border with
type type of french administrative division
['Le Pin', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Le_Pin property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q768614 Q746857 Q1009849
SYSTEM
Saint-Philbert-des-Champs, Moyaux, Asnières
Q746857 Q1137273 Q768665 Q1009849 Q768614 Q862534
(Q43096,P47,c(Q20667921))
action filter_type
action find
entity Q43096
relation P47
type Q20667921
[ANSWERS] share the border with Le Pin
['Q43096', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q43096 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Moyaux Saint-Pierre-de-Cormeilles Le Brévedent Asnières Saint-Philbert-des-Champs Le Faulq
Saint-Philbert-des-Champs, Moyaux and Asnières share the border with Le Pin
Saint-Philbert-des-Champs Moyaux Asnières
action filter_type
action find
entity Le Pin
relation shares border with
type type of french administrative division
['Le Pin', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Le_Pin property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q871062
Q20667921
USER
And also tell me about Nouvion-et-Catillon?
(Q871062,P47,c(Q20667921))
action filter_type
action find
entity Q871062
relation P47
type Q20667921
['Q871062', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?c WHERE { resource:Q871062 property:P47 ?c . ?c rdf:type ontology:Q20667921 }
Nouvion-et-Catillon
action filter_type
action find
entity Nouvion-et-Catillon
relation shares border with
type type of french administrative division
['Nouvion-et-Catillon', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?c WHERE { resource:Nouvion-et-Catillon property:shares_border_with ?c . ?c rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1000152 Q868981 Q850087
SYSTEM
La Ferté-Chevresis, Renansart, Surfontaine
Q867607 Q868981 Q1000152 Q870755 Q1020225 Q1020281 Q871672 Q850087
(Q871062,P47,c(Q20667921))
action filter_type
action find
entity Q871062
relation P47
type Q20667921
[ANSWERS]
['Q871062', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?c WHERE { resource:Q871062 property:P47 ?c . ?c rdf:type ontology:Q20667921 }
Remies Renansart La Ferté-Chevresis Mesbrecourt-Richecourt Courbes Monceau-lès-Leups Nouvion-le-Comte Surfontaine
La Ferté-Chevresis Renansart Surfontaine
action filter_type
action find
entity Nouvion-et-Catillon
relation shares border with
type type of french administrative division
['Nouvion-et-Catillon', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?c WHERE { resource:Nouvion-et-Catillon property:shares_border_with ?c . ?c rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q871062
P47
Q20667921
USER
Do Nouvion-et-Catillon have an adjacent border with those ones ?
(Q871062,P47,Q1000152) (Q871062,P47,Q868981) (Q871062,P47,Q850087)
action is_in
entity prev_answer
action find
entity Q871062
relation P47
['Q871062', 'P47', 'Q1000152'] ['Q871062', 'P47', 'Q868981'] ['Q871062', 'P47', 'Q850087']
ASK WHERE { VALUES ( ?y ) { ( resource:Q867607 ) ( resource:Q868981 ) ( resource:Q1000152 ) } . resource:Q871062 property:P47 ?y }
Nouvion-et-Catillon
action is_in
entity prev_answer
action find
entity Nouvion-et-Catillon
relation shares border with
['Nouvion-et-Catillon', 'shares border with', 'La Ferté-Chevresis'] ['Nouvion-et-Catillon', 'shares border with', 'Renansart'] ['Nouvion-et-Catillon', 'shares border with', 'Surfontaine']
ASK WHERE { VALUES ( ?y ) { ( resource:Remies ) ( resource:Renansart ) ( resource:La_Ferté-Chevresis ) } . resource:Nouvion-et-Catillon property:shares_border_with ?y }
[]
type of french administrative division
SYSTEM
YES
(Q871062,P47,Q1000152) (Q871062,P47,Q868981) (Q871062,P47,Q850087)
action is_in
entity prev_answer
action find
entity Q871062
relation P47
[ANSWER]
['Q871062', 'P47', 'Q1000152'] ['Q871062', 'P47', 'Q868981'] ['Q871062', 'P47', 'Q850087']
ASK WHERE { VALUES ( ?y ) { ( resource:Q867607 ) ( resource:Q868981 ) ( resource:Q1000152 ) } . resource:Q871062 property:P47 ?y }
Yes
action is_in
entity prev_answer
action find
entity Nouvion-et-Catillon
relation shares border with
['Nouvion-et-Catillon', 'shares border with', 'La Ferté-Chevresis'] ['Nouvion-et-Catillon', 'shares border with', 'Renansart'] ['Nouvion-et-Catillon', 'shares border with', 'Surfontaine']
ASK WHERE { VALUES ( ?y ) { ( resource:Remies ) ( resource:Renansart ) ( resource:La_Ferté-Chevresis ) } . resource:Nouvion-et-Catillon property:shares_border_with ?y }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q868981 Q1340726 Q617247
P47
Q20667921
USER
Is Renansart bordered by Lonlay-le-Tesson and Sainte-Colombe-de-Duras ?
(Q868981,P47,Q1340726) (Q868981,P47,Q617247)
action is_in
entity Q868981
action intersection
action find_reverse
entity Q1340726
relation P47
action find_reverse
entity Q617247
relation P47
['Q868981', 'P47', 'Q1340726'] ['Q868981', 'P47', 'Q617247']
ASK WHERE { resource:Q868981 property:P47 resource:Q617247 . resource:Q868981 property:P47 resource:Q1340726 }
Renansart Lonlay-le-Tesson Sainte-Colombe-de-Duras
action is_in
entity Renansart
action intersection
action find_reverse
entity Lonlay-le-Tesson
relation shares border with
action find_reverse
entity Sainte-Colombe-de-Duras
relation shares border with
['Renansart', 'shares border with', 'Lonlay-le-Tesson'] ['Renansart', 'shares border with', 'Sainte-Colombe-de-Duras']
ASK WHERE { resource:Renansart property:shares_border_with resource:Sainte-Colombe-de-Duras . resource:Renansart property:shares_border_with resource:Lonlay-le-Tesson }
[]
type of french administrative division
SYSTEM
NO
(Q868981,P47,Q1340726) (Q868981,P47,Q617247)
action is_in
entity Q868981
action intersection
action find_reverse
entity Q1340726
relation P47
action find_reverse
entity Q617247
relation P47
[ANSWER]
['Q868981', 'P47', 'Q1340726'] ['Q868981', 'P47', 'Q617247']
ASK WHERE { resource:Q868981 property:P47 resource:Q617247 . resource:Q868981 property:P47 resource:Q1340726 }
No
action is_in
entity Renansart
action intersection
action find_reverse
entity Lonlay-le-Tesson
relation shares border with
action find_reverse
entity Sainte-Colombe-de-Duras
relation shares border with
['Renansart', 'shares border with', 'Lonlay-le-Tesson'] ['Renansart', 'shares border with', 'Sainte-Colombe-de-Duras']
ASK WHERE { resource:Renansart property:shares_border_with resource:Sainte-Colombe-de-Duras . resource:Renansart property:shares_border_with resource:Lonlay-le-Tesson }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q1267889 Q20667921
USER
How many french administrative divisions are located in the neighbourhood of exactly 1 watercourses and waterways ?
(c(Q20667921),P206,c(Q355304)|c(Q1267889))
action count
action equal
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
value 1
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?a ) WHERE { { ?x property:P206 ?k . ?x rdf:type ontology:Q20667921 . ?k rdf:type ontology:Q355304 } UNION { ?x property:P206 ?k . ?x rdf:type ontology:Q20667921 . ?k rdf:type ontology:Q1267889 } } GROUP BY ?x } . FILTER ( ?a = 1 ) }
action count
action equal
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
value 1
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?a ) WHERE { { ?x property:located_next_to_body_of_water ?k . ?x rdf:type ontology:type_of_french_administrative_division . ?k rdf:type ontology:watercourse } UNION { ?x property:located_next_to_body_of_water ?k . ?x rdf:type ontology:type_of_french_administrative_division . ?k rdf:type ontology:waterway } } GROUP BY ?x } . FILTER ( ?a = 1 ) }
[]
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 equal
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
value 1
[ANSWER]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?a ) WHERE { { ?x property:P206 ?k . ?x rdf:type ontology:Q20667921 . ?k rdf:type ontology:Q355304 } UNION { ?x property:P206 ?k . ?x rdf:type ontology:Q20667921 . ?k rdf:type ontology:Q1267889 } } GROUP BY ?x } . FILTER ( ?a = 1 ) }
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 equal
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
value 1
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?a ) WHERE { { ?x property:located_next_to_body_of_water ?k . ?x rdf:type ontology:type_of_french_administrative_division . ?k rdf:type ontology:watercourse } UNION { ?x property:located_next_to_body_of_water ?k . ?x rdf:type ontology:type_of_french_administrative_division . ?k rdf:type ontology:waterway } } GROUP BY ?x } . FILTER ( ?a = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1000152
P166
Q618779
USER
What was won by La Ferté-Chevresis ?
(Q1000152,P166,c(Q618779))
action filter_type
action find
entity Q1000152
relation P166
type Q618779
['Q1000152', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q618779 . resource:Q1000152 property:P166 ?n }
La Ferté-Chevresis
action filter_type
action find
entity La Ferté-Chevresis
relation award received
type award
['La Ferté-Chevresis', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:award . resource:La_Ferté-Chevresis property:award_received ?n }
[]
award
Q2727598
SYSTEM
Croix de guerre 1914–1918
Q2727598
(Q1000152,P166,c(Q618779))
action filter_type
action find
entity Q1000152
relation P166
type Q618779
France [ANSWER] was won by La Ferté-Chevresis
['Q1000152', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q618779 . resource:Q1000152 property:P166 ?n }
Croix de guerre 1914–1918
France Croix de guerre 1914–1918 was won by La Ferté-Chevresis
Croix de guerre 1914–1918
action filter_type
action find
entity La Ferté-Chevresis
relation award received
type award
['La Ferté-Chevresis', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:award . resource:La_Ferté-Chevresis property:award_received ?n }
[]