Simple Question (Direct)
Simple Question
Q21586
P47
Q20667921
USER
Which french administrative divisions have a shared border with Léning ?
(Q21586,P47,c(Q20667921))
action filter_type
action find
entity Q21586
relation P47
type Q20667921
['Q21586', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { resource:Q21586 property:P47 ?y . ?y rdf:type ontology:Q20667921 }
Léning
action filter_type
action find
entity Léning
relation shares border with
type type of french administrative division
['Léning', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { resource:Léning property:shares_border_with ?y . ?y rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q21635 Q21621 Q22456
SYSTEM
Albestroff, Francaltroff, Hellimer
Q21621 Q21635 Q22456 Q22370 Q22399 Q21970 Q22917
(Q21586,P47,c(Q20667921))
action filter_type
action find
entity Q21586
relation P47
type Q20667921
[ANSWERS] have a shared border with Léning
['Q21586', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { resource:Q21586 property:P47 ?y . ?y rdf:type ontology:Q20667921 }
Francaltroff Albestroff Hellimer Réning Gréning Montdidier Nelling
Albestroff, Francaltroff and Hellimer have a shared border with Léning
Albestroff Francaltroff Hellimer
action filter_type
action find
entity Léning
relation shares border with
type type of french administrative division
['Léning', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { resource:Léning property:shares_border_with ?y . ?y rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21635
P36
Q20667921
USER
Which french administrative division contains Albestroff as its capital ?
(c(Q20667921),P36,Q21635)
action filter_type
action find_reverse
entity Q21635
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q21635']
SELECT DISTINCT ?z WHERE { ?z property:P36 resource:Q21635 . ?z rdf:type ontology:Q20667921 }
Albestroff
action filter_type
action find_reverse
entity Albestroff
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Albestroff']
SELECT DISTINCT ?z WHERE { ?z property:capital resource:Albestroff . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1398129
SYSTEM
canton of Albestroff
Q1398129
(c(Q20667921),P36,Q21635)
action filter_type
action find_reverse
entity Q21635
relation P36
type Q20667921
The [ANSWER] contains Albestroff as its capital
[{'concept': 'Q20667921'}, 'P36', 'Q21635']
SELECT DISTINCT ?z WHERE { ?z property:P36 resource:Q21635 . ?z rdf:type ontology:Q20667921 }
canton of Albestroff
The canton of Albestroff contains Albestroff as its capital
canton of Albestroff
action filter_type
action find_reverse
entity Albestroff
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Albestroff']
SELECT DISTINCT ?z WHERE { ?z property:capital resource:Albestroff . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1398129
P1376
Q20667921
USER
Which french administrative division is the county seat for that one ?
(c(Q20667921),P1376,Q1398129)
action filter_type
action find_reverse
entity Q1398129
relation P1376
type Q20667921
[{'concept': 'Q20667921'}, 'P1376', 'Q1398129']
SELECT DISTINCT ?v WHERE { ?v property:P1376 resource:Q1398129 . ?v rdf:type ontology:Q20667921 }
canton of Albestroff
action filter_type
action find_reverse
entity canton of Albestroff
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Albestroff']
SELECT DISTINCT ?v WHERE { ?v property:capital_of resource:canton_of_Albestroff . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q21635
SYSTEM
Albestroff
Q21635
(c(Q20667921),P1376,Q1398129)
action filter_type
action find_reverse
entity Q1398129
relation P1376
type Q20667921
County [ANSWER] is the county seat for that one
[{'concept': 'Q20667921'}, 'P1376', 'Q1398129']
SELECT DISTINCT ?v WHERE { ?v property:P1376 resource:Q1398129 . ?v rdf:type ontology:Q20667921 }
Albestroff
County Albestroff is the county seat for that one
Albestroff
action filter_type
action find_reverse
entity canton of Albestroff
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Albestroff']
SELECT DISTINCT ?v WHERE { ?v property:capital_of resource:canton_of_Albestroff . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q21635
P47
Q20667921
USER
How many french administrative divisions have a shared border with Albestroff ?
(Q21635,P47,c(Q20667921))
action count
action filter_type
action find
entity Q21635
relation P47
type Q20667921
['Q21635', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { resource:Q21635 property:P47 ?k . ?k rdf:type ontology:Q20667921 }
Albestroff
action count
action filter_type
action find
entity Albestroff
relation shares border with
type type of french administrative division
['Albestroff', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { resource:Albestroff property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
9
Q21817 Q21586 Q22350 Q21653 Q21729 Q22347 Q22370 Q21970 Q21821
(Q21635,P47,c(Q20667921))
action count
action filter_type
action find
entity Q21635
relation P47
type Q20667921
[ANSWER]
['Q21635', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { resource:Q21635 property:P47 ?k . ?k rdf:type ontology:Q20667921 }
Insming Léning Torcheville Nébing Munster Givrycourt Réning Montdidier Vibersviller
9
action count
action filter_type
action find
entity Albestroff
relation shares border with
type type of french administrative division
['Albestroff', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { resource:Albestroff property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q198573
Q20667921
USER
And also tell me about Fanjeaux?
(Q198573,P1376,c(Q20667921))
action filter_type
action find
entity Q198573
relation P1376
type Q20667921
['Q198573', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q198573 property:P1376 ?n . ?n rdf:type ontology:Q20667921 }
Fanjeaux
action filter_type
action find
entity Fanjeaux
relation capital of
type type of french administrative division
['Fanjeaux', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Fanjeaux property:capital_of ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1725259
SYSTEM
canton of Fanjeaux
Q1725259
(Q198573,P1376,c(Q20667921))
action filter_type
action find
entity Q198573
relation P1376
type Q20667921
[ANSWER]
['Q198573', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q198573 property:P1376 ?n . ?n rdf:type ontology:Q20667921 }
canton of Fanjeaux
canton of Fanjeaux
action filter_type
action find
entity Fanjeaux
relation capital of
type type of french administrative division
['Fanjeaux', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Fanjeaux property:capital_of ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1725259 Q1062913
P1376
Q20667921
USER
Is Prétot-Sainte-Suzanne the capital of that one ?
(Q1062913,P1376,Q1725259)
action is_in
entity Q1062913
action find
entity Q1725259
relation P1376
['Q1062913', 'P1376', 'Q1725259']
ASK WHERE { resource:Q1725259 property:P1376 resource:Q1062913 }
canton of Fanjeaux Prétot-Sainte-Suzanne
action is_in
entity Prétot-Sainte-Suzanne
action find
entity canton of Fanjeaux
relation capital of
['Prétot-Sainte-Suzanne', 'capital of', 'canton of Fanjeaux']
ASK WHERE { resource:canton_of_Fanjeaux property:capital_of resource:Prétot-Sainte-Suzanne }
[]
type of french administrative division
SYSTEM
NO
(Q1062913,P1376,Q1725259)
action is_in
entity Q1062913
action find
entity Q1725259
relation P1376
[ANSWER]
['Q1062913', 'P1376', 'Q1725259']
ASK WHERE { resource:Q1725259 property:P1376 resource:Q1062913 }
No
action is_in
entity Prétot-Sainte-Suzanne
action find
entity canton of Fanjeaux
relation capital of
['Prétot-Sainte-Suzanne', 'capital of', 'canton of Fanjeaux']
ASK WHERE { resource:canton_of_Fanjeaux property:capital_of resource:Prétot-Sainte-Suzanne }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q20667921 Q618779 Q55488
USER
How many french administrative divisions are the origin of atleast 1 awards or railway stations ?
(c(Q618779)|c(Q55488),P138,c(Q20667921))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q618779
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q55488
value 1
[[{'concept': 'Q618779'}, {'concept': 'Q55488'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { FILTER ( ?h >= 1 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?z WHERE { { ?c property:P138 ?z . ?z rdf:type ontology:Q20667921 . ?c rdf:type ontology:Q618779 } UNION { ?c property:P138 ?z . ?z rdf:type ontology:Q20667921 . ?c rdf:type ontology:Q55488 } } GROUP BY ?z } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type award
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type railway station
value 1
[[{'concept': 'award'}, {'concept': 'railway station'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { FILTER ( ?h >= 1 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?z WHERE { { ?c property:named_after ?z . ?z rdf:type ontology:type_of_french_administrative_division . ?c rdf:type ontology:award } UNION { ?c property:named_after ?z . ?z rdf:type ontology:type_of_french_administrative_division . ?c rdf:type ontology:railway_station } } GROUP BY ?z } }
[]
type of french administrative division award railway station
SYSTEM
18
Q1440905 Q135265 Q208889 Q161884 Q201982 Q154724 Q211604 Q209086 Q209005 Q241021 Q773318 Q18102 Q128466 Q175999 Q325946 Q1047171 Q467132 Q135104
(c(Q618779)|c(Q55488),P138,c(Q20667921))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q618779
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q55488
value 1
[ANSWER]
[[{'concept': 'Q618779'}, {'concept': 'Q55488'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { FILTER ( ?h >= 1 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?z WHERE { { ?c property:P138 ?z . ?z rdf:type ontology:Q20667921 . ?c rdf:type ontology:Q618779 } UNION { ?c property:P138 ?z . ?z rdf:type ontology:Q20667921 . ?c rdf:type ontology:Q55488 } } GROUP BY ?z } }
Ramonville-Saint-Agne Issy-les-Moulineaux Saint-Ouen Bagneux Clichy Bobigny Montparnasse Pantin Cachan Montrouge Bercy Saint-Mandé Villejuif Le Pré-Saint-Gervais Landerneau Balma Arcueil Le Kremlin-Bicêtre
18
action count
action atleast
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type award
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type railway station
value 1
[[{'concept': 'award'}, {'concept': 'railway station'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { FILTER ( ?h >= 1 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?z WHERE { { ?c property:named_after ?z . ?z rdf:type ontology:type_of_french_administrative_division . ?c rdf:type ontology:award } UNION { ?c property:named_after ?z . ?z rdf:type ontology:type_of_french_administrative_division . ?c rdf:type ontology:railway_station } } GROUP BY ?z } }
[]