Simple Question (Direct)
Simple Question
Q622478
P47
Q20667921
USER
Which french administrative divisions are adjacent to Mellac ?
(Q622478,P47,c(Q20667921))
action filter_type
action find
entity Q622478
relation P47
type Q20667921
['Q622478', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q622478 property:P47 ?p . ?p rdf:type ontology:Q20667921 }
Mellac
action filter_type
action find
entity Mellac
relation shares border with
type type of french administrative division
['Mellac', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:Mellac property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q235382 Q318227 Q214606
SYSTEM
Quimperlé, Bannalec, Querrien
Q225178 Q318227 Q865419 Q688371 Q622482 Q235382 Q214606 Q381302
(Q622478,P47,c(Q20667921))
action filter_type
action find
entity Q622478
relation P47
type Q20667921
[ANSWERS] are adjacent to Mellac
['Q622478', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q622478 property:P47 ?p . ?p rdf:type ontology:Q20667921 }
Saint-Thurien Bannalec Riec-sur-Bélon Tréméven Le Trévoux Quimperlé Querrien Baye
Quimperlé, Bannalec and Querrien are adjacent to Mellac
Quimperlé Bannalec Querrien
action filter_type
action find
entity Mellac
relation shares border with
type type of french administrative division
['Mellac', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:Mellac property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q235382 Q318227 Q214606
P47
Q20667921
USER
Which french administrative divisions are adjacent to those ones ?
(Q235382,P47,c(Q20667921)) (Q318227,P47,c(Q20667921)) (Q214606,P47,c(Q20667921))
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
['Q235382', 'P47', {'concept': 'Q20667921'}] ['Q318227', 'P47', {'concept': 'Q20667921'}] ['Q214606', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?g ) { ( resource:Q225178 ) ( resource:Q318227 ) ( resource:Q865419 ) } . ?g property:P47 ?v . ?v rdf:type ontology:Q20667921 }
Quimperlé Bannalec Querrien
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
['Quimperlé', 'shares border with', {'concept': 'type of french administrative division'}] ['Bannalec', 'shares border with', {'concept': 'type of french administrative division'}] ['Querrien', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?g ) { ( resource:Saint-Thurien ) ( resource:Bannalec ) ( resource:Riec-sur-Bélon ) } . ?g property:shares_border_with ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q69284 Q317493 Q328771
SYSTEM
Guidel, Scaër, Rosporden
Q455271 Q688371 Q69284 Q622478 Q475537 Q216405 Q381302 Q225178 Q317493 Q865419 Q622478 Q622482 Q238377 Q328771 Q475770 Q225178 Q688371 Q622478 Q475532 Q70470 Q70499 Q70176
(Q235382,P47,c(Q20667921)) (Q318227,P47,c(Q20667921)) (Q214606,P47,c(Q20667921))
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[ANSWERS] are adjacent to those ones
['Q235382', 'P47', {'concept': 'Q20667921'}] ['Q318227', 'P47', {'concept': 'Q20667921'}] ['Q214606', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?g ) { ( resource:Q225178 ) ( resource:Q318227 ) ( resource:Q865419 ) } . ?g property:P47 ?v . ?v rdf:type ontology:Q20667921 }
Clohars-Carnoët Tréméven Guidel Mellac Rédené Moëlan-sur-Mer Baye Saint-Thurien Scaër Riec-sur-Bélon Mellac Le Trévoux Pont-Aven Rosporden Locunolé Saint-Thurien Tréméven Mellac Guilligomarc'h Guiscriff Lanvénégen Meslan
Guidel, Scaër and Rosporden are adjacent to those ones
Guidel Scaër Rosporden
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
['Quimperlé', 'shares border with', {'concept': 'type of french administrative division'}] ['Bannalec', 'shares border with', {'concept': 'type of french administrative division'}] ['Querrien', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?g ) { ( resource:Saint-Thurien ) ( resource:Bannalec ) ( resource:Riec-sur-Bélon ) } . ?g property:shares_border_with ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q69284 Q317493 Q328771
P47
Q20667921
USER
Which french administrative divisions share border with Guidel, Scaër and Rosporden ?
(c(Q20667921),P47,Q69284) (c(Q20667921),P47,Q317493) (c(Q20667921),P47,Q328771)
action union
action filter_type
action find
entity Q69284
relation P47
type Q20667921
action filter_type
action find
entity Q317493
relation P47
type Q20667921
action filter_type
action find
entity Q328771
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q69284'] [{'concept': 'Q20667921'}, 'P47', 'Q317493'] [{'concept': 'Q20667921'}, 'P47', 'Q328771']
SELECT DISTINCT ?s WHERE { { resource:Q317493 property:P47 ?s . ?s rdf:type ontology:Q20667921 } UNION { resource:Q69284 property:P47 ?s . ?s rdf:type ontology:Q20667921 } }
Guidel Scaër Rosporden
action union
action filter_type
action find
entity Guidel
relation shares border with
type type of french administrative division
action filter_type
action find
entity Scaër
relation shares border with
type type of french administrative division
action filter_type
action find
entity Rosporden
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Guidel'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Scaër'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Rosporden']
SELECT DISTINCT ?s WHERE { { resource:Scaër property:shares_border_with ?s . ?s rdf:type ontology:type_of_french_administrative_division } UNION { resource:Guidel property:shares_border_with ?s . ?s rdf:type ontology:type_of_french_administrative_division } }
[]
type of french administrative division
Q235382 Q318227 Q328771
SYSTEM
Quimperlé, Bannalec, Rosporden
Q69555 Q475537 Q235382 Q128278 Q128463 Q128369 Q455271 Q318227 Q128000 Q476677 Q70470 Q496288 Q328771 Q225178 Q318227 Q225692 Q207823 Q238377 Q476677 Q317493 Q496275
(c(Q20667921),P47,Q69284) (c(Q20667921),P47,Q317493) (c(Q20667921),P47,Q328771)
action union
action filter_type
action find
entity Q69284
relation P47
type Q20667921
action filter_type
action find
entity Q317493
relation P47
type Q20667921
action filter_type
action find
entity Q328771
relation P47
type Q20667921
[ANSWERS] share border with Guidel, Scaër and Rosporden
[{'concept': 'Q20667921'}, 'P47', 'Q69284'] [{'concept': 'Q20667921'}, 'P47', 'Q317493'] [{'concept': 'Q20667921'}, 'P47', 'Q328771']
SELECT DISTINCT ?s WHERE { { resource:Q317493 property:P47 ?s . ?s rdf:type ontology:Q20667921 } UNION { resource:Q69284 property:P47 ?s . ?s rdf:type ontology:Q20667921 } }
Gestel Rédené Quimperlé Pont-Scorff Quéven Ploemeur Clohars-Carnoët Bannalec Roudouallec Tourch Guiscriff Leuhan Rosporden Saint-Thurien Bannalec Elliant Saint-Yvi Pont-Aven Tourch Scaër Melgven
Quimperlé, Bannalec and Rosporden share border with Guidel, Scaër and Rosporden
Quimperlé Bannalec Rosporden
action union
action filter_type
action find
entity Guidel
relation shares border with
type type of french administrative division
action filter_type
action find
entity Scaër
relation shares border with
type type of french administrative division
action filter_type
action find
entity Rosporden
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Guidel'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Scaër'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Rosporden']
SELECT DISTINCT ?s WHERE { { resource:Scaër property:shares_border_with ?s . ?s rdf:type ontology:type_of_french_administrative_division } UNION { resource:Guidel property:shares_border_with ?s . ?s rdf:type ontology:type_of_french_administrative_division } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q235382 Q318227 Q328771
P1376
Q20667921
USER
Which french administrative divisions have those ones as their capital ?
(Q235382,P1376,c(Q20667921)) (Q318227,P1376,c(Q20667921)) (Q328771,P1376,c(Q20667921))
action filter_type
action find
entity prev_answer
relation P1376
type Q20667921
['Q235382', 'P1376', {'concept': 'Q20667921'}] ['Q318227', 'P1376', {'concept': 'Q20667921'}] ['Q328771', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q20667921 . VALUES ( ?n ) { ( resource:Q69555 ) ( resource:Q475537 ) ( resource:Q235382 ) } . ?n property:P1376 ?l }
Quimperlé Bannalec Rosporden
action filter_type
action find
entity prev_answer
relation capital of
type type of french administrative division
['Quimperlé', 'capital of', {'concept': 'type of french administrative division'}] ['Bannalec', 'capital of', {'concept': 'type of french administrative division'}] ['Rosporden', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:type_of_french_administrative_division . VALUES ( ?n ) { ( resource:Gestel ) ( resource:Rédené ) ( resource:Quimperlé ) } . ?n property:capital_of ?l }
[]
type of french administrative division
Q262143 Q1724368 Q1727006
SYSTEM
canton of Quimperlé, canton of Bannalec, canton of Rosporden
Q262143 Q1724368 Q1727006
(Q235382,P1376,c(Q20667921)) (Q318227,P1376,c(Q20667921)) (Q328771,P1376,c(Q20667921))
action filter_type
action find
entity prev_answer
relation P1376
type Q20667921
[ANSWERS] have those ones as their capital
['Q235382', 'P1376', {'concept': 'Q20667921'}] ['Q318227', 'P1376', {'concept': 'Q20667921'}] ['Q328771', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q20667921 . VALUES ( ?n ) { ( resource:Q69555 ) ( resource:Q475537 ) ( resource:Q235382 ) } . ?n property:P1376 ?l }
canton of Quimperlé canton of Bannalec canton of Rosporden
Canton of Quimperlé, canton of Bannalec and canton of Rosporden have those ones as their capital
canton of Quimperlé canton of Bannalec canton of Rosporden
action filter_type
action find
entity prev_answer
relation capital of
type type of french administrative division
['Quimperlé', 'capital of', {'concept': 'type of french administrative division'}] ['Bannalec', 'capital of', {'concept': 'type of french administrative division'}] ['Rosporden', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:type_of_french_administrative_division . VALUES ( ?n ) { ( resource:Gestel ) ( resource:Rédené ) ( resource:Quimperlé ) } . ?n property:capital_of ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q235382
P36
Q20667921
USER
Which french administrative division consists of Quimperlé as its capital ?
(c(Q20667921),P36,Q235382)
action filter_type
action find_reverse
entity Q235382
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q235382']
SELECT DISTINCT ?n WHERE { ?n property:P36 resource:Q235382 . ?n rdf:type ontology:Q20667921 }
Quimperlé
action filter_type
action find_reverse
entity Quimperlé
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Quimperlé']
SELECT DISTINCT ?n WHERE { ?n property:capital resource:Quimperlé . ?n rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q262143
SYSTEM
canton of Quimperlé
Q262143
(c(Q20667921),P36,Q235382)
action filter_type
action find_reverse
entity Q235382
relation P36
type Q20667921
The [ANSWER] consists of Quimperlé as its capital
[{'concept': 'Q20667921'}, 'P36', 'Q235382']
SELECT DISTINCT ?n WHERE { ?n property:P36 resource:Q235382 . ?n rdf:type ontology:Q20667921 }
canton of Quimperlé
The canton of Quimperlé consists of Quimperlé as its capital
canton of Quimperlé
action filter_type
action find_reverse
entity Quimperlé
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Quimperlé']
SELECT DISTINCT ?n WHERE { ?n property:capital resource:Quimperlé . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q262143
P17
Q15617994
USER
Which administrative territory is that french administrative division situated in ?
(Q262143,P17,c(Q15617994))
action filter_type
action find
entity Q262143
relation P17
type Q15617994
['Q262143', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q262143 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
canton of Quimperlé
action filter_type
action find
entity canton of Quimperlé
relation country
type designation for an administrative territorial entity
['canton of Quimperlé', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:canton_of_Quimperlé property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q262143,P17,c(Q15617994))
action filter_type
action find
entity Q262143
relation P17
type Q15617994
That french administrative division is situated in [ANSWER]
['Q262143', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q262143 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
France
That french administrative division is situated in France
France
action filter_type
action find
entity canton of Quimperlé
relation country
type designation for an administrative territorial entity
['canton of Quimperlé', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:canton_of_Quimperlé property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26213543 Q328771
P27 P17
Q15617994
USER
Which administrative territories are Rosporden located in or are the native countriesof Juta Siirak ?
OR((Q328771,P17,c(Q15617994)), (Q26213543,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q328771
relation P17
action find
entity Q26213543
relation P27
type Q15617994
{'OR': [['Q328771', 'P17', {'concept': 'Q15617994'}], ['Q26213543', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q328771 property:P17 ?a } UNION { resource:Q26213543 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Juta Siirak Rosporden
action filter_type
action union
action find
entity Rosporden
relation country
action find
entity Juta Siirak
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rosporden', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Juta Siirak', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Rosporden property:country ?a } UNION { resource:Juta_Siirak property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q191
SYSTEM
France, Estonia
Q142 Q191
OR((Q328771,P17,c(Q15617994)), (Q26213543,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q328771
relation P17
action find
entity Q26213543
relation P27
type Q15617994
Rosporden are located in [ANSWERS] or are the native countriesof Juta Siirak
{'OR': [['Q328771', 'P17', {'concept': 'Q15617994'}], ['Q26213543', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q328771 property:P17 ?a } UNION { resource:Q26213543 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
France Estonia
Rosporden are located in France and Estonia or are the native countriesof Juta Siirak
France Estonia
action filter_type
action union
action find
entity Rosporden
relation country
action find
entity Juta Siirak
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rosporden', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Juta Siirak', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Rosporden property:country ?a } UNION { resource:Juta_Siirak property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with around 43 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 43
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?s ) WHERE { ?c rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 . ?c property:P530 ?m } GROUP BY ?c } . FILTER ( ?s = 43 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 43
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?s ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?m } GROUP BY ?c } . FILTER ( ?s = 43 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q184
SYSTEM
Brazil, Belarus
Q155 Q184
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 43
[ANSWERS] have diplomatic associations with around 43 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?s ) WHERE { ?c rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 . ?c property:P530 ?m } GROUP BY ?c } . FILTER ( ?s = 43 ) }
Brazil Belarus
Brazil and Belarus have diplomatic associations with around 43 administrative territories
Brazil Belarus
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 43
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?s ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?m } GROUP BY ?c } . FILTER ( ?s = 43 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q155
P138
Q17444909
USER
Which astronomical object type is named after that administrative territory ?
(c(Q17444909),P138,Q155)
action filter_type
action find_reverse
entity Q155
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q155']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q17444909 . ?g property:P138 resource:Q155 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Brazil']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:astronomical_object_type . ?g property:named_after resource:Brazil }
[]
astronomical object type
Clarification for simple ques.
Q184
SYSTEM
Did you mean Belarus ?
Q155 Q184
(c(Q17444909),P138,Q155) (c(Q17444909),P138,Q184)
[ANSWER]
[{'concept': 'Q17444909'}, 'P138', 'Q155'] [{'concept': 'Q17444909'}, 'P138', 'Q184']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q17444909 . ?g property:P138 resource:Q155 }
Brazil Belarus
Did you mean Belarus ?
Belarus
[{'concept': 'astronomical object type'}, 'named after', 'Brazil'] [{'concept': 'astronomical object type'}, 'named after', 'Belarus']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:astronomical_object_type . ?g property:named_after resource:Brazil }
[]
Simple Question (Coreferenced)
USER
No, I meant Brazil. Could you tell me the answer for that?
(c(Q17444909),P138,Q155)
Q155
[{'concept': 'Q17444909'}, 'P138', 'Q155']
[{'concept': 'astronomical object type'}, 'named after', 'Brazil']
[]
Q150378
SYSTEM
293 Brasilia
Q150378
(c(Q17444909),P138,Q155)
action filter_type
action find_reverse
entity Q155
relation P138
type Q17444909
[ANSWER] is named after that administrative territory
[{'concept': 'Q17444909'}, 'P138', 'Q155']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q17444909 . ?g property:P138 resource:Q155 }
293 Brasilia
293 Brasilia is named after that administrative territory
293 Brasilia
action filter_type
action find_reverse
entity Brazil
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Brazil']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:astronomical_object_type . ?g property:named_after resource:Brazil }
[]