Simple Question (Direct)
Simple Question
Q4981553
P27
Q15617994
USER
Which administrative territory is the native country of Suzanne Svensson ?
(Q4981553,P27,c(Q15617994))
action filter_type
action find
entity Q4981553
relation P27
type Q15617994
['Q4981553', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q4981553 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Suzanne Svensson
action filter_type
action find
entity Suzanne Svensson
relation country of citizenship
type designation for an administrative territorial entity
['Suzanne Svensson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Suzanne_Svensson property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q4981553,P27,c(Q15617994))
action filter_type
action find
entity Q4981553
relation P27
type Q15617994
[ANSWER] is the native country of Suzanne Svensson
['Q4981553', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q4981553 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Sweden
Sweden is the native country of Suzanne Svensson
Sweden
action filter_type
action find
entity Suzanne Svensson
relation country of citizenship
type designation for an administrative territorial entity
['Suzanne Svensson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Suzanne_Svensson property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P1001
Q35798
USER
Which executive branches have control over the jurisdiction of that administrative territory ?
(c(Q35798),P1001,Q34)
action filter_type
action find_reverse
entity Q34
relation P1001
type Q35798
[{'concept': 'Q35798'}, 'P1001', 'Q34']
SELECT DISTINCT ?v WHERE { ?v property:P1001 resource:Q34 . ?v rdf:type ontology:Q35798 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation applies to jurisdiction
type executive branch
[{'concept': 'executive branch'}, 'applies to jurisdiction', 'Sweden']
SELECT DISTINCT ?v WHERE { ?v property:applies_to_jurisdiction resource:Sweden . ?v rdf:type ontology:executive_branch }
[]
executive branch
Q4907240 Q3046743 Q4907653
SYSTEM
Carlsson III Cabinet, Reinfeldt Cabinet, Bildt Cabinet
Q4907240 Q3046743 Q4907653 Q5217837 Q10650416 Q5306179 Q5306186 Q5306190 Q4570330 Q10650420 Q5306200
(c(Q35798),P1001,Q34)
action filter_type
action find_reverse
entity Q34
relation P1001
type Q35798
[ANSWERS] have control over the jurisdiction of that administrative territory
[{'concept': 'Q35798'}, 'P1001', 'Q34']
SELECT DISTINCT ?v WHERE { ?v property:P1001 resource:Q34 . ?v rdf:type ontology:Q35798 }
Carlsson III Cabinet Reinfeldt Cabinet Bildt Cabinet Palme II Cabinet Carlsson II Cabinet Ullsten Cabinet Fälldin III Cabinet Fälldin II Cabinet Persson Cabinet Edén Cabinet Fälldin I Cabinet
Carlsson III Cabinet, Reinfeldt Cabinet and Bildt Cabinet have control over the jurisdiction of that administrative territory
Carlsson III Cabinet Reinfeldt Cabinet Bildt Cabinet
action filter_type
action find_reverse
entity Sweden
relation applies to jurisdiction
type executive branch
[{'concept': 'executive branch'}, 'applies to jurisdiction', 'Sweden']
SELECT DISTINCT ?v WHERE { ?v property:applies_to_jurisdiction resource:Sweden . ?v rdf:type ontology:executive_branch }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q34
P47
Q1048835 Q15617994
USER
How many political territories and administrative territories share border with Sweden ?
(c(Q1048835),P47,Q34) (c(Q15617994),P47,Q34)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q34
relation P47
type Q15617994
[{'concept': 'Q1048835'}, 'P47', 'Q34'] [{'concept': 'Q15617994'}, 'P47', 'Q34']
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?d rdf:type ?m }
Sweden
action count
action union
action filter_type
action find_reverse
entity Sweden
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Sweden
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Sweden'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Sweden']
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?d rdf:type ?m }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
1 political territories and 2 administrative territories
Q33 Q20 Q35
(c(Q1048835),P47,Q34) (c(Q15617994),P47,Q34)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q34
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q34'] [{'concept': 'Q15617994'}, 'P47', 'Q34']
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?d rdf:type ?m }
Finland Norway Denmark
1 political territories and 2 administrative territories
action count
action union
action filter_type
action find_reverse
entity Sweden
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Sweden
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Sweden'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Sweden']
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?d rdf:type ?m }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q34
P206
Q15324 Q1267889
USER
How many bodies of water or waterways are located next to Sweden ?
(Q34,P206,c(Q15324)) (Q34,P206,c(Q1267889))
action count
action union
action filter_type
action find
entity Q34
relation P206
type Q15324
action filter_type
action find
entity Q34
relation P206
type Q1267889
['Q34', 'P206', {'concept': 'Q15324'}] ['Q34', 'P206', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { resource:Q34 property:P206 ?f . ?f rdf:type ontology:Q15324 } UNION { resource:Q34 property:P206 ?f . ?f rdf:type ontology:Q1267889 } }
Sweden
action count
action union
action filter_type
action find
entity Sweden
relation located next to body of water
type body of water
action filter_type
action find
entity Sweden
relation located next to body of water
type waterway
['Sweden', 'located next to body of water', {'concept': 'body of water'}] ['Sweden', 'located next to body of water', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { resource:Sweden property:located_next_to_body_of_water ?f . ?f rdf:type ontology:body_of_water } UNION { resource:Sweden property:located_next_to_body_of_water ?f . ?f rdf:type ontology:waterway } }
[]
body of water waterway
SYSTEM
2
Q131716 Q545
(Q34,P206,c(Q15324)) (Q34,P206,c(Q1267889))
action count
action union
action filter_type
action find
entity Q34
relation P206
type Q15324
action filter_type
action find
entity Q34
relation P206
type Q1267889
[ANSWER]
['Q34', 'P206', {'concept': 'Q15324'}] ['Q34', 'P206', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { resource:Q34 property:P206 ?f . ?f rdf:type ontology:Q15324 } UNION { resource:Q34 property:P206 ?f . ?f rdf:type ontology:Q1267889 } }
Kattegat Baltic Sea
2
action count
action union
action filter_type
action find
entity Sweden
relation located next to body of water
type body of water
action filter_type
action find
entity Sweden
relation located next to body of water
type waterway
['Sweden', 'located next to body of water', {'concept': 'body of water'}] ['Sweden', 'located next to body of water', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { resource:Sweden property:located_next_to_body_of_water ?f . ?f rdf:type ontology:body_of_water } UNION { resource:Sweden property:located_next_to_body_of_water ?f . ?f rdf:type ontology:waterway } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6173733 Q3046743
P27 P1001
Q15617994
USER
Which administrative territories are judicially linked to Reinfeldt Cabinet or are Ánhuar Escalant an inhabitant of ?
OR((Q3046743,P1001,c(Q15617994)), (Q6173733,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3046743
relation P1001
action find
entity Q6173733
relation P27
type Q15617994
{'OR': [['Q3046743', 'P1001', {'concept': 'Q15617994'}], ['Q6173733', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q6173733 property:P27 ?n } UNION { resource:Q3046743 property:P1001 ?n } } . ?n rdf:type ontology:Q15617994 }
Ánhuar Escalant Reinfeldt Cabinet
action filter_type
action union
action find
entity Reinfeldt Cabinet
relation applies to jurisdiction
action find
entity Ánhuar Escalant
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Reinfeldt Cabinet', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Ánhuar Escalant', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Ánhuar_Escalant property:country_of_citizenship ?n } UNION { resource:Reinfeldt_Cabinet property:applies_to_jurisdiction ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q34
SYSTEM
Mexico, Sweden
Q96 Q34
OR((Q3046743,P1001,c(Q15617994)), (Q6173733,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3046743
relation P1001
action find
entity Q6173733
relation P27
type Q15617994
[ANSWERS] are judicially linked to Reinfeldt Cabinet or are Ánhuar Escalant an inhabitant of
{'OR': [['Q3046743', 'P1001', {'concept': 'Q15617994'}], ['Q6173733', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q6173733 property:P27 ?n } UNION { resource:Q3046743 property:P1001 ?n } } . ?n rdf:type ontology:Q15617994 }
Mexico Sweden
Mexico and Sweden are judicially linked to Reinfeldt Cabinet or are Ánhuar Escalant an inhabitant of
Mexico Sweden
action filter_type
action union
action find
entity Reinfeldt Cabinet
relation applies to jurisdiction
action find
entity Ánhuar Escalant
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Reinfeldt Cabinet', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Ánhuar Escalant', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Ánhuar_Escalant property:country_of_citizenship ?n } UNION { resource:Reinfeldt_Cabinet property:applies_to_jurisdiction ?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 diplomatic associations with atleast 119 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 119
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?x >= 119 ) . { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?x ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 119
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?x >= 119 ) . { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?x ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 119
[ANSWER] have diplomatic associations with atleast 119 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?x >= 119 ) . { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?x ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } }
Germany
Germany have diplomatic associations with atleast 119 administrative territories
Germany
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 119
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?x >= 119 ) . { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?x ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q2216066
P17
Q355304
USER
Is Salzersgraben situated in that political territory ?
(Q2216066,P17,Q183)
action is_in
entity Q183
action find
entity Q2216066
relation P17
['Q2216066', 'P17', 'Q183']
ASK WHERE { resource:Q2216066 property:P17 resource:Q183 }
Germany Salzersgraben
action is_in
entity Germany
action find
entity Salzersgraben
relation country
['Salzersgraben', 'country', 'Germany']
ASK WHERE { resource:Salzersgraben property:country resource:Germany }
[]
watercourse
SYSTEM
YES
(Q2216066,P17,Q183)
action is_in
entity Q183
action find
entity Q2216066
relation P17
[ANSWER]
['Q2216066', 'P17', 'Q183']
ASK WHERE { resource:Q2216066 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Salzersgraben
relation country
['Salzersgraben', 'country', 'Germany']
ASK WHERE { resource:Salzersgraben property:country resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P194
Q1752346
USER
Which assembly governs Sweden ?
(Q34,P194,c(Q1752346))
action filter_type
action find
entity Q34
relation P194
type Q1752346
['Q34', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { resource:Q34 property:P194 ?g . ?g rdf:type ontology:Q1752346 }
Sweden
action filter_type
action find
entity Sweden
relation legislative body
type assembly
['Sweden', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { resource:Sweden property:legislative_body ?g . ?g rdf:type ontology:assembly }
[]
assembly
Q272930
SYSTEM
Parliament of Sweden
Q272930
(Q34,P194,c(Q1752346))
action filter_type
action find
entity Q34
relation P194
type Q1752346
The [ANSWER] governs Sweden
['Q34', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { resource:Q34 property:P194 ?g . ?g rdf:type ontology:Q1752346 }
Parliament of Sweden
The Parliament of Sweden governs Sweden
Parliament of Sweden
action filter_type
action find
entity Sweden
relation legislative body
type assembly
['Sweden', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { resource:Sweden property:legislative_body ?g . ?g rdf:type ontology:assembly }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P6
Q502895
USER
What people are Sweden the head of goverment of ?
(Q34,P6,c(Q502895))
action filter_type
action find
entity Q34
relation P6
type Q502895
['Q34', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q34 property:P6 ?v . ?v rdf:type ontology:Q502895 }
Sweden
action filter_type
action find
entity Sweden
relation head of government
type common name
['Sweden', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Sweden property:head_of_government ?v . ?v rdf:type ontology:common_name }
[]
common name
Q52920 Q53747 Q2740012
SYSTEM
Fredrik Reinfeldt, Göran Persson, Stefan Löfven
Q2740012 Q52920 Q53740 Q53747
(Q34,P6,c(Q502895))
action filter_type
action find
entity Q34
relation P6
type Q502895
[ANSWERS] are Sweden the head of goverment of
['Q34', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q34 property:P6 ?v . ?v rdf:type ontology:Q502895 }
Stefan Löfven Fredrik Reinfeldt Ingvar Carlsson Göran Persson
Fredrik Reinfeldt, Göran Persson and Stefan Löfven are Sweden the head of goverment of
Fredrik Reinfeldt Göran Persson Stefan Löfven
action filter_type
action find
entity Sweden
relation head of government
type common name
['Sweden', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Sweden property:head_of_government ?v . ?v rdf:type ontology:common_name }
[]