Simple Question (Direct)
Simple Question
Q3436801
P102
Q7210356
USER
Which political organization is Roberta Pantani a member of ?
(Q3436801,P102,c(Q7210356))
action filter_type
action find
entity Q3436801
relation P102
type Q7210356
['Q3436801', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q3436801 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Roberta Pantani
action filter_type
action find
entity Roberta Pantani
relation member of political party
type political organization
['Roberta Pantani', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Roberta_Pantani property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
political organization
Q668101
SYSTEM
Ticino League
Q668101
(Q3436801,P102,c(Q7210356))
action filter_type
action find
entity Q3436801
relation P102
type Q7210356
The [ANSWER] is Roberta Pantani a member of
['Q3436801', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q3436801 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Ticino League
The Ticino League is Roberta Pantani a member of
Ticino League
action filter_type
action find
entity Roberta Pantani
relation member of political party
type political organization
['Roberta Pantani', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Roberta_Pantani property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3436801
P21
Q290
USER
Which sex does Roberta Pantani possess ?
(Q3436801,P21,c(Q290))
action filter_type
action find
entity Q3436801
relation P21
type Q290
['Q3436801', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q3436801 property:P21 ?c . ?c rdf:type ontology:Q290 }
Roberta Pantani
action filter_type
action find
entity Roberta Pantani
relation gender
type sex
['Roberta Pantani', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Roberta_Pantani property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q3436801,P21,c(Q290))
action filter_type
action find
entity Q3436801
relation P21
type Q290
Roberta Pantani possesses a [ANSWER]
['Q3436801', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q3436801 property:P21 ?c . ?c rdf:type ontology:Q290 }
female
Roberta Pantani possesses a female
female
action filter_type
action find
entity Roberta Pantani
relation gender
type sex
['Roberta Pantani', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Roberta_Pantani property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3436801
P19
Q13220204
USER
Which administrative country subdivision is the birthplace of that person ?
(Q6581072,P19,c(Q13220204))
action filter_type
action find
entity Q3436801
relation P19
type Q13220204
['Q6581072', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q13220204 . resource:Q3436801 property:P19 ?i }
Roberta Pantani
action filter_type
action find
entity Roberta Pantani
relation place of birth
type second-level administrative country subdivision
['female', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:second-level_administrative_country_subdivision . resource:Roberta_Pantani property:place_of_birth ?i }
[]
second-level administrative country subdivision
Q69995
SYSTEM
Sorengo
Q69995
(Q6581072,P19,c(Q13220204))
action filter_type
action find
entity Q3436801
relation P19
type Q13220204
[ANSWER] is the birthplace of that person
['Q6581072', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q13220204 . resource:Q3436801 property:P19 ?i }
Sorengo
Sorengo is the birthplace of that person
Sorengo
action filter_type
action find
entity Roberta Pantani
relation place of birth
type second-level administrative country subdivision
['female', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:second-level_administrative_country_subdivision . resource:Roberta_Pantani property:place_of_birth ?i }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q69995 Q7024
P47
Q56061
USER
Does Lugano share the border with that administrative country subdivision ?
(Q69995,P47,Q7024)
action is_in
entity Q7024
action find
entity Q69995
relation P47
['Q69995', 'P47', 'Q7024']
ASK WHERE { resource:Q69995 property:P47 resource:Q7024 }
Sorengo Lugano
action is_in
entity Lugano
action find
entity Sorengo
relation shares border with
['Sorengo', 'shares border with', 'Lugano']
ASK WHERE { resource:Sorengo property:shares_border_with resource:Lugano }
[]
administrative territorial entity
SYSTEM
YES
(Q69995,P47,Q7024)
action is_in
entity Q7024
action find
entity Q69995
relation P47
[ANSWER]
['Q69995', 'P47', 'Q7024']
ASK WHERE { resource:Q69995 property:P47 resource:Q7024 }
Yes
action is_in
entity Lugano
action find
entity Sorengo
relation shares border with
['Sorengo', 'shares border with', 'Lugano']
ASK WHERE { resource:Sorengo property:shares_border_with resource:Lugano }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18184 Q7024
P47
Q15617994
USER
Which administrative territories share the border with Lugano or Valle Mosso ?
OR((Q7024,P47,c(Q15617994)), (Q18184,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7024
relation P47
action find
entity Q18184
relation P47
type Q15617994
{'OR': [['Q7024', 'P47', {'concept': 'Q15617994'}], ['Q18184', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q7024 property:P47 ?q } UNION { resource:Q18184 property:P47 ?q } } . ?q rdf:type ontology:Q15617994 }
Valle Mosso Lugano
action filter_type
action union
action find
entity Lugano
relation shares border with
action find
entity Valle Mosso
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Lugano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Valle Mosso', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Lugano property:shares_border_with ?q } UNION { resource:Valle_Mosso property:shares_border_with ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q47076 Q18037 Q18170 Q18087 Q18141 Q18182 Q40553 Q18022 Q18095 Q18186
SYSTEM
Some of them are Val Rezzo, Campiglia Cervo, Strona, Mosso, Piedicavallo, Vallanzengo, Brusimpiano, Bioglio, Pettinengo, Valle San Nicolao
Q18087 Q40553 Q47338 Q18095 Q18141 Q47076 Q18022 Q18177 Q47624 Q18037 Q18170 Q18187 Q18186 Q244396 Q18182
OR((Q7024,P47,c(Q15617994)), (Q18184,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7024
relation P47
action find
entity Q18184
relation P47
type Q15617994
[ANSWERS] share the border with Lugano or Valle Mosso
{'OR': [['Q7024', 'P47', {'concept': 'Q15617994'}], ['Q18184', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q7024 property:P47 ?q } UNION { resource:Q18184 property:P47 ?q } } . ?q rdf:type ontology:Q15617994 }
Mosso Brusimpiano Valsolda Pettinengo Piedicavallo Val Rezzo Bioglio Trivero Lanzo d'Intelvi Campiglia Cervo Strona Veglio Valle San Nicolao Cavargna Vallanzengo
Val Rezzo, Campiglia Cervo, Strona, Mosso, Piedicavallo, Vallanzengo, Brusimpiano, Bioglio, Pettinengo and Valle San Nicolao share the border with Lugano or Valle Mosso
Val Rezzo Campiglia Cervo Strona Mosso Piedicavallo Vallanzengo Brusimpiano Bioglio Pettinengo Valle San Nicolao
action filter_type
action union
action find
entity Lugano
relation shares border with
action find
entity Valle Mosso
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Lugano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Valle Mosso', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Lugano property:shares_border_with ?q } UNION { resource:Valle_Mosso property:shares_border_with ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with approximately 101 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 101
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = 101 ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?t ) WHERE { ?i property:P530 ?b . ?i rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?i } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 101
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = 101 ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?t ) WHERE { ?i property:diplomatic_relation ?b . ?i rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 101
[ANSWERS] have a diplomatic relationship with approximately 101 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = 101 ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?t ) WHERE { ?i property:P530 ?b . ?i rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?i } }
Germany Australia
Germany and Australia have a diplomatic relationship with approximately 101 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 101
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = 101 ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?t ) WHERE { ?i property:diplomatic_relation ?b . ?i rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q1445650 Q502895 Q15617994
USER
Which administrative territories have approximately 4 holidays and people as their patron saint ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
value 4
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?k WHERE { VALUES ( ?s ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?e rdf:type ?s } GROUP BY ?k } . FILTER ( ?g = 4 ) }
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?k WHERE { VALUES ( ?s ) { ( ontology:common_name ) ( ontology:holiday ) } . ?e rdf:type ?s } GROUP BY ?k } . FILTER ( ?g = 4 ) }
[]
holiday common name designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
value 4
[ANSWER] have approximately 4 holidays and people as their patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?k WHERE { VALUES ( ?s ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?e rdf:type ?s } GROUP BY ?k } . FILTER ( ?g = 4 ) }
Poland
Poland have approximately 4 holidays and people as their patron saint
Poland
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?k WHERE { VALUES ( ?s ) { ( ontology:common_name ) ( ontology:holiday ) } . ?e rdf:type ?s } GROUP BY ?k } . FILTER ( ?g = 4 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q2031291 Q838948
USER
Which administrative territories are the countries of origin of atleast 14843 releases and works of art ?
(c(Q2031291)|c(Q838948),P495,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 14843
[[{'concept': 'Q2031291'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?a >= 14843 ) . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?a ) WHERE { { ?e property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q2031291 } UNION { ?e property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q838948 } } GROUP BY ?y } }
action atleast
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 14843
[[{'concept': 'release'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?a >= 14843 ) . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?a ) WHERE { { ?e property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:release } UNION { ?e property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:work_of_art } } GROUP BY ?y } }
[]
designation for an administrative territorial entity release work of art
Q668 Q30
SYSTEM
India, United States of America
Q668 Q30
(c(Q2031291)|c(Q838948),P495,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 14843
[ANSWERS] are the countries of origin of atleast 14843 releases and works of art
[[{'concept': 'Q2031291'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?a >= 14843 ) . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?a ) WHERE { { ?e property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q2031291 } UNION { ?e property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q838948 } } GROUP BY ?y } }
India United States of America
India and United States of America are the countries of origin of atleast 14843 releases and works of art
India United States of America
action atleast
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 14843
[[{'concept': 'release'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?a >= 14843 ) . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?a ) WHERE { { ?e property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:release } UNION { ?e property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:work_of_art } } GROUP BY ?y } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6848947
P27
Q502895
USER
Are Mike Stone civilians of those administrative territories ?
(Q6848947,P27,Q668) (Q6848947,P27,Q30)
action is_in
entity prev_answer
action find
entity Q6848947
relation P27
['Q6848947', 'P27', 'Q668'] ['Q6848947', 'P27', 'Q30']
ASK WHERE { VALUES ( ?l ) { ( resource:Q668 ) ( resource:Q30 ) } . resource:Q6848947 property:P27 ?l }
Mike Stone
action is_in
entity prev_answer
action find
entity Mike Stone
relation country of citizenship
['Mike Stone', 'country of citizenship', 'India'] ['Mike Stone', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?l ) { ( resource:India ) ( resource:United_States_of_America ) } . resource:Mike_Stone property:country_of_citizenship ?l }
[]
common name
SYSTEM
NO
(Q6848947,P27,Q668) (Q6848947,P27,Q30)
action is_in
entity prev_answer
action find
entity Q6848947
relation P27
[ANSWER]
['Q6848947', 'P27', 'Q668'] ['Q6848947', 'P27', 'Q30']
ASK WHERE { VALUES ( ?l ) { ( resource:Q668 ) ( resource:Q30 ) } . resource:Q6848947 property:P27 ?l }
No
action is_in
entity prev_answer
action find
entity Mike Stone
relation country of citizenship
['Mike Stone', 'country of citizenship', 'India'] ['Mike Stone', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?l ) { ( resource:India ) ( resource:United_States_of_America ) } . resource:Mike_Stone property:country_of_citizenship ?l }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q18087 Q588575 Q505002
P47
Q15617994
USER
Does Heidesee and Bindlach share a border with Mosso ?
(Q18087,P47,Q588575) (Q18087,P47,Q505002)
action is_in
entity Q18087
action intersection
action find_reverse
entity Q588575
relation P47
action find_reverse
entity Q505002
relation P47
['Q18087', 'P47', 'Q588575'] ['Q18087', 'P47', 'Q505002']
ASK WHERE { resource:Q18087 property:P47 resource:Q588575 . resource:Q18087 property:P47 resource:Q505002 }
Mosso Heidesee Bindlach
action is_in
entity Mosso
action intersection
action find_reverse
entity Heidesee
relation shares border with
action find_reverse
entity Bindlach
relation shares border with
['Mosso', 'shares border with', 'Heidesee'] ['Mosso', 'shares border with', 'Bindlach']
ASK WHERE { resource:Mosso property:shares_border_with resource:Heidesee . resource:Mosso property:shares_border_with resource:Bindlach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q18087,P47,Q588575) (Q18087,P47,Q505002)
action is_in
entity Q18087
action intersection
action find_reverse
entity Q588575
relation P47
action find_reverse
entity Q505002
relation P47
[ANSWER]
['Q18087', 'P47', 'Q588575'] ['Q18087', 'P47', 'Q505002']
ASK WHERE { resource:Q18087 property:P47 resource:Q588575 . resource:Q18087 property:P47 resource:Q505002 }
No
action is_in
entity Mosso
action intersection
action find_reverse
entity Heidesee
relation shares border with
action find_reverse
entity Bindlach
relation shares border with
['Mosso', 'shares border with', 'Heidesee'] ['Mosso', 'shares border with', 'Bindlach']
ASK WHERE { resource:Mosso property:shares_border_with resource:Heidesee . resource:Mosso property:shares_border_with resource:Bindlach }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q6378689
P530
Q15617994
USER
Does Kaufman Independent School District hold diplomatic relationship with Germany ?
(Q183,P530,Q6378689)
action is_in
entity Q6378689
action find
entity Q183
relation P530
['Q183', 'P530', 'Q6378689']
ASK WHERE { resource:Q183 property:P530 resource:Q6378689 }
Germany Kaufman Independent School District
action is_in
entity Kaufman Independent School District
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Kaufman Independent School District']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Kaufman_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q183,P530,Q6378689)
action is_in
entity Q6378689
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q6378689']
ASK WHERE { resource:Q183 property:P530 resource:Q6378689 }
No
action is_in
entity Kaufman Independent School District
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Kaufman Independent School District']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Kaufman_Independent_School_District }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q225
P530
Q15617994 Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with greater number of administrative territories or political territories than Bosnia and Herzegovina ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q225
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m property:P530 resource:Q225 . { VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?m rdf:type ?e } } } . FILTER ( ?t > ?z ) }
Bosnia and Herzegovina
action count
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Bosnia and Herzegovina
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m property:diplomatic_relation resource:Bosnia_and_Herzegovina . { VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?m rdf:type ?e } } } . FILTER ( ?t > ?z ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
64
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q843 Q1029 Q227 Q224 Q222 Q229 Q347 Q17 Q1033 Q1030 Q298 Q115 Q114 Q212 Q213 Q215 Q916 Q79 Q77 Q878 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q225
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m property:P530 resource:Q225 . { VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?m rdf:type ?e } } } . FILTER ( ?t > ?z ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Pakistan Mozambique Azerbaijan Croatia Albania Cyprus Liechtenstein Japan Nigeria Namibia Chile Ethiopia Kenya Ukraine Czech Republic Slovenia Angola Egypt Uruguay United Arab Emirates Jordan Libya Cape Verde Spain Zambia
64
action count
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Bosnia and Herzegovina
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m property:diplomatic_relation resource:Bosnia_and_Herzegovina . { VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?m rdf:type ?e } } } . FILTER ( ?t > ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q227
P530
Q15617994 Q15617994 Q1048835
USER
And what about Azerbaijan?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q227
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P530 resource:Q227 . { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?a > ?y ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?a ) WHERE { { ?i rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?v property:P530 ?i } UNION { ?v property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?i } }
Azerbaijan
action count
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Azerbaijan
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:diplomatic_relation resource:Azerbaijan . { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?a > ?y ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?a ) WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?i } UNION { ?v property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?i } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
47
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q27 Q843 Q222 Q347 Q17 Q1033 Q115 Q114 Q212 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q227
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P530 resource:Q227 . { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?a > ?y ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?a ) WHERE { { ?i rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?v property:P530 ?i } UNION { ?v property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?i } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Belgium United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Ireland Pakistan Albania Liechtenstein Japan Nigeria Ethiopia Kenya Ukraine Czech Republic Angola Egypt Libya Cape Verde Zambia
47
action count
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Azerbaijan
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:diplomatic_relation resource:Azerbaijan . { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?a > ?y ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?a ) WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?i } UNION { ?v property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?i } }
[]