Simple Question (Direct)
Simple Question
Q3753406
P27
Q15617994
USER
Which administrative territory is Vicenç Riera i Llorca an inhabitant of ?
(Q3753406,P27,c(Q15617994))
action filter_type
action find
entity Q3753406
relation P27
type Q15617994
['Q3753406', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q3753406 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Vicenç Riera i Llorca
action filter_type
action find
entity Vicenç Riera i Llorca
relation country of citizenship
type designation for an administrative territorial entity
['Vicenç Riera i Llorca', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Vicenç_Riera_i_Llorca property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q3753406,P27,c(Q15617994))
action filter_type
action find
entity Q3753406
relation P27
type Q15617994
[ANSWER] is Vicenç Riera i Llorca an inhabitant of
['Q3753406', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q3753406 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Spain
Spain is Vicenç Riera i Llorca an inhabitant of
Spain
action filter_type
action find
entity Vicenç Riera i Llorca
relation country of citizenship
type designation for an administrative territorial entity
['Vicenç Riera i Llorca', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Vicenç_Riera_i_Llorca property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3753406
P20
Q486972
USER
Which human settlement is the place of death of Vicenç Riera i Llorca ?
(Q3753406,P20,c(Q486972))
action filter_type
action find
entity Q3753406
relation P20
type Q486972
['Q3753406', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { resource:Q3753406 property:P20 ?y . ?y rdf:type ontology:Q486972 }
Vicenç Riera i Llorca
action filter_type
action find
entity Vicenç Riera i Llorca
relation place of death
type human settlement
['Vicenç Riera i Llorca', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { resource:Vicenç_Riera_i_Llorca property:place_of_death ?y . ?y rdf:type ontology:human_settlement }
[]
human settlement
Q12552
SYSTEM
Pineda de Mar
Q12552
(Q3753406,P20,c(Q486972))
action filter_type
action find
entity Q3753406
relation P20
type Q486972
[ANSWER] is the place of death of Vicenç Riera i Llorca
['Q3753406', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { resource:Q3753406 property:P20 ?y . ?y rdf:type ontology:Q486972 }
Pineda de Mar
Pineda de Mar is the place of death of Vicenç Riera i Llorca
Pineda de Mar
action filter_type
action find
entity Vicenç Riera i Llorca
relation place of death
type human settlement
['Vicenç Riera i Llorca', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { resource:Vicenç_Riera_i_Llorca property:place_of_death ?y . ?y rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q12552 Q649020 Q251423
P17
Q15617994
USER
Is Pineda de Mar located in Wolfsburg-Unkeroda and Sielenbach ?
(Q12552,P17,Q649020) (Q12552,P17,Q251423)
action is_in
entity Q12552
action intersection
action find_reverse
entity Q649020
relation P17
action find_reverse
entity Q251423
relation P17
['Q12552', 'P17', 'Q649020'] ['Q12552', 'P17', 'Q251423']
ASK WHERE { resource:Q12552 property:P17 resource:Q649020 . resource:Q12552 property:P17 resource:Q251423 }
Pineda de Mar Wolfsburg-Unkeroda Sielenbach
action is_in
entity Pineda de Mar
action intersection
action find_reverse
entity Wolfsburg-Unkeroda
relation country
action find_reverse
entity Sielenbach
relation country
['Pineda de Mar', 'country', 'Wolfsburg-Unkeroda'] ['Pineda de Mar', 'country', 'Sielenbach']
ASK WHERE { resource:Pineda_de_Mar property:country resource:Wolfsburg-Unkeroda . resource:Pineda_de_Mar property:country resource:Sielenbach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q12552,P17,Q649020) (Q12552,P17,Q251423)
action is_in
entity Q12552
action intersection
action find_reverse
entity Q649020
relation P17
action find_reverse
entity Q251423
relation P17
[ANSWER]
['Q12552', 'P17', 'Q649020'] ['Q12552', 'P17', 'Q251423']
ASK WHERE { resource:Q12552 property:P17 resource:Q649020 . resource:Q12552 property:P17 resource:Q251423 }
No
action is_in
entity Pineda de Mar
action intersection
action find_reverse
entity Wolfsburg-Unkeroda
relation country
action find_reverse
entity Sielenbach
relation country
['Pineda de Mar', 'country', 'Wolfsburg-Unkeroda'] ['Pineda de Mar', 'country', 'Sielenbach']
ASK WHERE { resource:Pineda_de_Mar property:country resource:Wolfsburg-Unkeroda . resource:Pineda_de_Mar property:country resource:Sielenbach }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q914262 Q14524493 Q486972
USER
How many human settlements are a portion of exactly 1 administrative territory of Swedens and terrains ?
(c(Q486972),P361,c(Q914262)|c(Q14524493))
action count
action equal
action union
action find_tuple_counts
relation P361
type Q486972
type Q914262
action find_tuple_counts
relation P361
type Q486972
type Q14524493
value 1
[{'concept': 'Q486972'}, 'P361', [{'concept': 'Q914262'}, {'concept': 'Q14524493'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?a ) WHERE { { ?x property:P361 ?v . ?x rdf:type ontology:Q486972 . ?v rdf:type ontology:Q914262 } UNION { ?x property:P361 ?v . ?v rdf:type ontology:Q14524493 . ?x rdf:type ontology:Q486972 } } GROUP BY ?x } . FILTER ( ?a = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation part of
type human settlement
type administrative territorial entity of Sweden
action find_tuple_counts
relation part of
type human settlement
type terrain
value 1
[{'concept': 'human settlement'}, 'part of', [{'concept': 'administrative territorial entity of Sweden'}, {'concept': 'terrain'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?a ) WHERE { { ?x property:part_of ?v . ?x rdf:type ontology:human_settlement . ?v rdf:type ontology:administrative_territorial_entity_of_Sweden } UNION { ?x property:part_of ?v . ?v rdf:type ontology:terrain . ?x rdf:type ontology:human_settlement } } GROUP BY ?x } . FILTER ( ?a = 1 ) }
[]
administrative territorial entity of Sweden terrain human settlement
SYSTEM
2
Q4356881 Q2370380
(c(Q486972),P361,c(Q914262)|c(Q14524493))
action count
action equal
action union
action find_tuple_counts
relation P361
type Q486972
type Q914262
action find_tuple_counts
relation P361
type Q486972
type Q14524493
value 1
[ANSWER]
[{'concept': 'Q486972'}, 'P361', [{'concept': 'Q914262'}, {'concept': 'Q14524493'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?a ) WHERE { { ?x property:P361 ?v . ?x rdf:type ontology:Q486972 . ?v rdf:type ontology:Q914262 } UNION { ?x property:P361 ?v . ?v rdf:type ontology:Q14524493 . ?x rdf:type ontology:Q486972 } } GROUP BY ?x } . FILTER ( ?a = 1 ) }
Solberga Igeldo
2
action count
action equal
action union
action find_tuple_counts
relation part of
type human settlement
type administrative territorial entity of Sweden
action find_tuple_counts
relation part of
type human settlement
type terrain
value 1
[{'concept': 'human settlement'}, 'part of', [{'concept': 'administrative territorial entity of Sweden'}, {'concept': 'terrain'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?a ) WHERE { { ?x property:part_of ?v . ?x rdf:type ontology:human_settlement . ?v rdf:type ontology:administrative_territorial_entity_of_Sweden } UNION { ?x property:part_of ?v . ?v rdf:type ontology:terrain . ?x rdf:type ontology:human_settlement } } GROUP BY ?x } . FILTER ( ?a = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q29 Q613340
P36
Q56061
USER
How many administrative territories are the capitals of Spain or Mayo-Sava ?
(Q29,P36,c(Q56061)) (Q613340,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q29
relation P36
type Q56061
action filter_type
action find
entity Q613340
relation P36
type Q56061
['Q29', 'P36', {'concept': 'Q56061'}] ['Q613340', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?o property:P36 ?b . VALUES ( ?o ) { ( resource:Q29 ) ( resource:Q613340 ) } }
Spain Mayo-Sava
action count
action union
action filter_type
action find
entity Spain
relation capital
type administrative territorial entity
action filter_type
action find
entity Mayo-Sava
relation capital
type administrative territorial entity
['Spain', 'capital', {'concept': 'administrative territorial entity'}] ['Mayo-Sava', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?o property:capital ?b . VALUES ( ?o ) { ( resource:Spain ) ( resource:Mayo-Sava ) } }
[]
administrative territorial entity
SYSTEM
2
Q2807 Q2708675
(Q29,P36,c(Q56061)) (Q613340,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q29
relation P36
type Q56061
action filter_type
action find
entity Q613340
relation P36
type Q56061
[ANSWER]
['Q29', 'P36', {'concept': 'Q56061'}] ['Q613340', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?o property:P36 ?b . VALUES ( ?o ) { ( resource:Q29 ) ( resource:Q613340 ) } }
Madrid Mora
2
action count
action union
action filter_type
action find
entity Spain
relation capital
type administrative territorial entity
action filter_type
action find
entity Mayo-Sava
relation capital
type administrative territorial entity
['Spain', 'capital', {'concept': 'administrative territorial entity'}] ['Mayo-Sava', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?o property:capital ?b . VALUES ( ?o ) { ( resource:Spain ) ( resource:Mayo-Sava ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q36180 Q12552
P106 P20
Q502895
USER
Which people died in Pineda de Mar and have the profession of writer ?
AND((c(Q502895),P20,Q12552), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q12552
relation P20
action find_reverse
entity Q36180
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q12552'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?a WHERE { ?a property:P20 resource:Q12552 . ?a property:P106 resource:Q36180 . ?a rdf:type ontology:Q502895 }
writer Pineda de Mar
action filter_type
action intersection
action find_reverse
entity Pineda de Mar
relation place of death
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Pineda de Mar'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?a WHERE { ?a property:place_of_death resource:Pineda_de_Mar . ?a property:occupation resource:writer . ?a rdf:type ontology:common_name }
[]
common name
Q3753406
SYSTEM
Vicenç Riera i Llorca
Q3753406
AND((c(Q502895),P20,Q12552), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q12552
relation P20
action find_reverse
entity Q36180
relation P106
type Q502895
[ANSWER] died in Pineda de Mar and have the profession of writer
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q12552'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?a WHERE { ?a property:P20 resource:Q12552 . ?a property:P106 resource:Q36180 . ?a rdf:type ontology:Q502895 }
Vicenç Riera i Llorca
Vicenç Riera i Llorca died in Pineda de Mar and have the profession of writer
Vicenç Riera i Llorca
action filter_type
action intersection
action find_reverse
entity Pineda de Mar
relation place of death
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Pineda de Mar'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?a WHERE { ?a property:place_of_death resource:Pineda_de_Mar . ?a property:occupation resource:writer . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q3753406 Q1492
P19
Q56061
USER
Was Barcelona that person born ?
(Q3753406,P19,Q1492)
action is_in
entity Q1492
action find
entity Q3753406
relation P19
['Q3753406', 'P19', 'Q1492']
ASK WHERE { resource:Q3753406 property:P19 resource:Q1492 }
Vicenç Riera i Llorca Barcelona
action is_in
entity Barcelona
action find
entity Vicenç Riera i Llorca
relation place of birth
['Vicenç Riera i Llorca', 'place of birth', 'Barcelona']
ASK WHERE { resource:Vicenç_Riera_i_Llorca property:place_of_birth resource:Barcelona }
[]
administrative territorial entity
SYSTEM
YES
(Q3753406,P19,Q1492)
action is_in
entity Q1492
action find
entity Q3753406
relation P19
[ANSWER]
['Q3753406', 'P19', 'Q1492']
ASK WHERE { resource:Q3753406 property:P19 resource:Q1492 }
Yes
action is_in
entity Barcelona
action find
entity Vicenç Riera i Llorca
relation place of birth
['Vicenç Riera i Llorca', 'place of birth', 'Barcelona']
ASK WHERE { resource:Vicenç_Riera_i_Llorca property:place_of_birth resource:Barcelona }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q29 Q6370686
P47
Q56061
USER
Does Karimabad, Borujerd share border with Spain ?
(Q29,P47,Q6370686)
action is_in
entity Q6370686
action find
entity Q29
relation P47
['Q29', 'P47', 'Q6370686']
ASK WHERE { resource:Q29 property:P47 resource:Q6370686 }
Spain Karimabad, Borujerd
action is_in
entity Karimabad, Borujerd
action find
entity Spain
relation shares border with
['Spain', 'shares border with', 'Karimabad, Borujerd']
ASK WHERE { resource:Spain property:shares_border_with resource:Karimabad,_Borujerd }
[]
administrative territorial entity
SYSTEM
NO
(Q29,P47,Q6370686)
action is_in
entity Q6370686
action find
entity Q29
relation P47
[ANSWER]
['Q29', 'P47', 'Q6370686']
ASK WHERE { resource:Q29 property:P47 resource:Q6370686 }
No
action is_in
entity Karimabad, Borujerd
action find
entity Spain
relation shares border with
['Spain', 'shares border with', 'Karimabad, Borujerd']
ASK WHERE { resource:Spain property:shares_border_with resource:Karimabad,_Borujerd }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q29 Q12552
P47 P17
Q1048835
USER
Which political territories have an adjacent border with Pineda de Mar and are present in Spain ?
AND((c(Q1048835),P47,Q12552), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q12552
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q12552'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?a WHERE { ?a property:P47 resource:Q12552 . ?a property:P17 resource:Q29 . ?a rdf:type ontology:Q1048835 }
Spain Pineda de Mar
action filter_type
action intersection
action find_reverse
entity Pineda de Mar
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Pineda de Mar'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?a WHERE { ?a property:shares_border_with resource:Pineda_de_Mar . ?a property:country resource:Spain . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q12587 Q12540 Q12520 Q12596
SYSTEM
Santa Susanna, Calella, Sant Cebrià de Vallalta, Tordera
Q12587 Q12540 Q12520 Q12596
AND((c(Q1048835),P47,Q12552), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q12552
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
[ANSWERS] have an adjacent border with Pineda de Mar and are present in Spain
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q12552'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?a WHERE { ?a property:P47 resource:Q12552 . ?a property:P17 resource:Q29 . ?a rdf:type ontology:Q1048835 }
Santa Susanna Calella Sant Cebrià de Vallalta Tordera
Santa Susanna, Calella, Sant Cebrià de Vallalta and Tordera have an adjacent border with Pineda de Mar and are present in Spain
Santa Susanna Calella Sant Cebrià de Vallalta Tordera
action filter_type
action intersection
action find_reverse
entity Pineda de Mar
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Pineda de Mar'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?a WHERE { ?a property:shares_border_with resource:Pineda_de_Mar . ?a property:country resource:Spain . ?a rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q691
P530
Q1048835 Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with approximately the same number of political territories or administrative territories as Papua New Guinea ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q691
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:P530 resource:Q691 . { VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?x rdf:type ?h } } } . FILTER ( ?w = ?f ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?m WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?m } }
Papua New Guinea
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:diplomatic_relation resource:Papua_New_Guinea . { VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?x rdf:type ?h } } } . FILTER ( ?w = ?f ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?m WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?m } }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q691
relation P530
type Q1048835
type Q15617994
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:P530 resource:Q691 . { VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?x rdf:type ?h } } } . FILTER ( ?w = ?f ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?m WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?m } }
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_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:diplomatic_relation resource:Papua_New_Guinea . { VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?x rdf:type ?h } } } . FILTER ( ?w = ?f ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?m WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?m } }
[]