Simple Question (Direct)
Simple Question
Q4772867
P344
Q502895
USER
Which person is the cinematographer of Anthony Kaun Hai? ?
(Q4772867,P344,c(Q502895))
action filter_type
action find
entity Q4772867
relation P344
type Q502895
['Q4772867', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q4772867 property:P344 ?h }
Anthony Kaun Hai?
action filter_type
action find
entity Anthony Kaun Hai?
relation director of photography
type common name
['Anthony Kaun Hai?', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Anthony_Kaun_Hai? property:director_of_photography ?h }
[]
common name
Q7312034
SYSTEM
Remo D'Souza
Q7312034
(Q4772867,P344,c(Q502895))
action filter_type
action find
entity Q4772867
relation P344
type Q502895
[ANSWER] is the cinematographer of Anthony Kaun Hai
['Q4772867', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q4772867 property:P344 ?h }
Remo D'Souza
Remo D'Souza is the cinematographer of Anthony Kaun Hai
Remo D'Souza
action filter_type
action find
entity Anthony Kaun Hai?
relation director of photography
type common name
['Anthony Kaun Hai?', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Anthony_Kaun_Hai? property:director_of_photography ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4772867
P86
Q502895
USER
Who wrote the music for Anthony Kaun Hai? ?
(Q4772867,P86,c(Q502895))
action filter_type
action find
entity Q4772867
relation P86
type Q502895
['Q4772867', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q4772867 property:P86 ?n . ?n rdf:type ontology:Q502895 }
Anthony Kaun Hai?
action filter_type
action find
entity Anthony Kaun Hai?
relation composer
type common name
['Anthony Kaun Hai?', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Anthony_Kaun_Hai? property:composer ?n . ?n rdf:type ontology:common_name }
[]
common name
Q1395430
SYSTEM
Himesh Reshammiya
Q1395430
(Q4772867,P86,c(Q502895))
action filter_type
action find
entity Q4772867
relation P86
type Q502895
[ANSWER] wrote the music for Anthony Kaun Hai
['Q4772867', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q4772867 property:P86 ?n . ?n rdf:type ontology:Q502895 }
Himesh Reshammiya
Himesh Reshammiya wrote the music for Anthony Kaun Hai
Himesh Reshammiya
action filter_type
action find
entity Anthony Kaun Hai?
relation composer
type common name
['Anthony Kaun Hai?', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Anthony_Kaun_Hai? property:composer ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4772867
P495
Q15617994
USER
What is the country of origin of that work of art ?
(Q1395430,P495,c(Q15617994))
action filter_type
action find
entity Q4772867
relation P495
type Q15617994
['Q1395430', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q4772867 property:P495 ?k . ?k rdf:type ontology:Q15617994 }
Anthony Kaun Hai?
action filter_type
action find
entity Anthony Kaun Hai?
relation country of origin
type designation for an administrative territorial entity
['Himesh Reshammiya', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Anthony_Kaun_Hai? property:country_of_origin ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q1395430,P495,c(Q15617994))
action filter_type
action find
entity Q4772867
relation P495
type Q15617994
The country of origin of that work of art is from [ANSWER]
['Q1395430', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q4772867 property:P495 ?k . ?k rdf:type ontology:Q15617994 }
India
The country of origin of that work of art is from India
India
action filter_type
action find
entity Anthony Kaun Hai?
relation country of origin
type designation for an administrative territorial entity
['Himesh Reshammiya', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Anthony_Kaun_Hai? property:country_of_origin ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?g ) { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?k ) WHERE { ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?f property:P530 ?v } GROUP BY ?f } } . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 . ?y property:P530 ?x } GROUP BY ?y } . FILTER ( ?w = ?g ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?g ) { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?k ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:diplomatic_relation ?v } GROUP BY ?f } } . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?x } GROUP BY ?y } . FILTER ( ?w = ?g ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] hold diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?g ) { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?k ) WHERE { ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?f property:P530 ?v } GROUP BY ?f } } . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 . ?y property:P530 ?x } GROUP BY ?y } . FILTER ( ?w = ?g ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan hold diplomatic relationship with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?g ) { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?k ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:diplomatic_relation ?v } GROUP BY ?f } } . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?x } GROUP BY ?y } . FILTER ( ?w = ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q766
P530
Q15617994 Q1048835
USER
How many political territories have tactful political relations with greater number of administrative territories than Jamaica ?
(c(Q1048835),P530,c(Q15617994))
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': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?i ) WHERE { ?x property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?i > ?d ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { resource:Q766 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } }
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': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?i ) WHERE { ?x property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?i > ?d ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { resource:Jamaica property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q15617994))
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': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?i ) WHERE { ?x property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?i > ?d ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { resource:Q766 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } }
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': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?i ) WHERE { ?x property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?i > ?d ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { resource:Jamaica property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q781
P530
Q15617994 Q1048835
USER
And what about Antigua and Barbuda?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?x ) WHERE { ?t rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?t property:P530 ?h } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Q781 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?b ) }
Antigua and Barbuda
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 Antigua and Barbuda
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 ?w ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?x ) WHERE { ?t rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?h } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?b ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?x ) WHERE { ?t rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?t property:P530 ?h } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Q781 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?b ) }
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 Antigua and Barbuda
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 ?w ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?x ) WHERE { ?t rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?h } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q225
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with approximately the same number of administrative territories as Bosnia and Herzegovina ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q225
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q225 property:P530 ?q } } . FILTER ( ?o = ?m ) }
Bosnia and Herzegovina
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bosnia and Herzegovina
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bosnia_and_Herzegovina property:diplomatic_relation ?q } } . FILTER ( ?o = ?m ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
154
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q225
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q225 property:P530 ?q } } . FILTER ( ?o = ?m ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
154
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bosnia and Herzegovina
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bosnia_and_Herzegovina property:diplomatic_relation ?q } } . FILTER ( ?o = ?m ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q232
P463
Q43229 Q484652
USER
How many organizations or international organizations were Kazakhstan a member of ?
(Q232,P463,c(Q43229)) (Q232,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q232
relation P463
type Q43229
action filter_type
action find
entity Q232
relation P463
type Q484652
['Q232', 'P463', {'concept': 'Q43229'}] ['Q232', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { ?e rdf:type ontology:Q484652 . resource:Q232 property:P463 ?e } UNION { resource:Q232 property:P463 ?e . ?e rdf:type ontology:Q43229 } }
Kazakhstan
action count
action union
action filter_type
action find
entity Kazakhstan
relation member of
type organization
action filter_type
action find
entity Kazakhstan
relation member of
type international organization
['Kazakhstan', 'member of', {'concept': 'organization'}] ['Kazakhstan', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { ?e rdf:type ontology:international_organization . resource:Kazakhstan property:member_of ?e } UNION { resource:Kazakhstan property:member_of ?e . ?e rdf:type ontology:organization } }
[]
organization international organization
SYSTEM
10
Q81299 Q485207 Q656801 Q899770 Q191384 Q1043527 Q1065 Q188822 Q7779 Q827525
(Q232,P463,c(Q43229)) (Q232,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q232
relation P463
type Q43229
action filter_type
action find
entity Q232
relation P463
type Q484652
[ANSWER]
['Q232', 'P463', {'concept': 'Q43229'}] ['Q232', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { ?e rdf:type ontology:Q484652 . resource:Q232 property:P463 ?e } UNION { resource:Q232 property:P463 ?e . ?e rdf:type ontology:Q43229 } }
Organization for Security and Co-operation in Europe Shanghai Cooperation Organisation International Finance Corporation International Centre for Settlement of Investment Disputes International Bank for Reconstruction and Development Multilateral Investment Guarantee Agency United Nations Asian Development Bank Commonwealth of Independent States International Development Association
10
action count
action union
action filter_type
action find
entity Kazakhstan
relation member of
type organization
action filter_type
action find
entity Kazakhstan
relation member of
type international organization
['Kazakhstan', 'member of', {'concept': 'organization'}] ['Kazakhstan', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { ?e rdf:type ontology:international_organization . resource:Kazakhstan property:member_of ?e } UNION { resource:Kazakhstan property:member_of ?e . ?e rdf:type ontology:organization } }
[]