Simple Question (Direct)
Simple Question
Q937989
P54
Q1194951
USER
What is Erik Almgren a member of ?
(Q937989,P54,c(Q1194951))
action filter_type
action find
entity Q937989
relation P54
type Q1194951
['Q937989', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?o WHERE { resource:Q937989 property:P54 ?o . ?o rdf:type ontology:Q1194951 }
Erik Almgren
action filter_type
action find
entity Erik Almgren
relation member of sports team
type national sports team
['Erik Almgren', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?o WHERE { resource:Erik_Almgren property:member_of_sports_team ?o . ?o rdf:type ontology:national_sports_team }
[]
national sports team
Q160826
SYSTEM
Sweden national football team
Q160826
(Q937989,P54,c(Q1194951))
action filter_type
action find
entity Q937989
relation P54
type Q1194951
Erik Almgren a member of is of [ANSWER]
['Q937989', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?o WHERE { resource:Q937989 property:P54 ?o . ?o rdf:type ontology:Q1194951 }
Sweden national football team
Erik Almgren a member of is of Sweden national football team
Sweden national football team
action filter_type
action find
entity Erik Almgren
relation member of sports team
type national sports team
['Erik Almgren', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?o WHERE { resource:Erik_Almgren property:member_of_sports_team ?o . ?o rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q937989
P21
Q290
USER
What is the sex of Erik Almgren ?
(Q937989,P21,c(Q290))
action filter_type
action find
entity Q937989
relation P21
type Q290
['Q937989', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q937989 property:P21 ?o . ?o rdf:type ontology:Q290 }
Erik Almgren
action filter_type
action find
entity Erik Almgren
relation gender
type sex
['Erik Almgren', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Erik_Almgren property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937989,P21,c(Q290))
action filter_type
action find
entity Q937989
relation P21
type Q290
The sex of Erik Almgren is the [ANSWER]
['Q937989', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q937989 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
The sex of Erik Almgren is the male
male
action filter_type
action find
entity Erik Almgren
relation gender
type sex
['Erik Almgren', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Erik_Almgren property:gender ?o . ?o rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3027042 Q937989
P21
Q290
USER
Or Didier Herrmann?
OR((Q937989,P21,c(Q290)), (Q3027042,P21,c(Q290)))
action filter_type
action union
action find
entity Q937989
relation P21
action find
entity Q3027042
relation P21
type Q290
{'OR': [['Q937989', 'P21', {'concept': 'Q290'}], ['Q3027042', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q937989 property:P21 ?w } UNION { resource:Q3027042 property:P21 ?w } } . ?w rdf:type ontology:Q290 }
Didier Herrmann Erik Almgren
action filter_type
action union
action find
entity Erik Almgren
relation gender
action find
entity Didier Herrmann
relation gender
type sex
{'OR': [['Erik Almgren', 'gender', {'concept': 'sex'}], ['Didier Herrmann', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Erik_Almgren property:gender ?w } UNION { resource:Didier_Herrmann property:gender ?w } } . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q937989,P21,c(Q290)), (Q3027042,P21,c(Q290)))
action filter_type
action union
action find
entity Q937989
relation P21
action find
entity Q3027042
relation P21
type Q290
[ANSWER]
{'OR': [['Q937989', 'P21', {'concept': 'Q290'}], ['Q3027042', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q937989 property:P21 ?w } UNION { resource:Q3027042 property:P21 ?w } } . ?w rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity Erik Almgren
relation gender
action find
entity Didier Herrmann
relation gender
type sex
{'OR': [['Erik Almgren', 'gender', {'concept': 'sex'}], ['Didier Herrmann', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Erik_Almgren property:gender ?w } UNION { resource:Didier_Herrmann property:gender ?w } } . ?w rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q160826
P1923
Q13406554 Q15275719
USER
How many sport competitions and recurring events did Sweden national football team compete in ?
(c(Q13406554),P1923,Q160826) (c(Q15275719),P1923,Q160826)
action count
action union
action filter_type
action find_reverse
entity Q160826
relation P1923
type Q13406554
action filter_type
action find_reverse
entity Q160826
relation P1923
type Q15275719
[{'concept': 'Q13406554'}, 'P1923', 'Q160826'] [{'concept': 'Q15275719'}, 'P1923', 'Q160826']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:P1923 resource:Q160826 . ?k rdf:type ontology:Q15275719 } UNION { ?k property:P1923 resource:Q160826 . ?k rdf:type ontology:Q13406554 } }
Sweden national football team
action count
action union
action filter_type
action find_reverse
entity Sweden national football team
relation participating teams
type sport competition
action filter_type
action find_reverse
entity Sweden national football team
relation participating teams
type recurring event
[{'concept': 'sport competition'}, 'participating teams', 'Sweden national football team'] [{'concept': 'recurring event'}, 'participating teams', 'Sweden national football team']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:participating_teams resource:Sweden_national_football_team . ?k rdf:type ontology:recurring_event } UNION { ?k property:participating_teams resource:Sweden_national_football_team . ?k rdf:type ontology:sport_competition } }
[]
sport competition recurring event
SYSTEM
3 sport competitions and 11 recurring events
Q47735 Q101751 Q37285 Q132515 Q166121 Q1477177 Q132529 Q24201967 Q24201975 Q46943 Q131591 Q132533 Q132664 Q24201987
(c(Q13406554),P1923,Q160826) (c(Q15275719),P1923,Q160826)
action count
action union
action filter_type
action find_reverse
entity Q160826
relation P1923
type Q13406554
action filter_type
action find_reverse
entity Q160826
relation P1923
type Q15275719
[ANSWER]
[{'concept': 'Q13406554'}, 'P1923', 'Q160826'] [{'concept': 'Q15275719'}, 'P1923', 'Q160826']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:P1923 resource:Q160826 . ?k rdf:type ontology:Q15275719 } UNION { ?k property:P1923 resource:Q160826 . ?k rdf:type ontology:Q13406554 } }
2002 FIFA World Cup 1994 FIFA World Cup 2006 FIFA World Cup 1950 FIFA World Cup 1974 FIFA World Cup 1934 FIFA World Cup 1990 FIFA World Cup Republic of Ireland v Sweden Italy v Sweden 1978 FIFA World Cup 1938 FIFA World Cup 1958 FIFA World Cup 1970 FIFA World Cup Sweden v Belgium
3 sport competitions and 11 recurring events
action count
action union
action filter_type
action find_reverse
entity Sweden national football team
relation participating teams
type sport competition
action filter_type
action find_reverse
entity Sweden national football team
relation participating teams
type recurring event
[{'concept': 'sport competition'}, 'participating teams', 'Sweden national football team'] [{'concept': 'recurring event'}, 'participating teams', 'Sweden national football team']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:participating_teams resource:Sweden_national_football_team . ?k rdf:type ontology:recurring_event } UNION { ?k property:participating_teams resource:Sweden_national_football_team . ?k rdf:type ontology:sport_competition } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q160826
P1532
Q15617994
USER
Which administrative territory did that national sports team play for ?
action filter_type
action find
entity Q160826
relation P1532
type Q15617994
SELECT DISTINCT ?c WHERE { resource:Q160826 property:P1532 ?c . ?c rdf:type ontology:Q15617994 }
Sweden national football team
action filter_type
action find
entity Sweden national football team
relation country for sport
type designation for an administrative territorial entity
SELECT DISTINCT ?c WHERE { resource:Sweden_national_football_team property:country_for_sport ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
action filter_type
action find
entity Q160826
relation P1532
type Q15617994
That national sports team played in [ANSWER]
SELECT DISTINCT ?c WHERE { resource:Q160826 property:P1532 ?c . ?c rdf:type ontology:Q15617994 }
Sweden
That national sports team played in Sweden
Sweden
action filter_type
action find
entity Sweden national football team
relation country for sport
type designation for an administrative territorial entity
SELECT DISTINCT ?c WHERE { resource:Sweden_national_football_team property:country_for_sport ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q34 Q4323099 Q1637506
P530
Q1048835
USER
Is that administrative territory known to have diplomatic connections with Novooleksiivka and Abelardo Luz ?
(Q34,P530,Q4323099) (Q34,P530,Q1637506)
action is_in
entity Q34
action intersection
action find_reverse
entity Q4323099
relation P530
action find_reverse
entity Q1637506
relation P530
['Q34', 'P530', 'Q4323099'] ['Q34', 'P530', 'Q1637506']
ASK WHERE { resource:Q34 property:P530 resource:Q1637506 . resource:Q34 property:P530 resource:Q4323099 }
Sweden Novooleksiivka Abelardo Luz
action is_in
entity Sweden
action intersection
action find_reverse
entity Novooleksiivka
relation diplomatic relation
action find_reverse
entity Abelardo Luz
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Novooleksiivka'] ['Sweden', 'diplomatic relation', 'Abelardo Luz']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Abelardo_Luz . resource:Sweden property:diplomatic_relation resource:Novooleksiivka }
[]
political territorial entity
SYSTEM
NO
(Q34,P530,Q4323099) (Q34,P530,Q1637506)
action is_in
entity Q34
action intersection
action find_reverse
entity Q4323099
relation P530
action find_reverse
entity Q1637506
relation P530
[ANSWER]
['Q34', 'P530', 'Q4323099'] ['Q34', 'P530', 'Q1637506']
ASK WHERE { resource:Q34 property:P530 resource:Q1637506 . resource:Q34 property:P530 resource:Q4323099 }
No
action is_in
entity Sweden
action intersection
action find_reverse
entity Novooleksiivka
relation diplomatic relation
action find_reverse
entity Abelardo Luz
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Novooleksiivka'] ['Sweden', 'diplomatic relation', 'Abelardo Luz']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Abelardo_Luz . resource:Sweden property:diplomatic_relation resource:Novooleksiivka }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P1376
Q56061
USER
Which administrative territory is the county seat for Sweden ?
(c(Q56061),P1376,Q34)
action filter_type
action find_reverse
entity Q34
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q34']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . ?z property:P1376 resource:Q34 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Sweden']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . ?z property:capital_of resource:Sweden }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(c(Q56061),P1376,Q34)
action filter_type
action find_reverse
entity Q34
relation P1376
type Q56061
[ANSWER] is the county seat for Sweden
[{'concept': 'Q56061'}, 'P1376', 'Q34']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . ?z property:P1376 resource:Q34 }
Stockholm
Stockholm is the county seat for Sweden
Stockholm
action filter_type
action find_reverse
entity Sweden
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Sweden']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . ?z property:capital_of resource:Sweden }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P47
Q1048835
USER
Which political territory is bordered by Sweden ?
(Q34,P47,c(Q1048835))
action filter_type
action find
entity Q34
relation P47
type Q1048835
['Q34', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q34 property:P47 ?r . ?r rdf:type ontology:Q1048835 }
Sweden
action filter_type
action find
entity Sweden
relation shares border with
type political territorial entity
['Sweden', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Sweden property:shares_border_with ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
(Q34,P47,c(Q1048835))
action filter_type
action find
entity Q34
relation P47
type Q1048835
[ANSWER] is bordered by Sweden
['Q34', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q34 property:P47 ?r . ?r rdf:type ontology:Q1048835 }
Denmark
Denmark is bordered by Sweden
Denmark
action filter_type
action find
entity Sweden
relation shares border with
type political territorial entity
['Sweden', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Sweden property:shares_border_with ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q34
Q15617994
USER
And which administrative territory?
(Q34,P47,c(Q15617994))
action filter_type
action find
entity Q34
relation P47
type Q15617994
['Q34', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q34 property:P47 ?n . ?n rdf:type ontology:Q15617994 }
Sweden
action filter_type
action find
entity Sweden
relation shares border with
type designation for an administrative territorial entity
['Sweden', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Sweden property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q20
SYSTEM
Finland, Norway
Q33 Q20
(Q34,P47,c(Q15617994))
action filter_type
action find
entity Q34
relation P47
type Q15617994
[ANSWERS]
['Q34', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q34 property:P47 ?n . ?n rdf:type ontology:Q15617994 }
Finland Norway
Finland Norway
action filter_type
action find
entity Sweden
relation shares border with
type designation for an administrative territorial entity
['Sweden', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Sweden property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with around 11 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 11
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?y = 11 ) . { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?y ) WHERE { ?q property:P530 ?g . ?q rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?q } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 11
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?y = 11 ) . { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?y ) WHERE { ?q property:diplomatic_relation ?g . ?q rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 11
[ANSWERS] have ambassadorial relations with around 11 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?y = 11 ) . { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?y ) WHERE { ?q property:P530 ?g . ?q rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?q } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have ambassadorial relations with around 11 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 11
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?y = 11 ) . { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?y ) WHERE { ?q property:diplomatic_relation ?g . ?q rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q35
P530
Q15617994 Q1048835 Q1048835
USER
How many political territories have ambassadorial relations with around the same number of administrative territories and political territories as Denmark ?
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_multi_types
action find
entity Q35
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) ?r WHERE { VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?g rdf:type ?i } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Q35 property:P530 ?w . { { ?w rdf:type ontology:Q1048835 } UNION { ?w rdf:type ontology:Q15617994 } } } } . FILTER ( ?t = ?h ) }
Denmark
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Denmark
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) ?r WHERE { VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?g rdf:type ?i } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Denmark property:diplomatic_relation ?w . { { ?w rdf:type ontology:political_territorial_entity } UNION { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?t = ?h ) }
[]
designation for an administrative territorial entity political territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_multi_types
action find
entity Q35
relation P530
type Q15617994
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) ?r WHERE { VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?g rdf:type ?i } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Q35 property:P530 ?w . { { ?w rdf:type ontology:Q1048835 } UNION { ?w rdf:type ontology:Q15617994 } } } } . FILTER ( ?t = ?h ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Denmark
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) ?r WHERE { VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?g rdf:type ?i } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Denmark property:diplomatic_relation ?w . { { ?w rdf:type ontology:political_territorial_entity } UNION { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?t = ?h ) }
[]