Simple Question (Direct)
Simple Question
Q48190
P47
Q15617994
USER
Which administrative territories have a shared border with Terrazzo ?
(Q48190,P47,c(Q15617994))
action filter_type
action find
entity Q48190
relation P47
type Q15617994
['Q48190', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q48190 property:P47 ?s . ?s rdf:type ontology:Q15617994 }
Terrazzo
action filter_type
action find
entity Terrazzo
relation shares border with
type designation for an administrative territorial entity
['Terrazzo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Terrazzo property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q48027 Q34323 Q34406
SYSTEM
Legnago, Merlara, Urbana
Q55962 Q34323 Q34423 Q34406 Q48027 Q46250 Q47479
(Q48190,P47,c(Q15617994))
action filter_type
action find
entity Q48190
relation P47
type Q15617994
[ANSWERS] have a shared border with Terrazzo
['Q48190', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q48190 property:P47 ?s . ?s rdf:type ontology:Q15617994 }
Villa Bartolomea Merlara Castelbaldo Urbana Legnago Boschi Sant'Anna Bevilacqua
Legnago, Merlara and Urbana have a shared border with Terrazzo
Legnago Merlara Urbana
action filter_type
action find
entity Terrazzo
relation shares border with
type designation for an administrative territorial entity
['Terrazzo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Terrazzo property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q34406
P19
Q502895
USER
Which person has birthplace at that administrative territory ?
(c(Q502895),P19,Q34406)
action filter_type
action find_reverse
entity Q34406
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q34406']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P19 resource:Q34406 }
Urbana
action filter_type
action find_reverse
entity Urbana
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Urbana']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:place_of_birth resource:Urbana }
[]
common name
Clarification for simple ques.
Q34323
SYSTEM
Did you mean Merlara ?
Q48027 Q34323 Q34406
(c(Q502895),P19,Q48027) (c(Q502895),P19,Q34323) (c(Q502895),P19,Q34406)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q48027'] [{'concept': 'Q502895'}, 'P19', 'Q34323'] [{'concept': 'Q502895'}, 'P19', 'Q34406']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P19 resource:Q34406 }
Legnago Merlara Urbana
Did you mean Merlara ?
Merlara
[{'concept': 'common name'}, 'place of birth', 'Legnago'] [{'concept': 'common name'}, 'place of birth', 'Merlara'] [{'concept': 'common name'}, 'place of birth', 'Urbana']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:place_of_birth resource:Urbana }
[]
Simple Question (Coreferenced)
USER
No, I meant Urbana. Could you tell me the answer for that?
(c(Q502895),P19,Q34406)
Q34406
[{'concept': 'Q502895'}, 'P19', 'Q34406']
[{'concept': 'common name'}, 'place of birth', 'Urbana']
[]
Q544349
SYSTEM
Ferdinando Camon
Q544349
(c(Q502895),P19,Q34406)
action filter_type
action find_reverse
entity Q34406
relation P19
type Q502895
[ANSWER] has birthplace at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q34406']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P19 resource:Q34406 }
Ferdinando Camon
Ferdinando Camon has birthplace at that administrative territory
Ferdinando Camon
action filter_type
action find_reverse
entity Urbana
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Urbana']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:place_of_birth resource:Urbana }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q963150
P1303
Q34379 Q502895
USER
How many musical instruments do more number of people know to play than tenor guitar ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q963150
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?r ) WHERE { ?q property:P1303 ?h . ?q rdf:type ontology:Q502895 . ?h rdf:type ontology:Q34379 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q963150 property:P1303 ?o . ?o rdf:type ontology:Q34379 } } . FILTER ( ?r > ?a ) }
tenor guitar
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity tenor guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?r ) WHERE { ?q property:instrument ?h . ?q rdf:type ontology:common_name . ?h rdf:type ontology:musical_instrument } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:tenor_guitar property:instrument ?o . ?o rdf:type ontology:musical_instrument } } . FILTER ( ?r > ?a ) }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q963150
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?r ) WHERE { ?q property:P1303 ?h . ?q rdf:type ontology:Q502895 . ?h rdf:type ontology:Q34379 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q963150 property:P1303 ?o . ?o rdf:type ontology:Q34379 } } . FILTER ( ?r > ?a ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity tenor guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?r ) WHERE { ?q property:instrument ?h . ?q rdf:type ontology:common_name . ?h rdf:type ontology:musical_instrument } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:tenor_guitar property:instrument ?o . ?o rdf:type ontology:musical_instrument } } . FILTER ( ?r > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q201129
P1303
Q34379 Q502895
USER
And how about lyre?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q201129
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { resource:Q201129 property:P1303 ?z . ?z rdf:type ontology:Q34379 } } . FILTER ( ?x > ?t ) }
lyre
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity lyre
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { resource:lyre property:instrument ?z . ?z rdf:type ontology:musical_instrument } } . FILTER ( ?x > ?t ) }
[]
musical instrument common name
SYSTEM
22
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q201129
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { resource:Q201129 property:P1303 ?z . ?z rdf:type ontology:Q34379 } } . FILTER ( ?x > ?t ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
22
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity lyre
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { resource:lyre property:instrument ?z . ?z rdf:type ontology:musical_instrument } } . FILTER ( ?x > ?t ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q515 Q56061 Q15617994
USER
Which administrative territories have atleast 1 cities and administrative territories as their administrative centre ?
(c(Q15617994),P36,c(Q515)|c(Q56061))
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q515
action find_tuple_counts
relation P36
type Q15617994
type Q56061
value 1
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?g >= 1 ) . { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ?c . VALUES ( ?c ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } GROUP BY ?f } }
action atleast
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?g >= 1 ) . { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ?c . VALUES ( ?c ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?f } }
[]
city administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q804 Q1815665 Q801 Q800 Q1098820 Q419 Q414 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q2980110 Q4308116 Q17301635 Q252 Q399 Q398 Q258 Q1465069 Q1324549 Q1979 Q159 Q155 Q1664120 Q12526 Q1974 Q611074 Q2007299 Q1616549 Q1254171 Q979470 Q684030 Q1270648 Q3563282 Q1899307 Q30675 Q983 Q730 Q734 Q736 Q1280 Q1282 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q1020 Q189 Q843 Q2007 Q184 Q1029 Q1028 Q1850485 Q1390630 Q1452 Q815731 Q31074 Q31075 Q96 Q1050 Q12175285 Q2629701 Q311803 Q12717 Q298 Q29937 Q115 Q114 Q117 Q30786 Q1270638 Q1788988 Q239502 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q281435 Q34020 Q891165 Q696651 Q3528124 Q2719360 Q948 Q1243 Q945 Q3564819 Q3500767 Q855327 Q328134 Q1268811 Q1237 Q701 Q702 Q968630 Q705 Q707 Q4450475 Q2565377 Q668 Q1093 Q1090684 Q1263830 Q833 Q4055266 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q174280 Q1232680 Q889 Q884 Q881 Q231168 Q241 Q1965 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q3361 Q39 Q38 Q302479 Q541095 Q2567535 Q3068 Q3389 Q30644 Q236 Q1886098 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1763301 Q1101 Q1206596 Q511806 Q27495866 Q3139 Q902 Q1036 Q1037 Q1032 Q1033 Q1030 Q1024985 Q1039 Q694 Q695 Q754 Q752 Q750 Q2562901 Q31068 Q220249 Q31067 Q31065 Q654849 Q1773268 Q30835 Q30831 Q574 Q1558632 Q894970 Q191 Q79 Q77 Q199688 Q878 Q46130 Q2001115 Q3044651 Q3044714 Q3044715 Q2091235 Q23055454 Q12247340 Q2360973 Q30682 Q30683 Q1951 Q2236821 Q2006764 Q1952 Q669802 Q753795 Q1256 Q1250 Q452565 Q3305157 Q1480778 Q2567507 Q3044623 Q651394 Q3646838 Q2391254 Q3044781 Q2371735 Q712 Q711 Q710 Q717 Q3044777 Q12770 Q2465553 Q657 Q1789890 Q12538 Q954 Q1393469 Q953 Q2001966 Q795587 Q958 Q986 Q219 Q957825 Q2629652 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q769680 Q1508927 Q1948 Q30805 Q311794 Q12661 Q20 Q27 Q28 Q1366860 Q148 Q227 Q225 Q30650 Q223 Q30656 Q221 Q47261 Q311668 Q229 Q347 Q1410315 Q1989 Q60011 Q967 Q963 Q2921370 Q2921378 Q1991827 Q2429432 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q1008 Q3509886 Q2380910 Q1438 Q686 Q30832 Q760 Q817 Q810 Q811 Q813 Q18046648 Q819 Q2038939 Q29 Q617646 Q72670 Q12545 Q2309262 Q863 Q2023 Q869 Q2093352 Q30946 Q568751 Q334714 Q15116736 Q2150573 Q142 Q685048 Q29943 Q145 Q12536 Q262 Q2009 Q12820 Q265 Q3342 Q842 Q2344570 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2995277 Q2003 Q3240 Q2662372 Q2565339 Q686924 Q1429976 Q517333 Q24089916 Q30669 Q1985120 Q30662 Q2629323 Q4628 Q455705 Q2564823 Q2043690 Q770 Q1856181 Q1077283 Q921 Q4712 Q924 Q928 Q929 Q858 Q423 Q424 Q851 Q29999 Q854 Q2226837 Q165763 Q1338277 Q1447 Q2360428 Q222 Q2565327 Q2588405 Q1045 Q1044 Q1042 Q1041 Q31070 Q3336 Q1984191 Q30797 Q1904 Q228 Q3462133 Q30815 Q17 Q1429761 Q153402 Q3207 Q894973 Q894972 Q894971 Q2617427 Q1053888 Q3044677 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q160307 Q244 Q1090691 Q977 Q2218506 Q692290 Q974 Q971 Q970 Q4464271 Q2502354 Q30630 Q775 Q774 Q776 Q1019 Q773 Q772 Q1014 Q1016 Q1011 Q1013 Q678 Q2565367 Q8575586 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q15617994),P36,c(Q515)|c(Q56061))
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q515
action find_tuple_counts
relation P36
type Q15617994
type Q56061
value 1
[ANSWERS] have atleast 1 cities and administrative territories as their administrative centre
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?g >= 1 ) . { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ?c . VALUES ( ?c ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } GROUP BY ?f } }
Yemen Panama Znaur Israel Costa Rica Gênes Peru Argentina Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Yovon District Murmansk Okrug Orihuela Governorate Indonesia Armenia Bahrain South Africa Frise Uthukela District Municipality Prince Edward Island Russia Brazil Alfred Nzo District Municipality Gironde British Columbia Mopani District Municipality OR Tambo District Municipality Ivittuut Municipality Dr Ruth Segomotsi Mompati District Municipality Seine-et-Oise Principality of Serbia Sieg Rumi District Overberg District Municipality Minya Governorate Equatorial Guinea Suriname Guyana Ecuador Umbria Lazio John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Malawi Iceland Pakistan Northwest Territories Belarus Mozambique Morocco Dhaka District Ourthe Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Swaziland Aravalli district Yevpatoria municipality Umgungundlovu District Municipality Bas-Rhin Chile Aswan Governorate Ethiopia Kenya Ghana Monufia Governorate Rhine Trasimène Kingdom of Galicia–Volhynia Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Maulvi Bazar District Niue Bojanala Platinum District Municipality Saxe-Eisenach Tibre Duchy of Luxembourg Tunisia Veneto Togo Hamadoni District Norak District Kouilou Department 6th of October Governorate Dyle Trentino-South Tyrol North Holland Federated States of Micronesia Taro Zeeland Flevoland Talitsky District Danghara District India Limburg Montserrat Frances Baard District Municipality Malaysia Abyei District Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Portugal Turkey Greece El Salvador Haiti Iraq Iran San Juan de Jinotega Ithaque Afghanistan South Korea Vietnam Zuyderzée Cuba New Brunswick 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 Rhin-et-Moselle Pô Loire-Atlantique Finistère Damietta Governorate Montenegro Pixley ka Seme District Municipality Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands Barisal District North Brabant Deux-Nèthes North Slope Borough Corse Alpes-Maritimes Bangladesh Uganda Rwanda Niger Nigeria Namibia Cacadu District Municipality Sao Tomé and Príncipe South Holland Palau Trinidad and Tobago Groningen Bolivia West Coast District Municipality Dakahlia Governorate Eden District Municipality Ismailia Governorate Qena Governorate Joe Gqabi District Municipality ZF Mgcawu District Municipality Gharbia Governorate Red Sea Governorate East Timor Rome Bouches-de-la-Meuse Estonia Egypt Uruguay Almohad United Arab Emirates Rhône Tepic, Nayarit (municipality) Louverture Ouest Ozama Ugu District Municipality Alpes-Maritimes Afrin Nahiya Duchy of Carniola Matrouh Governorate Beni Suef Governorate Alberta Rhône-et-Loire Xhariep District Municipality Nova Scotia Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Mella Comilla District Arno Cibao Ramensky District Los Guayos Municipality Farkhor District Sud Saky municipality Fiji Mongolia Kiribati Venezuela Nord Somme Shapsugsky National District Chad West Rand District Municipality Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Escuintla South Sudan Eritrea Bulgaria Yssel-Supérieur Yalta municipality Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Bornholm Méditerranée Manitoba Cairo Governorate iLembe District Municipality Nord Norway Ireland Hungary Escaut People's Republic of China Azerbaijan Bosnia and Herzegovina New Valley Governorate Greenland Faiyum Governorate Republic of Macedonia Duchy of Bavaria UThungulu District Municipality Cyprus Liechtenstein Fezile Dabi District Municipality Saskatchewan Kars Oblast Burundi Botswana Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Karelian National Okrug Sirajganj District Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Côte d'Ivoire Sègre-Ter Duchy of Zaslawye Campania Vanuatu Giza Governorate Saint Lucia Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Sedibeng District Municipality Spain Namakwa District Municipality Batumi Oblast Hérault Zululand District Municipality Tajikistan Nunavut Thailand Sylhet District Kafr el-Sheikh Governorate Mont-Tonnerre Duchy of Athens Jaén District Unterelsaß France Simplon Alexandria Governorate United Kingdom Abbasid caliphate Algeria Yukon Yvelines Uzbekistan Côte-d'Or Oman Rangpur District Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Dzau district Newfoundland and Labrador Bouches-du-Rhône Principality of Minsk Vose' District Mer-Égée Mymensingh District Principality of Polotsk Pars Sohag Governorate Dinajpur District North Sinai Governorate Armyansk municipality Faroe Islands Amathole District Municipality Panj District Gali Municipality Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Duchy of Burgundy Tanzania Philippines Central African Republic Syria North Korea Cambodia Saudi Arabia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Sambre-et-Meuse Apulia Tijuana Municipality Albania Muminobod District Shahrtuz District Somalia Sierra Leone Seychelles Senegal Suez Governorate Corse-du-Sud Ngaka Modiri Molema District Municipality Luxor Governorate Ontario Andorra Saxe-Coburg and Gotha South Sinai Governorate Japan Patuakhali District Roer Aude Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Ayn Central Karoo District Municipality Samaná Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Barbados Ter Djibouti Kineshemsky District Capricorn District Municipality Democratic Republic of the Congo Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Gelderland Guatemala Utrecht Madagascar Overijssel Drenthe Liberia Libya Cape Verde Lesotho Tonga Vakhsh District Umayyad Caliphate Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
Italy, Brazil and United States of America have atleast 1 cities and administrative territories as their administrative centre
Italy Brazil United States of America
action atleast
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?g >= 1 ) . { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ?c . VALUES ( ?c ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?f } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with around 116 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 116
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?l ) WHERE { ?e property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?l = 116 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 116
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?l ) WHERE { ?e property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?l = 116 ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 116
[ANSWERS] have diplomatic relationships with around 116 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?l ) WHERE { ?e property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?l = 116 ) }
Germany Australia
Germany and Australia have diplomatic relationships with around 116 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 116
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?l ) WHERE { ?e property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?l = 116 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories have diplomatic relations with that political territory ?
(Q408,P530,c(Q15617994))
['Q408', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q17666015 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Australia 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
Q183
SYSTEM
Did you mean Germany ?
(Q183,P530,c(Q15617994)) (Q408,P530,c(Q15617994))
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}] ['Q408', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q17666015 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Germany ?
Germany
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Australia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Australia. Could you tell me the answer for that?
(Q408,P530,c(Q15617994))
Q408
['Q408', 'P530', {'concept': 'Q15617994'}]
['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
106
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q833 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q29 Q819 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q712 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q678 Q33788 Q869 Q953
(Q408,P530,c(Q15617994))
[ANSWER]
['Q408', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q17666015 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Malaysia Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Spain Laos Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Fiji Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Tonga New Caledonia Thailand Zambia
106
['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Australia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]