Simple Question (Direct)
Simple Question
Q1747275
P86
Q502895
USER
Which person composed Not on Your Life ?
(Q1747275,P86,c(Q502895))
action filter_type
action find
entity Q1747275
relation P86
type Q502895
['Q1747275', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q1747275 property:P86 ?h . ?h rdf:type ontology:Q502895 }
Not on Your Life
action filter_type
action find
entity Not on Your Life
relation composer
type common name
['Not on Your Life', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Not_on_Your_Life property:composer ?h . ?h rdf:type ontology:common_name }
[]
common name
Q1347696
SYSTEM
Miquel Asins Arbó
Q1347696
(Q1747275,P86,c(Q502895))
action filter_type
action find
entity Q1747275
relation P86
type Q502895
[ANSWER] composed Not on Your Life
['Q1747275', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q1747275 property:P86 ?h . ?h rdf:type ontology:Q502895 }
Miquel Asins Arbó
Miquel Asins Arbó composed Not on Your Life
Miquel Asins Arbó
action filter_type
action find
entity Not on Your Life
relation composer
type common name
['Not on Your Life', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Not_on_Your_Life property:composer ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1747275
P344
Q502895
USER
Who is the cinematographer of Not on Your Life ?
(Q1747275,P344,c(Q502895))
action filter_type
action find
entity Q1747275
relation P344
type Q502895
['Q1747275', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1747275 property:P344 ?a . ?a rdf:type ontology:Q502895 }
Not on Your Life
action filter_type
action find
entity Not on Your Life
relation director of photography
type common name
['Not on Your Life', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Not_on_Your_Life property:director_of_photography ?a . ?a rdf:type ontology:common_name }
[]
common name
Q1567717
SYSTEM
Tonino Delli Colli
Q1567717
(Q1747275,P344,c(Q502895))
action filter_type
action find
entity Q1747275
relation P344
type Q502895
The cinematographer of Not on Your Life is born [ANSWER]
['Q1747275', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1747275 property:P344 ?a . ?a rdf:type ontology:Q502895 }
Tonino Delli Colli
The cinematographer of Not on Your Life is born Tonino Delli Colli
Tonino Delli Colli
action filter_type
action find
entity Not on Your Life
relation director of photography
type common name
['Not on Your Life', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Not_on_Your_Life property:director_of_photography ?a . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1567717 Q12152
P509
Q2057971
USER
Was myocardial infarction the cause of death of Tonino Delli Colli ?
(Q1567717,P509,Q12152)
action is_in
entity Q12152
action find
entity Q1567717
relation P509
['Q1567717', 'P509', 'Q12152']
ASK WHERE { resource:Q1567717 property:P509 resource:Q12152 }
Tonino Delli Colli myocardial infarction
action is_in
entity myocardial infarction
action find
entity Tonino Delli Colli
relation cause of death
['Tonino Delli Colli', 'cause of death', 'myocardial infarction']
ASK WHERE { resource:Tonino_Delli_Colli property:cause_of_death resource:myocardial_infarction }
[]
health problem
SYSTEM
YES
(Q1567717,P509,Q12152)
action is_in
entity Q12152
action find
entity Q1567717
relation P509
[ANSWER]
['Q1567717', 'P509', 'Q12152']
ASK WHERE { resource:Q1567717 property:P509 resource:Q12152 }
Yes
action is_in
entity myocardial infarction
action find
entity Tonino Delli Colli
relation cause of death
['Tonino Delli Colli', 'cause of death', 'myocardial infarction']
ASK WHERE { resource:Tonino_Delli_Colli property:cause_of_death resource:myocardial_infarction }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16943802 Q1747275
P20 P495
Q15617994
USER
Which administrative territories are the origin of Not on Your Life or did the demise of Luigi Tassinari occur ?
OR((Q1747275,P495,c(Q15617994)), (Q16943802,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q1747275
relation P495
action find
entity Q16943802
relation P20
type Q15617994
{'OR': [['Q1747275', 'P495', {'concept': 'Q15617994'}], ['Q16943802', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1747275 property:P495 ?m } UNION { resource:Q16943802 property:P20 ?m } } . ?m rdf:type ontology:Q15617994 }
Luigi Tassinari Not on Your Life
action filter_type
action union
action find
entity Not on Your Life
relation country of origin
action find
entity Luigi Tassinari
relation place of death
type designation for an administrative territorial entity
{'OR': [['Not on Your Life', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Luigi Tassinari', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Not_on_Your_Life property:country_of_origin ?m } UNION { resource:Luigi_Tassinari property:place_of_death ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q38 Q52089
SYSTEM
Spain, Italy, Montevarchi
Q29 Q38 Q52089
OR((Q1747275,P495,c(Q15617994)), (Q16943802,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q1747275
relation P495
action find
entity Q16943802
relation P20
type Q15617994
[ANSWERS] are the origin of Not on Your Life or did the demise of Luigi Tassinari occur
{'OR': [['Q1747275', 'P495', {'concept': 'Q15617994'}], ['Q16943802', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1747275 property:P495 ?m } UNION { resource:Q16943802 property:P20 ?m } } . ?m rdf:type ontology:Q15617994 }
Spain Italy Montevarchi
Spain, Italy and Montevarchi are the origin of Not on Your Life or did the demise of Luigi Tassinari occur
Spain Italy Montevarchi
action filter_type
action union
action find
entity Not on Your Life
relation country of origin
action find
entity Luigi Tassinari
relation place of death
type designation for an administrative territorial entity
{'OR': [['Not on Your Life', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Luigi Tassinari', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Not_on_Your_Life property:country_of_origin ?m } UNION { resource:Luigi_Tassinari property:place_of_death ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?i ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?c ) WHERE { ?g property:P530 ?r . ?g rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?g } } . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?t ) WHERE { ?a property:P530 ?d . ?a rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?t = ?i ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?i ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?c ) WHERE { ?g property:diplomatic_relation ?r . ?g rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } } . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?t ) 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 } . FILTER ( ?t = ?i ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?i ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?c ) WHERE { ?g property:P530 ?r . ?g rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?g } } . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?t ) WHERE { ?a property:P530 ?d . ?a rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?t = ?i ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have diplomatic relationships with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?i ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?c ) WHERE { ?g property:diplomatic_relation ?r . ?g rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } } . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?t ) 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 } . FILTER ( ?t = ?i ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13463041 Q38
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Italy or are the countries of citizenship of Chiel Montagne ?
OR((Q38,P530,c(Q15617994)), (Q13463041,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q13463041
relation P27
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q13463041', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q38 property:P530 ?t } UNION { resource:Q13463041 property:P27 ?t } } }
Chiel Montagne Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Chiel Montagne
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Chiel Montagne', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Italy property:diplomatic_relation ?t } UNION { resource:Chiel_Montagne property:country_of_citizenship ?t } } }
[]
designation for an administrative territorial entity
Q191 Q27 Q79 Q20 Q219 Q236 Q801 Q34 Q77 Q148
SYSTEM
Some of them are Estonia, Ireland, Egypt, Norway, Bulgaria, Montenegro, Israel, Sweden, Uruguay, People's Republic of China
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q29999 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q13463041,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q13463041
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with Italy or are the countries of citizenship of Chiel Montagne
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q13463041', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q38 property:P530 ?t } UNION { resource:Q13463041 property:P27 ?t } } }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Kingdom of the Netherlands Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Estonia, Ireland, Egypt, Norway, Bulgaria, Montenegro, Israel, Sweden, Uruguay and People's Republic of China have diplomatic relationships with Italy or are the countries of citizenship of Chiel Montagne
Estonia Ireland Egypt Norway Bulgaria Montenegro Israel Sweden Uruguay People's Republic of China
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Chiel Montagne
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Chiel Montagne', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Italy property:diplomatic_relation ?t } UNION { resource:Chiel_Montagne property:country_of_citizenship ?t } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Are Italy known to have diplomatic connections with those ones ?
(Q38,P530,Q191) (Q38,P530,Q27) (Q38,P530,Q79) (Q38,P530,Q20) (Q38,P530,Q219) (Q38,P530,Q236) (Q38,P530,Q801) (Q38,P530,Q34) (Q38,P530,Q77) (Q38,P530,Q148)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q191'] ['Q38', 'P530', 'Q27'] ['Q38', 'P530', 'Q79'] ['Q38', 'P530', 'Q20'] ['Q38', 'P530', 'Q219'] ['Q38', 'P530', 'Q236'] ['Q38', 'P530', 'Q801'] ['Q38', 'P530', 'Q34'] ['Q38', 'P530', 'Q77'] ['Q38', 'P530', 'Q148']
ASK WHERE { resource:Q38 property:P530 ?p . VALUES ( ?p ) { ( resource:Q805 ) ( resource:Q219 ) ( resource:Q869 ) } }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Estonia'] ['Italy', 'diplomatic relation', 'Ireland'] ['Italy', 'diplomatic relation', 'Egypt'] ['Italy', 'diplomatic relation', 'Norway'] ['Italy', 'diplomatic relation', 'Bulgaria'] ['Italy', 'diplomatic relation', 'Montenegro'] ['Italy', 'diplomatic relation', 'Israel'] ['Italy', 'diplomatic relation', 'Sweden'] ['Italy', 'diplomatic relation', 'Uruguay'] ['Italy', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:Italy property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Yemen ) ( resource:Bulgaria ) ( resource:Thailand ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q191) (Q38,P530,Q27) (Q38,P530,Q79) (Q38,P530,Q20) (Q38,P530,Q219) (Q38,P530,Q236) (Q38,P530,Q801) (Q38,P530,Q34) (Q38,P530,Q77) (Q38,P530,Q148)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q191'] ['Q38', 'P530', 'Q27'] ['Q38', 'P530', 'Q79'] ['Q38', 'P530', 'Q20'] ['Q38', 'P530', 'Q219'] ['Q38', 'P530', 'Q236'] ['Q38', 'P530', 'Q801'] ['Q38', 'P530', 'Q34'] ['Q38', 'P530', 'Q77'] ['Q38', 'P530', 'Q148']
ASK WHERE { resource:Q38 property:P530 ?p . VALUES ( ?p ) { ( resource:Q805 ) ( resource:Q219 ) ( resource:Q869 ) } }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Estonia'] ['Italy', 'diplomatic relation', 'Ireland'] ['Italy', 'diplomatic relation', 'Egypt'] ['Italy', 'diplomatic relation', 'Norway'] ['Italy', 'diplomatic relation', 'Bulgaria'] ['Italy', 'diplomatic relation', 'Montenegro'] ['Italy', 'diplomatic relation', 'Israel'] ['Italy', 'diplomatic relation', 'Sweden'] ['Italy', 'diplomatic relation', 'Uruguay'] ['Italy', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:Italy property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Yemen ) ( resource:Bulgaria ) ( resource:Thailand ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q52089 Q5776
P190
Q56061
USER
Is Bethlehem twin city of Montevarchi ?
(Q52089,P190,Q5776)
action is_in
entity Q5776
action find
entity Q52089
relation P190
['Q52089', 'P190', 'Q5776']
ASK WHERE { resource:Q52089 property:P190 resource:Q5776 }
Montevarchi Bethlehem
action is_in
entity Bethlehem
action find
entity Montevarchi
relation sister city
['Montevarchi', 'sister city', 'Bethlehem']
ASK WHERE { resource:Montevarchi property:sister_city resource:Bethlehem }
[]
administrative territorial entity
SYSTEM
YES
(Q52089,P190,Q5776)
action is_in
entity Q5776
action find
entity Q52089
relation P190
[ANSWER]
['Q52089', 'P190', 'Q5776']
ASK WHERE { resource:Q52089 property:P190 resource:Q5776 }
Yes
action is_in
entity Bethlehem
action find
entity Montevarchi
relation sister city
['Montevarchi', 'sister city', 'Bethlehem']
ASK WHERE { resource:Montevarchi property:sister_city resource:Bethlehem }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q98885 Q148
P530 P27
Q1048835
USER
Which political territories have a diplomatic relationship with People's Republic of China and are not the countries of citizenship of Maike Kohl-Richter ?
AND((Q148,P530,c(Q1048835)), NOT((Q98885,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q148
relation P530
action find
entity Q98885
relation P27
type Q1048835
{'AND': [['Q148', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q98885', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . FILTER NOT EXISTS { resource:Q98885 property:P27 ?t } . resource:Q148 property:P530 ?t }
Maike Kohl-Richter People's Republic of China
action filter_type
action difference
action find
entity People's Republic of China
relation diplomatic relation
action find
entity Maike Kohl-Richter
relation country of citizenship
type political territorial entity
{'AND': [["People's Republic of China", 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Maike Kohl-Richter', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . FILTER NOT EXISTS { resource:Maike_Kohl-Richter property:country_of_citizenship ?t } . resource:People's_Republic_of_China property:diplomatic_relation ?t }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q148,P530,c(Q1048835)), NOT((Q98885,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q148
relation P530
action find
entity Q98885
relation P27
type Q1048835
[ANSWER] have a diplomatic relationship with People's Republic of China and are not the countries of citizenship of Maike Kohl-Richter
{'AND': [['Q148', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q98885', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . FILTER NOT EXISTS { resource:Q98885 property:P27 ?t } . resource:Q148 property:P530 ?t }
Australia
Australia have a diplomatic relationship with People's Republic of China and are not the countries of citizenship of Maike Kohl-Richter
Australia
action filter_type
action difference
action find
entity People's Republic of China
relation diplomatic relation
action find
entity Maike Kohl-Richter
relation country of citizenship
type political territorial entity
{'AND': [["People's Republic of China", 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Maike Kohl-Richter', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . FILTER NOT EXISTS { resource:Maike_Kohl-Richter property:country_of_citizenship ?t } . resource:People's_Republic_of_China property:diplomatic_relation ?t }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
How many political territories have diplomatic relations with atleast 25 political territories or administrative territories ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action count
action atleast
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 25
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?w >= 25 ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?k WHERE { { ?k property:P530 ?q . ?k rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } UNION { ?k property:P530 ?q . ?k rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?k } }
action count
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?w >= 25 ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?k WHERE { { ?k property:diplomatic_relation ?q . ?k rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } UNION { ?k property:diplomatic_relation ?q . ?k rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?k } }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
3
Q183 Q408 Q16
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action count
action atleast
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 25
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?w >= 25 ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?k WHERE { { ?k property:P530 ?q . ?k rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } UNION { ?k property:P530 ?q . ?k rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?k } }
Germany Australia Canada
3
action count
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?w >= 25 ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?k WHERE { { ?k property:diplomatic_relation ?q . ?k rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } UNION { ?k property:diplomatic_relation ?q . ?k rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?k } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q189
P530
Q15617994 Q1048835
USER
How many administrative territories have a diplomatic relationship with greater number of political territories than Iceland ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q189
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Q189 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?p ) . { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?f ) WHERE { ?t property:P530 ?i . ?t rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?t } }
Iceland
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Iceland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Iceland property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?p ) . { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?f ) WHERE { ?t property:diplomatic_relation ?i . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?t } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
82
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q189
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Q189 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?p ) . { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?f ) WHERE { ?t property:P530 ?i . ?t rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?t } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
82
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Iceland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Iceland property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?p ) . { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?f ) WHERE { ?t property:diplomatic_relation ?i . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?t } }
[]