Simple Question (Direct)
Simple Question
Q5892638
P102
Q7210356
USER
Which political organization is Hasier Arraiz a member of ?
(Q5892638,P102,c(Q7210356))
action filter_type
action find
entity Q5892638
relation P102
type Q7210356
['Q5892638', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q5892638 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Hasier Arraiz
action filter_type
action find
entity Hasier Arraiz
relation member of political party
type political organization
['Hasier Arraiz', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Hasier_Arraiz property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
political organization
Q2740895
SYSTEM
Sortu
Q2740895
(Q5892638,P102,c(Q7210356))
action filter_type
action find
entity Q5892638
relation P102
type Q7210356
[ANSWER] is Hasier Arraiz a member of
['Q5892638', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q5892638 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Sortu
Sortu is Hasier Arraiz a member of
Sortu
action filter_type
action find
entity Hasier Arraiz
relation member of political party
type political organization
['Hasier Arraiz', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Hasier_Arraiz property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5892638
P488
Q7210356
USER
What is Hasier Arraiz a chairperson of ?
(c(Q7210356),P488,Q5892638)
action filter_type
action find_reverse
entity Q5892638
relation P488
type Q7210356
[{'concept': 'Q7210356'}, 'P488', 'Q5892638']
SELECT DISTINCT ?o WHERE { ?o property:P488 resource:Q5892638 . ?o rdf:type ontology:Q7210356 }
Hasier Arraiz
action filter_type
action find_reverse
entity Hasier Arraiz
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Hasier Arraiz']
SELECT DISTINCT ?o WHERE { ?o property:chairperson resource:Hasier_Arraiz . ?o rdf:type ontology:political_organization }
[]
political organization
Q2740895
SYSTEM
Sortu
Q2740895
(c(Q7210356),P488,Q5892638)
action filter_type
action find_reverse
entity Q5892638
relation P488
type Q7210356
Hasier Arraiz a chairperson of is [ANSWER]
[{'concept': 'Q7210356'}, 'P488', 'Q5892638']
SELECT DISTINCT ?o WHERE { ?o property:P488 resource:Q5892638 . ?o rdf:type ontology:Q7210356 }
Sortu
Hasier Arraiz a chairperson of is Sortu
Sortu
action filter_type
action find_reverse
entity Hasier Arraiz
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Hasier Arraiz']
SELECT DISTINCT ?o WHERE { ?o property:chairperson resource:Hasier_Arraiz . ?o rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2740895
P159
Q56061
USER
Where is the headquarter of that political organization located ?
(Q2740895,P159,c(Q56061))
action filter_type
action find
entity Q2740895
relation P159
type Q56061
['Q2740895', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2740895 property:P159 ?g . ?g rdf:type ontology:Q56061 }
Sortu
action filter_type
action find
entity Sortu
relation headquarters location
type administrative territorial entity
['Sortu', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Sortu property:headquarters_location ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8692
SYSTEM
Bilbao
Q8692
(Q2740895,P159,c(Q56061))
action filter_type
action find
entity Q2740895
relation P159
type Q56061
Is the headquarter of that political organization located in [ANSWER]
['Q2740895', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2740895 property:P159 ?g . ?g rdf:type ontology:Q56061 }
Bilbao
Is the headquarter of that political organization located in Bilbao
Bilbao
action filter_type
action find
entity Sortu
relation headquarters location
type administrative territorial entity
['Sortu', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Sortu property:headquarters_location ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q8692 Q16012700 Q853647
P6
Q502895
USER
Is William L. Spicer and Iñaki Azkuna the head of the goverment of Q8692 ?
(Q8692,P6,Q16012700) (Q8692,P6,Q853647)
action is_in
entity Q8692
action intersection
action find_reverse
entity Q16012700
relation P6
action find_reverse
entity Q853647
relation P6
['Q8692', 'P6', 'Q16012700'] ['Q8692', 'P6', 'Q853647']
ASK WHERE { resource:Q8692 property:P6 resource:Q853647 . resource:Q8692 property:P6 resource:Q16012700 }
Bilbao William L. Spicer Iñaki Azkuna
action is_in
entity Bilbao
action intersection
action find_reverse
entity William L. Spicer
relation head of government
action find_reverse
entity Iñaki Azkuna
relation head of government
['Bilbao', 'head of government', 'William L. Spicer'] ['Bilbao', 'head of government', 'Iñaki Azkuna']
ASK WHERE { resource:Bilbao property:head_of_government resource:Iñaki_Azkuna . resource:Bilbao property:head_of_government resource:William_L._Spicer }
[]
common name
SYSTEM
NO and YES respectively
(Q8692,P6,Q16012700) (Q8692,P6,Q853647)
action is_in
entity Q8692
action intersection
action find_reverse
entity Q16012700
relation P6
action find_reverse
entity Q853647
relation P6
[ANSWER]
['Q8692', 'P6', 'Q16012700'] ['Q8692', 'P6', 'Q853647']
ASK WHERE { resource:Q8692 property:P6 resource:Q853647 . resource:Q8692 property:P6 resource:Q16012700 }
NO and YES respectively
action is_in
entity Bilbao
action intersection
action find_reverse
entity William L. Spicer
relation head of government
action find_reverse
entity Iñaki Azkuna
relation head of government
['Bilbao', 'head of government', 'William L. Spicer'] ['Bilbao', 'head of government', 'Iñaki Azkuna']
ASK WHERE { resource:Bilbao property:head_of_government resource:Iñaki_Azkuna . resource:Bilbao property:head_of_government resource:William_L._Spicer }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8692
P551
Q502895
USER
Which people dwell at that administrative territory ?
action filter_type
action find_reverse
entity Q8692
relation P551
type Q502895
SELECT DISTINCT ?k WHERE { ?k property:P551 resource:Q8692 . ?k rdf:type ontology:Q502895 }
Bilbao
action filter_type
action find_reverse
entity Bilbao
relation residence
type common name
SELECT DISTINCT ?k WHERE { ?k property:residence resource:Bilbao . ?k rdf:type ontology:common_name }
[]
common name
Q24287347 Q1043209 Q3751202
SYSTEM
Francisco de Zabálburu, Carlos Ruiz Herrero, Fito Cabrales
Q1043209 Q24287347 Q3751202 Q20673698
action filter_type
action find_reverse
entity Q8692
relation P551
type Q502895
[ANSWERS] dwell at that administrative territory
SELECT DISTINCT ?k WHERE { ?k property:P551 resource:Q8692 . ?k rdf:type ontology:Q502895 }
Carlos Ruiz Herrero Francisco de Zabálburu Fito Cabrales Santiago González Díez
Francisco de Zabálburu, Carlos Ruiz Herrero and Fito Cabrales dwell at that administrative territory
Francisco de Zabálburu Carlos Ruiz Herrero Fito Cabrales
action filter_type
action find_reverse
entity Bilbao
relation residence
type common name
SELECT DISTINCT ?k WHERE { ?k property:residence resource:Bilbao . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1043209
P1346
Q618779
USER
Which award was won by Carlos Ruiz Herrero ?
(c(Q618779),P1346,Q1043209)
action filter_type
action find_reverse
entity Q1043209
relation P1346
type Q618779
[{'concept': 'Q618779'}, 'P1346', 'Q1043209']
SELECT DISTINCT ?f WHERE { ?f property:P1346 resource:Q1043209 . ?f rdf:type ontology:Q618779 }
Carlos Ruiz Herrero
action filter_type
action find_reverse
entity Carlos Ruiz Herrero
relation winner
type award
[{'concept': 'award'}, 'winner', 'Carlos Ruiz Herrero']
SELECT DISTINCT ?f WHERE { ?f property:winner resource:Carlos_Ruiz_Herrero . ?f rdf:type ontology:award }
[]
award
Q729513
SYSTEM
Pichichi Trophy
Q729513
(c(Q618779),P1346,Q1043209)
action filter_type
action find_reverse
entity Q1043209
relation P1346
type Q618779
[ANSWER] was won by Carlos Ruiz Herrero
[{'concept': 'Q618779'}, 'P1346', 'Q1043209']
SELECT DISTINCT ?f WHERE { ?f property:P1346 resource:Q1043209 . ?f rdf:type ontology:Q618779 }
Pichichi Trophy
Pichichi Trophy was won by Carlos Ruiz Herrero
Pichichi Trophy
action filter_type
action find_reverse
entity Carlos Ruiz Herrero
relation winner
type award
[{'concept': 'award'}, 'winner', 'Carlos Ruiz Herrero']
SELECT DISTINCT ?f WHERE { ?f property:winner resource:Carlos_Ruiz_Herrero . ?f rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1043209
P734
Q82799
USER
Who has the surname that person ?
(Q729513,P734,c(Q82799))
action filter_type
action find
entity Q1043209
relation P734
type Q82799
['Q729513', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q1043209 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Carlos Ruiz Herrero
action filter_type
action find
entity Carlos Ruiz Herrero
relation family name
type name
['Pichichi Trophy', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Carlos_Ruiz_Herrero property:family_name ?r . ?r rdf:type ontology:name }
[]
name
Q11196273
SYSTEM
Ruiz
Q11196273
(Q729513,P734,c(Q82799))
action filter_type
action find
entity Q1043209
relation P734
type Q82799
[ANSWER] has the surname that person
['Q729513', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q1043209 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Ruiz
Ruiz has the surname that person
Ruiz
action filter_type
action find
entity Carlos Ruiz Herrero
relation family name
type name
['Pichichi Trophy', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Carlos_Ruiz_Herrero property:family_name ?r . ?r rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6653759 Q5892638
P27
Q15617994
USER
Which administrative territories are the native countriesof Hasier Arraiz or Liu Weijuan ?
OR((Q5892638,P27,c(Q15617994)), (Q6653759,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5892638
relation P27
action find
entity Q6653759
relation P27
type Q15617994
{'OR': [['Q5892638', 'P27', {'concept': 'Q15617994'}], ['Q6653759', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?o ) { ( resource:Q5892638 ) ( resource:Q6653759 ) } . ?o property:P27 ?y } . ?y rdf:type ontology:Q15617994 }
Liu Weijuan Hasier Arraiz
action filter_type
action union
action find
entity Hasier Arraiz
relation country of citizenship
action find
entity Liu Weijuan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hasier Arraiz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Liu Weijuan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?o ) { ( resource:Hasier_Arraiz ) ( resource:Liu_Weijuan ) } . ?o property:country_of_citizenship ?y } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q148
SYSTEM
Spain, People's Republic of China
Q29 Q148
OR((Q5892638,P27,c(Q15617994)), (Q6653759,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5892638
relation P27
action find
entity Q6653759
relation P27
type Q15617994
[ANSWERS] are the native countriesof Hasier Arraiz or Liu Weijuan
{'OR': [['Q5892638', 'P27', {'concept': 'Q15617994'}], ['Q6653759', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?o ) { ( resource:Q5892638 ) ( resource:Q6653759 ) } . ?o property:P27 ?y } . ?y rdf:type ontology:Q15617994 }
Spain People's Republic of China
Spain and People's Republic of China are the native countriesof Hasier Arraiz or Liu Weijuan
Spain People's Republic of China
action filter_type
action union
action find
entity Hasier Arraiz
relation country of citizenship
action find
entity Liu Weijuan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hasier Arraiz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Liu Weijuan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?o ) { ( resource:Hasier_Arraiz ) ( resource:Liu_Weijuan ) } . ?o property:country_of_citizenship ?y } . ?y 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 diplomatic relations with atleast 85 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 . ?j property:P530 ?x } GROUP BY ?j } . FILTER ( ?m >= 85 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation ?x } GROUP BY ?j } . FILTER ( ?m >= 85 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[ANSWERS] have diplomatic relations with atleast 85 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 . ?j property:P530 ?x } GROUP BY ?j } . FILTER ( ?m >= 85 ) }
Germany Australia
Germany and Australia have diplomatic relations with atleast 85 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation ?x } GROUP BY ?j } . FILTER ( ?m >= 85 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with min number of political territories ?
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?a = ?c ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?c ) { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?e } } }
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?a = ?c ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?c ) { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?e } } }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have a diplomatic relationship with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?a = ?c ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?c ) { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?e } } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen, Syria and Oman have a diplomatic relationship with min number of political territories
Yemen Syria Oman
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?a = ?c ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?c ) { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?e } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with less number of administrative territories than Canada ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?s ) WHERE { ?v property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?s < ?t ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q16 property:P530 ?q } } }
Canada
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?s ) WHERE { ?v property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?s < ?t ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Canada property:diplomatic_relation ?q } } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?s ) WHERE { ?v property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?s < ?t ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q16 property:P530 ?q } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?s ) WHERE { ?v property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?s < ?t ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Canada property:diplomatic_relation ?q } } }
[]