Simple Question (Direct)
Simple Question
Q488895
P1313
Q12737077
USER
What is the occupation held by Comares ?
(Q488895,P1313,c(Q12737077))
action filter_type
action find
entity Q488895
relation P1313
type Q12737077
['Q488895', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q488895 property:P1313 ?h . ?h rdf:type ontology:Q12737077 }
Comares
action filter_type
action find
entity Comares
relation office held by head of government
type occupation
['Comares', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Comares property:office_held_by_head_of_government ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q26698316
SYSTEM
mayor of Comares
Q26698316
(Q488895,P1313,c(Q12737077))
action filter_type
action find
entity Q488895
relation P1313
type Q12737077
The occupation held by Comares is the [ANSWER]
['Q488895', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q488895 property:P1313 ?h . ?h rdf:type ontology:Q12737077 }
mayor of Comares
The occupation held by Comares is the mayor of Comares
mayor of Comares
action filter_type
action find
entity Comares
relation office held by head of government
type occupation
['Comares', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Comares property:office_held_by_head_of_government ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q488895
P17
Q15617994
USER
Which administrative territory is that political territory present in ?
(Q26698316,P17,c(Q15617994))
action filter_type
action find
entity Q488895
relation P17
type Q15617994
['Q26698316', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q488895 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Comares
action filter_type
action find
entity Comares
relation country
type designation for an administrative territorial entity
['mayor of Comares', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Comares property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q26698316,P17,c(Q15617994))
action filter_type
action find
entity Q488895
relation P17
type Q15617994
That political territory is in [ANSWER]
['Q26698316', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q488895 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Spain
That political territory is in Spain
Spain
action filter_type
action find
entity Comares
relation country
type designation for an administrative territorial entity
['mayor of Comares', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Comares property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q488895
P47
Q1048835
USER
Which political territories are bordered by that one ?
(Q29,P47,c(Q1048835))
action filter_type
action find
entity Q488895
relation P47
type Q1048835
['Q29', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q488895 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Comares
action filter_type
action find
entity Comares
relation shares border with
type political territorial entity
['Spain', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Comares property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1630208 Q1015117 Q385419
SYSTEM
El Borge, Colmenar, Cútar
Q1630208 Q385419 Q1630306 Q1015117
(Q29,P47,c(Q1048835))
action filter_type
action find
entity Q488895
relation P47
type Q1048835
[ANSWERS] are bordered by that one
['Q29', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q488895 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
El Borge Cútar Riogordo Colmenar
El Borge, Colmenar and Cútar are bordered by that one
El Borge Colmenar Cútar
action filter_type
action find
entity Comares
relation shares border with
type political territorial entity
['Spain', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Comares property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q488895
P47
Q1048835 Q56061
USER
How many political territories and administrative territories have an adjacent border with Comares ?
(c(Q1048835),P47,Q488895) (c(Q56061),P47,Q488895)
action count
action union
action filter_type
action find_reverse
entity Q488895
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q488895
relation P47
type Q56061
[{'concept': 'Q1048835'}, 'P47', 'Q488895'] [{'concept': 'Q56061'}, 'P47', 'Q488895']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a rdf:type ontology:Q1048835 . ?a property:P47 resource:Q488895 } UNION { ?a property:P47 resource:Q488895 . ?a rdf:type ontology:Q56061 } }
Comares
action count
action union
action filter_type
action find_reverse
entity Comares
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Comares
relation shares border with
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Comares'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Comares']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a rdf:type ontology:political_territorial_entity . ?a property:shares_border_with resource:Comares } UNION { ?a property:shares_border_with resource:Comares . ?a rdf:type ontology:administrative_territorial_entity } }
[]
political territorial entity administrative territorial entity
SYSTEM
4 political territories and 1 administrative territories
Q8851 Q385419 Q1015117 Q1630306 Q1630208
(c(Q1048835),P47,Q488895) (c(Q56061),P47,Q488895)
action count
action union
action filter_type
action find_reverse
entity Q488895
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q488895
relation P47
type Q56061
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q488895'] [{'concept': 'Q56061'}, 'P47', 'Q488895']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a rdf:type ontology:Q1048835 . ?a property:P47 resource:Q488895 } UNION { ?a property:P47 resource:Q488895 . ?a rdf:type ontology:Q56061 } }
Málaga Cútar Colmenar Riogordo El Borge
4 political territories and 1 administrative territories
action count
action union
action filter_type
action find_reverse
entity Comares
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Comares
relation shares border with
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Comares'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Comares']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a rdf:type ontology:political_territorial_entity . ?a property:shares_border_with resource:Comares } UNION { ?a property:shares_border_with resource:Comares . ?a rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q488895
P47
Q1048835 Q56061
USER
How many political territories and administrative territories are bordered by Comares ?
(c(Q1048835),P47,Q488895) (c(Q56061),P47,Q488895)
action count
action union
action filter_type
action find_reverse
entity Q488895
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q488895
relation P47
type Q56061
[{'concept': 'Q1048835'}, 'P47', 'Q488895'] [{'concept': 'Q56061'}, 'P47', 'Q488895']
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } }
Comares
action count
action union
action filter_type
action find_reverse
entity Comares
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Comares
relation shares border with
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Comares'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Comares']
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h rdf:type ?n . VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } }
[]
political territorial entity administrative territorial entity
SYSTEM
4 political territories and 1 administrative territories
Q8851 Q385419 Q1015117 Q1630306 Q1630208
(c(Q1048835),P47,Q488895) (c(Q56061),P47,Q488895)
action count
action union
action filter_type
action find_reverse
entity Q488895
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q488895
relation P47
type Q56061
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q488895'] [{'concept': 'Q56061'}, 'P47', 'Q488895']
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } }
Málaga Cútar Colmenar Riogordo El Borge
4 political territories and 1 administrative territories
action count
action union
action filter_type
action find_reverse
entity Comares
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Comares
relation shares border with
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Comares'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Comares']
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h rdf:type ?n . VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q488895
P1001
Q12737077
USER
Which occupation has jurisdiction over that political territory ?
action filter_type
action find_reverse
entity Q488895
relation P1001
type Q12737077
SELECT DISTINCT ?p WHERE { ?p property:P1001 resource:Q488895 . ?p rdf:type ontology:Q12737077 }
Comares
action filter_type
action find_reverse
entity Comares
relation applies to jurisdiction
type occupation
SELECT DISTINCT ?p WHERE { ?p property:applies_to_jurisdiction resource:Comares . ?p rdf:type ontology:occupation }
[]
occupation
Q26698316
SYSTEM
mayor of Comares
Q26698316
action filter_type
action find_reverse
entity Q488895
relation P1001
type Q12737077
[ANSWER] has jurisdiction over that political territory
SELECT DISTINCT ?p WHERE { ?p property:P1001 resource:Q488895 . ?p rdf:type ontology:Q12737077 }
mayor of Comares
Mayor of Comares has jurisdiction over that political territory
mayor of Comares
action filter_type
action find_reverse
entity Comares
relation applies to jurisdiction
type occupation
SELECT DISTINCT ?p WHERE { ?p property:applies_to_jurisdiction resource:Comares . ?p rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q26698316 Q29
P17
Q15617994
USER
Is that occupation located in Spain ?
(Q26698316,P17,Q29)
action is_in
entity Q29
action find
entity Q26698316
relation P17
['Q26698316', 'P17', 'Q29']
ASK WHERE { resource:Q26698316 property:P17 resource:Q29 }
mayor of Comares Spain
action is_in
entity Spain
action find
entity mayor of Comares
relation country
['mayor of Comares', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Comares property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q26698316,P17,Q29)
action is_in
entity Q29
action find
entity Q26698316
relation P17
[ANSWER]
['Q26698316', 'P17', 'Q29']
ASK WHERE { resource:Q26698316 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity mayor of Comares
relation country
['mayor of Comares', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Comares property:country resource:Spain }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1015117 Q29
P17
Q15617994
USER
Is Colmenar present in Spain ?
(Q1015117,P17,Q29)
action is_in
entity Q29
action find
entity Q1015117
relation P17
['Q1015117', 'P17', 'Q29']
ASK WHERE { resource:Q1015117 property:P17 resource:Q29 }
Colmenar Spain
action is_in
entity Spain
action find
entity Colmenar
relation country
['Colmenar', 'country', 'Spain']
ASK WHERE { resource:Colmenar property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1015117,P17,Q29)
action is_in
entity Q29
action find
entity Q1015117
relation P17
[ANSWER]
['Q1015117', 'P17', 'Q29']
ASK WHERE { resource:Q1015117 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Colmenar
relation country
['Colmenar', 'country', 'Spain']
ASK WHERE { resource:Colmenar property:country resource:Spain }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q29 Q4187136
P530
Q1048835
USER
Does Zarvanytsia have diplomatic relationships with Spain ?
(Q29,P530,Q4187136)
action is_in
entity Q4187136
action find
entity Q29
relation P530
['Q29', 'P530', 'Q4187136']
ASK WHERE { resource:Q29 property:P530 resource:Q4187136 }
Spain Zarvanytsia
action is_in
entity Zarvanytsia
action find
entity Spain
relation diplomatic relation
['Spain', 'diplomatic relation', 'Zarvanytsia']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Zarvanytsia }
[]
political territorial entity
SYSTEM
NO
(Q29,P530,Q4187136)
action is_in
entity Q4187136
action find
entity Q29
relation P530
[ANSWER]
['Q29', 'P530', 'Q4187136']
ASK WHERE { resource:Q29 property:P530 resource:Q4187136 }
No
action is_in
entity Zarvanytsia
action find
entity Spain
relation diplomatic relation
['Spain', 'diplomatic relation', 'Zarvanytsia']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Zarvanytsia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q26698316 Q29 Q23657
P17
Q15617994
USER
Is mayor of Comares situated in Spain and Nonio ?
(Q26698316,P17,Q29) (Q26698316,P17,Q23657)
action is_in
entity Q26698316
action intersection
action find_reverse
entity Q29
relation P17
action find_reverse
entity Q23657
relation P17
['Q26698316', 'P17', 'Q29'] ['Q26698316', 'P17', 'Q23657']
ASK WHERE { resource:Q26698316 property:P17 resource:Q29 . resource:Q26698316 property:P17 resource:Q23657 }
mayor of Comares Spain Nonio
action is_in
entity mayor of Comares
action intersection
action find_reverse
entity Spain
relation country
action find_reverse
entity Nonio
relation country
['mayor of Comares', 'country', 'Spain'] ['mayor of Comares', 'country', 'Nonio']
ASK WHERE { resource:mayor_of_Comares property:country resource:Spain . resource:mayor_of_Comares property:country resource:Nonio }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q26698316,P17,Q29) (Q26698316,P17,Q23657)
action is_in
entity Q26698316
action intersection
action find_reverse
entity Q29
relation P17
action find_reverse
entity Q23657
relation P17
[ANSWER]
['Q26698316', 'P17', 'Q29'] ['Q26698316', 'P17', 'Q23657']
ASK WHERE { resource:Q26698316 property:P17 resource:Q29 . resource:Q26698316 property:P17 resource:Q23657 }
YES and NO respectively
action is_in
entity mayor of Comares
action intersection
action find_reverse
entity Spain
relation country
action find_reverse
entity Nonio
relation country
['mayor of Comares', 'country', 'Spain'] ['mayor of Comares', 'country', 'Nonio']
ASK WHERE { resource:mayor_of_Comares property:country resource:Spain . resource:mayor_of_Comares property:country resource:Nonio }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1630208 Q700672 Q29
P17
Q15617994
USER
Is El Borge present in Wrestedt and Spain ?
(Q1630208,P17,Q700672) (Q1630208,P17,Q29)
action is_in
entity Q1630208
action intersection
action find_reverse
entity Q700672
relation P17
action find_reverse
entity Q29
relation P17
['Q1630208', 'P17', 'Q700672'] ['Q1630208', 'P17', 'Q29']
ASK WHERE { resource:Q1630208 property:P17 resource:Q700672 . resource:Q1630208 property:P17 resource:Q29 }
El Borge Wrestedt Spain
action is_in
entity El Borge
action intersection
action find_reverse
entity Wrestedt
relation country
action find_reverse
entity Spain
relation country
['El Borge', 'country', 'Wrestedt'] ['El Borge', 'country', 'Spain']
ASK WHERE { resource:El_Borge property:country resource:Wrestedt . resource:El_Borge property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q1630208,P17,Q700672) (Q1630208,P17,Q29)
action is_in
entity Q1630208
action intersection
action find_reverse
entity Q700672
relation P17
action find_reverse
entity Q29
relation P17
[ANSWER]
['Q1630208', 'P17', 'Q700672'] ['Q1630208', 'P17', 'Q29']
ASK WHERE { resource:Q1630208 property:P17 resource:Q700672 . resource:Q1630208 property:P17 resource:Q29 }
NO and YES respectively
action is_in
entity El Borge
action intersection
action find_reverse
entity Wrestedt
relation country
action find_reverse
entity Spain
relation country
['El Borge', 'country', 'Wrestedt'] ['El Borge', 'country', 'Spain']
ASK WHERE { resource:El_Borge property:country resource:Wrestedt . resource:El_Borge property:country resource:Spain }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13643 Q1630208
P47
Q1048835
USER
Which political territories share the border with El Borge or Hostalric ?
OR((Q1630208,P47,c(Q1048835)), (Q13643,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1630208
relation P47
action find
entity Q13643
relation P47
type Q1048835
{'OR': [['Q1630208', 'P47', {'concept': 'Q1048835'}], ['Q13643', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1630208 property:P47 ?h } UNION { resource:Q13643 property:P47 ?h } } . ?h rdf:type ontology:Q1048835 }
Hostalric El Borge
action filter_type
action union
action find
entity El Borge
relation shares border with
action find
entity Hostalric
relation shares border with
type political territorial entity
{'OR': [['El Borge', 'shares border with', {'concept': 'political territorial entity'}], ['Hostalric', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:El_Borge property:shares_border_with ?h } UNION { resource:Hostalric property:shares_border_with ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q732206 Q13637 Q13083 Q13633 Q488895 Q385419 Q1630306 Q973594 Q1647730 Q13152
SYSTEM
Periana, Massanes, Fogars de la Selva, Sant Feliu de Buixalleu, Comares, Cútar, Riogordo, Totalán, Almáchar, Moclinejo
Q732206 Q13637 Q13083 Q13633 Q488895 Q385419 Q1630306 Q973594 Q1647730 Q13152
OR((Q1630208,P47,c(Q1048835)), (Q13643,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1630208
relation P47
action find
entity Q13643
relation P47
type Q1048835
[ANSWERS] share the border with El Borge or Hostalric
{'OR': [['Q1630208', 'P47', {'concept': 'Q1048835'}], ['Q13643', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1630208 property:P47 ?h } UNION { resource:Q13643 property:P47 ?h } } . ?h rdf:type ontology:Q1048835 }
Periana Massanes Fogars de la Selva Sant Feliu de Buixalleu Comares Cútar Riogordo Totalán Almáchar Moclinejo
Periana, Massanes, Fogars de la Selva, Sant Feliu de Buixalleu, Comares, Cútar, Riogordo, Totalán, Almáchar and Moclinejo share the border with El Borge or Hostalric
Periana Massanes Fogars de la Selva Sant Feliu de Buixalleu Comares Cútar Riogordo Totalán Almáchar Moclinejo
action filter_type
action union
action find
entity El Borge
relation shares border with
action find
entity Hostalric
relation shares border with
type political territorial entity
{'OR': [['El Borge', 'shares border with', {'concept': 'political territorial entity'}], ['Hostalric', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:El_Borge property:shares_border_with ?h } UNION { resource:Hostalric property:shares_border_with ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]