Simple Question (Direct)
Simple Question
Q379640
P47
Q20667921
USER
Which french administrative divisions have a shared border with Cabrières ?
(Q379640,P47,c(Q20667921))
action filter_type
action find
entity Q379640
relation P47
type Q20667921
['Q379640', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q379640 property:P47 ?d . ?d rdf:type ontology:Q20667921 }
Cabrières
action filter_type
action find
entity Cabrières
relation shares border with
type type of french administrative division
['Cabrières', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Cabrières property:shares_border_with ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q244297 Q376986 Q266910
SYSTEM
Marguerittes, Lédenon, Collias
Q379622 Q266910 Q273952 Q273202 Q376986 Q244297
(Q379640,P47,c(Q20667921))
action filter_type
action find
entity Q379640
relation P47
type Q20667921
[ANSWERS] have a shared border with Cabrières
['Q379640', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q379640 property:P47 ?d . ?d rdf:type ontology:Q20667921 }
Saint-Gervasy Collias Bezouce Poulx Lédenon Marguerittes
Marguerittes, Lédenon and Collias have a shared border with Cabrières
Marguerittes Lédenon Collias
action filter_type
action find
entity Cabrières
relation shares border with
type type of french administrative division
['Cabrières', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Cabrières property:shares_border_with ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q244297
P17
Q15617994
USER
Which administrative territory does Marguerittes belong to ?
(Q244297,P17,c(Q15617994))
action filter_type
action find
entity Q244297
relation P17
type Q15617994
['Q244297', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q244297 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Marguerittes
action filter_type
action find
entity Marguerittes
relation country
type designation for an administrative territorial entity
['Marguerittes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Marguerittes property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q244297,P17,c(Q15617994))
action filter_type
action find
entity Q244297
relation P17
type Q15617994
Marguerittes belongs in [ANSWER]
['Q244297', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q244297 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
France
Marguerittes belongs in France
France
action filter_type
action find
entity Marguerittes
relation country
type designation for an administrative territorial entity
['Marguerittes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Marguerittes property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q244297
P1376
Q20667921
USER
What has that one as its capital ?
(Q142,P1376,c(Q20667921))
action filter_type
action find
entity Q244297
relation P1376
type Q20667921
['Q142', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q244297 property:P1376 ?b . ?b rdf:type ontology:Q20667921 }
Marguerittes
action filter_type
action find
entity Marguerittes
relation capital of
type type of french administrative division
['France', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Marguerittes property:capital_of ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q788136
SYSTEM
canton of Marguerittes
Q788136
(Q142,P1376,c(Q20667921))
action filter_type
action find
entity Q244297
relation P1376
type Q20667921
The [ANSWER] has that one as its capital
['Q142', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q244297 property:P1376 ?b . ?b rdf:type ontology:Q20667921 }
canton of Marguerittes
The canton of Marguerittes has that one as its capital
canton of Marguerittes
action filter_type
action find
entity Marguerittes
relation capital of
type type of french administrative division
['France', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Marguerittes property:capital_of ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q788136 Q127896
P17
Q15617994
USER
Is canton of Marguerittes situated in Gerzen ?
(Q788136,P17,Q127896)
action is_in
entity Q127896
action find
entity Q788136
relation P17
['Q788136', 'P17', 'Q127896']
ASK WHERE { resource:Q788136 property:P17 resource:Q127896 }
canton of Marguerittes Gerzen
action is_in
entity Gerzen
action find
entity canton of Marguerittes
relation country
['canton of Marguerittes', 'country', 'Gerzen']
ASK WHERE { resource:canton_of_Marguerittes property:country resource:Gerzen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q788136,P17,Q127896)
action is_in
entity Q127896
action find
entity Q788136
relation P17
[ANSWER]
['Q788136', 'P17', 'Q127896']
ASK WHERE { resource:Q788136 property:P17 resource:Q127896 }
No
action is_in
entity Gerzen
action find
entity canton of Marguerittes
relation country
['canton of Marguerittes', 'country', 'Gerzen']
ASK WHERE { resource:canton_of_Marguerittes property:country resource:Gerzen }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q244297 Q817597
P47
Q20667921
USER
Does Solliès-Pont share border with Marguerittes ?
(Q244297,P47,Q817597)
action is_in
entity Q817597
action find
entity Q244297
relation P47
['Q244297', 'P47', 'Q817597']
ASK WHERE { resource:Q244297 property:P47 resource:Q817597 }
Marguerittes Solliès-Pont
action is_in
entity Solliès-Pont
action find
entity Marguerittes
relation shares border with
['Marguerittes', 'shares border with', 'Solliès-Pont']
ASK WHERE { resource:Marguerittes property:shares_border_with resource:Solliès-Pont }
[]
type of french administrative division
SYSTEM
NO
(Q244297,P47,Q817597)
action is_in
entity Q817597
action find
entity Q244297
relation P47
[ANSWER]
['Q244297', 'P47', 'Q817597']
ASK WHERE { resource:Q244297 property:P47 resource:Q817597 }
No
action is_in
entity Solliès-Pont
action find
entity Marguerittes
relation shares border with
['Marguerittes', 'shares border with', 'Solliès-Pont']
ASK WHERE { resource:Marguerittes property:shares_border_with resource:Solliès-Pont }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q244297
P47
Q20667921
USER
How many french administrative divisions are next to the border of Marguerittes ?
(c(Q20667921),P47,Q244297)
action count
action filter_type
action find_reverse
entity Q244297
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q244297']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:P47 resource:Q244297 . ?f rdf:type ontology:Q20667921 }
Marguerittes
action count
action filter_type
action find_reverse
entity Marguerittes
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Marguerittes']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:shares_border_with resource:Marguerittes . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
8
Q273952 Q244249 Q379640 Q379622 Q375605 Q42807 Q261640 Q273202
(c(Q20667921),P47,Q244297)
action count
action filter_type
action find_reverse
entity Q244297
relation P47
type Q20667921
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q244297']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:P47 resource:Q244297 . ?f rdf:type ontology:Q20667921 }
Bezouce Manduel Cabrières Saint-Gervasy Redessan Nîmes Rodilhan Poulx
8
action count
action filter_type
action find_reverse
entity Marguerittes
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Marguerittes']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:shares_border_with resource:Marguerittes . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q244297
P36
Q20667921
USER
Which french administrative division consists of that one as its capital ?
action filter_type
action find_reverse
entity Q244297
relation P36
type Q20667921
SELECT DISTINCT ?w WHERE { ?w property:P36 resource:Q244297 . ?w rdf:type ontology:Q20667921 }
Marguerittes
action filter_type
action find_reverse
entity Marguerittes
relation capital
type type of french administrative division
SELECT DISTINCT ?w WHERE { ?w property:capital resource:Marguerittes . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q788136
SYSTEM
canton of Marguerittes
Q788136
action filter_type
action find_reverse
entity Q244297
relation P36
type Q20667921
The [ANSWER] consists of that one as its capital
SELECT DISTINCT ?w WHERE { ?w property:P36 resource:Q244297 . ?w rdf:type ontology:Q20667921 }
canton of Marguerittes
The canton of Marguerittes consists of that one as its capital
canton of Marguerittes
action filter_type
action find_reverse
entity Marguerittes
relation capital
type type of french administrative division
SELECT DISTINCT ?w WHERE { ?w property:capital resource:Marguerittes . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1721
P1376
Q20667921 Q515
USER
How many cities are the capital of greater number of french administrative divisions than Wiesbaden ?
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q1721
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Q1721 property:P1376 ?w . ?w rdf:type ontology:Q515 } } . FILTER ( ?l > ?c ) . { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?l ) WHERE { ?f property:P1376 ?t . ?f rdf:type ontology:Q515 . ?t rdf:type ontology:Q20667921 } GROUP BY ?f } }
Wiesbaden
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Wiesbaden
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Wiesbaden property:capital_of ?w . ?w rdf:type ontology:city } } . FILTER ( ?l > ?c ) . { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?l ) WHERE { ?f property:capital_of ?t . ?f rdf:type ontology:city . ?t rdf:type ontology:type_of_french_administrative_division } GROUP BY ?f } }
[]
type of french administrative division city
SYSTEM
5
Q23482 Q6602 Q6582 Q456 Q7003
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q1721
relation P1376
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Q1721 property:P1376 ?w . ?w rdf:type ontology:Q515 } } . FILTER ( ?l > ?c ) . { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?l ) WHERE { ?f property:P1376 ?t . ?f rdf:type ontology:Q515 . ?t rdf:type ontology:Q20667921 } GROUP BY ?f } }
Marseille Strasbourg Carcassonne Lyon Dijon
5
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Wiesbaden
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Wiesbaden property:capital_of ?w . ?w rdf:type ontology:city } } . FILTER ( ?l > ?c ) . { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?l ) WHERE { ?f property:capital_of ?t . ?f rdf:type ontology:city . ?t rdf:type ontology:type_of_french_administrative_division } GROUP BY ?f } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q25475
P1376
Q20667921 Q515
USER
And also tell me about Batumi?
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q25475
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?d ) WHERE { ?y property:P1376 ?h . ?y rdf:type ontology:Q515 . ?h rdf:type ontology:Q20667921 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q25475 property:P1376 ?a . ?a rdf:type ontology:Q515 } } . FILTER ( ?d > ?w ) }
Batumi
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Batumi
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?d ) WHERE { ?y property:capital_of ?h . ?y rdf:type ontology:city . ?h rdf:type ontology:type_of_french_administrative_division } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Batumi property:capital_of ?a . ?a rdf:type ontology:city } } . FILTER ( ?d > ?w ) }
[]
type of french administrative division city
SYSTEM
5
Q23482 Q6602 Q6582 Q456 Q7003
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q25475
relation P1376
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?d ) WHERE { ?y property:P1376 ?h . ?y rdf:type ontology:Q515 . ?h rdf:type ontology:Q20667921 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q25475 property:P1376 ?a . ?a rdf:type ontology:Q515 } } . FILTER ( ?d > ?w ) }
Marseille Strasbourg Carcassonne Lyon Dijon
5
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Batumi
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?d ) WHERE { ?y property:capital_of ?h . ?y rdf:type ontology:city . ?h rdf:type ontology:type_of_french_administrative_division } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Batumi property:capital_of ?a . ?a rdf:type ontology:city } } . FILTER ( ?d > ?w ) }
[]