Simple Question (Direct)
Simple Question
Q21710816
P27
Q15617994
USER
Which administrative territory is Bernard Klonis a civilian of ?
(Q21710816,P27,c(Q15617994))
action filter_type
action find
entity Q21710816
relation P27
type Q15617994
['Q21710816', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q21710816 property:P27 ?b }
Bernard Klonis
action filter_type
action find
entity Bernard Klonis
relation country of citizenship
type designation for an administrative territorial entity
['Bernard Klonis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bernard_Klonis property:country_of_citizenship ?b }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q21710816,P27,c(Q15617994))
action filter_type
action find
entity Q21710816
relation P27
type Q15617994
The [ANSWER] is Bernard Klonis a civilian of
['Q21710816', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q21710816 property:P27 ?b }
United States of America
The United States of America is Bernard Klonis a civilian of
United States of America
action filter_type
action find
entity Bernard Klonis
relation country of citizenship
type designation for an administrative territorial entity
['Bernard Klonis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bernard_Klonis property:country_of_citizenship ?b }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q21341246
P6
Q502895
USER
Is Arthur Reginald Horwood the head of the government of that administrative territory ?
(Q30,P6,Q21341246)
action is_in
entity Q21341246
action find
entity Q30
relation P6
['Q30', 'P6', 'Q21341246']
ASK WHERE { resource:Q30 property:P6 resource:Q21341246 }
United States of America Arthur Reginald Horwood
action is_in
entity Arthur Reginald Horwood
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Arthur Reginald Horwood']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Arthur_Reginald_Horwood }
[]
common name
SYSTEM
NO
(Q30,P6,Q21341246)
action is_in
entity Q21341246
action find
entity Q30
relation P6
[ANSWER]
['Q30', 'P6', 'Q21341246']
ASK WHERE { resource:Q30 property:P6 resource:Q21341246 }
No
action is_in
entity Arthur Reginald Horwood
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Arthur Reginald Horwood']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Arthur_Reginald_Horwood }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q212
P530
Q15617994 Q15617994
USER
Which administrative territories have ambassadorial relations with less number of administrative territories than Ukraine ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_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 ( ?m ) AS ?e ) WHERE { ?q property:P530 ?m . ?q rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { resource:Q212 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?e < ?y ) }
Ukraine
action less
action find_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 ( ?m ) AS ?e ) WHERE { ?q property:diplomatic_relation ?m . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { resource:Ukraine property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e < ?y ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q32
SYSTEM
Netherlands, Poland, Luxembourg
Q702 Q804 Q800 Q419 Q414 Q55 Q262 Q783 Q265 Q37 Q712 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q222 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q212
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with less number of administrative territories than Ukraine
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?e ) WHERE { ?q property:P530 ?m . ?q rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { resource:Q212 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?e < ?y ) }
Federated States of Micronesia Panama Costa Rica Peru Argentina Netherlands Algeria Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Albania Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand
Netherlands, Poland and Luxembourg have ambassadorial relations with less number of administrative territories than Ukraine
Netherlands Poland Luxembourg
action less
action find_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 ( ?m ) AS ?e ) WHERE { ?q property:diplomatic_relation ?m . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { resource:Ukraine property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e < ?y ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q7725634
USER
How many administrative territories are the origin of more number of collectables and literary works than that administrative territory ?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
designation for an administrative territorial entity collectable literary work
Comparative|Count over More/Less|Mult. entity type|Clarification
Q36
SYSTEM
Did you mean Poland ?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Did you mean Poland ?
Poland
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Netherlands. Could you tell me the answer for that?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
Q55
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
9
Q668 Q142 Q145 Q155 Q30 Q34 Q38 Q17 Q29
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
India France United Kingdom Brazil United States of America Sweden Italy Japan Spain
9
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with atmost 26 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 26
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?y <= 26 ) . { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?y ) WHERE { ?s property:P530 ?n . ?s rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?s } }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?y <= 26 ) . { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?y ) WHERE { ?s property:diplomatic_relation ?n . ?s rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 26
[ANSWERS] are known to have diplomatic connections with atmost 26 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?y <= 26 ) . { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?y ) WHERE { ?s property:P530 ?n . ?s rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?s } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand are known to have diplomatic connections with atmost 26 administrative territories
Denmark Austria New Zealand
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?y <= 26 ) . { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?y ) WHERE { ?s property:diplomatic_relation ?n . ?s rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q211
P1376
Q15617994 Q20667921 Q515
USER
Which administrative territories have lesser number of french administrative divisions or cities as their county seat than Latvia ?
(c(Q20667921)|c(Q515),P1376,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q211
relation P1376
type Q20667921
type Q515
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P1376 resource:Q211 . { ?o rdf:type ?n . VALUES ( ?n ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } } } . FILTER ( ?t < ?j ) }
Latvia
action less
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Latvia
relation capital of
type type of french administrative division
type city
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:capital_of resource:Latvia . { ?o rdf:type ?n . VALUES ( ?n ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } } } . FILTER ( ?t < ?j ) }
[]
designation for an administrative territorial entity type of french administrative division city
Q38 Q30 Q230
SYSTEM
Italy, United States of America, Georgia
Q805 Q804 Q801 Q800 Q1098820 Q419 Q1111401 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q398 Q1465069 Q1324549 Q1979 Q159 Q1664120 Q12526 Q1974 Q2527360 Q699731 Q611074 Q2007299 Q1254171 Q220249 Q979470 Q1270648 Q1899307 Q30675 Q739 Q983 Q730 Q733 Q734 Q1280 Q1282 Q1284 Q1338277 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q1020 Q189 Q184 Q1029 Q1028 Q541811 Q1390630 Q1458 Q1452 Q815731 Q31074 Q31075 Q96 Q311803 Q29937 Q117 Q30786 Q1270638 Q1788988 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q34020 Q541589 Q760 Q14762300 Q3528124 Q2719360 Q1243 Q945 Q731547 Q855327 Q328134 Q1237 Q701 Q968630 Q705 Q707 Q709 Q4450475 Q668 Q1093 Q1090684 Q1263830 Q3509886 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q290739 Q45 Q43 Q41 Q792 Q1232680 Q1452646 Q231168 Q241 Q1965 Q1508919 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q3361 Q39 Q38 Q302479 Q2567535 Q280312 Q3068 Q3389 Q30644 Q236 Q492437 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1101 Q1206596 Q3139 Q686312 Q902 Q1036 Q1032 Q1024985 Q1039 Q697 Q694 Q695 Q754 Q752 Q2562901 Q31068 Q31067 Q31065 Q1270568 Q1773268 Q30835 Q574 Q1558632 Q694594 Q191 Q874 Q79 Q77 Q199688 Q3044651 Q3044715 Q176 Q30682 Q30683 Q2091235 Q2006764 Q1952 Q669802 Q753795 Q1256 Q1250 Q452565 Q389004 Q3305157 Q492430 Q684030 Q2567507 Q3044623 Q651394 Q30946 Q3044781 Q239502 Q712 Q710 Q3044777 Q12770 Q657 Q1789890 Q1090678 Q12538 Q954 Q1393469 Q953 Q2001966 Q1886098 Q958 Q986 Q219 Q957825 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q1508927 Q511365 Q654849 Q2038939 Q311794 Q20 Q28 Q1366860 Q148 Q598193 Q227 Q30650 Q223 Q221 Q311668 Q229 Q1410315 Q1989 Q60011 Q10957559 Q965 Q967 Q962 Q2921370 Q2921378 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q2380910 Q1438 Q686 Q30832 Q891165 Q817 Q810 Q811 Q813 Q18046648 Q819 Q29 Q617646 Q12545 Q2309262 Q863 Q2023 Q869 Q334714 Q15116736 Q142 Q685048 Q29943 Q145 Q262 Q474421 Q2009 Q12820 Q265 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2003 Q2662372 Q686924 Q34762 Q517333 Q30669 Q30662 Q4628 Q455705 Q770 Q1856181 Q1077283 Q921 Q929 Q858 Q423 Q424 Q29999 Q854 Q2226837 Q165763 Q1443 Q224 Q1447 Q2360428 Q30656 Q1045 Q1044 Q1042 Q1041 Q691265 Q313175 Q31070 Q3336 Q30797 Q1904 Q30815 Q153402 Q894973 Q894972 Q894971 Q894970 Q1053888 Q3044677 Q213 Q217 Q214 Q215 Q160307 Q244 Q3514973 Q1090691 Q977 Q2218506 Q692290 Q971 Q970 Q4464271 Q2502354 Q30630 Q1234961 Q1222 Q775 Q774 Q776 Q773 Q772 Q1014 Q1016 Q1013 Q678 Q8575586 Q672 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q20667921)|c(Q515),P1376,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q211
relation P1376
type Q20667921
type Q515
[ANSWERS] have lesser number of french administrative divisions or cities as their county seat than Latvia
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P1376 resource:Q211 . { ?o rdf:type ?n . VALUES ( ?n ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } } } . FILTER ( ?t < ?j ) }
Yemen Panama Israel Costa Rica Gênes Peru Kispest District Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Bahrain Frise Uthukela District Municipality Prince Edward Island Russia Alfred Nzo District Municipality Gironde British Columbia Stura Wied Mopani District Municipality OR Tambo District Municipality Dr Ruth Segomotsi Mompati District Municipality Eden District Municipality Seine-et-Oise Sieg Overberg District Municipality Minya Governorate Colombia Equatorial Guinea Suriname Paraguay Guyana Umbria Lazio Abruzzo Sambre-et-Meuse John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Malawi Iceland Belarus Mozambique Morocco Ems-Oriental Ourthe Calabria Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Umgungundlovu District Municipality Aswan Governorate Ghana Monufia Governorate Rhine Trasimène Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Niue Ems-Supérieur Saint Lucia single-tier municipality Tibre Duchy of Luxembourg Veneto Togo Lippe Kouilou Department 6th of October Governorate Trentino-South Tyrol North Holland Taro Zeeland Flevoland Marshall Islands Talitsky District India Limburg Montserrat Frances Baard District Municipality Sègre-Ter Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Sesia Portugal Turkey Greece El Salvador Ithaque Montenotte Zuyderzée Cuba New Brunswick Marengo Belize Thabo Mofutsanyana District Municipality Ehlanzeni District Municipality Asyut Governorate Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Doubs Switzerland Italy Ems-Occidental Pô Principality of Lüneburg Loire-Atlantique Finistère Damietta Governorate Montenegro Bouches-du-Weser Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands North Brabant Deux-Nèthes Alpes-Maritimes Duchy of Amalfi Bangladesh Uganda Niger Cacadu District Municipality Sao Tomé and Príncipe Nauru South Holland Palau Trinidad and Tobago Groningen West Coast District Municipality Dakahlia Governorate Ismailia Governorate Qena Governorate Ems ZF Mgcawu District Municipality Gharbia Governorate East Timor Rome Bremen-Verden Estonia Turkmenistan Egypt Uruguay Almohad Louverture Ozama Quebec Matrouh Governorate Beni Suef Governorate Ugu District Municipality Xhariep District Municipality Nova Scotia Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Wallachia Mella Bouches-de-l'Elbe Principality of Serbia Arno Cibao Ramensky District Kafr el-Sheikh Governorate Sud Kingdom of Galicia–Volhynia Fiji Kiribati Nord Somme Chad West Rand District Municipality Sègre Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Pixley ka Seme District Municipality South Sudan Eritrea Bulgaria Yssel-Supérieur Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Méditerranée Arvika Municipality Joe Gqabi District Municipality Sedibeng District Municipality iLembe District Municipality Norway Hungary Escaut People's Republic of China Apennins Azerbaijan New Valley Governorate Greenland Republic of Macedonia UThungulu District Municipality Cyprus Fezile Dabi District Municipality Saskatchewan Kars Oblast Moldavia Burkina Faso Burundi Benin Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Duchy of Zaslawye Campania Vanuatu Giza Governorate Bojanala Platinum District Municipality Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Spain Namakwa District Municipality Hérault Zululand District Municipality Tajikistan Nunavut Thailand Duchy of Athens Jaén District France Simplon Alexandria Governorate United Kingdom Algeria Principality of Fürstenberg Yukon Yvelines Uzbekistan Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Newfoundland and Labrador Principality of Minsk Mer-Égée Principality of Bayreuth Principality of Polotsk Sohag Governorate North Sinai Governorate Faroe Islands Amathole District Municipality Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Central African Republic Syria North Korea Cambodia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Molise Croatia Apulia Tijuana Municipality Faiyum Governorate Somalia Sierra Leone Seychelles Senegal Mont-Terrible Saxe-Lauenburg Suez Governorate Corse-du-Sud Luxor Governorate Ontario South Sinai Governorate Roer Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Bouches-de-la-Meuse Central Karoo District Municipality Samaná Czech Republic Republic of Moldova Slovakia Slovenia Fatimid caliphate Barbados Tanaro Ter Djibouti Kineshemsky District Capricorn District Municipality Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Doire Aosta Valley Gelderland Guatemala Utrecht Overijssel Drenthe Liberia Libya Lesotho Tonga Umayyad Caliphate Tuvalu Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
Italy, United States of America and Georgia have lesser number of french administrative divisions or cities as their county seat than Latvia
Italy United States of America Georgia
action less
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Latvia
relation capital of
type type of french administrative division
type city
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:capital_of resource:Latvia . { ?o rdf:type ?n . VALUES ( ?n ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } } } . FILTER ( ?t < ?j ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories are the origins of more number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|Count over More/Less|Single entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Italy ?
Italy
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q30
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
0
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
0
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q38
P530
Q15617994
USER
How many administrative territories have a diplomatic relationship with Italy ?
(Q38,P530,c(Q15617994))
action count
action filter_type
action find
entity Q38
relation P530
type Q15617994
['Q38', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { resource:Q38 property:P530 ?p . ?p rdf:type ontology:Q15617994 }
Italy
action count
action filter_type
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { resource:Italy property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
74
Q739 Q805 Q801 Q189 Q843 Q928 Q184 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q17 Q229 Q228 Q33 Q32 Q31 Q37 Q36 Q34 Q77 Q39 Q1016 Q227 Q215 Q79 Q191 Q733 Q948 Q869 Q298 Q45 Q252 Q30 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q41 Q155 Q218 Q219 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q423 Q881 Q114
(Q38,P530,c(Q15617994))
action count
action filter_type
action find
entity Q38
relation P530
type Q15617994
[ANSWER]
['Q38', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { resource:Q38 property:P530 ?p . ?p rdf:type ontology:Q15617994 }
Colombia Yemen Israel Iceland Pakistan Philippines Belarus Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Japan Cyprus Andorra Finland Luxembourg Belgium Lithuania Poland Sweden Uruguay Switzerland Libya Azerbaijan Slovenia Egypt Estonia Paraguay Tunisia Thailand Chile Portugal Indonesia United States of America Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Greece Brazil Romania Bulgaria San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea North Korea Vietnam Kenya
74
action count
action filter_type
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { resource:Italy property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q183
P530
Q15617994
USER
And what about Germany?
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { resource:Q183 property:P530 ?g . ?g rdf:type ontology:Q15617994 }
Germany
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { resource:Germany property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
124
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { resource:Q183 property:P530 ?g . ?g rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
124
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { resource:Germany property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q155
Q15617994
USER
And also tell me about Brazil?
(Q155,P530,c(Q15617994))
action count
action filter_type
action find
entity Q155
relation P530
type Q15617994
['Q155', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Q155 property:P530 ?w . ?w rdf:type ontology:Q15617994 }
Brazil
action count
action filter_type
action find
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Brazil property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
53
(Q155,P530,c(Q15617994))
action count
action filter_type
action find
entity Q155
relation P530
type Q15617994
[ANSWER]
['Q155', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Q155 property:P530 ?w . ?w rdf:type ontology:Q15617994 }
53
action count
action filter_type
action find
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Brazil property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with atmost 93 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?r ) WHERE { ?b property:P530 ?m . ?b rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?r <= 93 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?r ) WHERE { ?b property:diplomatic_relation ?m . ?b rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?r <= 93 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?r ) WHERE { ?b property:P530 ?m . ?b rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?r <= 93 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?r ) WHERE { ?b property:diplomatic_relation ?m . ?b rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?r <= 93 ) }
[]