Simple Question (Direct)
Simple Question
Q574353
P47
Q1048835
USER
Who share the border with Gobernador ?
(Q574353,P47,c(Q1048835))
action filter_type
action find
entity Q574353
relation P47
type Q1048835
['Q574353', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q574353 property:P47 ?m . ?m rdf:type ontology:Q1048835 }
Gobernador
action filter_type
action find
entity Gobernador
relation shares border with
type political territorial entity
['Gobernador', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Gobernador property:shares_border_with ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q611237 Q575658 Q611308
SYSTEM
Pedro Martínez, Guadahortuna, Píñar
Q575658 Q593725 Q611308 Q611237 Q618392
(Q574353,P47,c(Q1048835))
action filter_type
action find
entity Q574353
relation P47
type Q1048835
[ANSWERS] share the border with Gobernador
['Q574353', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q574353 property:P47 ?m . ?m rdf:type ontology:Q1048835 }
Guadahortuna Morelábor Píñar Pedro Martínez Torre-Cardela
Pedro Martínez, Guadahortuna and Píñar share the border with Gobernador
Pedro Martínez Guadahortuna Píñar
action filter_type
action find
entity Gobernador
relation shares border with
type political territorial entity
['Gobernador', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Gobernador property:shares_border_with ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q611237 Q575658 Q611308
P47
Q1048835
USER
Which political territories share border with Pedro Martínez, Guadahortuna and Píñar ?
(c(Q1048835),P47,Q611237) (c(Q1048835),P47,Q575658) (c(Q1048835),P47,Q611308)
action union
action filter_type
action find
entity Q611237
relation P47
type Q1048835
action filter_type
action find
entity Q575658
relation P47
type Q1048835
action filter_type
action find
entity Q611308
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q611237'] [{'concept': 'Q1048835'}, 'P47', 'Q575658'] [{'concept': 'Q1048835'}, 'P47', 'Q611308']
SELECT DISTINCT ?x WHERE { { resource:Q611237 property:P47 ?x . ?x rdf:type ontology:Q1048835 } UNION { ?x rdf:type ontology:Q1048835 . resource:Q575658 property:P47 ?x } }
Pedro Martínez Guadahortuna Píñar
action union
action filter_type
action find
entity Pedro Martínez
relation shares border with
type political territorial entity
action filter_type
action find
entity Guadahortuna
relation shares border with
type political territorial entity
action filter_type
action find
entity Píñar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Pedro Martínez'] [{'concept': 'political territorial entity'}, 'shares border with', 'Guadahortuna'] [{'concept': 'political territorial entity'}, 'shares border with', 'Píñar']
SELECT DISTINCT ?x WHERE { { resource:Pedro_Martínez property:shares_border_with ?x . ?x rdf:type ontology:political_territorial_entity } UNION { ?x rdf:type ontology:political_territorial_entity . resource:Guadahortuna property:shares_border_with ?x } }
[]
political territorial entity
Q1410782 Q1410782 Q559308
SYSTEM
Dehesas de Guadix for 3rd, Iznalloz for 1st, 2nd
Q619519 Q1631944 Q575634 Q618392 Q575658 Q574353 Q574337 Q550664 Q559308 Q593725 Q1410782 Q611308 Q1631944 Q731592 Q618392 Q1641746 Q593505 Q611237 Q574353 Q1410782 Q618392 Q575658 Q574353 Q559665 Q593725
(c(Q1048835),P47,Q611237) (c(Q1048835),P47,Q575658) (c(Q1048835),P47,Q611308)
action union
action filter_type
action find
entity Q611237
relation P47
type Q1048835
action filter_type
action find
entity Q575658
relation P47
type Q1048835
action filter_type
action find
entity Q611308
relation P47
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P47', 'Q611237'] [{'concept': 'Q1048835'}, 'P47', 'Q575658'] [{'concept': 'Q1048835'}, 'P47', 'Q611308']
SELECT DISTINCT ?x WHERE { { resource:Q611237 property:P47 ?x . ?x rdf:type ontology:Q1048835 } UNION { ?x rdf:type ontology:Q1048835 . resource:Q575658 property:P47 ?x } }
Villanueva de las Torres Alamedilla Huélago Torre-Cardela Guadahortuna Gobernador Fonelas Alicún de Ortega Dehesas de Guadix Morelábor Iznalloz Píñar Alamedilla Cabra del Santo Cristo Torre-Cardela Huelma Montejícar Pedro Martínez Gobernador Iznalloz Torre-Cardela Guadahortuna Gobernador Darro Morelábor
Iznalloz, Iznalloz and Dehesas de Guadix share border with Pedro Martínez, Guadahortuna and Píñar
Iznalloz Iznalloz Dehesas de Guadix
action union
action filter_type
action find
entity Pedro Martínez
relation shares border with
type political territorial entity
action filter_type
action find
entity Guadahortuna
relation shares border with
type political territorial entity
action filter_type
action find
entity Píñar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Pedro Martínez'] [{'concept': 'political territorial entity'}, 'shares border with', 'Guadahortuna'] [{'concept': 'political territorial entity'}, 'shares border with', 'Píñar']
SELECT DISTINCT ?x WHERE { { resource:Pedro_Martínez property:shares_border_with ?x . ?x rdf:type ontology:political_territorial_entity } UNION { ?x rdf:type ontology:political_territorial_entity . resource:Guadahortuna property:shares_border_with ?x } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1410782
P190
Q20667921
USER
Which french administrative division is twin city of that political territory ?
(c(Q20667921),P190,Q1410782)
action filter_type
action find
entity Q1410782
relation P190
type Q20667921
[{'concept': 'Q20667921'}, 'P190', 'Q1410782']
SELECT DISTINCT ?n WHERE { resource:Q1410782 property:P190 ?n . ?n rdf:type ontology:Q20667921 }
Iznalloz
action filter_type
action find
entity Iznalloz
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Iznalloz']
SELECT DISTINCT ?n WHERE { resource:Iznalloz property:sister_city ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q1410782
SYSTEM
Did you mean Iznalloz ?
Q1410782 Q1410782 Q559308
(c(Q20667921),P190,Q1410782) (c(Q20667921),P190,Q1410782) (c(Q20667921),P190,Q559308)
[ANSWER]
[{'concept': 'Q20667921'}, 'P190', 'Q1410782'] [{'concept': 'Q20667921'}, 'P190', 'Q1410782'] [{'concept': 'Q20667921'}, 'P190', 'Q559308']
SELECT DISTINCT ?n WHERE { resource:Q1410782 property:P190 ?n . ?n rdf:type ontology:Q20667921 }
Iznalloz Iznalloz Dehesas de Guadix
Did you mean Iznalloz ?
Iznalloz
[{'concept': 'type of french administrative division'}, 'sister city', 'Iznalloz'] [{'concept': 'type of french administrative division'}, 'sister city', 'Iznalloz'] [{'concept': 'type of french administrative division'}, 'sister city', 'Dehesas de Guadix']
SELECT DISTINCT ?n WHERE { resource:Iznalloz property:sister_city ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q20667921),P190,Q1410782)
[{'concept': 'Q20667921'}, 'P190', 'Q1410782']
[{'concept': 'type of french administrative division'}, 'sister city', 'Iznalloz']
[]
Q328010
SYSTEM
Savigny-le-Temple
Q328010
(c(Q20667921),P190,Q1410782)
action filter_type
action find
entity Q1410782
relation P190
type Q20667921
[ANSWER] is twin city of that political territory
[{'concept': 'Q20667921'}, 'P190', 'Q1410782']
SELECT DISTINCT ?n WHERE { resource:Q1410782 property:P190 ?n . ?n rdf:type ontology:Q20667921 }
Savigny-le-Temple
Savigny-le-Temple is twin city of that political territory
Savigny-le-Temple
action filter_type
action find
entity Iznalloz
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Iznalloz']
SELECT DISTINCT ?n WHERE { resource:Iznalloz property:sister_city ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q17216480 Q328010
P27 P17
Q15617994
USER
Which administrative territories are Savigny-le-Temple a part of or are Chūzaburō Wakamiya an inhabitant of ?
OR((Q328010,P17,c(Q15617994)), (Q17216480,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q328010
relation P17
action find
entity Q17216480
relation P27
type Q15617994
{'OR': [['Q328010', 'P17', {'concept': 'Q15617994'}], ['Q17216480', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q17216480 property:P27 ?d } UNION { resource:Q328010 property:P17 ?d } } }
Chūzaburō Wakamiya Savigny-le-Temple
action filter_type
action union
action find
entity Savigny-le-Temple
relation country
action find
entity Chūzaburō Wakamiya
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Savigny-le-Temple', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Chūzaburō Wakamiya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Chūzaburō_Wakamiya property:country_of_citizenship ?d } UNION { resource:Savigny-le-Temple property:country ?d } } }
[]
designation for an administrative territorial entity
Q142 Q17
SYSTEM
France, Japan
Q142 Q17
OR((Q328010,P17,c(Q15617994)), (Q17216480,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q328010
relation P17
action find
entity Q17216480
relation P27
type Q15617994
[ANSWERS] are Savigny-le-Temple a part of or are Chūzaburō Wakamiya an inhabitant of
{'OR': [['Q328010', 'P17', {'concept': 'Q15617994'}], ['Q17216480', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q17216480 property:P27 ?d } UNION { resource:Q328010 property:P17 ?d } } }
France Japan
France and Japan are Savigny-le-Temple a part of or are Chūzaburō Wakamiya an inhabitant of
France Japan
action filter_type
action union
action find
entity Savigny-le-Temple
relation country
action find
entity Chūzaburō Wakamiya
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Savigny-le-Temple', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Chūzaburō Wakamiya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Chūzaburō_Wakamiya property:country_of_citizenship ?d } UNION { resource:Savigny-le-Temple property:country ?d } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
How many administrative territories inspired approximately the same number of fictional locations as that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|Count over More/Less|Single entity type|Clarification
Q17
SYSTEM
Did you mean Japan ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean Japan ?
Japan
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant France. Could you tell me the answer for that?
(c(Q3895768),P941,c(Q15617994))
Q142
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
9
Q142 Q159 Q424 Q794 Q33 Q954 Q31 Q889 Q55
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
France Russia Cambodia Iran Finland Zimbabwe Belgium Afghanistan Netherlands
9
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P127
Q3947
USER
Which houses are under posessision of France ?
(c(Q3947),P127,Q142)
action filter_type
action find_reverse
entity Q142
relation P127
type Q3947
[{'concept': 'Q3947'}, 'P127', 'Q142']
SELECT DISTINCT ?e WHERE { ?e property:P127 resource:Q142 . ?e rdf:type ontology:Q3947 }
France
action filter_type
action find_reverse
entity France
relation owned by
type house
[{'concept': 'house'}, 'owned by', 'France']
SELECT DISTINCT ?e WHERE { ?e property:owned_by resource:France . ?e rdf:type ontology:house }
[]
house
Q3145802 Q19832938 Q13429870
SYSTEM
Hôtel de Chimay, hôtel Dodun, hôtel de Fleury
Q3145802 Q19832938 Q13429870 Q3145991
(c(Q3947),P127,Q142)
action filter_type
action find_reverse
entity Q142
relation P127
type Q3947
[ANSWERS] are under posessision of France
[{'concept': 'Q3947'}, 'P127', 'Q142']
SELECT DISTINCT ?e WHERE { ?e property:P127 resource:Q142 . ?e rdf:type ontology:Q3947 }
Hôtel de Chimay hôtel Dodun hôtel de Fleury Hôtel de Valbelle
Hôtel de Chimay, hôtel Dodun and hôtel de Fleury are under posessision of France
Hôtel de Chimay hôtel Dodun hôtel de Fleury
action filter_type
action find_reverse
entity France
relation owned by
type house
[{'concept': 'house'}, 'owned by', 'France']
SELECT DISTINCT ?e WHERE { ?e property:owned_by resource:France . ?e rdf:type ontology:house }
[]