Simple Question (Direct)
Simple Question
Q231320
P21
Q290
USER
Which sex does Camilla Läckberg possess ?
(Q231320,P21,c(Q290))
action filter_type
action find
entity Q231320
relation P21
type Q290
['Q231320', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q231320 property:P21 ?e . ?e rdf:type ontology:Q290 }
Camilla Läckberg
action filter_type
action find
entity Camilla Läckberg
relation gender
type sex
['Camilla Läckberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Camilla_Läckberg property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q231320,P21,c(Q290))
action filter_type
action find
entity Q231320
relation P21
type Q290
Camilla Läckberg possesses a [ANSWER]
['Q231320', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q231320 property:P21 ?e . ?e rdf:type ontology:Q290 }
female
Camilla Läckberg possesses a female
female
action filter_type
action find
entity Camilla Läckberg
relation gender
type sex
['Camilla Läckberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Camilla_Läckberg property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q231320
P50
Q2342494
USER
Which collectables have that person as their author ?
(c(Q2342494),P50,Q6581072)
action filter_type
action find_reverse
entity Q231320
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q6581072']
SELECT DISTINCT ?o WHERE { ?o property:P50 resource:Q231320 . ?o rdf:type ontology:Q2342494 }
Camilla Läckberg
action filter_type
action find_reverse
entity Camilla Läckberg
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'female']
SELECT DISTINCT ?o WHERE { ?o property:author resource:Camilla_Läckberg . ?o rdf:type ontology:collectable }
[]
collectable
Q3211946 Q1216841 Q18291690
SYSTEM
The Ice Princess, The Gallows Bird, Lejontämjaren
Q2061695 Q3212840 Q7713750 Q3202969 Q1216841 Q18291690 Q3226051 Q5439526 Q16653791 Q5458219 Q3211946
(c(Q2342494),P50,Q6581072)
action filter_type
action find_reverse
entity Q231320
relation P50
type Q2342494
[ANSWERS] have that person as their author
[{'concept': 'Q2342494'}, 'P50', 'Q6581072']
SELECT DISTINCT ?o WHERE { ?o property:P50 resource:Q231320 . ?o rdf:type ontology:Q2342494 }
The Stone Cutter The Drowning The Angel Maker's Wife The Hidden Child The Gallows Bird Lejontämjaren The Preacher Feast, Food & Love The Lost Boy Flavours from Fjällbacka The Ice Princess
The Ice Princess, The Gallows Bird and Lejontämjaren have that person as their author
The Ice Princess The Gallows Bird Lejontämjaren
action filter_type
action find_reverse
entity Camilla Läckberg
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'female']
SELECT DISTINCT ?o WHERE { ?o property:author resource:Camilla_Läckberg . ?o rdf:type ontology:collectable }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18291690
P840
Q15700808
USER
Which narrative location is that collectable set in ?
(Q18291690,P840,c(Q15700808))
action filter_type
action find
entity Q18291690
relation P840
type Q15700808
['Q18291690', 'P840', {'concept': 'Q15700808'}]
SELECT DISTINCT ?x WHERE { resource:Q18291690 property:P840 ?x . ?x rdf:type ontology:Q15700808 }
Lejontämjaren
action filter_type
action find
entity Lejontämjaren
relation narrative location
type urban unit definition
['Lejontämjaren', 'narrative location', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?x WHERE { resource:Lejontämjaren property:narrative_location ?x . ?x rdf:type ontology:urban_unit_definition }
[]
urban unit definition
Clarification for simple ques.
Q18291690
SYSTEM
Did you mean Lejontämjaren ?
Q3211946 Q1216841 Q18291690
(Q3211946,P840,c(Q15700808)) (Q1216841,P840,c(Q15700808)) (Q18291690,P840,c(Q15700808))
[ANSWER]
['Q3211946', 'P840', {'concept': 'Q15700808'}] ['Q1216841', 'P840', {'concept': 'Q15700808'}] ['Q18291690', 'P840', {'concept': 'Q15700808'}]
SELECT DISTINCT ?x WHERE { resource:Q18291690 property:P840 ?x . ?x rdf:type ontology:Q15700808 }
The Ice Princess The Gallows Bird Lejontämjaren
Did you mean Lejontämjaren ?
Lejontämjaren
['The Ice Princess', 'narrative location', {'concept': 'urban unit definition'}] ['The Gallows Bird', 'narrative location', {'concept': 'urban unit definition'}] ['Lejontämjaren', 'narrative location', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?x WHERE { resource:Lejontämjaren property:narrative_location ?x . ?x rdf:type ontology:urban_unit_definition }
[]
Simple Question (Coreferenced)
USER
Yes
(Q18291690,P840,c(Q15700808))
['Q18291690', 'P840', {'concept': 'Q15700808'}]
['Lejontämjaren', 'narrative location', {'concept': 'urban unit definition'}]
[]
Q1285177
SYSTEM
Fjällbacka
Q1285177
(Q18291690,P840,c(Q15700808))
action filter_type
action find
entity Q18291690
relation P840
type Q15700808
That collectable is set at [ANSWER]
['Q18291690', 'P840', {'concept': 'Q15700808'}]
SELECT DISTINCT ?x WHERE { resource:Q18291690 property:P840 ?x . ?x rdf:type ontology:Q15700808 }
Fjällbacka
That collectable is set at Fjällbacka
Fjällbacka
action filter_type
action find
entity Lejontämjaren
relation narrative location
type urban unit definition
['Lejontämjaren', 'narrative location', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?x WHERE { resource:Lejontämjaren property:narrative_location ?x . ?x rdf:type ontology:urban_unit_definition }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1285177
P17
Q15617994
USER
Which administrative territory does that urban unit definition belong to ?
(Q1285177,P17,c(Q15617994))
action filter_type
action find
entity Q1285177
relation P17
type Q15617994
['Q1285177', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q1285177 property:P17 ?h }
Fjällbacka
action filter_type
action find
entity Fjällbacka
relation country
type designation for an administrative territorial entity
['Fjällbacka', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Fjällbacka property:country ?h }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q1285177,P17,c(Q15617994))
action filter_type
action find
entity Q1285177
relation P17
type Q15617994
That urban unit definition belongs to [ANSWER]
['Q1285177', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q1285177 property:P17 ?h }
Sweden
That urban unit definition belongs to Sweden
Sweden
action filter_type
action find
entity Fjällbacka
relation country
type designation for an administrative territorial entity
['Fjällbacka', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Fjällbacka property:country ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P85
Q484692
USER
Which is the national anthem of that administrative territory ?
(Q34,P85,c(Q484692))
action filter_type
action find
entity Q34
relation P85
type Q484692
['Q34', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?u WHERE { resource:Q34 property:P85 ?u . ?u rdf:type ontology:Q484692 }
Sweden
action filter_type
action find
entity Sweden
relation anthem
type hymn
['Sweden', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?u WHERE { resource:Sweden property:anthem ?u . ?u rdf:type ontology:hymn }
[]
hymn
Q133261
SYSTEM
Du gamla, du fria
Q133261
(Q34,P85,c(Q484692))
action filter_type
action find
entity Q34
relation P85
type Q484692
The national anthem of that administrative territory is [ANSWER]
['Q34', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?u WHERE { resource:Q34 property:P85 ?u . ?u rdf:type ontology:Q484692 }
Du gamla, du fria
The national anthem of that administrative territory is Du gamla, du fria
Du gamla, du fria
action filter_type
action find
entity Sweden
relation anthem
type hymn
['Sweden', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?u WHERE { resource:Sweden property:anthem ?u . ?u rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P710
Q15275719
USER
Which recurring event was that administrative territory a participant of ?
(c(Q15275719),P710,Q133261)
action filter_type
action find_reverse
entity Q34
relation P710
type Q15275719
[{'concept': 'Q15275719'}, 'P710', 'Q133261']
SELECT DISTINCT ?n WHERE { ?n property:P710 resource:Q34 . ?n rdf:type ontology:Q15275719 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Du gamla, du fria']
SELECT DISTINCT ?n WHERE { ?n property:participant resource:Sweden . ?n rdf:type ontology:recurring_event }
[]
recurring event
Q207815
SYSTEM
Eurovision Song Contest 1996
Q207815
(c(Q15275719),P710,Q133261)
action filter_type
action find_reverse
entity Q34
relation P710
type Q15275719
[ANSWER] was that administrative territory a participant of
[{'concept': 'Q15275719'}, 'P710', 'Q133261']
SELECT DISTINCT ?n WHERE { ?n property:P710 resource:Q34 . ?n rdf:type ontology:Q15275719 }
Eurovision Song Contest 1996
Eurovision Song Contest 1996 was that administrative territory a participant of
Eurovision Song Contest 1996
action filter_type
action find_reverse
entity Sweden
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Du gamla, du fria']
SELECT DISTINCT ?n WHERE { ?n property:participant resource:Sweden . ?n rdf:type ontology:recurring_event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q34 Q4823819
P30
Q2221906
USER
How many geographic locations are Sweden or Australian Antarctic Names and Medals Committee located ?
(Q34,P30,c(Q2221906)) (Q4823819,P30,c(Q2221906))
action count
action union
action filter_type
action find
entity Q34
relation P30
type Q2221906
action filter_type
action find
entity Q4823819
relation P30
type Q2221906
['Q34', 'P30', {'concept': 'Q2221906'}] ['Q4823819', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { resource:Q34 property:P30 ?e . ?e rdf:type ontology:Q2221906 } UNION { ?e rdf:type ontology:Q2221906 . resource:Q4823819 property:P30 ?e } }
Sweden Australian Antarctic Names and Medals Committee
action count
action union
action filter_type
action find
entity Sweden
relation continent
type geographic location
action filter_type
action find
entity Australian Antarctic Names and Medals Committee
relation continent
type geographic location
['Sweden', 'continent', {'concept': 'geographic location'}] ['Australian Antarctic Names and Medals Committee', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { resource:Sweden property:continent ?e . ?e rdf:type ontology:geographic_location } UNION { ?e rdf:type ontology:geographic_location . resource:Australian_Antarctic_Names_and_Medals_Committee property:continent ?e } }
[]
geographic location
SYSTEM
2
Q46 Q51
(Q34,P30,c(Q2221906)) (Q4823819,P30,c(Q2221906))
action count
action union
action filter_type
action find
entity Q34
relation P30
type Q2221906
action filter_type
action find
entity Q4823819
relation P30
type Q2221906
[ANSWER]
['Q34', 'P30', {'concept': 'Q2221906'}] ['Q4823819', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { resource:Q34 property:P30 ?e . ?e rdf:type ontology:Q2221906 } UNION { ?e rdf:type ontology:Q2221906 . resource:Q4823819 property:P30 ?e } }
Europe Antarctica
2
action count
action union
action filter_type
action find
entity Sweden
relation continent
type geographic location
action filter_type
action find
entity Australian Antarctic Names and Medals Committee
relation continent
type geographic location
['Sweden', 'continent', {'concept': 'geographic location'}] ['Australian Antarctic Names and Medals Committee', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { resource:Sweden property:continent ?e . ?e rdf:type ontology:geographic_location } UNION { ?e rdf:type ontology:geographic_location . resource:Australian_Antarctic_Names_and_Medals_Committee property:continent ?e } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q7126198 Q4823819
P17
Q1048835
USER
Which political territories are Australian Antarctic Names and Medals Committee and Palace Theatre, Melbourne present in ?
AND((Q4823819,P17,c(Q1048835)), (Q7126198,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q4823819
relation P17
action find
entity Q7126198
relation P17
type Q1048835
{'AND': [['Q4823819', 'P17', {'concept': 'Q1048835'}], ['Q7126198', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { resource:Q4823819 property:P17 ?m . resource:Q7126198 property:P17 ?m . ?m rdf:type ontology:Q1048835 }
Palace Theatre, Melbourne Australian Antarctic Names and Medals Committee
action filter_type
action intersection
action find
entity Australian Antarctic Names and Medals Committee
relation country
action find
entity Palace Theatre, Melbourne
relation country
type political territorial entity
{'AND': [['Australian Antarctic Names and Medals Committee', 'country', {'concept': 'political territorial entity'}], ['Palace Theatre, Melbourne', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { resource:Australian_Antarctic_Names_and_Medals_Committee property:country ?m . resource:Palace_Theatre,_Melbourne property:country ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q4823819,P17,c(Q1048835)), (Q7126198,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q4823819
relation P17
action find
entity Q7126198
relation P17
type Q1048835
[ANSWER] is [ANSWER]n Antarctic Names and Medals Committee and Palace Theatre, Melbourne present in
{'AND': [['Q4823819', 'P17', {'concept': 'Q1048835'}], ['Q7126198', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { resource:Q4823819 property:P17 ?m . resource:Q7126198 property:P17 ?m . ?m rdf:type ontology:Q1048835 }
Australia
Australia is Australian Antarctic Names and Medals Committee and Palace Theatre, Melbourne present in
Australia
action filter_type
action intersection
action find
entity Australian Antarctic Names and Medals Committee
relation country
action find
entity Palace Theatre, Melbourne
relation country
type political territorial entity
{'AND': [['Australian Antarctic Names and Medals Committee', 'country', {'concept': 'political territorial entity'}], ['Palace Theatre, Melbourne', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { resource:Australian_Antarctic_Names_and_Medals_Committee property:country ?m . resource:Palace_Theatre,_Melbourne property:country ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q408 Q36 Q15245139
P530
Q15617994
USER
Does that political territory have ambassadorial relations with Poland and Manna, Greece ?
(Q408,P530,Q36) (Q408,P530,Q15245139)
action is_in
entity Q408
action intersection
action find_reverse
entity Q36
relation P530
action find_reverse
entity Q15245139
relation P530
['Q408', 'P530', 'Q36'] ['Q408', 'P530', 'Q15245139']
ASK WHERE { resource:Q408 property:P530 resource:Q36 . resource:Q408 property:P530 resource:Q15245139 }
Australia Poland Manna, Greece
action is_in
entity Australia
action intersection
action find_reverse
entity Poland
relation diplomatic relation
action find_reverse
entity Manna, Greece
relation diplomatic relation
['Australia', 'diplomatic relation', 'Poland'] ['Australia', 'diplomatic relation', 'Manna, Greece']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Poland . resource:Australia property:diplomatic_relation resource:Manna,_Greece }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q408,P530,Q36) (Q408,P530,Q15245139)
action is_in
entity Q408
action intersection
action find_reverse
entity Q36
relation P530
action find_reverse
entity Q15245139
relation P530
[ANSWER]
['Q408', 'P530', 'Q36'] ['Q408', 'P530', 'Q15245139']
ASK WHERE { resource:Q408 property:P530 resource:Q36 . resource:Q408 property:P530 resource:Q15245139 }
YES and NO respectively
action is_in
entity Australia
action intersection
action find_reverse
entity Poland
relation diplomatic relation
action find_reverse
entity Manna, Greece
relation diplomatic relation
['Australia', 'diplomatic relation', 'Poland'] ['Australia', 'diplomatic relation', 'Manna, Greece']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Poland . resource:Australia property:diplomatic_relation resource:Manna,_Greece }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q36180 Q231320
P106 P26
Q502895
USER
Which people have Camilla Läckberg as spouse and have writer as his/her means of employment ?
AND((c(Q502895),P26,Q231320), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q231320
relation P26
action find_reverse
entity Q36180
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q231320'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P26 resource:Q231320 . ?v property:P106 resource:Q36180 }
writer Camilla Läckberg
action filter_type
action intersection
action find_reverse
entity Camilla Läckberg
relation spouse
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Camilla Läckberg'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:spouse resource:Camilla_Läckberg . ?v property:occupation resource:writer }
[]
common name
Q5983849
SYSTEM
Martin Melin
Q5983849
AND((c(Q502895),P26,Q231320), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q231320
relation P26
action find_reverse
entity Q36180
relation P106
type Q502895
[ANSWER] have Camilla Läckberg as spouse and have writer as his/her means of employment
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q231320'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P26 resource:Q231320 . ?v property:P106 resource:Q36180 }
Martin Melin
Martin Melin have Camilla Läckberg as spouse and have writer as his/her means of employment
Martin Melin
action filter_type
action intersection
action find_reverse
entity Camilla Läckberg
relation spouse
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Camilla Läckberg'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:spouse resource:Camilla_Läckberg . ?v property:occupation resource:writer }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q15617994 Q1048835 Q1048835
USER
Which political territories have diplomatic relations with min number of administrative territories or political territories ?
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action argmin
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?p ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?h ) WHERE { { ?y property:P530 ?z . ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } UNION { ?y property:P530 ?z . ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } } GROUP BY ?y } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?s ) WHERE { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?d } }
action argmin
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
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?p ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?h ) WHERE { { ?y property:diplomatic_relation ?z . ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:diplomatic_relation ?z . ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } } GROUP BY ?y } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?s ) WHERE { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?d } }
[]
designation for an administrative territorial entity political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action argmin
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have diplomatic relations with min number of administrative territories or political territories
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?p ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?h ) WHERE { { ?y property:P530 ?z . ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } UNION { ?y property:P530 ?z . ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } } GROUP BY ?y } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?s ) WHERE { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?d } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic relations with min number of administrative territories or political territories
Gabon Grenada Papua New Guinea
action argmin
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
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?p ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?h ) WHERE { { ?y property:diplomatic_relation ?z . ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:diplomatic_relation ?z . ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } } GROUP BY ?y } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?s ) WHERE { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?d } }
[]