User:Mhl20/prompts/Largest cities

From Wikidata
Jump to navigation Jump to search

Comparison

@@ city (SPARQL) city (CSV) country (SPARQL) country (CSV)
--- Greater Tehran (Q4092880) Iran (Q794)
--- Nanyang (Q404763) People's Republic of China (Q148)
--- Linyi City (Q373346) People's Republic of China (Q148)
--- Baoding (Q58584) People's Republic of China (Q148)
--- Zhoukou (Q198061) People's Republic of China (Q148)
--- Tokyo (Q7473516) Japan (Q17)
--- Heze (Q332753) People's Republic of China (Q148)
--- Xuzhou (Q57719) People's Republic of China (Q148)
--- Weifang (Q217698) People's Republic of China (Q148)
--- Handan (Q58570) People's Republic of China (Q148)
--- Fuyang (Q360584) People's Republic of China (Q148)
--- Ganzhou (Q363166) People's Republic of China (Q148)
--- Jining (Q372791) People's Republic of China (Q148)
--- Zhumadian (Q198240) People's Republic of China (Q148)
--- Onitsha (Q852238) Nigeria (Q1033)
--- Nantong (Q57947) People's Republic of China (Q148)
--- Hengyang (Q144663) People's Republic of China (Q148)
--- Yancheng (Q57866) People's Republic of China (Q148)
--- Shangqiu (Q404817) People's Republic of China (Q148)
--- Bijie (Q486319) People's Republic of China (Q148)
--- Zhanjiang (Q59144) People's Republic of China (Q148)
--- Nanning (Q179608) People's Republic of China (Q148)
--- Cangzhou (Q58695) People's Republic of China (Q148)
--- Maoming (Q38927) People's Republic of China (Q148)
--- Huanggang (Q71355) People's Republic of China (Q148)
--- Xinyang (Q404873) People's Republic of China (Q148)
--- Luoyang (Q187136) People's Republic of China (Q148)
--- Yantai (Q210493) People's Republic of China (Q148)
--- Shangrao (Q363479) People's Republic of China (Q148)
--- Kunming (Q182852) People's Republic of China (Q148)
--- Nanchong (Q426996) People's Republic of China (Q148)
--- Lu'an (Q360702) People's Republic of China (Q148)
--- Prayagraj (Q162442) India (Q668)
--- Xiangyang (Q71284) People's Republic of China (Q148)
--- Jingzhou (Q71247) People's Republic of China (Q148)
--- Taizhou (Q58273) People's Republic of China (Q148)
--- Qujing (Q496405) People's Republic of China (Q148)
--- Changde (Q416544) People's Republic of China (Q148)
--- Dazhou (Q427488) People's Republic of China (Q148)
--- Jieyang (Q26323) People's Republic of China (Q148)
--- Anqing (Q360374) People's Republic of China (Q148)
--- Xinxiang (Q404362) People's Republic of China (Q148)
--- Tai'an (Q217681) People's Republic of China (Q148)
--- Dezhou (Q162880) People's Republic of China (Q148)
--- Suihua (Q349985) People's Republic of China (Q148)
--- Yichun (Q363326) People's Republic of China (Q148)
--- Qiqihar (Q205922) People's Republic of China (Q148)
--- Weinan (Q126995) People's Republic of China (Q148)
--- Suqian (Q57787) People's Republic of China (Q148)
--- Zhaotong (Q197519) People's Republic of China (Q148)
--- Yueyang (Q151958) People's Republic of China (Q148)
--- Yongzhou (Q266014) People's Republic of China (Q148)
--- Bozhou (Q360769) People's Republic of China (Q148)
--- Guilin (Q189633) People's Republic of China (Q148)
--- Nanchang (Q171943) People's Republic of China (Q148)
--- Xianyang (Q497341) People's Republic of China (Q148)
--- Taizhou (Q57931) People's Republic of China (Q148)
--- Meizhou (Q59184) People's Republic of China (Q148)
--- Amman (Q3805) Jordan (Q810)
--- Mianyang (Q426130) People's Republic of China (Q148)
--- Shaoxing (Q42666) People's Republic of China (Q148)
--- Yuncheng (Q73073) People's Republic of China (Q148)
--- Sydney (Q3130) Australia (Q408)
--- Pingdingshan (Q404116) People's Republic of China (Q148)
--- Huai'an (Q57818) People's Republic of China (Q148)
--- Lianyungang (Q57756) People's Republic of China (Q148)
--- Ji'an (Q363262) People's Republic of China (Q148)
--- Jiujiang (Q216077) People's Republic of China (Q148)
--- Kaifeng (Q208471) People's Republic of China (Q148)
--- Xiaogan (Q71339) People's Republic of China (Q148)
--- Jinhua (Q58210) People's Republic of China (Q148)
--- Wuxi (Q42651) People's Republic of China (Q148)
--- Huaihua (Q416922) People's Republic of China (Q148)
--- Zibo (Q198370) People's Republic of China (Q148)
--- Melbourne (Q3141) Australia (Q408)
--- Jilin City (Q92277) People's Republic of China (Q148)
--- Yangzhou (Q57906) People's Republic of China (Q148)
--- Yibin (Q427265) People's Republic of China (Q148)
--- Jiangmen (Q59132) People's Republic of China (Q148)
--- Chenzhou (Q416748) People's Republic of China (Q148)
--- Chifeng (Q570829) People's Republic of China (Q148)
--- Guiyang (Q192271) People's Republic of China (Q148)
--- Langfang (Q58710) People's Republic of China (Q148)
--- Zhangjiakou (Q58650) People's Republic of China (Q148)
--- Linfen (Q73156) People's Republic of China (Q148)
--- Luzhou (Q425492) People's Republic of China (Q148)
--- Xuchang (Q404529) People's Republic of China (Q148)
--- Neijiang (Q426756) People's Republic of China (Q148)
--- Ziyang (Q207030) People's Republic of China (Q148)
--- Yiyang (Q416669) People's Republic of China (Q148)
--- Hengshui (Q58724) People's Republic of China (Q148)
--- Yichang (Q71266) People's Republic of China (Q148)
--- Chuzhou (Q114045) People's Republic of China (Q148)
--- Zhaoqing (Q59164) People's Republic of China (Q148)
--- Huizhou (Q59173) People's Republic of China (Q148)
--- Wuhu (Q359990) People's Republic of China (Q148)
--- Binzhou (Q373687) People's Republic of China (Q148)
--- Zhangzhou (Q68814) People's Republic of China (Q148)
--- Baoji (Q514796) People's Republic of China (Q148)
--- Guang'an (Q427367) People's Republic of China (Q148)
--- Hanzhong (Q515573) People's Republic of China (Q148)
--- Zhuzhou (Q198266) People's Republic of China (Q148)
--- Tongren (Q486235) People's Republic of China (Q148)
--- Qingyuan (Q59213) People's Republic of China (Q148)
--- Zaozhuang (Q147187) People's Republic of China (Q148)
--- Deyang (Q425996) People's Republic of China (Q148)
--- Liuzhou (Q38968) People's Republic of China (Q148)
--- Chengde (Q58675) People's Republic of China (Q148)
--- Anshan (Q74957) People's Republic of China (Q148)
--- Puyang (Q404484) People's Republic of China (Q148)
--- Changzhou (Q57970) People's Republic of China (Q148)
--- Suining (Q426644) People's Republic of China (Q148)
--- Jiaozuo (Q404429) People's Republic of China (Q148)
--- Bengbu (Q360069) People's Republic of China (Q148)
--- Lüliang (Q73186) People's Republic of China (Q148)
--- Taiyuan (Q72778) People's Republic of China (Q148)
--- Chaoyang (Q75336) People's Republic of China (Q148)
--- Leshan (Q426868) People's Republic of China (Q148)
--- Jiaxing (Q58178) People's Republic of China (Q148)
--- Heyuan (Q59205) People's Republic of China (Q148)
--- Siping (Q92297) People's Republic of China (Q148)
--- Changzhi (Q72945) People's Republic of China (Q148)
--- Shiyan (Q71227) People's Republic of China (Q148)
--- Qinzhou (Q571766) People's Republic of China (Q148)
--- Putian (Q68579) People's Republic of China (Q148)
--- Datong (Q72877) People's Republic of China (Q148)
--- Shaoguan (Q59107) People's Republic of China (Q148)
--- Bazhong (Q178945) People's Republic of China (Q148)
--- Multan (Q185453) Pakistan (Q843)
--- Ürümqi (Q16959) People's Republic of China (Q148)
--- Wuzhou (Q571652) People's Republic of China (Q148)
--- Tongliao (Q570884) People's Republic of China (Q148)
--- Guangyuan (Q426237) People's Republic of China (Q148)
--- Ningde (Q68919) People's Republic of China (Q148)
+++ Cape Town (Q5465) South Africa (Q258)
--- Meishan (Q427097) People's Republic of China (Q148)
--- Tieling (Q75268) People's Republic of China (Q148)
--- Jinzhou (Q28996) People's Republic of China (Q148)
--- Shanwei (Q59189) People's Republic of China (Q148)
--- Liupanshui (Q485918) People's Republic of China (Q148)
--- Xinzhou (Q73119) People's Republic of China (Q148)
--- Xiangtan (Q215755) People's Republic of China (Q148)
--- Daqing (Q304848) People's Republic of China (Q148)
--- Bursa (Q40738) Turkey (Q43)
--- Nanping (Q68534) People's Republic of China (Q148)
--- Kadapa (Q30651) India (Q668)
--- Jingmen (Q71323) People's Republic of China (Q148)
--- Zigong (Q29015) People's Republic of China (Q148)
--- Qinhuangdao (Q58560) People's Republic of China (Q148)
--- Mudanjiang (Q217646) People's Republic of China (Q148)
--- Huludao (Q75379) People's Republic of China (Q148)
--- Longyan (Q68862) People's Republic of China (Q148)
--- Baotou (Q569907) People's Republic of China (Q148)
+++ Durban (Q5468) South Africa (Q258)
--- Hohhot (Q535534) People's Republic of China (Q148)
--- Antananarivo (Q3915) Madagascar (Q1019)
--- Weihai (Q373023) People's Republic of China (Q148)
--- Santo Domingo (Q34820) Dominican Republic (Q786)
--- Xuancheng (Q360942) People's Republic of China (Q148)
--- Huzhou (Q42664) People's Republic of China (Q148)
--- Hulunbuir (Q571033) People's Republic of China (Q148)
--- Anshun (Q486149) People's Republic of China (Q148)
--- Lishui (Q58294) People's Republic of China (Q148)
--- Xianning (Q71373) People's Republic of China (Q148)
--- Luohe (Q404599) People's Republic of China (Q148)
--- Baoshan (Q496576) People's Republic of China (Q148)
--- Huangshi (Q71204) People's Republic of China (Q148)
--- Huainan (Q360178) People's Republic of China (Q148)
--- Dandong (Q75110) People's Republic of China (Q148)
--- Omdurman (Q180921) Sudan (Q1049)
--- Ghaziabad (Q207098) India (Q668)
--- Bekasi (Q10392) Indonesia (Q252)
--- Lincang (Q496837) People's Republic of China (Q148)
--- Jiamusi (Q29003) People's Republic of China (Q148)
--- Yangjiang (Q59209) People's Republic of China (Q148)
--- Fushun (Q75026) People's Republic of China (Q148)
--- Laibin (Q572140) People's Republic of China (Q148)
--- Yuxi (Q496496) People's Republic of China (Q148)
--- Yingkou (Q75150) People's Republic of China (Q148)
--- Sanmenxia (Q404636) People's Republic of China (Q148)
--- Indore (Q66616) India (Q668)
--- Suizhou (Q71401) People's Republic of China (Q148)
--- Hezhou (Q572014) People's Republic of China (Q148)
+++ City of Ekurhuleni Metropolitan Municipality (Q326891) South Africa (Q258)
--- Huaibei (Q360268) People's Republic of China (Q148)
--- Xining (Q69060) People's Republic of China (Q148)
--- Yan'an (Q515388) People's Republic of China (Q148)
--- Jincheng (Q72990) People's Republic of China (Q148)
--- Mogadishu (Q2449) Somalia (Q1045)
--- Haiphong (Q72818) Vietnam (Q881)
--- Manaus (Q40236) Brazil (Q155)
--- Kumasi (Q182059) Ghana (Q117)
--- Taoyuan District (Q715975) Taiwan (Q865)
--- Haikou (Q189823) People's Republic of China (Q148)
--- Perth (Q3183) Australia (Q408)
--- Tangerang (Q10127) Indonesia (Q252)
--- Barquisimeto (Q4709) Venezuela (Q717)
--- Kananga (Q205327) Democratic Republic of the Congo (Q974)
--- Jixi (Q28979) People's Republic of China (Q148)
--- Fuxin (Q34750) People's Republic of China (Q148)
--- Blantyre (Q188693) Malawi (Q1020)
--- Pingxiang (Q362865) People's Republic of China (Q148)
--- Liaoyang (Q75203) People's Republic of China (Q148)
--- Aleppo (Q41183) Syria (Q858)
--- Lubumbashi (Q187593) Democratic Republic of the Congo (Q974)
--- Damascus (Q3766) Syria (Q858)
--- Heihe (Q349983) People's Republic of China (Q148)
--- Pimpri-Chinchwad (Q119219) India (Q668)
--- Mosul (Q83317) Iraq (Q796)
--- Mecca (Q5806) Saudi Arabia (Q851)
--- Vadodara (Q11909) India (Q668)
--- Conakry (Q3733) Guinea (Q1006)
--- San Cristóbal Ecatepec (Q8972) Mexico (Q96)
--- Adana (Q38545) Turkey (Q43)
--- Depok (Q10396) Indonesia (Q252)
--- Barcelona (Q1492) Catalan Republic (Q138837)
--- Yinchuan (Q211243) People's Republic of China (Q148)
--- Coimbatore (Q9885) India (Q668)
--- Beihai (Q210365) People's Republic of China (Q148)
--- Benxi (Q75091) People's Republic of China (Q148)
--- Zhuhai (Q59095) People's Republic of China (Q148)
--- Madurai (Q228405) India (Q668)
--- Gaziantep (Q93338) Turkey (Q43)
--- Jingdezhen (Q34405) People's Republic of China (Q148)
--- Ordos City (Q570937) People's Republic of China (Q148)
--- Ya'an (Q427557) People's Republic of China (Q148)
--- Cartagena de Indias (Q657461) Colombia (Q739)
--- Shuangyashan (Q349973) People's Republic of China (Q148)
--- Nashik (Q200235) India (Q668)
--- Zhangjiajie (Q197379) People's Republic of China (Q148)
--- Huangshan (Q180470) People's Republic of China (Q148)
--- Yunfu (Q59233) People's Republic of China (Q148)
--- León de Los Aldama (Q189128) Mexico (Q96)
--- Puebla City (Q125293) Mexico (Q96)
--- Chizhou (Q360870) People's Republic of China (Q148)
--- Hebi (Q404301) People's Republic of China (Q148)
--- Faridabad (Q200663) India (Q668)
--- Sharjah (Q289693) United Arab Emirates (Q878)
--- Ulaanbaatar (Q23430) Mongolia (Q711)
--- Goiânia (Q83189) Brazil (Q155)
--- Belém (Q47593) Brazil (Q155)
--- Aurangabad (Q200713) India (Q668)
--- Jamshedpur (Q200054) India (Q668)
--- Rajkot (Q11854) India (Q668)
--- Zapopan (Q147402) Mexico (Q96)
--- Guarulhos (Q184409) Brazil (Q155)
--- Doha (Q3861) Qatar (Q846)
--- Khulna (Q243325) Bangladesh (Q902)
--- Meerut (Q200237) India (Q668)
--- Yangquan (Q72907) People's Republic of China (Q148)
--- Adelaide (Q5112) Australia (Q408)
--- Qom (Q170573) Iran (Q794)
--- Sofia (Q472) Bulgaria (Q219)
--- Ma'anshan (Q360235) People's Republic of China (Q148)
--- Jabalpur (Q200878) India (Q668)
--- Yichun (Q349976) People's Republic of China (Q148)
--- Comayagüela (Q2483679) Honduras (Q783)
--- Panjin (Q75230) People's Republic of China (Q148)
--- Kazan (Q900) Russia (Q159)
--- Vasai-Virar (Q580876) India (Q668)
--- South Tangerang (Q10128) Indonesia (Q252)
--- Lijiang (Q205914) People's Republic of China (Q148)
--- Suwon (Q20714) South Korea (Q884)
--- Mombasa (Q225641) Kenya (Q114)
--- Ciudad Guayana (Q507080) Venezuela (Q717)
--- Chelyabinsk (Q906) Russia (Q159)
--- Varanasi (Q79980) India (Q668)
--- Maiduguri (Q221436) Nigeria (Q1033)
--- Srinagar (Q170115) India (Q668)
--- Balıkesir (Q199723) Turkey (Q43)
--- Brussels metropolitan area (Q9005) Belgium (Q31)
--- Samara (Q894) Russia (Q159)
--- Bandar Lampung (Q8156) Indonesia (Q252)
--- Naypyidaw (Q37400) Myanmar (Q836)
--- Santiago de los Caballeros (Q42763) Dominican Republic (Q786)
--- Quetta (Q185458) Pakistan (Q843)
--- Kigali (Q3859) Rwanda (Q1037)
--- Amritsar (Q48403) India (Q668)
--- Ufa (Q911) Russia (Q159)
--- Tegucigalpa (Q3238) Honduras (Q783)
--- Bhiwandi (Q645725) India (Q668)
--- Navi Mumbai (Q61445) India (Q668)
--- Ahvaz (Q170366) Iran (Q794)
--- Biên Hòa (Q19316) Vietnam (Q881)
--- Yingtan (Q363076) People's Republic of China (Q148)
--- Gwalior (Q158467) India (Q668)
--- Hegang (Q349982) People's Republic of China (Q148)
--- N'Djamena (Q3659) Chad (Q657)
--- Irbid (Q194165) Jordan (Q810)
--- Howrah (Q205697) India (Q668)
--- São Luís (Q28441) Brazil (Q155)
--- San Pedro Sula (Q274584) Honduras (Q783)
--- Ranchi (Q174461) India (Q668)
--- Antalya (Q6487) Turkey (Q43)
--- Krasnoyarsk (Q919) Russia (Q159)
--- Changwon (Q243327) South Korea (Q884)
--- Sendai (Q46747) Japan (Q17)
--- Ganja (Q131290) Azerbaijan (Q227)
--- Chandigarh (Q43433) India (Q668)
--- Perm (Q915) Russia (Q159)
--- Ciudad Nezahualcóyotl (Q210307) Mexico (Q96)
--- Voronezh (Q3426) Russia (Q159)
--- Jodhpur (Q200019) India (Q668)
--- Ogbomosho (Q500366) Nigeria (Q1033)
--- Bogor (Q10393) Indonesia (Q252)
--- Batam (Q10103) Indonesia (Q252)
--- Maceió (Q168888) Brazil (Q155)
+++ Kochi (Q1800) India (Q668)
+++ Kano (Q182984) Nigeria (Q1033)
+++ Dalian (Q74881) People's Republic of China (Q148)
+++ Jinan (Q170247) People's Republic of China (Q148)
+++ Kathmandu (Q3037) Nepal (Q837)
+++ Tijuana (Q124739) Mexico (Q96)
+++ Oran (Q131818) Algeria (Q262)
+++ Vijayawada (Q200017) India (Q668)
+++ Ibadan (Q183298) Nigeria (Q1033)
+++ Córdoba (Q44210) Argentina (Q414)
+++ Mandalay (Q185518) Myanmar (Q836)
+++ Rosario (Q52535) Argentina (Q414)
+++ Dakar (Q3718) Senegal (Q1041)
+++ Abu Dhabi (Q1519) United Arab Emirates (Q878)
+++ Bulawayo (Q193250) Zimbabwe (Q954)
--- Niamey (Q3674) Niger (Q1032)
--- Shobra Elkhema (Q269960) Egypt (Q79)
--- San Jose (Q16553) United States of America (Q30)
--- Monrovia (Q3748) Liberia (Q1014)
--- Volgograd (Q914) Russia (Q159)
--- Odesa (Q1874) Ukraine (Q212)
--- Raipur (Q372773) India (Q668)
--- Ashgabat (Q23438) Turkmenistan (Q874)
--- Kota (Q330531) India (Q668)

Stats

  • Items only found in SPARQL (--- in the first column): 313
  • Items only found in CSV (+++ in the first column): 18
  • Items that differ between sources (→ in the first column): 0
  • Total items in SPARQL: 533
  • Total items in CSV: 238

External source

https://morph-csv-proxy.herokuapp.com/?scraper=everypolitician-scrapers%2Fwikipedia-largest-cities&query=select+city_name+as+cityLabel%2C+city_wikidata+as+city%2C+country_name+as+countryLabel%2C+country_wikidata+as+country%2C+population+from+data+order+by+population+desc

SPARQL query

SELECT DISTINCT ?city ?country WHERE {
  ?city wdt:P31/wdt:P279* wd:Q515 ; wdt:P1082 ?population .
  FILTER (?population > 1000000) .
  FILTER NOT EXISTS { ?city wdt:P576 [] } .
  OPTIONAL { ?city wdt:P17 ?country }
} 
ORDER BY DESC(?population)
Try it!

Refresh prompt

Refresh this comparison Purge the cache

Customize (optional)