Simple Question (Direct)
Simple Question
Q11931370
P1412
Q34770
USER
Which language does Leopold Rodés Castañé speak in ?
(Q11931370,P1412,c(Q34770))
action filter_type
action find
entity Q11931370
relation P1412
type Q34770
['Q11931370', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q11931370 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Leopold Rodés Castañé
action filter_type
action find
entity Leopold Rodés Castañé
relation languages spoken, written or signed
type language
['Leopold Rodés Castañé', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Leopold_Rodés_Castañé property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q11931370,P1412,c(Q34770))
action filter_type
action find
entity Q11931370
relation P1412
type Q34770
Leopold Rodés Castañé speaks in [ANSWER]
['Q11931370', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q11931370 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Spanish
Leopold Rodés Castañé speaks in Spanish
Spanish
action filter_type
action find
entity Leopold Rodés Castañé
relation languages spoken, written or signed
type language
['Leopold Rodés Castañé', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Leopold_Rodés_Castañé property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q150
P361
Q980357
USER
Which grammatical category is a portion of French ?
(c(Q980357),P361,Q150)
action filter_type
action find_reverse
entity Q150
relation P361
type Q980357
[{'concept': 'Q980357'}, 'P361', 'Q150']
SELECT DISTINCT ?m WHERE { ?m property:P361 resource:Q150 . ?m rdf:type ontology:Q980357 }
French
action filter_type
action find_reverse
entity French
relation part of
type grammatical category
[{'concept': 'grammatical category'}, 'part of', 'French']
SELECT DISTINCT ?m WHERE { ?m property:part_of resource:French . ?m rdf:type ontology:grammatical_category }
[]
grammatical category
Q623734
SYSTEM
imperfect
Q623734
(c(Q980357),P361,Q150)
action filter_type
action find_reverse
entity Q150
relation P361
type Q980357
[ANSWER] is a portion of French
[{'concept': 'Q980357'}, 'P361', 'Q150']
SELECT DISTINCT ?m WHERE { ?m property:P361 resource:Q150 . ?m rdf:type ontology:Q980357 }
imperfect
Imperfect is a portion of French
imperfect
action filter_type
action find_reverse
entity French
relation part of
type grammatical category
[{'concept': 'grammatical category'}, 'part of', 'French']
SELECT DISTINCT ?m WHERE { ?m property:part_of resource:French . ?m rdf:type ontology:grammatical_category }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11931370
P19
Q56061
USER
Which administrative territory was Leopold Rodés Castañé born at ?
(Q11931370,P19,c(Q56061))
action filter_type
action find
entity Q11931370
relation P19
type Q56061
['Q11931370', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q11931370 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Leopold Rodés Castañé
action filter_type
action find
entity Leopold Rodés Castañé
relation place of birth
type administrative territorial entity
['Leopold Rodés Castañé', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Leopold_Rodés_Castañé property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q11931370,P19,c(Q56061))
action filter_type
action find
entity Q11931370
relation P19
type Q56061
Which administrative territory was Leopold Rodés Castañé born at
['Q11931370', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q11931370 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Barcelona
Which administrative territory was Leopold Rodés Castañé born at
Barcelona
action filter_type
action find
entity Leopold Rodés Castañé
relation place of birth
type administrative territorial entity
['Leopold Rodés Castañé', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Leopold_Rodés_Castañé property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11931370
P20
Q1048835
USER
Where did that person die ?
(Q1492,P20,c(Q1048835))
action filter_type
action find
entity Q11931370
relation P20
type Q1048835
['Q1492', 'P20', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q11931370 property:P20 ?v . ?v rdf:type ontology:Q1048835 }
Leopold Rodés Castañé
action filter_type
action find
entity Leopold Rodés Castañé
relation place of death
type political territorial entity
['Barcelona', 'place of death', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Leopold_Rodés_Castañé property:place_of_death ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13412
SYSTEM
Aiguaviva
Q13412
(Q1492,P20,c(Q1048835))
action filter_type
action find
entity Q11931370
relation P20
type Q1048835
That person died in [ANSWER]
['Q1492', 'P20', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q11931370 property:P20 ?v . ?v rdf:type ontology:Q1048835 }
Aiguaviva
That person died in Aiguaviva
Aiguaviva
action filter_type
action find
entity Leopold Rodés Castañé
relation place of death
type political territorial entity
['Barcelona', 'place of death', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Leopold_Rodés_Castañé property:place_of_death ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q695
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with less number of political territories than Palau ?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q695
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?d ) WHERE { ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 . ?y property:P530 ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Q695 property:P530 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?d < ?e ) }
Palau
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Palau
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?d ) WHERE { ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Palau property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?d < ?e ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
12
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q695
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?d ) WHERE { ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 . ?y property:P530 ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Q695 property:P530 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?d < ?e ) }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
12
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Palau
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?d ) WHERE { ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Palau property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?d < ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1028
P530
Q15617994 Q1048835
USER
And what about Morocco?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1028
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Q1028 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?s < ?b ) }
Morocco
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Morocco
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Morocco property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?s < ?b ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
84
Q702 Q805 Q262 Q784 Q265 Q37 Q712 Q710 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1028
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Q1028 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?s < ?b ) }
Federated States of Micronesia Yemen Algeria Dominica Uzbekistan Lithuania Fiji Kiribati Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
84
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Morocco
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Morocco property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?s < ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1492
P417
Q502895
USER
What is the name of person who is the patron saint of Barcelona ?
(Q1492,P417,c(Q502895))
action filter_type
action find
entity Q1492
relation P417
type Q502895
['Q1492', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q1492 property:P417 ?x }
Barcelona
action filter_type
action find
entity Barcelona
relation patron saint
type common name
['Barcelona', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Barcelona property:patron_saint ?x }
[]
common name
Q2456500
SYSTEM
Eulalia of Barcelona
Q2456500
(Q1492,P417,c(Q502895))
action filter_type
action find
entity Q1492
relation P417
type Q502895
The name of person is the patron saint of Barcelona is Santa [ANSWER]
['Q1492', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q1492 property:P417 ?x }
Eulalia of Barcelona
The name of person is the patron saint of Barcelona is Santa Eulalia of Barcelona
Eulalia of Barcelona
action filter_type
action find
entity Barcelona
relation patron saint
type common name
['Barcelona', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Barcelona property:patron_saint ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13412
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of Aiguaviva ?
(Q13412,P1313,c(Q12737077))
action filter_type
action find
entity Q13412
relation P1313
type Q12737077
['Q13412', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q13412 property:P1313 ?d . ?d rdf:type ontology:Q12737077 }
Aiguaviva
action filter_type
action find
entity Aiguaviva
relation office held by head of government
type occupation
['Aiguaviva', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Aiguaviva property:office_held_by_head_of_government ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q26690814
SYSTEM
mayor of Aiguaviva
Q26690814
(Q13412,P1313,c(Q12737077))
action filter_type
action find
entity Q13412
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of Aiguaviva
['Q13412', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q13412 property:P1313 ?d . ?d rdf:type ontology:Q12737077 }
mayor of Aiguaviva
The mayor of Aiguaviva serves as the political office that is fulfilled by the head of the government of Aiguaviva
mayor of Aiguaviva
action filter_type
action find
entity Aiguaviva
relation office held by head of government
type occupation
['Aiguaviva', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Aiguaviva property:office_held_by_head_of_government ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13412
P1001
Q12737077
USER
Which occupation presides the jurisdiction over that political territory ?
(c(Q12737077),P1001,Q26690814)
action filter_type
action find_reverse
entity Q13412
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q26690814']
SELECT DISTINCT ?n WHERE { ?n property:P1001 resource:Q13412 . ?n rdf:type ontology:Q12737077 }
Aiguaviva
action filter_type
action find_reverse
entity Aiguaviva
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'mayor of Aiguaviva']
SELECT DISTINCT ?n WHERE { ?n property:applies_to_jurisdiction resource:Aiguaviva . ?n rdf:type ontology:occupation }
[]
occupation
Q26690814
SYSTEM
mayor of Aiguaviva
Q26690814
(c(Q12737077),P1001,Q26690814)
action filter_type
action find_reverse
entity Q13412
relation P1001
type Q12737077
The [ANSWER] presides the jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q26690814']
SELECT DISTINCT ?n WHERE { ?n property:P1001 resource:Q13412 . ?n rdf:type ontology:Q12737077 }
mayor of Aiguaviva
The mayor of Aiguaviva presides the jurisdiction over that political territory
mayor of Aiguaviva
action filter_type
action find_reverse
entity Aiguaviva
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'mayor of Aiguaviva']
SELECT DISTINCT ?n WHERE { ?n property:applies_to_jurisdiction resource:Aiguaviva . ?n rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q26690814 Q26701000
P1313
Q1048835
USER
How many political territories have mayor of Aiguaviva or mayor of Molina de Aragón as title of head of government ?
(c(Q1048835),P1313,Q26690814) (c(Q1048835),P1313,Q26701000)
action count
action union
action filter_type
action find_reverse
entity Q26690814
relation P1313
type Q1048835
action filter_type
action find_reverse
entity Q26701000
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q26690814'] [{'concept': 'Q1048835'}, 'P1313', 'Q26701000']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { { ?x property:P1313 resource:Q26690814 . ?x rdf:type ontology:Q1048835 } UNION { ?x property:P1313 resource:Q26701000 . ?x rdf:type ontology:Q1048835 } }
mayor of Aiguaviva mayor of Molina de Aragón
action count
action union
action filter_type
action find_reverse
entity mayor of Aiguaviva
relation office held by head of government
type political territorial entity
action filter_type
action find_reverse
entity mayor of Molina de Aragón
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Aiguaviva'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Molina de Aragón']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { { ?x property:office_held_by_head_of_government resource:mayor_of_Aiguaviva . ?x rdf:type ontology:political_territorial_entity } UNION { ?x property:office_held_by_head_of_government resource:mayor_of_Molina_de_Aragón . ?x rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
SYSTEM
2
Q919050 Q13412
(c(Q1048835),P1313,Q26690814) (c(Q1048835),P1313,Q26701000)
action count
action union
action filter_type
action find_reverse
entity Q26690814
relation P1313
type Q1048835
action filter_type
action find_reverse
entity Q26701000
relation P1313
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P1313', 'Q26690814'] [{'concept': 'Q1048835'}, 'P1313', 'Q26701000']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { { ?x property:P1313 resource:Q26690814 . ?x rdf:type ontology:Q1048835 } UNION { ?x property:P1313 resource:Q26701000 . ?x rdf:type ontology:Q1048835 } }
Molina de Aragón Aiguaviva
2
action count
action union
action filter_type
action find_reverse
entity mayor of Aiguaviva
relation office held by head of government
type political territorial entity
action filter_type
action find_reverse
entity mayor of Molina de Aragón
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Aiguaviva'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Molina de Aragón']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { { ?x property:office_held_by_head_of_government resource:mayor_of_Aiguaviva . ?x rdf:type ontology:political_territorial_entity } UNION { ?x property:office_held_by_head_of_government resource:mayor_of_Molina_de_Aragón . ?x rdf:type ontology:political_territorial_entity } }
[]