Simple Question (Direct)
Simple Question
Q16488222
P21
Q290
USER
What is the sex of Aleksandr Altman ?
(Q16488222,P21,c(Q290))
action filter_type
action find
entity Q16488222
relation P21
type Q290
['Q16488222', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q16488222 property:P21 ?j . ?j rdf:type ontology:Q290 }
Aleksandr Altman
action filter_type
action find
entity Aleksandr Altman
relation gender
type sex
['Aleksandr Altman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Aleksandr_Altman property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16488222,P21,c(Q290))
action filter_type
action find
entity Q16488222
relation P21
type Q290
The sex of Aleksandr Altman is a [ANSWER]
['Q16488222', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q16488222 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
The sex of Aleksandr Altman is a male
male
action filter_type
action find
entity Aleksandr Altman
relation gender
type sex
['Aleksandr Altman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Aleksandr_Altman property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16488222
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q16488222
relation P20
type Q56061
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q16488222 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Aleksandr Altman
action filter_type
action find
entity Aleksandr Altman
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Aleksandr_Altman property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q16488222
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q16488222 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Moscow
Moscow is the place of death of that person
Moscow
action filter_type
action find
entity Aleksandr Altman
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Aleksandr_Altman property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6581097
P180
Q3305213 Q340169
USER
How many paintings or medias depict male ?
(c(Q3305213),P180,Q6581097) (c(Q340169),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
[{'concept': 'Q3305213'}, 'P180', 'Q6581097'] [{'concept': 'Q340169'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?m ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } . ?u rdf:type ?m }
male
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type painting
action filter_type
action find_reverse
entity male
relation depicts
type media
[{'concept': 'painting'}, 'depicts', 'male'] [{'concept': 'media'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?m ) { ( ontology:painting ) ( ontology:media ) } . ?u rdf:type ?m }
[]
painting media
SYSTEM
2
Q20020115 Q18713957
(c(Q3305213),P180,Q6581097) (c(Q340169),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', 'Q6581097'] [{'concept': 'Q340169'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?m ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } . ?u rdf:type ?m }
Portrait of a Young Man Raja Surendra Vikram Shah at the age of 15 with his prime minister
2
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type painting
action filter_type
action find_reverse
entity male
relation depicts
type media
[{'concept': 'painting'}, 'depicts', 'male'] [{'concept': 'media'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?m ) { ( ontology:painting ) ( ontology:media ) } . ?u rdf:type ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P609
Q83620
USER
Which thoroughfare is Moscow a terminus location of ?
(c(Q83620),P609,Q649)
action filter_type
action find_reverse
entity Q649
relation P609
type Q83620
[{'concept': 'Q83620'}, 'P609', 'Q649']
SELECT DISTINCT ?b WHERE { ?b property:P609 resource:Q649 . ?b rdf:type ontology:Q83620 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Moscow']
SELECT DISTINCT ?b WHERE { ?b property:terminus_location resource:Moscow . ?b rdf:type ontology:thoroughfare }
[]
thoroughfare
Q3060534
SYSTEM
EV2 The Capitals Route
Q3060534
(c(Q83620),P609,Q649)
action filter_type
action find_reverse
entity Q649
relation P609
type Q83620
Which thoroughfare is Moscow a terminus location of
[{'concept': 'Q83620'}, 'P609', 'Q649']
SELECT DISTINCT ?b WHERE { ?b property:P609 resource:Q649 . ?b rdf:type ontology:Q83620 }
EV2 The Capitals Route
Which thoroughfare is Moscow a terminus location of
EV2 The Capitals Route
action filter_type
action find_reverse
entity Moscow
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Moscow']
SELECT DISTINCT ?b WHERE { ?b property:terminus_location resource:Moscow . ?b rdf:type ontology:thoroughfare }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P1071
Q15416
USER
Which television program has Moscow as its location of final assembly ?
(c(Q15416),P1071,Q649)
action filter_type
action find_reverse
entity Q649
relation P1071
type Q15416
[{'concept': 'Q15416'}, 'P1071', 'Q649']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15416 . ?m property:P1071 resource:Q649 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation location of final assembly
type television program
[{'concept': 'television program'}, 'location of final assembly', 'Moscow']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:television_program . ?m property:location_of_final_assembly resource:Moscow }
[]
television program
Q5188227
SYSTEM
CrossTalk
Q5188227
(c(Q15416),P1071,Q649)
action filter_type
action find_reverse
entity Q649
relation P1071
type Q15416
[ANSWER] has Moscow as its location of final assembly
[{'concept': 'Q15416'}, 'P1071', 'Q649']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15416 . ?m property:P1071 resource:Q649 }
CrossTalk
CrossTalk has Moscow as its location of final assembly
CrossTalk
action filter_type
action find_reverse
entity Moscow
relation location of final assembly
type television program
[{'concept': 'television program'}, 'location of final assembly', 'Moscow']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:television_program . ?m property:location_of_final_assembly resource:Moscow }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P355
Q43229
USER
Which organization contains Moscow as its subordinate ?
(c(Q43229),P355,Q649)
action filter_type
action find_reverse
entity Q649
relation P355
type Q43229
[{'concept': 'Q43229'}, 'P355', 'Q649']
SELECT DISTINCT ?m WHERE { ?m property:P355 resource:Q649 . ?m rdf:type ontology:Q43229 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation subsidiary
type organization
[{'concept': 'organization'}, 'subsidiary', 'Moscow']
SELECT DISTINCT ?m WHERE { ?m property:subsidiary resource:Moscow . ?m rdf:type ontology:organization }
[]
organization
Q17142365
SYSTEM
Infobip
Q17142365
(c(Q43229),P355,Q649)
action filter_type
action find_reverse
entity Q649
relation P355
type Q43229
[ANSWER] contains Moscow as its subordinate
[{'concept': 'Q43229'}, 'P355', 'Q649']
SELECT DISTINCT ?m WHERE { ?m property:P355 resource:Q649 . ?m rdf:type ontology:Q43229 }
Infobip
Infobip contains Moscow as its subordinate
Infobip
action filter_type
action find_reverse
entity Moscow
relation subsidiary
type organization
[{'concept': 'organization'}, 'subsidiary', 'Moscow']
SELECT DISTINCT ?m WHERE { ?m property:subsidiary resource:Moscow . ?m rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17142365
P112
Q502895
USER
Who were the founders of that organization ?
(Q17142365,P112,c(Q502895))
action filter_type
action find
entity Q17142365
relation P112
type Q502895
['Q17142365', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q17142365 property:P112 ?l }
Infobip
action filter_type
action find
entity Infobip
relation founder
type common name
['Infobip', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Infobip property:founder ?l }
[]
common name
Q21096194 Q21096195
SYSTEM
Silvio Kutic, Izabel Jelenic
Q21096194 Q21096195
(Q17142365,P112,c(Q502895))
action filter_type
action find
entity Q17142365
relation P112
type Q502895
The founders of that organization were brothers [ANSWERS]
['Q17142365', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q17142365 property:P112 ?l }
Silvio Kutic Izabel Jelenic
The founders of that organization were brothers Silvio Kutic and Izabel Jelenic
Silvio Kutic Izabel Jelenic
action filter_type
action find
entity Infobip
relation founder
type common name
['Infobip', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Infobip property:founder ?l }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 2881 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2881
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { FILTER ( ?l >= 2881 ) . { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?l ) WHERE { ?g property:P1303 ?n . ?g rdf:type ontology:Q502895 . ?n rdf:type ontology:Q34379 } GROUP BY ?n } }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2881
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { FILTER ( ?l >= 2881 ) . { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?l ) WHERE { ?g property:instrument ?n . ?g rdf:type ontology:common_name . ?n rdf:type ontology:musical_instrument } GROUP BY ?n } }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2881
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { FILTER ( ?l >= 2881 ) . { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?l ) WHERE { ?g property:P1303 ?n . ?g rdf:type ontology:Q502895 . ?n rdf:type ontology:Q34379 } GROUP BY ?n } }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2881
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { FILTER ( ?l >= 2881 ) . { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?l ) WHERE { ?g property:instrument ?n . ?g rdf:type ontology:common_name . ?n rdf:type ontology:musical_instrument } GROUP BY ?n } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2828131 Q16488222
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Aleksandr Altman or are Ain Dara, Lebanon present in ?
OR((Q16488222,P27,c(Q15617994)), (Q2828131,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16488222
relation P27
action find
entity Q2828131
relation P17
type Q15617994
{'OR': [['Q16488222', 'P27', {'concept': 'Q15617994'}], ['Q2828131', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q2828131 property:P17 ?y } UNION { resource:Q16488222 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Ain Dara, Lebanon Aleksandr Altman
action filter_type
action union
action find
entity Aleksandr Altman
relation country of citizenship
action find
entity Ain Dara, Lebanon
relation country
type designation for an administrative territorial entity
{'OR': [['Aleksandr Altman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ain Dara, Lebanon', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Ain_Dara,_Lebanon property:country ?y } UNION { resource:Aleksandr_Altman property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q822
SYSTEM
Russia, Lebanon
Q159 Q822
OR((Q16488222,P27,c(Q15617994)), (Q2828131,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16488222
relation P27
action find
entity Q2828131
relation P17
type Q15617994
[ANSWERS] are the native countriesof Aleksandr Altman or are Ain Dara, Lebanon present in
{'OR': [['Q16488222', 'P27', {'concept': 'Q15617994'}], ['Q2828131', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q2828131 property:P17 ?y } UNION { resource:Q16488222 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Russia Lebanon
Russia and Lebanon are the native countriesof Aleksandr Altman or are Ain Dara, Lebanon present in
Russia Lebanon
action filter_type
action union
action find
entity Aleksandr Altman
relation country of citizenship
action find
entity Ain Dara, Lebanon
relation country
type designation for an administrative territorial entity
{'OR': [['Aleksandr Altman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ain Dara, Lebanon', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Ain_Dara,_Lebanon property:country ?y } UNION { resource:Aleksandr_Altman property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories have diplomatic relationships with that administrative territory ?
(Q159,P530,c(Q15617994))
['Q159', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24058892 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Russia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q822
SYSTEM
Did you mean Lebanon ?
(Q159,P530,c(Q15617994)) (Q822,P530,c(Q15617994))
[ANSWER]
['Q159', 'P530', {'concept': 'Q15617994'}] ['Q822', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24058892 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Lebanon ?
Lebanon
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Lebanon', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Russia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Russia. Could you tell me the answer for that?
(Q159,P530,c(Q15617994))
Q159
['Q159', 'P530', {'concept': 'Q15617994'}]
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
19
Q805 Q801 Q241 Q668 Q414 Q142 Q148 Q17 Q30 Q79 Q38 Q711 Q717 Q1011 Q403 Q43 Q155 Q953 Q881
(Q159,P530,c(Q15617994))
[ANSWER]
['Q159', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24058892 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Yemen Israel Cuba India Argentina France People's Republic of China Japan United States of America Egypt Italy Mongolia Venezuela Cape Verde Serbia Turkey Brazil Zambia Vietnam
19
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Russia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with exactly 2 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action equal
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 2
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?l = 2 ) }
action equal
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?l = 2 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q184
SYSTEM
Georgia, Netherlands, Belarus
Q800 Q419 Q55 Q717 Q398 Q958 Q33 Q924 Q983 Q733 Q734 Q236 Q230 Q233 Q28 Q189 Q184 Q1029 Q736 Q225 Q221 Q96 Q229 Q902 Q1030 Q191 Q963 Q750 Q217 Q214 Q219 Q1009 Q1008 Q971 Q874 Q77 Q858 Q878 Q869
(c(Q15617994),P530,c(Q15617994))
action equal
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 2
[ANSWERS] have a diplomatic relationship with exactly 2 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?l = 2 ) }
Costa Rica Peru Netherlands Venezuela Bahrain South Sudan Finland Tanzania Equatorial Guinea Paraguay Guyana Montenegro Georgia Malta Hungary Iceland Belarus Mozambique Ecuador Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Namibia Estonia Botswana Bolivia Republic of Moldova Slovakia Bulgaria Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Uruguay Syria United Arab Emirates Thailand
Georgia, Netherlands and Belarus have a diplomatic relationship with exactly 2 administrative territories
Georgia Netherlands Belarus
action equal
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?l = 2 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q212
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with lesser number of administrative territories than Ukraine ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q212
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?y ) WHERE { ?q rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?e property:P530 ?q } GROUP BY ?q } . FILTER ( ?y < ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q212 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } }
Ukraine
action less
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 Ukraine
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 ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?y ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?q } GROUP BY ?q } . FILTER ( ?y < ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Ukraine property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q184
SYSTEM
Georgia, Netherlands, Belarus
Q702 Q804 Q800 Q419 Q55 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q225 Q221 Q96 Q229 Q902 Q1036 Q1037 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q212
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with lesser number of administrative territories than Ukraine
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?y ) WHERE { ?q rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?e property:P530 ?q } GROUP BY ?q } . FILTER ( ?y < ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q212 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
Georgia, Netherlands and Belarus have diplomatic relationships with lesser number of administrative territories than Ukraine
Georgia Netherlands Belarus
action less
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 Ukraine
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 ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?y ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?q } GROUP BY ?q } . FILTER ( ?y < ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Ukraine property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q217
P530
Q15617994 Q15617994
USER
And what about Republic of Moldova?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q217
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P530 resource:Q217 . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?h < ?a ) . { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:P530 ?z . ?i rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } }
Republic of Moldova
action less
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_reverse
entity Republic of Moldova
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 ?z WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:diplomatic_relation resource:Republic_of_Moldova . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h < ?a ) . { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:diplomatic_relation ?z . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q218 Q20 Q948
SYSTEM
Romania, Norway, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q217
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P530 resource:Q217 . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?h < ?a ) . { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:P530 ?z . ?i rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Romania Norway Tunisia
action less
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_reverse
entity Republic of Moldova
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 ?z WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:diplomatic_relation resource:Republic_of_Moldova . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h < ?a ) . { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:diplomatic_relation ?z . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4097844
P530
Q1048835
USER
Do Buzke have ambassadorial relations with those administrative territories ?
(Q4097844,P530,Q218) (Q4097844,P530,Q20) (Q4097844,P530,Q948)
action is_in
entity prev_answer
action find
entity Q4097844
relation P530
['Q4097844', 'P530', 'Q218'] ['Q4097844', 'P530', 'Q20'] ['Q4097844', 'P530', 'Q948']
ASK WHERE { resource:Q4097844 property:P530 ?t . VALUES ( ?t ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q783 ) } }
Buzke
action is_in
entity prev_answer
action find
entity Buzke
relation diplomatic relation
['Buzke', 'diplomatic relation', 'Romania'] ['Buzke', 'diplomatic relation', 'Norway'] ['Buzke', 'diplomatic relation', 'Tunisia']
ASK WHERE { resource:Buzke property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Honduras ) } }
[]
political territorial entity
SYSTEM
NO
(Q4097844,P530,Q218) (Q4097844,P530,Q20) (Q4097844,P530,Q948)
action is_in
entity prev_answer
action find
entity Q4097844
relation P530
[ANSWER]
['Q4097844', 'P530', 'Q218'] ['Q4097844', 'P530', 'Q20'] ['Q4097844', 'P530', 'Q948']
ASK WHERE { resource:Q4097844 property:P530 ?t . VALUES ( ?t ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q783 ) } }
No
action is_in
entity prev_answer
action find
entity Buzke
relation diplomatic relation
['Buzke', 'diplomatic relation', 'Romania'] ['Buzke', 'diplomatic relation', 'Norway'] ['Buzke', 'diplomatic relation', 'Tunisia']
ASK WHERE { resource:Buzke property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Honduras ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q30 Q217
P530
Q15617994
USER
Which administrative territories have diplomatic relations with Republic of Moldova or United States of America ?
OR((c(Q15617994),P530,Q217), (c(Q15617994),P530,Q30))
action filter_type
action union
action find_reverse
entity Q217
relation P530
action find_reverse
entity Q30
relation P530
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P530', 'Q217'], [{'concept': 'Q15617994'}, 'P530', 'Q30']]}
SELECT DISTINCT ?b WHERE { { { ?b property:P530 resource:Q30 } UNION { ?b property:P530 resource:Q217 } } . ?b rdf:type ontology:Q15617994 }
United States of America Republic of Moldova
action filter_type
action union
action find_reverse
entity Republic of Moldova
relation diplomatic relation
action find_reverse
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Republic of Moldova'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United States of America']]}
SELECT DISTINCT ?b WHERE { { { ?b property:diplomatic_relation resource:United_States_of_America } UNION { ?b property:diplomatic_relation resource:Republic_of_Moldova } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q929 Q184 Q889 Q902 Q230 Q37 Q884 Q414 Q159 Q347
SYSTEM
Some of them are Central African Republic, Belarus, Afghanistan, Bangladesh, Georgia, Lithuania, South Korea, Argentina, Russia, Liechtenstein
Q805 Q801 Q184 Q668 Q414 Q142 Q222 Q148 Q347 Q17 Q37 Q929 Q38 Q902 Q858 Q948 Q953 Q1011 Q252 Q403 Q230 Q212 Q159 Q155 Q796 Q889 Q884
OR((c(Q15617994),P530,Q217), (c(Q15617994),P530,Q30))
action filter_type
action union
action find_reverse
entity Q217
relation P530
action find_reverse
entity Q30
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with Republic of Moldova or United States of America
{'OR': [[{'concept': 'Q15617994'}, 'P530', 'Q217'], [{'concept': 'Q15617994'}, 'P530', 'Q30']]}
SELECT DISTINCT ?b WHERE { { { ?b property:P530 resource:Q30 } UNION { ?b property:P530 resource:Q217 } } . ?b rdf:type ontology:Q15617994 }
Yemen Israel Belarus India Argentina France Albania People's Republic of China Liechtenstein Japan Lithuania Central African Republic Italy Bangladesh Syria Tunisia Zambia Cape Verde Indonesia Serbia Georgia Ukraine Russia Brazil Iraq Afghanistan South Korea
Central African Republic, Belarus, Afghanistan, Bangladesh, Georgia, Lithuania, South Korea, Argentina, Russia and Liechtenstein have diplomatic relations with Republic of Moldova or United States of America
Central African Republic Belarus Afghanistan Bangladesh Georgia Lithuania South Korea Argentina Russia Liechtenstein
action filter_type
action union
action find_reverse
entity Republic of Moldova
relation diplomatic relation
action find_reverse
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Republic of Moldova'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United States of America']]}
SELECT DISTINCT ?b WHERE { { { ?b property:diplomatic_relation resource:United_States_of_America } UNION { ?b property:diplomatic_relation resource:Republic_of_Moldova } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with atleast 22 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 22
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?m >= 22 ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?m ) WHERE { ?b property:P530 ?g . ?b rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?b } }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 22
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?m >= 22 ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?m ) WHERE { ?b property:diplomatic_relation ?g . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q155 Q38 Q230 Q184
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 22
[ANSWERS] have diplomatic associations with atleast 22 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?m >= 22 ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?m ) WHERE { ?b property:P530 ?g . ?b rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?b } }
Brazil Italy Georgia Belarus
Italy, Brazil and Georgia have diplomatic associations with atleast 22 administrative territories
Italy Brazil Georgia
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 22
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?m >= 22 ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?m ) WHERE { ?b property:diplomatic_relation ?g . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]