Simple Question (Direct)
Simple Question
Q5896807
P106
Q12737077
USER
What is the profession of Seif Kadhim ?
(Q5896807,P106,c(Q12737077))
action filter_type
action find
entity Q5896807
relation P106
type Q12737077
['Q5896807', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5896807 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Seif Kadhim
action filter_type
action find
entity Seif Kadhim
relation occupation
type occupation
['Seif Kadhim', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Seif_Kadhim property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5896807,P106,c(Q12737077))
action filter_type
action find
entity Q5896807
relation P106
type Q12737077
The profession of Seif Kadhim is an [ANSWER]
['Q5896807', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5896807 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
association football player
The profession of Seif Kadhim is an association football player
association football player
action filter_type
action find
entity Seif Kadhim
relation occupation
type occupation
['Seif Kadhim', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Seif_Kadhim property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5896807
P54
Q618123
USER
What sports team is Seif Kadhim a member of ?
(Q5896807,P54,c(Q618123))
action filter_type
action find
entity Q5896807
relation P54
type Q618123
['Q5896807', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?y WHERE { resource:Q5896807 property:P54 ?y . ?y rdf:type ontology:Q618123 }
Seif Kadhim
action filter_type
action find
entity Seif Kadhim
relation member of sports team
type geographical object
['Seif Kadhim', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?y WHERE { resource:Seif_Kadhim property:member_of_sports_team ?y . ?y rdf:type ontology:geographical_object }
[]
geographical object
Q935428
SYSTEM
Ersboda SK
Q935428
(Q5896807,P54,c(Q618123))
action filter_type
action find
entity Q5896807
relation P54
type Q618123
[ANSWER] is Seif Kadhim a member of
['Q5896807', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?y WHERE { resource:Q5896807 property:P54 ?y . ?y rdf:type ontology:Q618123 }
Ersboda SK
Ersboda SK is Seif Kadhim a member of
Ersboda SK
action filter_type
action find
entity Seif Kadhim
relation member of sports team
type geographical object
['Seif Kadhim', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?y WHERE { resource:Seif_Kadhim property:member_of_sports_team ?y . ?y rdf:type ontology:geographical_object }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q935428 Q34
P17
Q15617994
USER
Is Ersboda SK present in Sweden ?
(Q935428,P17,Q34)
action is_in
entity Q34
action find
entity Q935428
relation P17
['Q935428', 'P17', 'Q34']
ASK WHERE { resource:Q935428 property:P17 resource:Q34 }
Ersboda SK Sweden
action is_in
entity Sweden
action find
entity Ersboda SK
relation country
['Ersboda SK', 'country', 'Sweden']
ASK WHERE { resource:Ersboda_SK property:country resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q935428,P17,Q34)
action is_in
entity Q34
action find
entity Q935428
relation P17
[ANSWER]
['Q935428', 'P17', 'Q34']
ASK WHERE { resource:Q935428 property:P17 resource:Q34 }
Yes
action is_in
entity Sweden
action find
entity Ersboda SK
relation country
['Ersboda SK', 'country', 'Sweden']
ASK WHERE { resource:Ersboda_SK property:country resource:Sweden }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4582023 Q5896807
P27 P17
Q15617994
USER
Which administrative territories do Seif Kadhim belong to or do Ahmed Al Jaber Air Base belong to ?
OR((Q5896807,P27,c(Q15617994)), (Q4582023,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5896807
relation P27
action find
entity Q4582023
relation P17
type Q15617994
{'OR': [['Q5896807', 'P27', {'concept': 'Q15617994'}], ['Q4582023', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q5896807 property:P27 ?p } UNION { resource:Q4582023 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Ahmed Al Jaber Air Base Seif Kadhim
action filter_type
action union
action find
entity Seif Kadhim
relation country of citizenship
action find
entity Ahmed Al Jaber Air Base
relation country
type designation for an administrative territorial entity
{'OR': [['Seif Kadhim', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ahmed Al Jaber Air Base', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Seif_Kadhim property:country_of_citizenship ?p } UNION { resource:Ahmed_Al_Jaber_Air_Base property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q817 Q34
SYSTEM
Kuwait, Sweden
Q817 Q34
OR((Q5896807,P27,c(Q15617994)), (Q4582023,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5896807
relation P27
action find
entity Q4582023
relation P17
type Q15617994
Seif Kadhim belong to the [ANSWERS]
{'OR': [['Q5896807', 'P27', {'concept': 'Q15617994'}], ['Q4582023', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q5896807 property:P27 ?p } UNION { resource:Q4582023 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Kuwait Sweden
Seif Kadhim belong to the Kuwait and Sweden
Kuwait Sweden
action filter_type
action union
action find
entity Seif Kadhim
relation country of citizenship
action find
entity Ahmed Al Jaber Air Base
relation country
type designation for an administrative territorial entity
{'OR': [['Seif Kadhim', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ahmed Al Jaber Air Base', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Seif_Kadhim property:country_of_citizenship ?p } UNION { resource:Ahmed_Al_Jaber_Air_Base property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q778
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relations with more number of administrative territories than The Bahamas ?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c rdf:type ontology:Q15617994 . resource:Q778 property:P530 ?c } } . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?v ) WHERE { ?a property:P530 ?d . ?a rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?a } }
The Bahamas
action count
action greater
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 The Bahamas
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 ( ?a ) AS ?g ) WHERE { FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:The_Bahamas property:diplomatic_relation ?c } } . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?v ) WHERE { ?a property:diplomatic_relation ?d . ?a rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c rdf:type ontology:Q15617994 . resource:Q778 property:P530 ?c } } . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?v ) WHERE { ?a property:P530 ?d . ?a rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?a } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
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 The Bahamas
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 ( ?a ) AS ?g ) WHERE { FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:The_Bahamas property:diplomatic_relation ?c } } . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?v ) WHERE { ?a property:diplomatic_relation ?d . ?a rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q766
P530
Q1048835 Q15617994
USER
And how about Jamaica?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?j ) WHERE { ?o property:P530 ?a . ?o rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { resource:Q766 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?j > ?l ) }
Jamaica
action count
action greater
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?j ) WHERE { ?o property:diplomatic_relation ?a . ?o rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { resource:Jamaica property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?j > ?l ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?j ) WHERE { ?o property:P530 ?a . ?o rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { resource:Q766 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?j > ?l ) }
Austria Germany Australia Denmark Canada New Zealand
6
action count
action greater
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?j ) WHERE { ?o property:diplomatic_relation ?a . ?o rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { resource:Jamaica property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?j > ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q34
P35
Q502895
USER
How many people are elected as the head of state of Sweden ?
(Q34,P35,c(Q502895))
action count
action filter_type
action find
entity Q34
relation P35
type Q502895
['Q34', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Q34 property:P35 ?g . ?g rdf:type ontology:Q502895 }
Sweden
action count
action filter_type
action find
entity Sweden
relation head of state
type common name
['Sweden', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Sweden property:head_of_state ?g . ?g rdf:type ontology:common_name }
[]
common name
SYSTEM
7
Q52878 Q52890 Q45068 Q52925 Q52924 Q52927 Q52926
(Q34,P35,c(Q502895))
action count
action filter_type
action find
entity Q34
relation P35
type Q502895
[ANSWER]
['Q34', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Q34 property:P35 ?g . ?g rdf:type ontology:Q502895 }
Gustaf VI Adolf of Sweden Gustaf V of Sweden Carl XVI Gustaf of Sweden Charles XV of Sweden Oscar II of Sweden Charles XIV John of Sweden Oscar I of Sweden
7
action count
action filter_type
action find
entity Sweden
relation head of state
type common name
['Sweden', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Sweden property:head_of_state ?g . ?g rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q2237427
P35
Q502895
USER
And also tell me about Ciampi Cabinet?
(Q2237427,P35,c(Q502895))
action count
action filter_type
action find
entity Q2237427
relation P35
type Q502895
['Q2237427', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y rdf:type ontology:Q502895 . resource:Q2237427 property:P35 ?y }
Ciampi Cabinet
action count
action filter_type
action find
entity Ciampi Cabinet
relation head of state
type common name
['Ciampi Cabinet', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y rdf:type ontology:common_name . resource:Ciampi_Cabinet property:head_of_state ?y }
[]
common name
SYSTEM
1
Q1228
(Q2237427,P35,c(Q502895))
action count
action filter_type
action find
entity Q2237427
relation P35
type Q502895
[ANSWER]
['Q2237427', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y rdf:type ontology:Q502895 . resource:Q2237427 property:P35 ?y }
Oscar Luigi Scalfaro
1
action count
action filter_type
action find
entity Ciampi Cabinet
relation head of state
type common name
['Ciampi Cabinet', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y rdf:type ontology:common_name . resource:Ciampi_Cabinet property:head_of_state ?y }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1638648
Q502895
USER
And how about Second Rutte cabinet?
(Q1638648,P35,c(Q502895))
action count
action filter_type
action find
entity Q1638648
relation P35
type Q502895
['Q1638648', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Q1638648 property:P35 ?x . ?x rdf:type ontology:Q502895 }
Second Rutte cabinet
action count
action filter_type
action find
entity Second Rutte cabinet
relation head of state
type common name
['Second Rutte cabinet', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Second_Rutte_cabinet property:head_of_state ?x . ?x rdf:type ontology:common_name }
[]
common name
SYSTEM
2
(Q1638648,P35,c(Q502895))
action count
action filter_type
action find
entity Q1638648
relation P35
type Q502895
[ANSWER]
['Q1638648', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Q1638648 property:P35 ?x . ?x rdf:type ontology:Q502895 }
2
action count
action filter_type
action find
entity Second Rutte cabinet
relation head of state
type common name
['Second Rutte cabinet', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Second_Rutte_cabinet property:head_of_state ?x . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q34 Q16079
P551
Q502895
USER
How many people have residence at Sweden or Nienburg/Weser ?
(c(Q502895),P551,Q34) (c(Q502895),P551,Q16079)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P551
type Q502895
action filter_type
action find_reverse
entity Q16079
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q34'] [{'concept': 'Q502895'}, 'P551', 'Q16079']
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { VALUES ( ?w ) { ( resource:Q34 ) ( resource:Q16079 ) } . ?b property:P551 ?w }
Sweden Nienburg/Weser
action count
action union
action filter_type
action find_reverse
entity Sweden
relation residence
type common name
action filter_type
action find_reverse
entity Nienburg/Weser
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Sweden'] [{'concept': 'common name'}, 'residence', 'Nienburg/Weser']
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { VALUES ( ?w ) { ( resource:Sweden ) ( resource:Nienburg/Weser ) } . ?b property:residence ?w }
[]
common name
SYSTEM
11
Q18668382 Q20720200 Q25513935 Q6217727 Q20820956 Q80956 Q7085 Q10800987 Q21151748 Q16406579 Q1871628
(c(Q502895),P551,Q34) (c(Q502895),P551,Q16079)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P551
type Q502895
action filter_type
action find_reverse
entity Q16079
relation P551
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q34'] [{'concept': 'Q502895'}, 'P551', 'Q16079']
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { VALUES ( ?w ) { ( resource:Q34 ) ( resource:Q16079 ) } . ?b property:P551 ?w }
Rudolf Bockelmann John Edward Winblad Swedish citizen + 18+ years old + sometime in the past lived in Sweden John A. Hasecoster Elisabet Barnes Svante August Arrhenius Niels Bohr Nhã Ca Rosemary Stjernstedt Artur Tava Louis De Geer
11
action count
action union
action filter_type
action find_reverse
entity Sweden
relation residence
type common name
action filter_type
action find_reverse
entity Nienburg/Weser
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Sweden'] [{'concept': 'common name'}, 'residence', 'Nienburg/Weser']
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { VALUES ( ?w ) { ( resource:Sweden ) ( resource:Nienburg/Weser ) } . ?b property:residence ?w }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with approximately 26 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 26
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?u = 26 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?u ) WHERE { ?a property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?u = 26 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?u ) WHERE { ?a property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q801 Q159 Q30
SYSTEM
Israel, Russia, United States of America
Q801 Q159 Q30
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 26
[ANSWERS] have diplomatic relations with approximately 26 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?u = 26 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?u ) WHERE { ?a property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } }
Israel Russia United States of America
Israel, Russia and United States of America have diplomatic relations with approximately 26 administrative territories
Israel Russia United States of America
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?u = 26 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?u ) WHERE { ?a property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Do Italy have tactful political relations with those ones ?
(Q38,P530,Q801) (Q38,P530,Q159) (Q38,P530,Q30)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q801'] ['Q38', 'P530', 'Q159'] ['Q38', 'P530', 'Q30']
ASK WHERE { resource:Q38 property:P530 ?i . VALUES ( ?i ) { ( resource:Q801 ) ( resource:Q159 ) ( resource:Q30 ) } }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Israel'] ['Italy', 'diplomatic relation', 'Russia'] ['Italy', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Italy property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Israel ) ( resource:Russia ) ( resource:United_States_of_America ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q801) (Q38,P530,Q159) (Q38,P530,Q30)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q801'] ['Q38', 'P530', 'Q159'] ['Q38', 'P530', 'Q30']
ASK WHERE { resource:Q38 property:P530 ?i . VALUES ( ?i ) { ( resource:Q801 ) ( resource:Q159 ) ( resource:Q30 ) } }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Israel'] ['Italy', 'diplomatic relation', 'Russia'] ['Italy', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Italy property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Israel ) ( resource:Russia ) ( resource:United_States_of_America ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have tactful political relations with around 52 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 52
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?a ) WHERE { ?i rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 . ?f property:P530 ?i } GROUP BY ?f } . FILTER ( ?a = 52 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 52
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?a ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity . ?f property:diplomatic_relation ?i } GROUP BY ?f } . FILTER ( ?a = 52 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
1
Q16
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 52
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?a ) WHERE { ?i rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 . ?f property:P530 ?i } GROUP BY ?f } . FILTER ( ?a = 52 ) }
Canada
1
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 52
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?a ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity . ?f property:diplomatic_relation ?i } GROUP BY ?f } . FILTER ( ?a = 52 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P194
Q11204 Q701632 Q15617994
USER
Which administrative territories have min number of legislatures or municipal councils as their legislative body ?
(c(Q15617994),P194,c(Q11204)|c(Q701632))
action argmin
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q701632
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) ?v WHERE { { ?v rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q701632 . ?v property:P194 ?p } UNION { ?v property:P194 ?p . ?v rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q11204 } } GROUP BY ?v } } . FILTER ( ?o = ?a ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?u WHERE { VALUES ( ?m ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } . ?q rdf:type ?m } GROUP BY ?u } }
action argmin
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) ?v WHERE { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:municipal_council . ?v property:legislative_body ?p } UNION { ?v property:legislative_body ?p . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:legislature } } GROUP BY ?v } } . FILTER ( ?o = ?a ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?u WHERE { VALUES ( ?m ) { ( ontology:legislature ) ( ontology:municipal_council ) } . ?q rdf:type ?m } GROUP BY ?u } }
[]
legislature municipal council designation for an administrative territorial entity
Q38 Q155 Q55
SYSTEM
Italy, Brazil, Netherlands
Q804 Q801 Q419 Q668 Q414 Q142 Q55 Q1948 Q145 Q717 Q252320 Q187035 Q3361 Q657 Q258 Q1979 Q45 Q41 Q155 Q4628 Q794 Q153529 Q1965 Q242 Q1974 Q33 Q32 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q104192 Q603676 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q2009 Q2007 Q184 Q2003 Q1904 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q1989 Q697 Q298 Q754 Q750 Q212 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q16110 Q694594 Q79 Q77 Q811 Q1011 Q1013 Q12620 Q176 Q1951 Q1952 Q2023 Q869
(c(Q15617994),P194,c(Q11204)|c(Q701632))
action argmin
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q701632
[ANSWERS] have min number of legislatures or municipal councils as their legislative body
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) ?v WHERE { { ?v rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q701632 . ?v property:P194 ?p } UNION { ?v property:P194 ?p . ?v rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q11204 } } GROUP BY ?v } } . FILTER ( ?o = ?a ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?u WHERE { VALUES ( ?m ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } . ?q rdf:type ?m } GROUP BY ?u } }
Panama Israel Peru India Argentina France Netherlands Manitoba United Kingdom Venezuela Pleinfeld Principality of Albania Doubs Chad South Africa Prince Edward Island Portugal Greece Brazil Faroe Islands Iran Duchy of Milan New Brunswick Belize British Columbia Finland Luxembourg Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Kleinmachnow District of Keewatin comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Yukon Northwest Territories Belarus Newfoundland and Labrador Ontario Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Saskatchewan Nauru Chile Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria region of Italy Bremen-Verden Egypt Uruguay Nicaragua Cape Verde Lesotho Mayenne Quebec Alberta Nova Scotia Nunavut Thailand
Italy, Brazil and Netherlands have min number of legislatures or municipal councils as their legislative body
Italy Brazil Netherlands
action argmin
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) ?v WHERE { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:municipal_council . ?v property:legislative_body ?p } UNION { ?v property:legislative_body ?p . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:legislature } } GROUP BY ?v } } . FILTER ( ?o = ?a ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?u WHERE { VALUES ( ?m ) { ( ontology:legislature ) ( ontology:municipal_council ) } . ?q rdf:type ?m } GROUP BY ?u } }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
Which administrative territories inspired greater number of fictional locations than that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|More/Less|Single entity type|Clarification
Q55
SYSTEM
Did you mean Netherlands ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean Netherlands ?
Netherlands
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
Q668
SYSTEM
India
Q668
(c(Q3895768),P941,c(Q15617994))
[ANSWER] inspired greater number of fictional locations than that administrative territory
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
India
India inspired greater number of fictional locations than that administrative territory
India
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]