Simple Question (Direct)
Simple Question
Q1522322
P1411
Q4220917
USER
Which film award did Paul Bunyan receive ?
(Q1522322,P1411,c(Q4220917))
action filter_type
action find
entity Q1522322
relation P1411
type Q4220917
['Q1522322', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?e WHERE { resource:Q1522322 property:P1411 ?e . ?e rdf:type ontology:Q4220917 }
Paul Bunyan
action filter_type
action find
entity Paul Bunyan
relation nominated for
type film award
['Paul Bunyan', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?e WHERE { resource:Paul_Bunyan property:nominated_for ?e . ?e rdf:type ontology:film_award }
[]
film award
Q917808
SYSTEM
Academy Award for Best Animated Short Film
Q917808
(Q1522322,P1411,c(Q4220917))
action filter_type
action find
entity Q1522322
relation P1411
type Q4220917
Paul Bunyan received the [ANSWER]
['Q1522322', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?e WHERE { resource:Q1522322 property:P1411 ?e . ?e rdf:type ontology:Q4220917 }
Academy Award for Best Animated Short Film
Paul Bunyan received the Academy Award for Best Animated Short Film
Academy Award for Best Animated Short Film
action filter_type
action find
entity Paul Bunyan
relation nominated for
type film award
['Paul Bunyan', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?e WHERE { resource:Paul_Bunyan property:nominated_for ?e . ?e rdf:type ontology:film_award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1522322
P86
Q502895
USER
Who composed that work of art ?
(Q917808,P86,c(Q502895))
action filter_type
action find
entity Q1522322
relation P86
type Q502895
['Q917808', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q1522322 property:P86 ?v . ?v rdf:type ontology:Q502895 }
Paul Bunyan
action filter_type
action find
entity Paul Bunyan
relation composer
type common name
['Academy Award for Best Animated Short Film', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Paul_Bunyan property:composer ?v . ?v rdf:type ontology:common_name }
[]
common name
Q977176
SYSTEM
George Bruns
Q977176
(Q917808,P86,c(Q502895))
action filter_type
action find
entity Q1522322
relation P86
type Q502895
[ANSWER] composed that work of art
['Q917808', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q1522322 property:P86 ?v . ?v rdf:type ontology:Q502895 }
George Bruns
George Bruns composed that work of art
George Bruns
action filter_type
action find
entity Paul Bunyan
relation composer
type common name
['Academy Award for Best Animated Short Film', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Paul_Bunyan property:composer ?v . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can approximately 2340 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2340
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?r = 2340 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2340
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?r = 2340 ) }
[]
musical instrument common name
SYSTEM
4
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2340
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?r = 2340 ) }
bass guitar trumpet organ drum kit
4
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2340
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?r = 2340 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3844152 Q1522322
P495
Q15617994
USER
Which administrative territories are the countries of origin of Paul Bunyan or White Mama ?
OR((Q1522322,P495,c(Q15617994)), (Q3844152,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1522322
relation P495
action find
entity Q3844152
relation P495
type Q15617994
{'OR': [['Q1522322', 'P495', {'concept': 'Q15617994'}], ['Q3844152', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1522322 property:P495 ?m } UNION { resource:Q3844152 property:P495 ?m } } . ?m rdf:type ontology:Q15617994 }
White Mama Paul Bunyan
action filter_type
action union
action find
entity Paul Bunyan
relation country of origin
action find
entity White Mama
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Paul Bunyan', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['White Mama', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Paul_Bunyan property:country_of_origin ?m } UNION { resource:White_Mama property:country_of_origin ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
OR((Q1522322,P495,c(Q15617994)), (Q3844152,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1522322
relation P495
action find
entity Q3844152
relation P495
type Q15617994
[ANSWER] is the countries of origin of Paul Bunyan or White Mama
{'OR': [['Q1522322', 'P495', {'concept': 'Q15617994'}], ['Q3844152', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1522322 property:P495 ?m } UNION { resource:Q3844152 property:P495 ?m } } . ?m rdf:type ontology:Q15617994 }
United States of America
United States of America is the countries of origin of Paul Bunyan or White Mama
United States of America
action filter_type
action union
action find
entity Paul Bunyan
relation country of origin
action find
entity White Mama
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Paul Bunyan', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['White Mama', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Paul_Bunyan property:country_of_origin ?m } UNION { resource:White_Mama property:country_of_origin ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q3036512
P36
Q56061
USER
Is Donje Trnjane known as the capital of that administrative territory ?
(Q30,P36,Q3036512)
action is_in
entity Q3036512
action find
entity Q30
relation P36
['Q30', 'P36', 'Q3036512']
ASK WHERE { resource:Q30 property:P36 resource:Q3036512 }
United States of America Donje Trnjane
action is_in
entity Donje Trnjane
action find
entity United States of America
relation capital
['United States of America', 'capital', 'Donje Trnjane']
ASK WHERE { resource:United_States_of_America property:capital resource:Donje_Trnjane }
[]
administrative territorial entity
SYSTEM
NO
(Q30,P36,Q3036512)
action is_in
entity Q3036512
action find
entity Q30
relation P36
[ANSWER]
['Q30', 'P36', 'Q3036512']
ASK WHERE { resource:Q30 property:P36 resource:Q3036512 }
No
action is_in
entity Donje Trnjane
action find
entity United States of America
relation capital
['United States of America', 'capital', 'Donje Trnjane']
ASK WHERE { resource:United_States_of_America property:capital resource:Donje_Trnjane }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21621711 Q977176
P27
Q15617994
USER
Which administrative territories do George Bruns or Marko Klisura belong to ?
OR((Q977176,P27,c(Q15617994)), (Q21621711,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q977176
relation P27
action find
entity Q21621711
relation P27
type Q15617994
{'OR': [['Q977176', 'P27', {'concept': 'Q15617994'}], ['Q21621711', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?x ) { ( resource:Q21621711 ) ( resource:Q977176 ) } . ?x property:P27 ?a } . ?a rdf:type ontology:Q15617994 }
Marko Klisura George Bruns
action filter_type
action union
action find
entity George Bruns
relation country of citizenship
action find
entity Marko Klisura
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['George Bruns', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Marko Klisura', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?x ) { ( resource:Marko_Klisura ) ( resource:George_Bruns ) } . ?x property:country_of_citizenship ?a } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403 Q30
SYSTEM
Serbia, United States of America
Q403 Q30
OR((Q977176,P27,c(Q15617994)), (Q21621711,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q977176
relation P27
action find
entity Q21621711
relation P27
type Q15617994
George Bruns or Marko Klisura belong to [ANSWERS]
{'OR': [['Q977176', 'P27', {'concept': 'Q15617994'}], ['Q21621711', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?x ) { ( resource:Q21621711 ) ( resource:Q977176 ) } . ?x property:P27 ?a } . ?a rdf:type ontology:Q15617994 }
Serbia United States of America
George Bruns or Marko Klisura belong to Serbia and United States of America
Serbia United States of America
action filter_type
action union
action find
entity George Bruns
relation country of citizenship
action find
entity Marko Klisura
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['George Bruns', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Marko Klisura', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?x ) { ( resource:Marko_Klisura ) ( resource:George_Bruns ) } . ?x property:country_of_citizenship ?a } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q196287
P27
Q502895
USER
Are Mihajlo Pupin a native of those administrative territories ?
(Q196287,P27,Q403) (Q196287,P27,Q30)
action is_in
entity prev_answer
action find
entity Q196287
relation P27
['Q196287', 'P27', 'Q403'] ['Q196287', 'P27', 'Q30']
ASK WHERE { VALUES ( ?a ) { ( resource:Q403 ) ( resource:Q30 ) } . resource:Q196287 property:P27 ?a }
Mihajlo Pupin
action is_in
entity prev_answer
action find
entity Mihajlo Pupin
relation country of citizenship
['Mihajlo Pupin', 'country of citizenship', 'Serbia'] ['Mihajlo Pupin', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?a ) { ( resource:Serbia ) ( resource:United_States_of_America ) } . resource:Mihajlo_Pupin property:country_of_citizenship ?a }
[]
common name
SYSTEM
YES
(Q196287,P27,Q403) (Q196287,P27,Q30)
action is_in
entity prev_answer
action find
entity Q196287
relation P27
[ANSWER]
['Q196287', 'P27', 'Q403'] ['Q196287', 'P27', 'Q30']
ASK WHERE { VALUES ( ?a ) { ( resource:Q403 ) ( resource:Q30 ) } . resource:Q196287 property:P27 ?a }
Yes
action is_in
entity prev_answer
action find
entity Mihajlo Pupin
relation country of citizenship
['Mihajlo Pupin', 'country of citizenship', 'Serbia'] ['Mihajlo Pupin', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?a ) { ( resource:Serbia ) ( resource:United_States_of_America ) } . resource:Mihajlo_Pupin property:country_of_citizenship ?a }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with atleast 26 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 26
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?w ) WHERE { ?g property:P530 ?f . ?g rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?w >= 26 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?w ) WHERE { ?g property:diplomatic_relation ?f . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?w >= 26 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q155 Q38 Q230 Q184
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 26
[ANSWERS] are known to have diplomatic connections with atleast 26 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?w ) WHERE { ?g property:P530 ?f . ?g rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?w >= 26 ) }
Brazil Italy Georgia Belarus
Italy, Brazil and Georgia are known to have diplomatic connections with atleast 26 administrative territories
Italy Brazil Georgia
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?w ) WHERE { ?g property:diplomatic_relation ?f . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?w >= 26 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q33788
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with approximately the same number of administrative territories as New Caledonia ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q33788
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?b ) WHERE { ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?k property:P530 ?t } GROUP BY ?t } . FILTER ( ?b = ?o ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { resource:Q33788 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } }
New Caledonia
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Caledonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?b ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?t } GROUP BY ?t } . FILTER ( ?b = ?o ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { resource:New_Caledonia property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q33788
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with approximately the same number of administrative territories as New Caledonia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?b ) WHERE { ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?k property:P530 ?t } GROUP BY ?t } . FILTER ( ?b = ?o ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { resource:Q33788 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland have diplomatic relationships with approximately the same number of administrative territories as New Caledonia
Georgia Netherlands Poland
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Caledonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?b ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?t } GROUP BY ?t } . FILTER ( ?b = ?o ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { resource:New_Caledonia property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]