Simple Question (Direct)
Simple Question
Q4401772
P27
Q7275
USER
Which state does Boris Ryzhy belong to ?
(Q4401772,P27,c(Q7275))
action filter_type
action find
entity Q4401772
relation P27
type Q7275
['Q4401772', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7275 . resource:Q4401772 property:P27 ?m }
Boris Ryzhy
action filter_type
action find
entity Boris Ryzhy
relation country of citizenship
type state
['Boris Ryzhy', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:state . resource:Boris_Ryzhy property:country_of_citizenship ?m }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(Q4401772,P27,c(Q7275))
action filter_type
action find
entity Q4401772
relation P27
type Q7275
Boris Ryzhy belongs in [ANSWER]
['Q4401772', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7275 . resource:Q4401772 property:P27 ?m }
Soviet Union
Boris Ryzhy belongs in Soviet Union
Soviet Union
action filter_type
action find
entity Boris Ryzhy
relation country of citizenship
type state
['Boris Ryzhy', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:state . resource:Boris_Ryzhy property:country_of_citizenship ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4401772
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q15180,P20,c(Q56061))
action filter_type
action find
entity Q4401772
relation P20
type Q56061
['Q15180', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q4401772 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Boris Ryzhy
action filter_type
action find
entity Boris Ryzhy
relation place of death
type administrative territorial entity
['Soviet Union', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Boris_Ryzhy property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q887
SYSTEM
Yekaterinburg
Q887
(Q15180,P20,c(Q56061))
action filter_type
action find
entity Q4401772
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q15180', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q4401772 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Yekaterinburg
Yekaterinburg is the place of death of that person
Yekaterinburg
action filter_type
action find
entity Boris Ryzhy
relation place of death
type administrative territorial entity
['Soviet Union', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Boris_Ryzhy property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q887 Q159 Q490330
P17
Q15617994
USER
Is that administrative territory situated in Russia and Roccafiorita ?
(Q887,P17,Q159) (Q887,P17,Q490330)
action is_in
entity Q887
action intersection
action find_reverse
entity Q159
relation P17
action find_reverse
entity Q490330
relation P17
['Q887', 'P17', 'Q159'] ['Q887', 'P17', 'Q490330']
ASK WHERE { resource:Q887 property:P17 resource:Q159 . resource:Q887 property:P17 resource:Q490330 }
Yekaterinburg Russia Roccafiorita
action is_in
entity Yekaterinburg
action intersection
action find_reverse
entity Russia
relation country
action find_reverse
entity Roccafiorita
relation country
['Yekaterinburg', 'country', 'Russia'] ['Yekaterinburg', 'country', 'Roccafiorita']
ASK WHERE { resource:Yekaterinburg property:country resource:Russia . resource:Yekaterinburg property:country resource:Roccafiorita }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q887,P17,Q159) (Q887,P17,Q490330)
action is_in
entity Q887
action intersection
action find_reverse
entity Q159
relation P17
action find_reverse
entity Q490330
relation P17
[ANSWER]
['Q887', 'P17', 'Q159'] ['Q887', 'P17', 'Q490330']
ASK WHERE { resource:Q887 property:P17 resource:Q159 . resource:Q887 property:P17 resource:Q490330 }
YES and NO respectively
action is_in
entity Yekaterinburg
action intersection
action find_reverse
entity Russia
relation country
action find_reverse
entity Roccafiorita
relation country
['Yekaterinburg', 'country', 'Russia'] ['Yekaterinburg', 'country', 'Roccafiorita']
ASK WHERE { resource:Yekaterinburg property:country resource:Russia . resource:Yekaterinburg property:country resource:Roccafiorita }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q42879 Q490330
P47
Q15617994
USER
Which administrative territories do Roccafiorita or Scandolara Ravara share a border with ?
OR((c(Q15617994),P47,Q490330), (c(Q15617994),P47,Q42879))
action filter_type
action union
action find_reverse
entity Q490330
relation P47
action find_reverse
entity Q42879
relation P47
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q490330'], [{'concept': 'Q15617994'}, 'P47', 'Q42879']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { { ?h property:P47 resource:Q42879 } UNION { ?h property:P47 resource:Q490330 } } }
Scandolara Ravara Roccafiorita
action filter_type
action union
action find_reverse
entity Roccafiorita
relation shares border with
action find_reverse
entity Scandolara Ravara
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Roccafiorita'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Scandolara Ravara']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { { ?h property:shares_border_with resource:Scandolara_Ravara } UNION { ?h property:shares_border_with resource:Roccafiorita } } }
[]
designation for an administrative territorial entity
Q490919 Q42481 Q42870 Q42757 Q491839 Q42488 Q492611 Q42456 Q42492
SYSTEM
Mongiuffi Melia, Cingia de' Botti, Gussola, San Martino del Lago, Limina, Solarolo Rainerio, Antillo, Motta Baluffi, Torricella del Pizzo
Q490919 Q42481 Q42870 Q42757 Q491839 Q42488 Q492611 Q42456 Q42492
OR((c(Q15617994),P47,Q490330), (c(Q15617994),P47,Q42879))
action filter_type
action union
action find_reverse
entity Q490330
relation P47
action find_reverse
entity Q42879
relation P47
type Q15617994
[ANSWERS] Roccafiorita or Scandolara Ravara share a border with
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q490330'], [{'concept': 'Q15617994'}, 'P47', 'Q42879']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { { ?h property:P47 resource:Q42879 } UNION { ?h property:P47 resource:Q490330 } } }
Mongiuffi Melia Cingia de' Botti Gussola San Martino del Lago Limina Solarolo Rainerio Antillo Motta Baluffi Torricella del Pizzo
Mongiuffi Melia, Cingia de' Botti, Gussola, San Martino del Lago, Limina, Solarolo Rainerio, Antillo, Motta Baluffi and Torricella del Pizzo Roccafiorita or Scandolara Ravara share a border with
Mongiuffi Melia Cingia de' Botti Gussola San Martino del Lago Limina Solarolo Rainerio Antillo Motta Baluffi Torricella del Pizzo
action filter_type
action union
action find_reverse
entity Roccafiorita
relation shares border with
action find_reverse
entity Scandolara Ravara
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Roccafiorita'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Scandolara Ravara']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { { ?h property:shares_border_with resource:Scandolara_Ravara } UNION { ?h property:shares_border_with resource:Roccafiorita } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q42757
P417
Q502895
USER
Who is the patron saint of that administrative territory ?
(Q42757,P417,c(Q502895))
action filter_type
action find
entity Q42757
relation P417
type Q502895
['Q42757', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q42757 property:P417 ?r }
San Martino del Lago
action filter_type
action find
entity San Martino del Lago
relation patron saint
type common name
['San Martino del Lago', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:San_Martino_del_Lago property:patron_saint ?r }
[]
common name
Clarification for simple ques.
Q42757
SYSTEM
Did you mean San Martino del Lago ?
Q490919 Q42481 Q42870 Q42757 Q491839 Q42488 Q492611 Q42456 Q42492
(Q490919,P417,c(Q502895)) (Q42481,P417,c(Q502895)) (Q42870,P417,c(Q502895)) (Q42757,P417,c(Q502895)) (Q491839,P417,c(Q502895)) (Q42488,P417,c(Q502895)) (Q492611,P417,c(Q502895)) (Q42456,P417,c(Q502895)) (Q42492,P417,c(Q502895))
[ANSWER]
['Q490919', 'P417', {'concept': 'Q502895'}] ['Q42481', 'P417', {'concept': 'Q502895'}] ['Q42870', 'P417', {'concept': 'Q502895'}] ['Q42757', 'P417', {'concept': 'Q502895'}] ['Q491839', 'P417', {'concept': 'Q502895'}] ['Q42488', 'P417', {'concept': 'Q502895'}] ['Q492611', 'P417', {'concept': 'Q502895'}] ['Q42456', 'P417', {'concept': 'Q502895'}] ['Q42492', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q42757 property:P417 ?r }
Mongiuffi Melia Cingia de' Botti Gussola San Martino del Lago Limina Solarolo Rainerio Antillo Motta Baluffi Torricella del Pizzo
Did you mean San Martino del Lago ?
San Martino del Lago
['Mongiuffi Melia', 'patron saint', {'concept': 'common name'}] ["Cingia de' Botti", 'patron saint', {'concept': 'common name'}] ['Gussola', 'patron saint', {'concept': 'common name'}] ['San Martino del Lago', 'patron saint', {'concept': 'common name'}] ['Limina', 'patron saint', {'concept': 'common name'}] ['Solarolo Rainerio', 'patron saint', {'concept': 'common name'}] ['Antillo', 'patron saint', {'concept': 'common name'}] ['Motta Baluffi', 'patron saint', {'concept': 'common name'}] ['Torricella del Pizzo', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:San_Martino_del_Lago property:patron_saint ?r }
[]
Simple Question (Coreferenced)
USER
Yes
(Q42757,P417,c(Q502895))
['Q42757', 'P417', {'concept': 'Q502895'}]
['San Martino del Lago', 'patron saint', {'concept': 'common name'}]
[]
Q200895
SYSTEM
Agatha of Sicily
Q200895
(Q42757,P417,c(Q502895))
action filter_type
action find
entity Q42757
relation P417
type Q502895
The patron saint of that administrative territory is Saint [ANSWER]
['Q42757', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q42757 property:P417 ?r }
Agatha of Sicily
The patron saint of that administrative territory is Saint Agatha of Sicily
Agatha of Sicily
action filter_type
action find
entity San Martino del Lago
relation patron saint
type common name
['San Martino del Lago', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:San_Martino_del_Lago property:patron_saint ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q200895 Q5908977
P138
Q16970
USER
Does Cathedral of Salto have that person as its namesake ?
(Q5908977,P138,Q200895)
action is_in
entity Q5908977
action find
entity Q200895
relation P138
['Q5908977', 'P138', 'Q200895']
ASK WHERE { resource:Q200895 property:P138 resource:Q5908977 }
Agatha of Sicily Cathedral of Salto
action is_in
entity Cathedral of Salto
action find
entity Agatha of Sicily
relation named after
['Cathedral of Salto', 'named after', 'Agatha of Sicily']
ASK WHERE { resource:Agatha_of_Sicily property:named_after resource:Cathedral_of_Salto }
[]
church
SYSTEM
NO
(Q5908977,P138,Q200895)
action is_in
entity Q5908977
action find
entity Q200895
relation P138
[ANSWER]
['Q5908977', 'P138', 'Q200895']
ASK WHERE { resource:Q200895 property:P138 resource:Q5908977 }
No
action is_in
entity Cathedral of Salto
action find
entity Agatha of Sicily
relation named after
['Cathedral of Salto', 'named after', 'Agatha of Sicily']
ASK WHERE { resource:Agatha_of_Sicily property:named_after resource:Cathedral_of_Salto }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q38 Q42488
P47 P17
Q15617994
USER
Which administrative territories have an adjacent border with Solarolo Rainerio and are present in Italy ?
AND((c(Q15617994),P47,Q42488), (c(Q15617994),P17,Q38))
action filter_type
action intersection
action find_reverse
entity Q42488
relation P47
action find_reverse
entity Q38
relation P17
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q42488'], [{'concept': 'Q15617994'}, 'P17', 'Q38']]}
SELECT DISTINCT ?k WHERE { ?k property:P17 resource:Q38 . ?k property:P47 resource:Q42488 . ?k rdf:type ontology:Q15617994 }
Italy Solarolo Rainerio
action filter_type
action intersection
action find_reverse
entity Solarolo Rainerio
relation shares border with
action find_reverse
entity Italy
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Solarolo Rainerio'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy']]}
SELECT DISTINCT ?k WHERE { ?k property:country resource:Italy . ?k property:shares_border_with resource:Solarolo_Rainerio . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q42870 Q43072 Q42757 Q42879 Q42805 Q4493
SYSTEM
Gussola, San Giovanni in Croce, San Martino del Lago, Scandolara Ravara, Voltido, Piadena
Q42870 Q43072 Q42757 Q42879 Q42805 Q4493
AND((c(Q15617994),P47,Q42488), (c(Q15617994),P17,Q38))
action filter_type
action intersection
action find_reverse
entity Q42488
relation P47
action find_reverse
entity Q38
relation P17
type Q15617994
[ANSWERS] have an adjacent border with Solarolo Rainerio and are present in Italy
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q42488'], [{'concept': 'Q15617994'}, 'P17', 'Q38']]}
SELECT DISTINCT ?k WHERE { ?k property:P17 resource:Q38 . ?k property:P47 resource:Q42488 . ?k rdf:type ontology:Q15617994 }
Gussola San Giovanni in Croce San Martino del Lago Scandolara Ravara Voltido Piadena
Gussola, San Giovanni in Croce, San Martino del Lago, Scandolara Ravara, Voltido and Piadena have an adjacent border with Solarolo Rainerio and are present in Italy
Gussola San Giovanni in Croce San Martino del Lago Scandolara Ravara Voltido Piadena
action filter_type
action intersection
action find_reverse
entity Solarolo Rainerio
relation shares border with
action find_reverse
entity Italy
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Solarolo Rainerio'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy']]}
SELECT DISTINCT ?k WHERE { ?k property:country resource:Italy . ?k property:shares_border_with resource:Solarolo_Rainerio . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q42488
P47
Q15617994
USER
Do Solarolo Rainerio have an adjacent border with those ones ?
(Q42488,P47,Q42870) (Q42488,P47,Q43072) (Q42488,P47,Q42757) (Q42488,P47,Q42879) (Q42488,P47,Q42805) (Q42488,P47,Q4493)
action is_in
entity prev_answer
action find
entity Q42488
relation P47
['Q42488', 'P47', 'Q42870'] ['Q42488', 'P47', 'Q43072'] ['Q42488', 'P47', 'Q42757'] ['Q42488', 'P47', 'Q42879'] ['Q42488', 'P47', 'Q42805'] ['Q42488', 'P47', 'Q4493']
ASK WHERE { resource:Q42488 property:P47 ?s . VALUES ( ?s ) { ( resource:Q42870 ) ( resource:Q43072 ) ( resource:Q42757 ) } }
Solarolo Rainerio
action is_in
entity prev_answer
action find
entity Solarolo Rainerio
relation shares border with
['Solarolo Rainerio', 'shares border with', 'Gussola'] ['Solarolo Rainerio', 'shares border with', 'San Giovanni in Croce'] ['Solarolo Rainerio', 'shares border with', 'San Martino del Lago'] ['Solarolo Rainerio', 'shares border with', 'Scandolara Ravara'] ['Solarolo Rainerio', 'shares border with', 'Voltido'] ['Solarolo Rainerio', 'shares border with', 'Piadena']
ASK WHERE { resource:Solarolo_Rainerio property:shares_border_with ?s . VALUES ( ?s ) { ( resource:Gussola ) ( resource:San_Giovanni_in_Croce ) ( resource:San_Martino_del_Lago ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q42488,P47,Q42870) (Q42488,P47,Q43072) (Q42488,P47,Q42757) (Q42488,P47,Q42879) (Q42488,P47,Q42805) (Q42488,P47,Q4493)
action is_in
entity prev_answer
action find
entity Q42488
relation P47
[ANSWER]
['Q42488', 'P47', 'Q42870'] ['Q42488', 'P47', 'Q43072'] ['Q42488', 'P47', 'Q42757'] ['Q42488', 'P47', 'Q42879'] ['Q42488', 'P47', 'Q42805'] ['Q42488', 'P47', 'Q4493']
ASK WHERE { resource:Q42488 property:P47 ?s . VALUES ( ?s ) { ( resource:Q42870 ) ( resource:Q43072 ) ( resource:Q42757 ) } }
Yes
action is_in
entity prev_answer
action find
entity Solarolo Rainerio
relation shares border with
['Solarolo Rainerio', 'shares border with', 'Gussola'] ['Solarolo Rainerio', 'shares border with', 'San Giovanni in Croce'] ['Solarolo Rainerio', 'shares border with', 'San Martino del Lago'] ['Solarolo Rainerio', 'shares border with', 'Scandolara Ravara'] ['Solarolo Rainerio', 'shares border with', 'Voltido'] ['Solarolo Rainerio', 'shares border with', 'Piadena']
ASK WHERE { resource:Solarolo_Rainerio property:shares_border_with ?s . VALUES ( ?s ) { ( resource:Gussola ) ( resource:San_Giovanni_in_Croce ) ( resource:San_Martino_del_Lago ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q1307214 Q43229 Q15617994
USER
How many administrative territories have around 1 forms of government or organizations as government ?
(c(Q15617994),P122,c(Q1307214)|c(Q43229))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
action find_tuple_counts
relation P122
type Q15617994
type Q43229
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) ?t WHERE { { ?t property:P122 ?x . ?t rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1307214 } UNION { ?t property:P122 ?x . ?t rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q43229 } } GROUP BY ?t } . FILTER ( ?k = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) ?t WHERE { { ?t property:basic_form_of_government ?x . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:form_of_government } UNION { ?t property:basic_form_of_government ?x . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:organization } } GROUP BY ?t } . FILTER ( ?k = 1 ) }
[]
form of government organization designation for an administrative territorial entity
SYSTEM
11
Q154547 Q165116 Q208500 Q794 Q889 Q32 Q423 Q280312 Q238 Q347 Q199688
(c(Q15617994),P122,c(Q1307214)|c(Q43229))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
action find_tuple_counts
relation P122
type Q15617994
type Q43229
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) ?t WHERE { { ?t property:P122 ?x . ?t rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1307214 } UNION { ?t property:P122 ?x . ?t rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q43229 } } GROUP BY ?t } . FILTER ( ?k = 1 ) }
duchy grand duchy principality Iran Afghanistan Luxembourg North Korea Principality of Lüneburg San Marino Liechtenstein Almohad
11
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) ?t WHERE { { ?t property:basic_form_of_government ?x . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:form_of_government } UNION { ?t property:basic_form_of_government ?x . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:organization } } GROUP BY ?t } . FILTER ( ?k = 1 ) }
[]