title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Most thanked users on eswiki
null
USE eswiki_p; SELECT log_title, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_title ORDER BY COUNT(*) DESC LIMIT 20;
{"resultsets": [{"headers": ["log_title", "COUNT(*)"], "rowcount": 20}]}
null
Reversões usando Huggle, reversão e avisos e desfazer
null
USE ptwiki_p; SELECT rc_user_text AS USUÁRIO, SUM(rev) AS REVS, SUM(CASE WHEN rev = 1 AND rc_comment LIKE '%Huggle]])' THEN 1 ELSE 0 END) AS COM_HUGGLE, SUM(reveav) AS COM_REV_E_AV, SUM(CASE WHEN rev = 1 AND rc_comment NOT LIKE '%Huggle]])' THEN 1 ELSE 0 END) AS SEM_HUG_E_RA, SUM(desfeita) AS DESFEITAS, SUM(rev + reveav + desfeita) AS REVS_E_DESFS FROM ( SELECT rc_user_text, rc_comment, (CASE WHEN rc_comment LIKE '[[WP:REV|%' THEN 1 ELSE 0 END) AS rev, (CASE WHEN rc_comment LIKE 'Desfeita a edição %' THEN 1 ELSE 0 END) AS desfeita, (CASE WHEN rc_comment LIKE '%Reversão e avisos]]).' THEN 1 ELSE 0 END) AS reveav FROM recentchanges WHERE rc_type != 5 ) AS revedesf GROUP BY USUÁRIO ORDER BY REVS_E_DESFS DESC LIMIT 1000;
{"resultsets": [{"headers": ["USU\u00c1RIO", "REVS", "COM_HUGGLE", "COM_REV_E_AV", "SEM_HUG_E_RA", "DESFEITAS", "REVS_E_DESFS"], "rowcount": 1000}]}
null
Reversões na Wikipédia Lusófona em 2014 (por usuário)
null
USE ptwiki_p; SELECT rev_user_text AS USUARIO, SUM(rev + reveav) AS REVS, SUM(rev = 1 AND rev_comment LIKE '%Huggle]])') AS COM_HUGGLE, SUM(reveav) AS COM_REV_E_AV, SUM(rev = 1 AND rev_comment NOT LIKE '%Huggle]])') AS SEM_HUG_E_RA, SUM(desfeita) AS DESFEITAS, SUM(rev + reveav + desfeita) AS REVS_E_DESFS FROM (SELECT rev_user_text, rev_comment, (rev_comment LIKE 'Foram [[WP:REV|%') AS rev, (rev_comment LIKE 'Desfeita a edição %') AS desfeita, (rev_comment LIKE 'Reversão de uma ou mais edições de%') AS reveav FROM revision WHERE rev_timestamp LIKE '2014%' -- WHERE rc_type != 5 ) AS revedesf GROUP BY USUARIO; -- ORDER BY REVS_E_DESFS DESC;
{"resultsets": [{"headers": ["USUARIO", "REVS", "COM_HUGGLE", "COM_REV_E_AV", "SEM_HUG_E_RA", "DESFEITAS", "REVS_E_DESFS"], "rowcount": 321404}]}
null
Learning pattern library - edits and editors per month
no bots, no IPs, no WMF staff last run on November 18, 2014
#edits to the learning pattern portal SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(rev_id) AS edits FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND p.page_title LIKE "Learning_patterns%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #unique editors to the learning pattern portal SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(distinct rev_user) AS editors FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND p.page_title LIKE "Learning_patterns%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "edits"], "rowcount": 14}, {"headers": ["year", "month", "editors"], "rowcount": 14}]}
null
Wikimedia Commons {{Attribution}} users
Shamelessly copied from http://quarry.wmflabs.org/query/354
use commonswiki_p; SELECT /* SLOW_OK */ DISTINCT img_user_text AS USER, COUNT(page.page_title) AS img_count FROM image, page, templatelinks WHERE page.page_namespace = 6 AND image.img_name = page.page_title AND page.page_id = templatelinks.tl_from AND templatelinks.tl_namespace = 10 AND templatelinks.tl_title = "Attribution" GROUP BY USER ORDER BY img_count DESC;
{"resultsets": [{"headers": ["USER", "img_count"], "rowcount": 6585}]}
null
Wikidata items with sitelinks to File pages on Commons (count)
Count of Wikidata items with sitelinks to pages in the File: namespace on Commons. Published at https://www.wikidata.org/wiki/Wikidata:WikiProject_Structured_Data_for_Commons/Phase_1_progress/Links/File
use wikidatawiki_p; SELECT COUNT(*) FROM wb_items_per_site WHERE ips_site_id='commonswiki' AND ips_site_page LIKE 'File:%';
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]}
null
Danish assessed articles
null
USE dawiki_p; SELECT count(DISTINCT page_title) AS num_b FROM page JOIN categorylinks ON page_id=cl_from WHERE page_namespace IN (0,1) AND cl_to LIKE 'Klasse\_B-%artikler'; SELECT count(DISTINCT page_title) AS num_start FROM page JOIN categorylinks ON page_id=cl_from WHERE page_namespace IN (0,1) AND cl_to LIKE 'Klasse\_Start%artikler'; SELECT count(DISTINCT page_title) AS num_stub FROM page JOIN categorylinks ON page_id=cl_from WHERE page_namespace IN (0,1) AND cl_to LIKE 'Klasse\_Stub%artikler'; -- Give me some random articles in each category SELECT page_id, page_title FROM page JOIN categorylinks ON page_id=cl_from WHERE page_namespace IN (0,1) AND cl_to LIKE 'Klasse\_B%artikler' AND page_random > (SELECT RAND() AS randn) ORDER BY page_random LIMIT 25; SELECT page_id, page_title FROM page JOIN categorylinks ON page_id=cl_from WHERE page_namespace IN (0,1) AND cl_to LIKE 'Klasse\_Start%artikler' AND page_random > (SELECT RAND() AS randn) ORDER BY page_random LIMIT 25; SELECT page_id, page_title FROM page JOIN categorylinks ON page_id=cl_from WHERE page_namespace IN (0,1) AND cl_to LIKE 'Klasse\_Stub%artikler' AND page_random > (SELECT RAND() AS randn) ORDER BY page_random LIMIT 25;
{"resultsets": [{"headers": ["num_b"], "rowcount": 1}, {"headers": ["num_start"], "rowcount": 1}, {"headers": ["num_stub"], "rowcount": 1}, {"headers": ["page_id", "page_title"], "rowcount": 25}, {"headers": ["page_id", "page_title"], "rowcount": 25}, {"headers": ["page_id", "page_title"], "rowcount": 25}]}
null
Users who thank the most on fiwiki
null
USE fiwiki_p; SELECT log_user_text, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_user_text ORDER BY COUNT(*) DESC LIMIT 30;
{"resultsets": [{"headers": ["log_user_text", "COUNT(*)"], "rowcount": 30}]}
null
bytes_added, Wiki Ed student editors, Fall 2014
null
SELECT rev_user_text, SUM(byte_change) AS net_sum, SUM(ABS(byte_change)) AS abs_sum, SUM(byte_change * (byte_change > 0)) AS positive_only_sum, SUM(byte_change * (byte_change < 0)) AS negative_only_sum FROM ( SELECT c.rev_user_text, CAST(c.rev_len AS SIGNED) - CAST(IFNULL(p.rev_len, 0) AS SIGNED) AS byte_change FROM revision_userindex c INNER JOIN page ON page_id = c.rev_page LEFT JOIN revision_userindex p ON p.rev_id = c.rev_parent_id WHERE page_namespace IN (0) AND c.rev_user_text IN ("Jessica.i.vargas","Njames18","Zandra17","Cstandring1","Roseskarzenski","Kassy16","Estrathdee","Madisonmcleary","Mb343","Jansen198","Anarula","Jwilliams8724","Asp212","MaWolfKing","Jonathanwestin","GloryToTheKing","Madimonster7","Tiffli","Plantaetitanum","Sohamdhesi","Thismatters","Martinodesign","Montyhasan","KTakenak","Vickywong0415","Arch361student","Pat736","Yujunliu","Skyplanner","C2zhaobi","Hhhzzzani","Zhmurcha","Brendanguyen5","Czeer","Avocadosarecool","Waleed Shahid1","Lolalore","Mayooran.athithan","JuhieAhmed","Wendyxie99","Lilitiana","Tingsonn","YaeRamKim","KassF","Elyriz","MediSyntax","Dbar22","Student.richard","EthanBazos","Liuxia26","Gyrodrew","JasminePrincess","Nicolle maikawa","Luka.m12","Byteofprash","Arctickinkajou","Lizzy8127","Rjmath","Rocket027","Rsuwsearch","Johnhart151","Hurlej","Z. PUPU","Liann2009","Piesquared93","Cookingtheworld","Aplusisamust","Kmarc94","AtlasCaproni","SamRichards81","Btrentin","Amywalsh08","Murphyaeliz","Cjkeen","Lohlin","Aputulyan","Incamonubus","LaurenDiaz22","Mcfanning","Grm0112","Baileyq","Sflanders1","Mvfarrell","Anaff91","Lindsey Mangus","M.sabouri","Htroast","Sdelgatto15","Larharmon","Akersm93","Ccngodoy","CIRO28","Mari ferreiro","SamMarkowitzUF","Scowan3","Secahill","Sean McKnight","Tibanez","Nicholepanico","Dmurph1414","Jboyar9","RangerGator","Flamontano","Shivam.truth","Sammanhumagain","Yuppie138","Suniti karunatillake","Amandamajor","Slmwalsh","Angus H. Woodward","Pbehan1","Jongrnl","JmFrioux","ErysimumLe","Jhareemy","Nickeckenrode","Wdjeremy","Procsworld","Maagicalme","Emmanuel.O.Danso","Djsmith12","Bmrule","Stacymead8832","Mattclare","Gforsythe","LibraryVoices","Jelly Bean MD","Rl11ge","Nm13su","Kv13hu","Vr13zk","Hw13na","Bt13zs","Jb11ko","Aw14uw","Hy13ac","Rs13cs","Jc13ex","Kt13us","Lh13lg","Dt13nz","Bt13kybrock","Bm14pq","Vw13mp","Ds13nx","Ap14bq","Vs14gj","Dm14qk","Ad14xz","Kr13al","Ar14bj","Lh12qv","Dg13gq","Md13sd","Sb10ok","Lb13an","Wd13qk","Sg13vp","Kg13la","Jm14lp","Jf13jo","Wd14bt","Kd14hf","Kp13mn","Tm13wg","Kb14ie","Vs12vf","Kh13zl","Km14dv","Cm13pj","Sp14ud","Jm14kq","SHBROCK","Ak14au","Ak13sn","Sf13yg","Zk13be","Dg14pv","Rb14kabrock","Jg11pv","Ss13zf","Ek13ld","Ba13qy","Ns14cj","Cf13za","Jc12xu2014","Adams sam","Mh14wc","As13sx","Mo14rnn","Sg13bc","Tf14rg","Mh13va","Cv14bk","EYates","Tt13lq","Ls12ue","Kf14af1","Kl13ah123","As13qf","Kthequeen","Acane88","Karmstrong25","Larox7","Arroz29","Sushi242","Decafespresso","Mcraab123","Gilliark","Andreabee12","Jsattler07","OrangeZabbo","Deliirving","Jcbjaw12","Jessiechapman","Keithpaulmedelis","LMR0804","AbbeyMaynard","Kjatczak","Unbroken14","Marrosann","Bellerive37200","Zombiesatemyneighbors","Samjam830","Cales23","Hatigges","Locke Perkins","Sminion01","Bulldog53420","Djansen15","TheDudeReigns","Thefiveofus","Psychnut93","Nativ32","RunIowa","Mhxelamh","Ollin nahui","Thisismyusername1994","12thManSeaFan","MaScott14","Macmaclee","DudeReigns","Isteponaviciute","Koconnor31","Jjallen18","Omiller1495","Jbomb482","Klitenin","Srowkrom","Gethomas7","Rerricocolgate","Obrugal08","1980na","1993ke","1993ag","1993kc","1992ml","1985ap","1992ls","1994gm","1991db","1993pg","1994ms","1993sr","Canalesa","1993jl","Manzuetak","1992MC","Mariaccerro","1993JT","1994ac","1991mc","SebastianRizzo","Nelsonana","GrandpaFly","Tylercpetersen","Thib.renou","Dodier.k","Ceaseandexist","Terose92","Isabellemcelentano","Jessicashamma","Addyre","Arangodurango","Estradanats","Sarahnals","Elizabethrivelli","Keara KB","Ohart3","Kessler.254","Antlady","Mholding70","Davidsalazarv","Yzhangfossil","Larson.309","Siesel.12","Walters.597","Huck.44","Stephenoff.2","Grady.303","Malik.138","Johnson.6455","Mazzola.23","Patel.1340","Devenport.1","Martin.2489","Alsaeed87","Khawaja.6","Murtha.22","Sidhu.24","Fink.182","Thomas.2553","Iwais.1","Daouda.1","Davis.3548","Sheenakung","Stuhlreyer.7","Wesselkamper.1","Nguyen.332","Nootbaar.1","Eberly.52","Brandel.23","Price.820","Hanna.225","Medford.6","Crissinger.11","Amrania.1","Bennett.829","Patterson.662","Brigner.15","Maloney.138","Turnbull.41","London.34.osu.edu","Owens.977","Bellisario.4","Amatorio.1","Roberts.1104","Aprilou","Payne.431","Wolfer.13","Cole.622","Maddieroman7469","Mccoy.484","Hudson.336","Dewitt.131","Robbins.260","Kimble.82","Falter.27","Kmarth.9","Kkennedy657","Lauterbach.7","Gravelle.8111","Amariotti.23","Wodarcyk.5","Panzo.8","Flint.39","Oberlin.24","Bentley.140","Conkle.30","Strange.33","Bryant.1497","Fuller.328","Moodley.10","Chiu.161","Bukstein.1","Willis.421","Solanki.15","Mikhaylyuk.1","Psellas.1","Dimarino.9","Harpster.33","Kreinbrink.31","Knisley.46","Krouskop.9","Collins.1116","Quinones-betancourt.2","Huber.339","Ignasiak.6","Cain.209","Allen.1446","Haynes.239","Chexi.1","Rummer.17","Hagerty.49","Eisel.17","Grumblis.6","Arthur.181","Willey.54","Baugher.16","Slingluff.5","Wang.3643","Pinkley.1","Film.1osu","Horbaly.5","Marshall.833","Warner.474","Chang.572","Larentap","Hickman.209","Mills.282","Fuerst.36","Rachwal.1","Mckinney.264","Hughes.1332","Lawler.70","SarDoyle123","Gonzalez.329","Borninsummer0811","Shin.378","Lacy.74","Mcgue.13","Wilson.3308","Erby.7","Behrendt.18","Hershey.60","Dolven.1","Saridakis.5","Snodgrass.370","Meakin.2","Mcgheess.83","Koporc.3","Bowman.1289","Przygodzki.1","Wittman.33","Doherty.76","Block.101","Roubal.9","Benson.334","Mitchell.1071","Shine.21","Pan.339","Jama.51.abdullahi","Yasmeen.04","Gruhl.1","Iannelli.4","Fixler.3","Stewart.1090","Abbruzzese.17","Behrens.42","Dkoman.4","Barrett.206","Fox.1030","Langhorst.7`","Abraham.135","Bieniek.3","Nalluri.9 osu","Giambruno-fuge.2","Shuman.39","Obrian.11","Mhay.103","Rutana.2","Mohamed.156","Pomento.2","Kraft.119","Ondrejech.1","Small.139","Wagner.925","Hartzler.64","Chorba.12","Murakami.107","Hampton.167","Shippley.3","Doan.77","Coale.6","Sumner.44","Park.1529","Vrabec.4","Barstow.12","Westrick.36","Sabol.39","Guggenheimer.3","Ramsey.398","Hites.17","Mountain.22osu","Shapiro.107","Pona.1","Hegedus.13","Rsoni.319","Cascioli.4","J.abraham.133","Toddy.6osu","Roberson.80","Alombard.9","Sagarshamman","Mejia.25.osu","Clifton.50.student","Reagantownsend","Kyeremateng.1","Malloy.65","Hauser.120","Brandyedmonds.93","Eyster.18","Strite.2","Yoho.28","Collins.1128","Stine.45","Samirayasmeen.1","Stephensen.2","Wulf.174","Anderson.2207","Bruno.107","Bennett.896","Kubina6","Taynesbit.18","Pallotta.8","Bigley.13","Lawson.329","Faherty.14","Schneider669","Emery.86","White.2015","Ryan.332","Ali.280","Boor.17","Eberhard.27","Thomas.2662","Tfaridi.3","Townsend.760","Hill.1770","SeanJanezic.7","Doyle.280","Anello.6.osu","Pangapalan.1","Hudgins.13","Gibson.701","Chicaiza.1","Houchens.9","Stammen.44","Drhubin","Wells.1105","Hrivnak.14","Ector.6","Givens.87","Jasani.5","Cf105308","Allyleah817","Eh598110","E.Kassel","Angela Reighard","ZackaryMullikin","MattSchimm","TayMills","AKrahe","Jp302408","JonieXie","Brendan.Hunstad","ATBeach","Mkak8","Alliemarie101","Malcolm Pullom","Ogatism","Seunathm","Whitek67","Allthenope","Tullye","Zoeydodson","Amuzzarelli","MasonnTaylorr2219","WxNYG","Alicia Pileggi","JG StoCoNJ","Emabb","Reed0310","Jenniwisniewski","BionicTwinkie","ButchDestroy","Cecile Flapjack","LizBacon","Rsc.kimn","Amazingdannyboy","Yahrlinm","Sjensen3","Charlottecostello","Cpontell","Esunnucks","Tingflorance","Kfruiz","Aasthak","CarolineHeyman","Kunselman304","Aadedoyi","Hdewey","Seanaleys","Tbritvan","Julz raad","Kboeckl","Jackfitz5","Sydneyp9856","Adelogu","Rungos","Clavaden","Amsinger","Christina Dailey","Sarahmey","Slm88","Tcgasdia","Acamhi","Anika.sikder","Emilypeet","JSutton2","JillSutton12","Nbrozo3795","Blessing Ekanem","Damian jalali","Evanmascaro","Agilmer1","Alasia50","Thewitt1","Martinagonzalez95","Jo v 123","Cjumeh11","Samgriff","EvanM15","Lizzyrubin","JustinMorris10","Leahcoll","Jwade3910","Mbenner1","Andrew.Bechtold","Mcutry","Willierios21","Ookeefe","Halbero","Tjethridge","Pnmarizan","Plloney","Hrguthrie","Djyatesusi","Mqpuntney","Shenderson8","Phhenry94","Lasmith8","Almaurer","Gmstclair","Madigrass","Ctmusall","Mddaumas","Nmawbrey","Mklambert","Amaldridge","Mlparks","Erwildeman","Seloesch","Cmgarciabr","Eeburns","Saconia","Courtoffrank","Darkmightyaj","Cnixon1","Damienburge","Bradieg","Crgolden","Mewest93","Gkstylianides","Gallivantingfox","KurukaNyuki","DiSchamelrider","AnatuZeder","RekishinoJinrui","Bananaschoolbus","MusingMollusk","KoreanThunder17","Lady Miyazawa","Giraffacamelopardalis","A mzungu","Losskakel","Kellypm94","Tessaclarissa","Deluminator","Spacemansuit","JLebowski94","Cookiemonster57","Cameronpage25","Slarrab","Tthompson70381","Oksoha","AEsquibel23","Caity8","Oliviashaw","Odinlosemei","TheTurf","TomOlney","Bryan Wicker","Karlfinai","Colten Hansen","Cj2300","Sgipson13","Shadowbolt7","CaityJanelle","BrandonAndrews","Dionnecoe","Manaiaperese41","Ashton22","Saminnaqvi","Msalazar1184","RiddlerCheezits","Bigappledream","SHCPSY150","Yankees4Lifer","Mapple488","Gs116","MMartin23","Jdi0014","Ntreg19","Megan Major","HuntingPsych","Exotic necii","Gemmagerber","Psych8","Sloan.16","Shamiek01*","LawlorEducation","Thearkhamknight","GasparJohn","Shmapple shauce","Nyaax10","Jamkaymee930","Swoldier","Azimeaydogmus","Jekevin","Jekedey","Givemeyomoney","Brooklyndiaz","Krissymurphy9","Olenagina","Jtheresearcher123","Ghatzz","CMa1780","Hermanpsychology","Pm131","JosDiner","Myhumandev150","PatrickJanee","Arista2014","StudyReadyO","Kaitybah","Psych150wiki","Human-development150","Slamdunk00","Chocojellykim","NikkiK87","JohnnyHospitalCorpsman","Psych150","Shendr21","Jkjg.gc.cuny","Ppetiteframboise","Andrea Hunter2016","Vanessajl95","Enantiomal","Racha1289","MissShellyWiki","MrskKathleenjohnson","Ve-hunter-511","Ozana75","Jjtaufikur23","Chocolatepie231","Pegala","Lalalacharlie","Bec2493","Yayyme123","Jessica.js053","IDidThisForSchool","Su521168140","Blondebunny","Johnpsych","Keicee7","Afsanasays","Kow2","In185","Nancy0311","Kattikat","A Mandrell","Ziggapedia92","Happygirl333","L0velyTon","Clholmes724","DLim28","LepurushKiki24","Nejipsych","Hunter4326","Eyecandi","Flashope","Thatnyc","Wikiuser1915","Wikipsychology150","Rose Sky12","Arlb915","Brownie222","SoccerCoach90","Deltamouse09","BearrLove","Allycat0627","Psych15","Psych150maria","Nutrition.and.Health","Kanzaimamoru","Bluerose0","Psyduck12","Mayala92","Ccmdx3","RajnitsEdit","StylusOne","Gcch0129","Ayoitzbobby","Cholmes724","Xforbidd","Henry150","Gdlc0104","Patriciab19","Psych1500","Balon10","PsychMG","Jow29","Wiki456ert","Lantokay","Charlimckee","Casinobrawl","Amcook14","Hansenr11","Jmitchell033","Rusnaka12","THENEXTLEVEL94","DominicRHocutt","TheMike85","Bryantch12","Alexanderbhorne","Finochiousa","JEM2895","Cleytemunoz","VanceB88","Sedonia.scott1","Rizzom11","Raysmithb12","Paulrut","LunarPrincess","Hous0088","Allison.L.Argent","Tous0022","Theicedancer","Pinkfire103","Whit0801","Ambereyes94","Robynviv","Memelme","Rena0173","Shantzb","Lam00100","Emma3171","Lastdaysofdisco","Shi00038","Brug0009","Csarrow","Zachupe","Megan.Ziebarth","Mccr0121","Lebrunsky99","Buck01510","Izzy'sHeart","Iley0003","RandomEditor1010","Crou0036","Stephla8","Kaitlynlaws","Cund0021","Alexinecmarier","Iblamethegnomes","Nolantyler040","Kat5446","Kseguin82","RockabillyLibrary","Kborys","LainUmbra","Angellh","Kborys1","Sessamo","Lexalou","Aiahsumana","Xucy","Novelust","Krishna418","IshtiaqueAhmedCornell","Alexliow","Kidd hudi","Dmh265","Abbysonn","Dcl248","Cjm274","Aquamarine315","Mzb8","Mfrosselot","Alh272","Mosammad93","Isabella.krell","Ket47","Carolynella","Mjm627","Gk252","MSarahKurahashiSofue","Abdavis329","Kategruenberg","Fr237","Jit3893","Cw585","Vmdavid","Mwong850","Avibavi","Lhe3460","Oas22","Mzw3","TaliceaCU","Kateheinle","Narange1","Im257","Zy87","The Da Crook","Sjoo446","KathyQX94","KieranKinnare","Abhorer","Lgao33","Hkm24","Krtiffany1824","Abs296","Tkw32","Skylerd23","Jordan Wech","CeciliaIachetta","Ajbose","Jjmomoh","Jaxsun","Danachos","Wmengle","Xmizuro","Ziyasummer","Vloewen","Angieghirra","Liu, Y. 90","Vvanzee","Atonello","Tsadler00","Waitingxu","Cnorton1","Gaytonan","Emmaharris32","Bibliophileb","LingAnthNerd","Gelainamah","ChristianEpp","Wikitrishslp","Halinapoho","SakuraChii","DzhouLING300","Kathyhht","Argentum 93","C4gw","Krissong1994","Imoe 5","Marisadavidson13","Izza157","Kndouglas","LewisHaas","Rchomat","LeKevin1919","Zengc","Mjung11","Dianamen","Colinej","Hannahjtalbot","Cjowyoung","Jaylinm","Jcjjfu52","Tdpoulin","Nhmathisen","Cedricha","Jlenz93","Lizhugs","Stephmau","Kerrkelsey","Nyashby","JuliannaIvanyi","Cnchia","Millywkh","Cadicksh92","Baillie2","KristenMcB","Veegu","Sanjen50","Alicears","Abi.manuel","FionaJEd","Fannyfish0224","Oyeung","Rrrrrllllleeeee","Sweeeetheart","Cchar94","Contko","Ttam1987","Ylyvonne","Dbell92","FulcoE","Jessicabarclay","Tinalin728","Maebaran","Sofiamcor","EnriF","Shelby.simar","TatumLyles","Mike Evers","Bjandrus","Nchild2 lsu","Shannonmcd4","Cavery8","Lvaugh4","Natker","Bdaul2","NicoleMusthaler","Shakespear5150","Emferr15","Chang21liu","Kzhan15","Mmorr42","Drhood2938","Awebb6","Molear3","Sirbdurel","Hongcheng Guo","Ebuhyo1","CRD897520530","T.J.Hebert","Eleanor W Smith","MichaelZuo","Carsonbanks812","A.bre.clare.","C.McGaw","Ajamesm28","A.A.Hoffmann","Lsd1990","Geologyanli","Jobelcz","Tawfik77","Snguyen1993","KAIGE1992","Jfeight","Keenoymk","Mrupert44","Nicolepfelix","Kennis716","AutumnRoseWobrak","Jdevries53","Leoisavirgo","Frymiers","Curranc17","Enrightk","Schmorg","Cretellaa","Rezwane sarker","Katerinaax7","Spfeff22","Ashleynaleman","Josh Bonnington","Ryanclements","Gabriel817","Halenbutler123","Amycogdill","Couldbeevangardiner","Emily Grobe","Cje25","Neepanator","Likegoldfish","Bmw48","Kimvalleeee","Lescast","Addienae","Nickapplewhite","Tannya1018","J.marshall c","Ty9139","Amm349","Loneoso","Cperezdavid","Davidcisneros","Shelbyalysse","JJH116","Jsricard","BenjaminTXK","Slateef1","Christa25r","Seymour butts1","Kmo26","JonBorazjani","Bfpage","Ellingtonaustin","Apu.Naik.Austin","Ekmixon","SamiraDF","Dania1184","Jjl1515","Mariamerkin","Cw1377","TheKLH","Catatafish2112","Vnicholls23","Kareagan","Csalinas72","Dgk00240","Jy1080","Johnnyalexp","Avprice02","Mep71","Emz4415","Jessiejohnston07","Lauraelizabeth95","Kattnish","KMacClellan","Deirdre.romer","Alanduval","CourtneyStaib","Gayonking","Budljin","FERNANDA BALLESTEROS","Bryanmerino94","Montannahmungal","JohnSZuluaga","Christina papadopoul","Alexandra.eich","Eliza Sniatkowski 1234","Dollywei","Razcam","Monica Parisi","Jwalton318","VSummer","PaulaBalondo","Dn1993","Ilingwiki","Nykima","Granturcos","Dzakowicz","Liannahosein","Katnishi","Heidimkahle","BSchilling","AAla-Seppälä","Appleangel11","Dwang41","Nnlpz","MCRU","CamilaKennedy","Ratilley","Hhoover42","Kvanschilfgaarde","Aqjiang","Rloftis5672","OLucier","MBouchein","Katcai02","Lindaticket","Benito103910","Aaie21","Rgalts","Magenstat","LHall19","Zroscope","Yangjennyh","Asaearnest","SpencerTong","Syamada","Katieortman","Krausea","Atkarp","Dkrinock","Chiararosenbaum","Jamiehalpern","Cnemelue","Sandyamuchimilli","Tgalosher","Ashleyearley","Marecto","Mhimmelrich","Akinjenn","Mayxac","Elee715","MadisonPomerantz","Ajlu1","RJPet","Carzhong","Peivaz","Micah.Steinbrecher","Jazdeb","Kaykup","Sydney tj","Kirinne","Amgoldberg15","Gaharrison94","Amanda.Kalupa","Setoiris","Daphnedeng","VGurusamy","Probertsg","Gcheng94","Samontenegro","Annamargit","Alison Gozlan","Kellykries","JackieOh0223","Ruaha","Diana He819","Rey ks","Dwjoanne","Three is me","Mmgrady2014","Allisonboudreaux","Jmil226","Pbedor1","Jjain2","Dalayne95","House Atriedes","Lforsy3","Gogogourav","Hsulli5","Wabbottt","Alileake","Supertiger79","Helen A Ayres","Wildabeast04","Ebushe1","Tad537113","Ericchomban","Pumpkinravioli","Ashposh","Sve413","Jg9611","Halle330","Emmy121209","Cha202","Superwomen16","Sharknado125","Ob2214","Bkrunner13","Gkg105","Nar5414","Laurel2017","Llwwiki","Whclass","Sibella-hallward","JLucroy2013","Griffith2102","CriticalAlways","FlowerPower2016","Summ day","Dogsatthefarmersmarket","Wordknitter","Dasani125","Greenmachine21","Vanyyna","Pinkmonkey31","Marvingaye55","Peacefulplaces","Pripan","Vvd12345","Asdfghjkldlwltn","Krsmith3704","Esth270","Bluemoose323","Bnard1234","Spuddybuddy821","JambaJuicy","Obliv123","Jeffboyer","Leah.moulds","Mykwan","Zephyra35","Hannahnelson","Ndsuamanda91","Allison.j.morse","Andreabocincova","Pinkfloyd6491","Ahellmann10","Angie.Scott","Matte Skought","Becca.darnell","Steph2016","Emily.Lesser","Alaynakrantz","Jess.ndsu","NMartin319","Mschmidt44","DeSpa49","Brandon Fischer","Amberdee3","Kg1214","HRThomas15","Shelby.a.schields","SteveBaker93","Logan.r.martin","Briekm","Canvaswrtr13","Rude23","KatVoronova","RachelTod","Nicbie7","Cynthiarodri","Sschroth","Lbednarz11","Brooke.bjerke","Kileysmith","Trevor NDSU","Dustin.j.mueller","Sadia.abdulkadir","Luvpaws","Msennie","Cristina4459","Iandulka","PsychologyinNoDak","CmdrDan","Bhongwiki","Dmou","Seasaltpitachips","Apasilia","Hwaeun","OComm2014","Sfathima138","Akaychestnut","Sposney3","Vgnaman","Emilyhacker","LauraC1360","Hsdouglas","Karsegal","Bwiles","Snatu","Sachels","Jmendelson87","Jamierupert","Finding Zeno","Cbku1987","SWhit2014","Kemady","Lyoh","Cosander18","Jdyocum","Jenls01","Djc2219","Kmutley","Cedupouy","Pappjacob8","Aslihanokan","Smashenhurst","AVR22","Stephvau","Doddsjennifer","OliverClayton","Gcellucci","Maysa.saf","Huntere2","Debbiekerr12","Kaupsmel","TimLoku","SaraPeters2442","Sarahkovacs1992","MELB88B","JuvR","Michaemg","Rileykm","Szanyim","SimonCarroll","Newboula","Amlorance","Pellissm","Captain2020Hindsight","Chartika","Kcoursey","Mccordj","Ruggabec","Amkloewy","Matthewvetter","Mmmm1778","JoshPross1","LeonShwebels","Clarkta76","AnessaW","Dmd459","Ef704813","Ferguson.K","Livykat17","Whanghansong","Lauraegarofalo","Amratha","Eggvric","Jrobi8","ZarolaA","Mkafato","KohakuHearts","Gsing994","Jpalme53","MatthewMckeen","Afaller25","Dhe0124","Ramtin.sirjani","Fullwoodenjacket","Yoyoshii","Deborahlelis","Cmatth","Kinchiu49","Mkingston10","D.letran","Idengaku","Fasihs","Kmgibby","Tlyons11","Mhomayed","Ginseng777","Trailinthewoods","Meredithbarr","Edwardjhigginbotham","Brenleyjohnston","Rmurph25","Claire.Ath","Nthoman1","Cnewma5","Emmareble","Trish Nugget","BVervers","Wburke94","ChrisDumigan","Anthony1424","Melissahwong","Miacocca","Chris3922","Darrenr33","Ramankalaic","Swx468","Meaganbotnick","Wcheneyuwo","Dwright123","Abalardo","Bkim227","GurmanS","Bdoc13","DocJML","Wsdixon","Dhmalitz","Nmaganti","Sfkuo","Hsse27","Nith117","Olaneli","Hschenks","Zeze bazzi","Anapkut","Vgudu","Scristie","Soumigchem","Dialaali","Arshpatel","Dutcherh","Leeallens","Melum 103","Rneelam","Lifelongsciencestudent","Dsrapp","Cev455","J.R. Wang","Akokoruda","Mbrdgt","Rcalleja","Lfarhat","Yawmalik","Sunilk13","Vkapila","Srinath msn","Squeekur","Amcconachie","Jethrogb","Taliyehh","Mjberger","Maimas13","Beccastanger","Jeffkysun","TomvN","Robinkalia","Vaparedes","Deckdeckdeck","RocketTestPilot","NilColin","Yxgetlost","KZdepski","Fellis82","Lavoiekh","HalSmitty","Frankelfrankel","Danrmiller10","Tgstack14","Tori gardner","Alex Sload","Pjk76","Zl116","Lf480","Ae482","Dk802","Jk1618","Yutingmissdelphi","Sh1208","Ftehrani81","Plb40","Vision Liao","Fabrizio Drago","Vsomasch","Handanuslu","Frankiefillis","Ar245891","Emmashavrick","Steph.solomon12","Juliabeatley","Alexaurbach","Alexa36","Ejunker08","Jengoldberg315","Abarranca","Cq245809","Caro.woods95","ChrysalisThyme","SarahBatya","SFerbank","M.stoss17","Morganreyher","Lucaspark57","Lspmahdress","Adnotatia","Otaylor123","Erinanorton","Look-at-me-i'm-white-and-nerdy!","Patrick.fagan","Bbf154","Nsterling22","Floydcaro","EmilyDuggan96","Cgh753","Jhf893","Pww264","Notmrjones","Calowe1","Ari002","Simonlillard","Hulltbrandon","Aaprieto","Rfuller2000hwr","Jonathan.filson","Chiver620","Rtm1995","Cmsallas","Bee042211","Quentinfk","SierraPitts96","Kburr11","BenVega","Grayanderson","BWatson55","Thadsmith1234","Smchattstudent","Rcschoch","Fabian Tompsett (WMUK)","Zbanihani14","CarlaSP13993","JeheliO","Haleydionne","Dderiggs","EWilkerson","Brian.mikesell","Sbernt13","Csuydam11","Alex Redding","Aslihanokan","Zbar25","Mdekhne","Lilagstein","Madelinekd","Phannmonica","Anissalee","Mleonard410","Jtg3155","Jfreem","Schwem20","Warrenr13","Johart1","Jkolansky","Azlatkin","Nayyir.ismail","Cait ash","KBrajkovic","Scout37","Che02011","Seangun14","Pstrike","Rbeckles","Asw02013","Firstfeathers","Kthill00","Riverison","SK6074","Scremin17","Pernaanthony","Boothychar","Dfg02103","M.olga.cisneros","Nessajrosato","Kha2714","Smk22012","Mgm02013","Lfh02011","Dmp02013","Annahansell","Twillm93","Aleclong","Trl22012","Fushimic","Romarioquijano","JPEspi","Phoebepoonn","Pnwkev","Liamqc","Xxdboixx","Nozkrov","Elephant 16","Yoginih","Mlaboda","Mushpatatas","Aidaja12","Knicoladyes","Nnickiee","Uclisa","Rabbit white","Kewall27","Jaitlin206","Andrew Thiessen","Happygardener","Jmarieg08","KateNegley","Urban walker","SleeepyD","KEGrowdon","Zoebloom","Alexateo","Niels115","ElizavetaSouslova","Lap91","BUKNAE","Yibo719","Fit fem","Silverdaisy","EricB.UND","Megsn21","BrandonMitchellOliver","Amyas.derouen","Bsaf","Brittany.Roden","Shataralynn","Jswen01","Abbeylaughlin","WhitmanD","Adrianna Mathis","Raev.Pesek","KeaLtuck","Becagulxson","Shayla.pierce","Buchander","1945hill","Malia.grosz","Shane.wagner11","Kayla.norton","SteinerA99","Kaari.burbach","Emily.fisher94","Joeshook","DRominski","Amanda.willyard","Psycschool","Benjamin.m.johnson1","Heidi.j.long","Taylor.wild","Jendfoss","Afontenot131","Harry3740","Benjamin Haywood","Svaughan90","Knixon4","Cstrin2","ADavil","Dmccrimmon","Klope15","MiaJ601","Rdusan1","Huimin Zhong","Jreuth1","Kaelamorin","Washoe42","Nwallenb","Kimmybas","Hngo22","Mevelan","Vprovenz","Jmacka27","Jodinu","Rstacey4","Ali287","Jcitrullo","Kmorin2","Kfishmauwo","Sarahelizdz","Sgirds","Arielagut","Smatlow","Brysonparks","Lramesbo","Rcannon2","Mcunanan11","Brittrodgers","Ciaraparsons1","Sdziedz","Tharikrish","Atd5","Akagenoangie","MeetingoftheMinds","Environcon","Econtruthseeker","MandaJane03","WisdomInTheEyes","DevOceans","Doncvousavezbesoind'information","B mbc12","AStreetCarNamedDesire2014","RachelNCF","Colterlena","Logan.grabiel","Margotmooney","Run desdemona","Tania224","Rebewm","Emmak96","Yvaeth","AMaldo18","Shoshlg","Andrew.blackowiak","Nerd648","Dejawhitfield","SydAtWiki","Taniarose","HullIntegrity","Dwight Kruse","Judy214","Spectralsound","Montessosa","Whenallisdarkest","Campany","Azebzda","Luis.Moya86","Rosalyn808","FoxxyRoxxy","Sashalee930","Tyarra525","A.chang10","Tariqrafaf","Jocelyneroles","Writes4free","AdaPatruno","Yrom","Victoriakataev","Yesse0912","Leniastar","Apple7182002","TinaThakur","DIANAENG102","NicoleAva","AYeemeeL","AmandaCC772","Deikadaniel","Nogoodnamesleft84","DR Ortiz","Francisco137","Selorej","Ninfag10","Jamesbks123","Troyramadin","Hillaryk1","Youngjax3","Apple7182001","Ddurant 1","NicoleAva12","Bilmanias","Nlb329","Amilcar Shabazz","Ekmixon","Icekubes17","Drewclarkofficial","Cbazinet","JlaingIII","Bpdonovan55","Btaylor1836","Peter Cappiello","Imutebi","Kipet15","Fleuryj","Tricewilson48","Isabel Sarah Mitchell","DmccarthyUMASS","Ehanniganpage","SogeKingBruce","Theodoramakris","Twpower22","Tarynbrier","Ianmills93","Robhunt94","Nhullus","ParisaZarrin","Kate5405","Hwan18","ChelseaThiboutot","Jtannen55","Kdangelo","Kelseychristensen","Cahlborg","Coreymortimer","Bogalvin","Tblynch20","Jamie umass 2014","Cmwal1","Lebbraun","Adaar117","Jrliff","Pannellcharlie","Jordanliff","Aohanlon13","Hiefilmbuff","Marinaawadalla","Oliviadias8987","Can-Rep","Communication1234","Laceandchains","Thulianpink111","GemmaPaquet","Adamtomlinson324","Isabelr92","Claudine.Sabat","PaigeMini","Stephentomas23","Fatemah.hira","Amaddalena","Karren10","Usha1960","Skes7272","AndreaHenderson02","MAG95","Rabirami","Jennifer mk","Gregsrock","Jjb2576","Sgobeshia","Amyterminesi","S.cham91","Ridgebacks19","Gnoclap","Alexwism","Hannah Elyasi","Yalini47","MadelaineSouthwell","VMalcolm24","Brendancane","Rachaelserediuk","Julzhernandez03","M4Munro","TheMediator3","ChristinaMilburn","Nicha01","Rabiya2010","2yearunistudent","Yanniquehen18","Rmdaly93","Pf19872014","Mujtaba1996","Bandelr","Helloandymac","Mr011709","Edsantos0107","HHH25","Waymondt","Ahmedtorakhel","FrankDonkor21","Nehalchauhan96","Khad333","SeanWk12","Emilie.owens","Ramya24","HUNT199617","H9617","Trippleare","VnessElizHart","Jaytos","DonkoC88","Mispace101","ChanelKanku","Sharifi03","ErinComm","Beauty4ashes7","ChrisJenkins-100460518","Devitee","Elahtm","Angry.cake","LaineJoey","Sarahann2424","ShanSJose","Rubymt","Naveed24","Nixmixx17","Keelseyr","Fatimahmulani","Foram shukla","Selviem","Floof3","Agrisolia","Kshawww","Jshanoja","Snassr","Uoit-comm","Uoit lyons","Muhammad Haris Khan","Palcona","Kmcaloney","Foxydroid","Toritse22","Saadk07","ElaineL92","Heatherj963","Vmoscoso","Pri.gh","Jillianstarkie","Ashaaliyaa","Izzyboy202","DC1979","DeannaLFoster","S.cham91","Theory and Practice","WaheedNaseem","Stirling1716","Natidreads","Maclean. T","Siimsiima","Karen.1234","Travmartin12","Idrees Sharrieff","Carrrrrl","PrincessOroma","DCorvari","Trinity.T","Kwikisss","Brittvand","Rikki.lund","Juliacsmith","Curtis.skeete","James.woodcroft.jj","Rymcgregor","Zyith","Samantha hogue","Seth castillo","Bwise1712","Robynnegrace22","Malikjk","JYhatz","Matthew Gilbert","Alexpamintuan","Sborisko","Jennnaz","Quinn.Doherty","Brenty1","Bhardwne111","Christinabj","HanyTaco","Ramez21","Denz soul","Samia ah","BrandonM46","RyanGoldsmith93","Bettster881","Policewikifall14","MarsKrys","Debaser42","Clawson93","Msiersdorfer","Mgmaynardumass","Pjplummer","Bsenopou","Fmanzon","Brendanhoffsauce","Jennafaherty","Courtpm21","NickP38","Wendyhtse","KevinHowe12","James.Travaglini","Nikiwiki9","Mcreid","Rdanto825","Labossofyou","KriGod110","Elephants394","Cjlombar","Goldenjaz","Valerie Wittman","Cjlombar2","Weihao0521","Rocioluo","Libralavender","Lxtlouise","XiaoxiD","Hahalaugh3","Wuplus1992","Mek135","Chenmo624","Ang Chen Pitt","HaifaAlNasser","Bdarren","WenZhang61","Susieqiu","Zyyswallow","Mengdiwang","Dd-556","EvaXue","Siyang26","CAP129","Adamwang0705","Aljasim","Crogand3","Rachel wjrx","HarmonieNK","Xmxiaohuilin","Cbowman7289","HardTime101","Aparuthi","Sylvia198899","Stefxyx","Dlh012","Ack42","Grprashanthkumar","Pnityau","AnvayPradhan","Mitalee Patil","ChunChungYang","Zis10","Zhaosanqiang916","Slclemen","Nicolemccann","Cecassid","Kmsugiyama","Xochigrace","Jswcp2015","Lkelly03","Cpsustud","Jen london","Tachibananas","Kfitzp04","VCarranza91","Eli Tj","Ra13chelli","Cheysommo","Shoelace453","Nicolealeger","GraLimon","Kramer121","Bmgibbs","GBninetythree","Flightless13wings","Bananasae","Kbratt5","KelCP","Meeshell645","Rreth","Risqueraiche","Shannonbethm","Ravenzoo","Tjt597","Safeldma","Jaflemin","Albrch","Whatwhates","Calpolystu","Noirowoze","Silvsrod","Tommyshortbeard","Josiehoudini","Wolfpad4","Dkchan99","Abegin93","Sayruhh","Ashleysafari123","Lpiraro","Dpboyer","Karaerickson","BonnieBurns","Jiannilelewis","Myanez01","Apeter29","Gjimen02","Shivanakhatod","Bets117","Tgrider23","Saferrin","Dillon-robertson","Handsanitizer123","KD1004","Cdbart16","Jgb343","TasneemE","Trickwik22","SavanahNicole","Smanicka","Jjuulliiaagguulliia","Znxbcv2121","Gabiravioli","Cierrajadell","Asduner","Caseyd612","Zanezilla","Poetries","Cborgman","OCCalagrimas","Cmckinne1991","TaniaArguello","Valkanasv","Rose0244","Jms457","Svs658","Graciehope","Kmulier8","Rabb8","Mirelgil","Averysf","Aciurcina","Elk234","Dhwanivani","Theannetelope","E.manning23","Cgreen15","Deontegib 13","Zyvzyva","Jacksonbsbirdsall","Jchang27","Danmayornw","Mattfasa","Cmw2314","Yeeboyeee","Dentm06","Jmshep","Nrajan13b","Katied44","NaheeKang378","KJHoff","Evazquezp","Charbooth","Monohelix","Harrietpalestine","Emilyfff","Boothychar","Victoriapalestine","Chennault41","Chrisbarnes19","Peterxeno7","Don chen96","Nickvuc","Anabelgo","Alexseidel6012","Pablo.ordonez","PaulReed6","Sjs02014","Cristianpadilla1995","Jlukacs","Vcourts","Jess.maldonado11","Dafoard","Peterakeley","Jagreenb","Sabrinamcmanus","Amandalewis21","Rterrell09","Mcamp437","Lconder","Smcneil12","Murph93","YenLingChen","Mtgarey","Sdard","Elsamondragon","Lizrjohnson","Jrstein827","SkBass08","Delta5012","Mfrumkin","Sarahlew22","Dboxwell57","Ergunner","Akerhoulas","Sftomlinson","Aldole15","Heysarahhey","Wsickenberger3","Tdragich","Jtrex2015","Kirkalex","Egoldman3","Jkyoungstrom","Lucianico","Etlb1992","Jakeku5","Sarahngolan","Dboxwell87","Piesquared93","MikeyTheCamel","Coolgrandma420","Menyenangkan","Ggomul","Abedisbatmannow","Student9215","Liying15","Skytrekkertw","SeriouslySerious","Halveama","Lark Park","Couchpatata","Jlb2011","ElphabaThropp13","Tobyhigbie","Qj.woods","Khwang17","Dlzeroo","Mpinski","Frewucla","Livy Lin","Jjurgens05","Tkirklee","Tonybruin94","Chavez916","Skeosian","Zmaldo45","Tigran1127","Todd Lu","Moonlightsunshine","Jaime munoz1987","Sarkisy","Sleidenfrost","MCrookston1018","Manwah90","Ldtail","Mjnoori","Cchinchi24","Aseretkassandra","Cindyvergara","Sjankowski","Elenigiagos","Mhbateman3","Yeseule20","Marcusrios9","Madddah","Yipinw","GTBaumann","GroupP","Stephaniesd21","BabyGotBach","Samhelgevold","Sylizen","Aaron.thomas.narayan","Justingudger","Tadeocucla","Xfade9k","Zdegroot","Leadyce","Justind193","Mlcchung","Pickles66","UclaFanatic123","RowdyMikeMach","Vmrivera01","Dhn146","Isamadris","XXsuperhistorian420XX","CandaceHansen","Max.Hernandez.27","Pat90731","Tjohnson56","Oransub","Smasresha","Tmcmeans","Y.merriweather8","Daneon2","Lawman616","Ldvar313","Courtneyypollard","Jbree857","Endi-Cleveland","Bambr947","Katiraver","Savannahsylva","Kenziegaudet","Quinnyoc","JPuch19","Kcari187","Mroch016","NGendreau","Gkkiley","Nicholasrusso8","Ndelo527","Aallenson","Cboudy36","Jcart287","Kabbo025","Katherine Stolar","Grantthompson333","Tlemi764","Srond264","Hayhay3195","Jsomosky37","Simonev1233","Tomhelmonds","Kpinch24","Kjbarry23","Clyon173","Amandavisvis","Shugh948","Nguil934","Kristinamac35","Piatellij","Ryanaknox63","JLC151","Parkie456","Elisecamuso","Ecg5695","Kploo397","Jsomosky","CLS0825","Djpumpin","Millsapsstudent2014","Anyingzhuihun","Romerki","Casiake","Joppabird","Pattelw","Anomolously","TanonymousK","Cabancc","Calcomg","Gadowgl","Zahllja","Washilj92","WanonymousS","Sykesso","Gam3257","Harrypotter1995","Laurennpratt","Buddes34","Cadi.duncan","Pellebi","Trautkd","Maryfivey","Lizabeth Allen","Earlbn","Cmiddlebrooks","Nmoallem","DanielleSayre","Arielschvarcz","Mbhargis","Leahmlessard","Bcaplanucla","Emsparck","Leslierrn","Kguan10","Margaretrbauer","Jsercar","Emilyhart","Gemayelc","Trandinh522","Npalt123","Philassie","ELE427","Kcmpayne","Mrbauer1234","Azul97","Metheglyn","Sudha Chung","Aiahsumana","IguanaPri","Seriouslady","Hporbit","Nagnoh","Juicy8287","Sunxyz","Dwighteisenhower","Ekmixon","Afaf Khoshman","Aak1982","Shivam.truth","SDarsi","Ababb2","Khzzang9","Alangley36","Eduqu002","Jmago001","Kielyk77","Jmode001","Emorr007","Jport008","Jbrau003","Lconn006","Cblan001","Cellbio777","M mcnaught","Syou93","Tcole003","Sfasking001","Amyer005","Askurka540","Rguig001","Kamieyeofori","Pema512","Giesige.27","Barron.70","Rowedda.3","Hauck.73","Burgi.2","JSDELIA","Boehk.1","Ckinsworthy","Kinsworthy.1","Allen.1749","ConorDuff","Eunjee.son.151","Bluex12","Sarcone.2","Lovescorpio","Love.347","Dickerson.219","Krupin.1","Carlson.421","Goss.53","John.delia.14","Gibbs.282","Bright.140osu","Zhaolucille","Luckenbach.3","Jimison.5","Schwab.112","Joelthomas.2437","Woodliff.1","Gruenwald.10","Clark.2063","Beeman.26","Kowalski.118","Ryanlaber","Amcknight.95","Turner.1230","Goffe.2","Kilroy.15","Meyers.277","Colles.3","Stutsman.1","Zhao.737","Tdade.18","Schoenig.3","Edwards.1010","Steven Bow","Steven.bow.13","Perry.407","Davis.4497","Myers.1684","Loffing.6","Howard.845","Ealingeman","Castanzo","Eknichols","Tturkalo","FRP90","Aeisenbe313","Olibdavis","Adrienne Fritze","Gregatmu","AdriannaKMM","Ascamel","Chunkybiscuits","Kmcassel","Dlsansom","Maddiehatch44","Adshakoo","Soccerchick23","Abdobrow","JadaGrove","Tmsheibl","WhiteJennifer95","Jlscott1","OneHundredFiftySix","Majanife","Tommypatterson1","Xamason","Mpenders7","Tmkeck1","Dadeboe94","Mebryant","Gnrw wright","Amdaye","Mhiser","Mwoodson94","Lonte721","KPark21","Fmtoure","Asbarnet","Dafoley85","Manda239340","EddieCal22","Dkmilbur","Bdrobins","Tasmith33","Ceolirbi","Wontakkim","Bdaklutz","Robiso22","Enderjh","Pcbluth","Skgunnell","KwahawkYoang","Niels37","Kajax3","Jbryan13","Jbdbaseball","Biophys99","Law3liu","Jstruk","RealTO","Stan.Mikita","Sivart1391","TSto1","Winter20jb","Fabreezy1","Queensarms5","Pballieu","Bd1896","Toys Bet On Tea","Starfry2001","TetraLoli1198","Rustypapergun","Anticlause","Gg24k","Purple poet giggling","Collegegurldotcom","Dreenw","Foxy0408","Tej809","Rojascatblk","Kenugen2","Rfrank8","EvanRo","Evanro","QCommunity1","Ollielover11","Ninajaclyne","Kgreene4","Ashkin4it","Szorich922","Jusino2","Abbiraee","Imaybeanorangepeel","Avinash Laxman Suryawanshi","Cekapla2","Rachbohm","StephanieSkora","Ayoung40","Jljones7","Mhayashi95","Reimers2","Jmrase","I am anal thrasher 69","Lana519","CarlyEkaplan","CSJordan","Mjhohl","Lwleiden","Jawiggins93","Vv dng","Elmarsh1","Tmjacks2","Jolley15","SylviTin21","Ekmoyer900135","Hduppal","Jmsmith13","Erhanse1","Khmccorm","Egstell","Aesaulsb","Rjdoenge1","Jeaku") AND c.rev_timestamp BETWEEN '20140601' AND '20141122' ) AS byte_changes GROUP BY rev_user_text;
{"resultsets": [{"headers": ["rev_user_text", "net_sum", "abs_sum", "positive_only_sum", "negative_only_sum"], "rowcount": 1389}]}
null
ruwiki quality level page transclusions
Count the number of transclusions of Шаблон:I уровень, Шаблон:II уровень, Шаблон:III уровень, and Шаблон:IV уровень in Main and Talk namespaces (ns=0|1).
USE ruwiki_p; SELECT count(DISTINCT pd.page_id) AS numarticles_level_1_t FROM page ps JOIN templatelinks tl ON (tl_namespace=page_namespace AND tl_title=page_title) JOIN page pd ON tl.tl_from=pd.page_id WHERE pd.page_namespace IN (0,1) AND ps.page_id=287381; SELECT count(DISTINCT cl_from) AS numarticles_level_1_c FROM page p JOIN categorylinks cl ON p.page_id=cl.cl_from WHERE cl_to LIKE 'Стать_проекта%I_уровня' AND p.page_namespace IN (0,1); SELECT count(*) AS numarticles_level_2 FROM page ps JOIN templatelinks tl ON (tl_namespace=page_namespace AND tl_title=page_title) JOIN page pd ON tl.tl_from=pd.page_id WHERE pd.page_namespace IN (0,1) AND ps.page_id=287383; SELECT count(*) AS numarticles_level_3 FROM page ps JOIN templatelinks tl ON (tl_namespace=page_namespace AND tl_title=page_title) JOIN page pd ON tl.tl_from=pd.page_id WHERE pd.page_namespace IN (0,1) AND ps.page_id=287384; SELECT count(*) AS numarticles_level_4 FROM page ps JOIN templatelinks tl ON (tl_namespace=page_namespace AND tl_title=page_title) JOIN page pd ON tl.tl_from=pd.page_id WHERE pd.page_namespace IN (0,1) AND ps.page_id=287385;
{"resultsets": [{"headers": ["numarticles_level_1_t"], "rowcount": 1}, {"headers": ["numarticles_level_1_c"], "rowcount": 1}, {"headers": ["numarticles_level_2"], "rowcount": 1}, {"headers": ["numarticles_level_3"], "rowcount": 1}, {"headers": ["numarticles_level_4"], "rowcount": 1}]}
null
All Wikimedia project public databases
Last run November 26, 2014 Format is [LANGUAGECODE][PROJECTCODE]_p. See https://en.wikipedia.org/wiki/Wikimedia_project#Language_codes for the full list of language codes.
SHOW DATABASES LIKE "%_p";
{"resultsets": [{"headers": ["Database (%_p)"], "rowcount": 902}]}
null
کلمه شهرستان در نام مقالات
مقالاتی که در نام آنها از شهرستان استفاده شده
select * from fawikivoyage_p.page where page_title like '%شهرستان%'
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_counter", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 545}]}
null
New users since July 2014 with more than 50 edits
null
SELECT * FROM user where user_registration > 20140700000000 AND user_editcount > 50;
{"resultsets": [{"headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "user_password_expires"], "rowcount": 4798}]}
null
Find pages of Vanity Fair (1848) that have been transcluded.
Find pages of Vanity Fair (1848) that have been transcluded.
USE enwikisource_p; SELECT page_namespace, page_title, tl_title FROM templatelinks LEFT JOIN page ON tl_from=page_id WHERE tl_namespace=104 AND tl_title LIKE "Vanity_Fair_1848.djvu/%";
{"resultsets": [{"headers": ["page_namespace", "page_title", "tl_title"], "rowcount": 720}]}
null
Newly registered users - Wikidata
null
/* specify a datetime range */ SET @start_date = '20141001000000'; SET @end_date = '20141201000000'; SELECT DATE(`log_timestamp`), COUNT(`log_user`) FROM wikidatawiki_p.logging WHERE `log_type` = 'newusers' /* exclude proxy registrations */ AND `log_action` = 'create' /* only include self-created users, exclude attached and proxy-registered users */ AND `log_timestamp` BETWEEN @start_date AND @end_date GROUP BY 1;
{"resultsets": [{"headers": ["DATE(`log_timestamp`)", "COUNT(`log_user`)"], "rowcount": 61}]}
null
Wikidata items with sitelinks to Creator pages on Commons (count)
Count of Wikidata items with sitelinks to pages in the Creator: namespace on Commons. Published at https://www.wikidata.org/wiki/Wikidata:WikiProject_Structured_Data_for_Commons/Phase_1_progress/Links/Creator
use wikidatawiki_p; SELECT COUNT(*) FROM wb_items_per_site WHERE ips_site_id='commonswiki' AND ips_site_page LIKE 'Creator:%';
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]}
null
Active newcomers engaged in newcomer spaces (since June 2014)
null
SELECT DISTINCT user_id, user_name, user_registration, user_editcount FROM page INNER JOIN user ON user_name = REPLACE(SUBSTRING_INDEX(page_title, "/", 1), "_", " ") WHERE page_namespace = 2 AND page_title LIKE "%/TWA%" AND user_editcount > 50 AND user_registration > "20140601" UNION SELECT DISTINCT user_id, user_name, user_registration, user_editcount FROM revision_userindex INNER JOIN page ON rev_page = page_id INNER JOIN user ON rev_user = user_id WHERE page_namespace IN (4,5) AND ( page_title LIKE "Teahouse%" OR page_title LIKE "Articles_for_creation%" ) AND rev_timestamp > "20140601" AND user_editcount > 50 AND user_registration > "20140601";
{"resultsets": [{"headers": ["user_id", "user_name", "user_registration", "user_editcount"], "rowcount": 735}]}
null
Queryable tables eswiki
null
SHOW TABLES FROM enwiki_p;
{"resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 108}]}
null
Eval portal edits & editors
null
#edits to the evaluation portal SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(rev_id) AS edits FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND p.page_title LIKE "Evaluation%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #unique editors to the evaulation portal SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(distinct rev_user) AS editors FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND p.page_title LIKE "Evaluation%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "edits"], "rowcount": 15}, {"headers": ["year", "month", "editors"], "rowcount": 15}]}
null
IdeaLab edits
null
#edits to the idealab SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(rev_id) AS edits FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND p.page_title LIKE "IdeaLab%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #unique editors to the idealab SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(distinct rev_user) AS editors FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND p.page_title LIKE "IdeaLab%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "edits"], "rowcount": 15}, {"headers": ["year", "month", "editors"], "rowcount": 15}]}
null
Grants edits & editors
null
#edits to the grants namespace SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(rev_id) AS edits FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #unique editors to the grants namespace SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(distinct rev_user) AS editors FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "edits"], "rowcount": 15}, {"headers": ["year", "month", "editors"], "rowcount": 15}]}
null
Learning patterns edits, editors, endorsements
null
#edits to the learning pattern portal SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(rev_id) AS edits FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND p.page_title LIKE "Learning_patterns%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #unique editors to the learning pattern portal SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(distinct rev_user) AS editors FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND p.page_title LIKE "Learning_patterns%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "edits"], "rowcount": 15}, {"headers": ["year", "month", "editors"], "rowcount": 15}]}
null
Learning pattern endorsements
null
SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(rev_id) AS endorsements FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200) #Grants namespaces AND p.page_title LIKE "Learning_patterns/%" AND r.rev_comment LIKE "%endorse%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "endorsements"], "rowcount": 15}]}
null
Learning pattern library - endorsements per month
all edits to Learning pattern pages that have "endorse" in the edit comment. No bots, no WMF staff. last run December 8, 2014
SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(rev_id) AS endorsements FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200) #Grants namespaces AND p.page_title LIKE "Learning_patterns/%" AND r.rev_comment LIKE "%endors%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "endorsements"], "rowcount": 15}]}
null
List all pages in a category
List all the pages within a particular category or categories
SELECT page_title FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from WHERE cl.cl_to IN ("Learning_patterns") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title NOT LIKE "%/%/%";
{"resultsets": [{"headers": ["page_title"], "rowcount": 102}]}
null
bytes_added a la wikimetric
This is the SQL equivalent of the bytes_added metric from Wikimetrics. Thanks to halfak for composing it!
SELECT rev_user_text, SUM(byte_change) AS net_sum, SUM(ABS(byte_change)) AS abs_sum, SUM(byte_change * (byte_change > 0)) AS positive_only_sum, SUM(byte_change * (byte_change < 0)) AS negative_only_sum FROM ( SELECT c.rev_user_text, CAST(c.rev_len AS SIGNED) - CAST(IFNULL(p.rev_len, 0) AS SIGNED) AS byte_change FROM revision_userindex c INNER JOIN page ON page_id = c.rev_page LEFT JOIN revision_userindex p ON p.rev_id = c.rev_parent_id WHERE page_namespace IN (0) AND c.rev_user_text IN ("Urban walker") AND c.rev_timestamp BETWEEN '20140601' AND '20141209' ) AS byte_changes GROUP BY rev_user_text;
{"resultsets": [{"headers": ["rev_user_text", "net_sum", "abs_sum", "positive_only_sum", "negative_only_sum"], "rowcount": 1}]}
null
List all allowed language codes in wikidata
null
USE wikidatawiki_p; SELECT DISTINCT term_language FROM wb_terms; SELECT DISTINCT term_type FROM wb_terms;
{"resultsets": [{"headers": ["term_language"], "rowcount": 395}, {"headers": ["term_type"], "rowcount": 3}]}
null
tsreports test query
Some description to show
SELECT * FROM revision ORDER BY rev_id DESC LIMIT 10;
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 10}]}
null
Edições de IPs e registrados sem grupo em 13/12/2014
null
USE ptwiki_p; SELECT rc_this_oldid oldid, (rev_comment LIKE 'Foram [[WP:REV|%' OR rev_comment LIKE 'Reversão de uma ou mais edições de%' OR rev_comment LIKE 'bot: revertidas edições de%') REVERTIDA FROM recentchanges INNER JOIN revision ON rev_parent_id = rc_this_oldid WHERE rev_timestamp LIKE '2014121%' AND rc_timestamp LIKE '20141213%' AND rc_type IN (0, 1) AND rc_user NOT IN (SELECT DISTINCT ug_user FROM user_groups);
{"resultsets": [{"headers": ["oldid", "REVERTIDA"], "rowcount": 2492}]}
null
People who have edited a page recently
A list of people who have edited the article for the new Hobbit movie since October 1st.
select distinct(rev_user_text) AS recent_editors, "en" from enwiki_p.revision AS rev_table JOIN enwiki_p.page AS page_table ON rev_table.rev_page = page_table.page_id WHERE page_table.page_namespace = 0 AND page_title = "The_Hobbit:_The_Battle_of_the_Five_Armies" AND rev_timestamp > 20141001000000 AND rev_user != 0 GROUP BY recent_editors;
{"resultsets": [{"headers": ["recent_editors", "en"], "rowcount": 71}]}
null
Voci brevi create ieri
Voci brevi create ieri su itwiki
USE itwiki_p; SELECT CONCAT("# [[", page_title, "]]") FROM page JOIN revision ON page_id = rev_page WHERE page_is_redirect = 0 AND page_namespace = 0 AND rev_parent_id = 0 AND rev_timestamp > NOW() - INTERVAL 1 DAY AND page_len < 500 AND page_id NOT IN (SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation') ORDER BY rev_timestamp DESC;
{"resultsets": [{"headers": ["CONCAT(\"# [[\", page_title, \"]]\")"], "rowcount": 4}]}
null
Ultime pagine ns Wikipedia create
null
USE itwiki_p; SELECT CONCAT('# [[Wikipedia:', page_title, ']], (', DATE_FORMAT(rev_timestamp, '%e %b %Y, %H:%i'), ')') FROM page, revision WHERE page_namespace=4 AND page_is_redirect=0 AND rev_page = page_id AND rev_parent_id = 0 AND page_title NOT LIKE '%/%' ORDER BY rev_timestamp DESC LIMIT 20;
{"resultsets": [{"headers": ["CONCAT('# [[Wikipedia:', page_title, ']], (', DATE_FORMAT(rev_timestamp, '%e %b %Y, %H:%i'), ')')"], "rowcount": 20}]}
null
Combined edit count for a group of users
null
SELECT COUNT(*) FROM enwiki_p.revision_userindex INNER JOIN enwiki_p.page ON rev_page = page_id WHERE rev_user_text IN ( "Piesquared93", "MikeyTheCamel", "Coolgrandma420", "Menyenangkan", "Ggomul", "Abedisbatmannow", "Student9215", "Liying15", "Skytrekkertw", "SeriouslySerious", "Halveama", "Lark Park", "Couchpatata", "Jlb2011", "ElphabaThropp13" ) AND page_namespace = 0 AND rev_timestamp BETWEEN '20080618' AND '20141118';
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]}
null
Fichiers DJVU hébergés sur Wikisource en français
https://fr.wikisource.org/wiki/Wikisource:Scriptorium/D%C3%A9cembre_2014#Mod.C3.A8les_.C3.A0_cr.C3.A9er_pour_des_livres_en_fran.C3.A7ais_sur_Commons
use frwikisource_p; SELECT image.img_name AS file FROM image WHERE image.img_minor_mime = 'vnd.djvu' ORDER BY file ASC;
{"resultsets": [{"headers": ["file"], "rowcount": 502}]}
null
Category pages on itwikivoyage without associated Wikidata item
null
USE itwikivoyage_p; SELECT page_title FROM page WHERE page_namespace = 14 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'wikibase_item' ) ORDER BY page_title;
{"resultsets": [{"headers": ["page_title"], "rowcount": 2262}]}
null
Revision Data By User
Collection information about individual revisions by user
SELECT g.page_title, g.page_id, c.rev_id, c.rev_timestamp, c.rev_user_text, CAST(c.rev_len AS SIGNED) - CAST(IFNULL(p.rev_len, 0) AS SIGNED) AS byte_change FROM revision_userindex c LEFT JOIN revision_userindex p ON p.rev_id = c.rev_parent_id INNER JOIN page g ON g.page_id = c.rev_page WHERE g.page_namespace IN (0) AND c.rev_user_text IN ("Ragesoss") AND c.rev_timestamp BETWEEN '20140610' AND '20140718'
{"resultsets": [{"headers": ["page_title", "page_id", "rev_id", "rev_timestamp", "rev_user_text", "byte_change"], "rowcount": 12}]}
null
Number of non-redirect pages in article namespace (de.wikipedia)
What's the actual number of non-redirect pages in article space? {{NUMBEROFARTICLES}} (which should count all non-redirect pages in article space that have at least one link) currently says 1787691, but how wrong is this? And the answer is: At least 25000 too much, assuming there are only few dead end pages.
Use dewiki_p; SELECT COUNT(*) AS pagecount FROM page WHERE page_namespace = 0 AND page_is_redirect = 0;
{"resultsets": [{"headers": ["pagecount"], "rowcount": 1}]}
null
Number of non-redirect pages in article namespace (nl.wikipedia)
Same as https://quarry.wmflabs.org/query/1222 for nl.wikipedia. {{NUMBEROFARTICLES}}: 1.803.367
Use nlwiki_p; SELECT COUNT(*) AS pagecount FROM page WHERE page_namespace = 0 AND page_is_redirect = 0;
{"resultsets": [{"headers": ["pagecount"], "rowcount": 1}]}
null
Learning patterns with legacy infoboxes
Learning patterns that have a legacy infobox: https://meta.wikimedia.org/wiki/Template:Evaluation/Pattern/Infobox
SELECT page_title, min(rev_id), rev_timestamp FROM metawiki_p.page p JOIN metawiki_p.categorylinks cl ON cl_from = page_id JOIN metawiki_p.revision r ON rev_page = page_id WHERE cl_to = "Learning_patterns" AND page_namespace = 200 AND rev_timestamp < 20140830000000 GROUP BY page_title ORDER BY rev_timestamp ASC;
{"resultsets": [{"headers": ["page_title", "min(rev_id)", "rev_timestamp"], "rowcount": 85}]}
null
Fichiers DJVU en double fr.ws/Commons (titre)
Fichiers DJVU ayant le même nom sur Wikisource en français et Commons. https://fr.wikisource.org/wiki/Wikisource:Scriptorium/D%C3%A9cembre_2014#Mod.C3.A8les_.C3.A0_cr.C3.A9er_pour_des_livres_en_fran.C3.A7ais_sur_Commons
SELECT image.img_name AS fichier FROM commonswiki_p.image WHERE image.img_name IN ( SELECT image.img_name FROM frwikisource_p.image WHERE image.img_minor_mime = 'vnd.djvu' ) ORDER BY fichier ASC;
{"resultsets": [{"headers": ["fichier"], "rowcount": 5}]}
null
Fichiers DJVU en double fr.ws/Commons (SHA-1)
Fichiers DJVU ayant exactement le même contenu sur Wikisource en français et Commons. https://fr.wikisource.org/wiki/Wikisource:Scriptorium/D%C3%A9cembre_2014#Mod.C3.A8les_.C3.A0_cr.C3.A9er_pour_des_livres_en_fran.C3.A7ais_sur_Commons
SELECT image.img_name AS fichier FROM commonswiki_p.image WHERE image.img_sha1 IN ( SELECT image.img_sha1 FROM frwikisource_p.image WHERE image.img_minor_mime = 'vnd.djvu' ) ORDER BY fichier ASC;
{"resultsets": [{"headers": ["fichier"], "rowcount": 7}]}
null
Dataset for tests in ORES project (07/12-13/12)
null
USE ptwiki_p; SELECT rc_this_oldid oldid, (rev_comment LIKE 'Foram [[WP:REV|%' OR rev_comment LIKE 'Reversão de uma ou mais edições de%' OR rev_comment LIKE 'bot: revertidas edições de%') reverted FROM recentchanges INNER JOIN revision ON rev_parent_id = rc_this_oldid WHERE rev_timestamp LIKE '201412%' AND rc_timestamp BETWEEN 20141207000000 AND 20141213600000 AND rc_type IN (0, 1) AND rc_user NOT IN (SELECT DISTINCT ug_user FROM user_groups);
{"resultsets": [{"headers": ["oldid", "reverted"], "rowcount": 20718}]}
null
File usage of two files
For some reason, these two files show up as 'unused' in the imagelinks table, but as 'used' in [[Special:WhatLinksHere]].
SELECT * FROM enwiki_p.imagelinks WHERE il_to = 'Dubai_Club.png' OR il_to = 'Doctor_Who_Series_7_boxset.jpg'
{"resultsets": [{"headers": ["il_from", "il_to", "il_from_namespace"], "rowcount": 0}]}
null
Images from Wiki Loves Africa 2014
Images from Wiki Loves Africa
USE commonswiki_p; SELECT /* SLOW_OK */ page.page_title, image.img_timestamp, oldimage.oi_timestamp FROM image CROSS JOIN page ON image.img_name = page.page_title CROSS JOIN categorylinks ON page.page_id = categorylinks.cl_from LEFT JOIN oldimage ON image.img_name = oldimage.oi_name AND oldimage.oi_timestamp = (SELECT MIN(o.oi_timestamp) FROM oldimage o WHERE o.oi_name = image.img_name) WHERE categorylinks.cl_to = "Images_from_Wiki_Loves_Africa_2014" AND IF(oldimage.oi_timestamp IS NULL, img_timestamp, oldimage.oi_timestamp) BETWEEN 20140930000000 AND 20141202000000 ORDER BY img_timestamp ASC;
{"resultsets": [{"headers": ["page_title", "img_timestamp", "oi_timestamp"], "rowcount": 5893}]}
null
Why did you delete these items?
Get deleted items with incoming links. Same as http://quarry.wmflabs.org/query/646, but with LEFT JOIN, so should be faster.
USE wikidatawiki_p; SELECT pl_title, count(*) FROM pagelinks LEFT JOIN page ON pl_title = page_title AND pl_namespace = page_namespace WHERE pl_from_namespace=0 AND pl_namespace=0 AND page_id IS NULL GROUP BY pl_title ORDER BY count(*) DESC;
{"resultsets": [{"headers": ["pl_title", "count(*)"], "rowcount": 18}]}
null
Articles edited by group of users in time period
null
SELECT page_title FROM page WHERE page_id IN ( SELECT DISTINCT rev_page FROM revision_userindex WHERE rev_user_text IN ( "Cmiddlebrooks", "Nmoallem", "DanielleSayre", "Arielschvarcz", "Mbhargis", "Leahmlessard", "Bcaplanucla", "Emsparck", "Leslierrn", "Kguan10", "Margaretrbauer", "Jsercar", "Bruinspsych", "Gemayelc", "Trandinh522", "Npalt123", "Philassie", "ELE427", "Kcmpayne", "Mrbauer1234", "Azul97" ) AND rev_timestamp BETWEEN "20140601" AND "20141219" ) AND page_namespace = 0 AND NOT page_is_redirect
{"resultsets": [{"headers": ["page_title"], "rowcount": 29}]}
null
fiwiki delete log actions
null
USE fiwiki_p; SELECT log_user_text, COUNT(*) FROM logging WHERE log_type="delete" GROUP BY log_user_text ORDER BY COUNT(*) DESC LIMIT 30;
{"resultsets": [{"headers": ["log_user_text", "COUNT(*)"], "rowcount": 30}]}
null
Show all the tables in a database
List of all of the databases Quarry has access to.
SHOW DATABASES;
{"resultsets": [{"headers": ["Database"], "rowcount": 1865}]}
null
Top 25 most edited articles on eswiki
null
USE eswiki_p; SELECT rc_title, COUNT(*) AS num_edits FROM recentchanges WHERE rc_namespace = 0 GROUP BY rc_title ORDER BY num_edits DESC LIMIT 25;
{"resultsets": [{"headers": ["rc_title", "num_edits"], "rowcount": 25}]}
null
Files by uploader on mswiki
null
USE mswiki_p; SELECT i.img_user_text AS username, p.page_title AS filename FROM page p INNER JOIN categorylinks c ON cl_from = p.page_id AND cl_to = 'All_free_media' INNER JOIN image i ON i.img_name = p.page_title WHERE p.page_namespace = 6 UNION SELECT DISTINCT o.oi_user_text AS username, p.page_title AS filename FROM page p INNER JOIN categorylinks c ON cl_from = p.page_id AND cl_to = 'All_free_media' INNER JOIN oldimage o ON o.oi_name = p.page_title WHERE p.page_namespace = 6 ORDER BY username, filename
{"resultsets": [{"headers": ["username", "filename"], "rowcount": 1447}]}
null
Utilizadores com mais agradecimentos
utilizadores com mais agradecimentos
USE ptwiki_p; SELECT log_title, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_title ORDER BY COUNT(*) DESC LIMIT 1000;
{"resultsets": [{"headers": ["log_title", "COUNT(*)"], "rowcount": 1000}]}
null
Most thanked English Wikipedia editors
Ruigeroeland seems to mostly make articles on missing biological species, usually in their linnean name because all the organisms with common names already have articles. Lol.
USE enwiki_p; SELECT log_title, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_title ORDER BY COUNT(*) DESC LIMIT 20;
{"resultsets": [{"headers": ["log_title", "COUNT(*)"], "rowcount": 20}]}
null
How old is the oldest recent change?
Answer: one month old.
select min(rc_timestamp), max(rc_timestamp) from enwiki_p.recentchanges;
{"resultsets": [{"headers": ["min(rc_timestamp)", "max(rc_timestamp)"], "rowcount": 1}]}
null
Most thankful English Wikipedia editors
null
USE enwiki_p; SELECT log_user_text, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_user_text ORDER BY COUNT(*) DESC LIMIT 20;
{"resultsets": [{"headers": ["log_user_text", "COUNT(*)"], "rowcount": 20}]}
null
Missende vrouwen
Vrouwen die wel een artikel in het Nederlands kunnen gebruiken
use wikidatawiki_p; SELECT CONCAT('* [[:d:', witem.page_title, '|', term_text,']] - ', COUNT(witem.page_title)) FROM page AS witem JOIN pagelinks ON witem.page_id=pl_from AND pl_namespace=0 AND pl_title='Q6581072' JOIN wb_entity_per_page ON witem.page_id=epp_page_id JOIN wb_items_per_site ON epp_entity_id=ips_item_id JOIN wb_terms ON epp_entity_id=term_entity_id AND term_entity_type='item' AND term_language='en' AND term_type='label' AND NOT EXISTS( SELECT * FROM wb_items_per_site AS wbnl WHERE epp_entity_id=wbnl.ips_item_id AND ips_site_id='nlwiki') GROUP by witem.page_title ORDER BY COUNT(witem.page_title) DESC LIMIT 200;
{"resultsets": [{"headers": ["CONCAT('* [[:d:', witem.page_title, '|', term_text,']] - ', COUNT(witem.page_title))"], "rowcount": 200}]}
null
Number of non-redirect templates on en.wikipedia
null
use enwiki_p; SELECT count(page.page_id) FROM page WHERE page.page_namespace = 10 AND page.page_is_redirect = 0;
{"resultsets": [{"headers": ["count(page.page_id)"], "rowcount": 1}]}
null
Number of templates using a Lua module on en.wikipedia
null
use enwiki_p; SELECT count(page.page_id) FROM page WHERE page.page_namespace = 10 AND page.page_is_redirect = 0 AND page.page_id IN ( SELECT DISTINCT tl_from FROM templatelinks WHERE templatelinks.tl_namespace = 828 );
{"resultsets": [{"headers": ["count(page.page_id)"], "rowcount": 1}]}
null
Number of all templates on en.wikipedia
null
use enwiki_p; SELECT count(page.page_id) FROM page WHERE page.page_namespace = 10;
{"resultsets": [{"headers": ["count(page.page_id)"], "rowcount": 1}]}
null
Unreasonably large user-talk pages on enwiki
null
use enwiki_p; SELECT page_title, page_namespace, page_touched, page_len FROM page WHERE page_len > 250000 AND page_namespace=3 AND page_title NOT LIKE '%/%';
{"resultsets": [{"headers": ["page_title", "page_namespace", "page_touched", "page_len"], "rowcount": 948}]}
null
Top 30 editors of talk namespaces at kowiki
See http://quarry.wmflabs.org/query/2120 for non-recentchanges version
SELECT rc_user_text, COUNT(1) AS num_contribs FROM kowiki_p.recentchanges WHERE rc_namespace IN (1, 3, 5, 7, 9, 11, 13, 15) AND rc_logid = 0 GROUP BY rc_user ORDER BY num_contribs DESC LIMIT 30
{"resultsets": [{"headers": ["rc_user_text", "num_contribs"], "rowcount": 30}]}
null
Pages created per month by prefix
null
SELECT EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, COUNT(rev_id) AS ideas_created FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace = 200 AND p.page_title LIKE "IEG/%" AND r.rev_parent_id = 0 AND r.rev_user_text NOT LIKE "%(WMF)" AND r.rev_user_text NOT LIKE "ijon" GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "ideas_created"], "rowcount": 23}]}
null
Learning patterns by WMF staff
null
SELECT EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, COUNT(rev_id) AS learning_patterns_by_WMF FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id INNER JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from WHERE p.page_namespace = 200 AND cl.cl_to IN ("Learning_patterns") AND (r.rev_user_text LIKE "%(WMF)" #not a standard staff account OR r.rev_user_text IN ("Ijon", "FuzzyBot", "Wolliff")) #not a non-standard staff account OR User:FuzzyBot AND r.rev_parent_id = 0 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "learning_patterns_by_WMF"], "rowcount": 16}]}
null
Pages Created in Evaluation Portal
null
#count pages created in Evaluation portal SELECT EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, COUNT(rev_id) AS pages_created_by_Community FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace = 200 AND p.page_title LIKE "Evaluation%" AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_parent_id = 0 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #count pages created in Evaluation portal SELECT EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, COUNT(rev_id) AS page_created_WMF FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace = 200 AND p.page_title LIKE "Evaluation%" AND (r.rev_user_text LIKE "%(WMF)" #not a standard staff account OR r.rev_user_text IN ("Ijon", "FuzzyBot", "Wolliff")) #not a non-standard staff account OR User:FuzzyBot AND r.rev_parent_id = 0 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "pages_created_by_Community"], "rowcount": 18}, {"headers": ["year", "month", "page_created_WMF"], "rowcount": 17}]}
null
IdeaLab Endorsements
null
SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(rev_id) AS endorsements FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200) #Grants namespaces AND p.page_title LIKE "IdeaLab/%" AND r.rev_comment LIKE "%endors%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; SELECT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, EXTRACT(Month from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `month`, COUNT(rev_id) AS endorsements FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200) #Grants namespaces AND p.page_title LIKE "IdeaLab/%" AND r.rev_comment LIKE "%endors%" AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND (r.rev_user_text LIKE "%(WMF)" #a standard staff account OR r.rev_user_text IN ("Ijon", "FuzzyBot", "Wolliff")) #a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20131001000000 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "endorsements"], "rowcount": 2}, {"headers": ["year", "month", "endorsements"], "rowcount": 2}]}
null
Grants pages created
null
#count Grants Pages created per month by community SELECT EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, COUNT(rev_id) AS Grants_pages_created_by_Community FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_parent_id = 0 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #count Grants Pages created per month by WMF SELECT EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, COUNT(rev_id) AS Grants_pages_created_by_WMF FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) AND (r.rev_user_text LIKE "%(WMF)" #not a standard staff account OR r.rev_user_text IN ("Ijon", "FuzzyBot", "Wolliff")) #not a non-standard staff account OR User:FuzzyBot AND r.rev_parent_id = 0 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "Grants_pages_created_by_Community"], "rowcount": 64}, {"headers": ["year", "month", "Grants_pages_created_by_WMF"], "rowcount": 47}]}
null
Evaluation pages created
null
#count Evaluation Pages created per month by community SELECT EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, COUNT(rev_id) AS Grants_pages_created_by_Community FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) AND p.page_title LIKE "Evaluation%" AND r.rev_user_text NOT LIKE "%(WMF)" #not a standard staff account AND r.rev_user_text NOT IN ("Ijon", "FuzzyBot", "Wolliff") #not a non-standard staff account OR User:FuzzyBot AND r.rev_parent_id = 0 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC; #count Evaluation Pages created per month by WMF SELECT EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, COUNT(rev_id) AS Grants_pages_created_by_WMF FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) AND p.page_title LIKE "Evaluation%" AND (r.rev_user_text LIKE "%(WMF)" #not a standard staff account OR r.rev_user_text IN ("Ijon", "FuzzyBot", "Wolliff")) #not a non-standard staff account OR User:FuzzyBot AND r.rev_parent_id = 0 GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["year", "month", "Grants_pages_created_by_Community"], "rowcount": 18}, {"headers": ["year", "month", "Grants_pages_created_by_WMF"], "rowcount": 17}]}
null
Grants users
null
#unique editors to the idealab by WMF SELECT DISTINCT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, r.rev_user_text AS editors_WMF FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND (r.rev_user_text LIKE "%(WMF)" #not a standard staff account OR r.rev_user_text IN ("Ijon", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan")) #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20140101000000 AND r.rev_timestamp < 20150101000000;
{"resultsets": [{"headers": ["year", "editors_WMF"], "rowcount": 53}]}
null
Test query
Testing to see if non parenthetical staff account name was captured
#unique editors to the idealab by WMF SELECT DISTINCT EXTRACT(Year from DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) as `year`, r.rev_user_text AS editors_WMF FROM metawiki_p.revision r INNER JOIN metawiki_p.page AS p ON r.rev_page = p.page_id WHERE p.page_namespace IN (200, 201) #Grants and Grants_talk namespaces AND r.rev_user != 0 #exclude IP edits and editors AND r.rev_user NOT IN (SELECT ug_user FROM metawiki_p.user_groups WHERE ug_group = 'bot') #not a registered bot AND (r.rev_user_text LIKE "%(WMF)" #not a standard staff account OR r.rev_user_text IN ("Ijon", "Frank_Schulenburg", "Jtmorgan","SarahStierch","Wolliff","anasuyas","Chedasaurus","Ciphers","floorkoudijs","Janstee","jwild","kittycarmichael","Macruzbar","Msannakoval","Opinenow","Satihsu","Tighef","zhengan","TFlanagan-WMF")) #not a non-standard staff account OR User:FuzzyBot AND r.rev_timestamp > 20140101000000 AND r.rev_timestamp < 20150101000000;
{"resultsets": [{"headers": ["year", "editors_WMF"], "rowcount": 54}]}
null
Wikipedia pages linked to this item
null
USE wikidatawiki_p; SELECT ips_item_id, ips_site_id FROM wb_items_per_site #WHERE lang1.ll_lang != lang2.ll_lang WHERE ips_item_id = 42 AND ips_site_id LIKE '%wiki' ;
{"resultsets": [{"headers": ["ips_item_id", "ips_site_id"], "rowcount": 65}]}
null
co-occurrence of articles
Counting the co-occurrence of articles in two languages (hebrew and english) in the main namespace.
USE hewiki_p; SELECT COUNT(*) FROM langlinks LEFT JOIN page ON page_id = ll_from WHERE ll_lang = "en" AND ll_title != "" #AND page_namespace = 0;
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]}
null
Test
null
SELECT * FROM recentchanges LIMIT 60;
{"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_cur_time", "rc_user", "rc_user_text", "rc_namespace", "rc_title", "rc_comment", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_type", "rc_log_action", "rc_params"], "rowcount": 60}]}
null
VFC edits on commons
null
USE commonswiki_p; SELECT rc_user_text, COUNT(rc_comment) AS vfc_count FROM recentchanges WHERE rc_comment LIKE "%VisualFileChange%" GROUP BY rc_user_text ORDER BY vfc_count DESC;
{"resultsets": [{"headers": ["rc_user_text", "vfc_count"], "rowcount": 133}]}
null
Recently active license reviewers with lr activity
null
USE commonswiki_p; SELECT DISTINCT rc_user_text AS user, REPLACE(ug_group,'sysop','admin') AS usergroup, ug_bot AS bot FROM recentchanges INNER JOIN ( SELECT ug_user, ug_group FROM user_groups WHERE ug_group = "sysop" OR ug_group = "Image-reviewer" ) AS lrgroup /* is the user a lr or sysop? */ ON rc_user = ug_user LEFT JOIN ( SELECT ug_user AS ug_bot_user, ug_group AS ug_bot FROM user_groups WHERE ug_group = "bot" ) AS isbot /* is the user a bot? */ ON rc_user = ug_bot_user WHERE rc_namespace = "6" /* only file namespace */ AND (ug_group="sysop" OR ug_group="Image-reviewer") AND ( rc_comment LIKE "%icense review%" /* used by lr gadget*/ OR rc_comment LIKE "%LR passed%" OR rc_comment LIKE "%: passed%" /* for lr bots */ ) ORDER BY rc_user_text ASC;
{"resultsets": [{"headers": ["user", "usergroup", "bot"], "rowcount": 51}]}
null
BEIC.it link count by Wikipedia language
https://it.wikipedia.org/wiki/Progetto:GLAM/BEIC
USE itwiki_p; select count(distinct(el_from)) as itwiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE enwiki_p; select count(distinct(el_from)) as enwiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE dewiki_p; select count(distinct(el_from)) as dewiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE frwiki_p; select count(distinct(el_from)) as frwiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE eswiki_p; select count(distinct(el_from)) as eswiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE ptwiki_p; select count(distinct(el_from)) as ptwiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE ruwiki_p; select count(distinct(el_from)) as ruwiki FROM externallinks WHERE el_to LIKE '%.beic.it%';
{"resultsets": [{"headers": ["itwiki"], "rowcount": 1}, {"headers": ["enwiki"], "rowcount": 1}, {"headers": ["dewiki"], "rowcount": 1}, {"headers": ["frwiki"], "rowcount": 1}, {"headers": ["eswiki"], "rowcount": 1}, {"headers": ["ptwiki"], "rowcount": 1}, {"headers": ["ruwiki"], "rowcount": 1}]}
null
BEIC.it linked documents count by Wikipedia language
Count of the distinct documents linked
USE itwiki_p; select count(distinct(el_to)) as itwiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE enwiki_p; select count(distinct(el_to)) as enwiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE dewiki_p; select count(distinct(el_to)) as dewiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE frwiki_p; select count(distinct(el_to)) as frwiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE eswiki_p; select count(distinct(el_to)) as eswiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE ptwiki_p; select count(distinct(el_to)) as ptwiki FROM externallinks WHERE el_to LIKE '%.beic.it%'; USE ruwiki_p; select count(distinct(el_to)) as ruwiki FROM externallinks WHERE el_to LIKE '%.beic.it%';
{"resultsets": [{"headers": ["itwiki"], "rowcount": 1}, {"headers": ["enwiki"], "rowcount": 1}, {"headers": ["dewiki"], "rowcount": 1}, {"headers": ["frwiki"], "rowcount": 1}, {"headers": ["eswiki"], "rowcount": 1}, {"headers": ["ptwiki"], "rowcount": 1}, {"headers": ["ruwiki"], "rowcount": 1}]}
null
Estimation for number of articles
null
SELECT COUNT(DISTINCT(page_id)) FROM hewiki_p.pagelinks INNER JOIN hewiki_p.page ON pl_from = page_id WHERE page_namespace = 0 AND page_is_redirect = 0;
{"resultsets": [{"headers": ["COUNT(DISTINCT(page_id))"], "rowcount": 1}]}
null
Find Bad Langlinks
null
(SELECT DISTINCT 'lezwiki' as source, page_id, page_title, ll_lang, ll_title FROM lezwiki_p.langlinks LEFT JOIN lezwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'lnwiki' as source, page_id, page_title, ll_lang, ll_title FROM lnwiki_p.langlinks LEFT JOIN lnwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'pflwiki' as source, page_id, page_title, ll_lang, ll_title FROM pflwiki_p.langlinks LEFT JOIN pflwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'krcwiki' as source, page_id, page_title, ll_lang, ll_title FROM krcwiki_p.langlinks LEFT JOIN krcwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'hawwiki' as source, page_id, page_title, ll_lang, ll_title FROM hawwiki_p.langlinks LEFT JOIN hawwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'pdcwiki' as source, page_id, page_title, ll_lang, ll_title FROM pdcwiki_p.langlinks LEFT JOIN pdcwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'xalwiki' as source, page_id, page_title, ll_lang, ll_title FROM xalwiki_p.langlinks LEFT JOIN xalwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'rwwiki' as source, page_id, page_title, ll_lang, ll_title FROM rwwiki_p.langlinks LEFT JOIN rwwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'myvwiki' as source, page_id, page_title, ll_lang, ll_title FROM myvwiki_p.langlinks LEFT JOIN myvwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'novwiki' as source, page_id, page_title, ll_lang, ll_title FROM novwiki_p.langlinks LEFT JOIN novwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'towiki' as source, page_id, page_title, ll_lang, ll_title FROM towiki_p.langlinks LEFT JOIN towiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'klwiki' as source, page_id, page_title, ll_lang, ll_title FROM klwiki_p.langlinks LEFT JOIN klwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'arcwiki' as source, page_id, page_title, ll_lang, ll_title FROM arcwiki_p.langlinks LEFT JOIN arcwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'cdowiki' as source, page_id, page_title, ll_lang, ll_title FROM cdowiki_p.langlinks LEFT JOIN cdowiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'kaawiki' as source, page_id, page_title, ll_lang, ll_title FROM kaawiki_p.langlinks LEFT JOIN kaawiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'bjnwiki' as source, page_id, page_title, ll_lang, ll_title FROM bjnwiki_p.langlinks LEFT JOIN bjnwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'lowiki' as source, page_id, page_title, ll_lang, ll_title FROM lowiki_p.langlinks LEFT JOIN lowiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'kbdwiki' as source, page_id, page_title, ll_lang, ll_title FROM kbdwiki_p.langlinks LEFT JOIN kbdwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'papwiki' as source, page_id, page_title, ll_lang, ll_title FROM papwiki_p.langlinks LEFT JOIN papwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'hawiki' as source, page_id, page_title, ll_lang, ll_title FROM hawiki_p.langlinks LEFT JOIN hawiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'avwiki' as source, page_id, page_title, ll_lang, ll_title FROM avwiki_p.langlinks LEFT JOIN avwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'tywiki' as source, page_id, page_title, ll_lang, ll_title FROM tywiki_p.langlinks LEFT JOIN tywiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'tpiwiki' as source, page_id, page_title, ll_lang, ll_title FROM tpiwiki_p.langlinks LEFT JOIN tpiwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'bxrwiki' as source, page_id, page_title, ll_lang, ll_title FROM bxrwiki_p.langlinks LEFT JOIN bxrwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'nawiki' as source, page_id, page_title, ll_lang, ll_title FROM nawiki_p.langlinks LEFT JOIN nawiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'mdfwiki' as source, page_id, page_title, ll_lang, ll_title FROM mdfwiki_p.langlinks LEFT JOIN mdfwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'lbewiki' as source, page_id, page_title, ll_lang, ll_title FROM lbewiki_p.langlinks LEFT JOIN lbewiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'jbowiki' as source, page_id, page_title, ll_lang, ll_title FROM jbowiki_p.langlinks LEFT JOIN jbowiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'wowiki' as source, page_id, page_title, ll_lang, ll_title FROM wowiki_p.langlinks LEFT JOIN wowiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'roa-rupwiki' as source, page_id, page_title, ll_lang, ll_title FROM roa_rupwiki_p.langlinks LEFT JOIN roa_rupwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'srnwiki' as source, page_id, page_title, ll_lang, ll_title FROM srnwiki_p.langlinks LEFT JOIN srnwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'igwiki' as source, page_id, page_title, ll_lang, ll_title FROM igwiki_p.langlinks LEFT JOIN igwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'tetwiki' as source, page_id, page_title, ll_lang, ll_title FROM tetwiki_p.langlinks LEFT JOIN tetwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'nsowiki' as source, page_id, page_title, ll_lang, ll_title FROM nsowiki_p.langlinks LEFT JOIN nsowiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'kgwiki' as source, page_id, page_title, ll_lang, ll_title FROM kgwiki_p.langlinks LEFT JOIN kgwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'tyvwiki' as source, page_id, page_title, ll_lang, ll_title FROM tyvwiki_p.langlinks LEFT JOIN tyvwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'abwiki' as source, page_id, page_title, ll_lang, ll_title FROM abwiki_p.langlinks LEFT JOIN abwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'ltgwiki' as source, page_id, page_title, ll_lang, ll_title FROM ltgwiki_p.langlinks LEFT JOIN ltgwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'sdwiki' as source, page_id, page_title, ll_lang, ll_title FROM sdwiki_p.langlinks LEFT JOIN sdwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'zuwiki' as source, page_id, page_title, ll_lang, ll_title FROM zuwiki_p.langlinks LEFT JOIN zuwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'zawiki' as source, page_id, page_title, ll_lang, ll_title FROM zawiki_p.langlinks LEFT JOIN zawiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'omwiki' as source, page_id, page_title, ll_lang, ll_title FROM omwiki_p.langlinks LEFT JOIN omwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'chywiki' as source, page_id, page_title, ll_lang, ll_title FROM chywiki_p.langlinks LEFT JOIN chywiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'twwiki' as source, page_id, page_title, ll_lang, ll_title FROM twwiki_p.langlinks LEFT JOIN twwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'rmywiki' as source, page_id, page_title, ll_lang, ll_title FROM rmywiki_p.langlinks LEFT JOIN rmywiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'cuwiki' as source, page_id, page_title, ll_lang, ll_title FROM cuwiki_p.langlinks LEFT JOIN cuwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'maiwiki' as source, page_id, page_title, ll_lang, ll_title FROM maiwiki_p.langlinks LEFT JOIN maiwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'chrwiki' as source, page_id, page_title, ll_lang, ll_title FROM chrwiki_p.langlinks LEFT JOIN chrwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'tnwiki' as source, page_id, page_title, ll_lang, ll_title FROM tnwiki_p.langlinks LEFT JOIN tnwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'gotwiki' as source, page_id, page_title, ll_lang, ll_title FROM gotwiki_p.langlinks LEFT JOIN gotwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'biwiki' as source, page_id, page_title, ll_lang, ll_title FROM biwiki_p.langlinks LEFT JOIN biwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'pihwiki' as source, page_id, page_title, ll_lang, ll_title FROM pihwiki_p.langlinks LEFT JOIN pihwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'rnwiki' as source, page_id, page_title, ll_lang, ll_title FROM rnwiki_p.langlinks LEFT JOIN rnwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'smwiki' as source, page_id, page_title, ll_lang, ll_title FROM smwiki_p.langlinks LEFT JOIN smwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'bmwiki' as source, page_id, page_title, ll_lang, ll_title FROM bmwiki_p.langlinks LEFT JOIN bmwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'sswiki' as source, page_id, page_title, ll_lang, ll_title FROM sswiki_p.langlinks LEFT JOIN sswiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'mowiki' as source, page_id, page_title, ll_lang, ll_title FROM mowiki_p.langlinks LEFT JOIN mowiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'iuwiki' as source, page_id, page_title, ll_lang, ll_title FROM iuwiki_p.langlinks LEFT JOIN iuwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'xhwiki' as source, page_id, page_title, ll_lang, ll_title FROM xhwiki_p.langlinks LEFT JOIN xhwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'kiwiki' as source, page_id, page_title, ll_lang, ll_title FROM kiwiki_p.langlinks LEFT JOIN kiwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'pntwiki' as source, page_id, page_title, ll_lang, ll_title FROM pntwiki_p.langlinks LEFT JOIN pntwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'lgwiki' as source, page_id, page_title, ll_lang, ll_title FROM lgwiki_p.langlinks LEFT JOIN lgwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'tswiki' as source, page_id, page_title, ll_lang, ll_title FROM tswiki_p.langlinks LEFT JOIN tswiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'eewiki' as source, page_id, page_title, ll_lang, ll_title FROM eewiki_p.langlinks LEFT JOIN eewiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'akwiki' as source, page_id, page_title, ll_lang, ll_title FROM akwiki_p.langlinks LEFT JOIN akwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'tiwiki' as source, page_id, page_title, ll_lang, ll_title FROM tiwiki_p.langlinks LEFT JOIN tiwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'fjwiki' as source, page_id, page_title, ll_lang, ll_title FROM fjwiki_p.langlinks LEFT JOIN fjwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'kswiki' as source, page_id, page_title, ll_lang, ll_title FROM kswiki_p.langlinks LEFT JOIN kswiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'sgwiki' as source, page_id, page_title, ll_lang, ll_title FROM sgwiki_p.langlinks LEFT JOIN sgwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'ffwiki' as source, page_id, page_title, ll_lang, ll_title FROM ffwiki_p.langlinks LEFT JOIN ffwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'nywiki' as source, page_id, page_title, ll_lang, ll_title FROM nywiki_p.langlinks LEFT JOIN nywiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'stwiki' as source, page_id, page_title, ll_lang, ll_title FROM stwiki_p.langlinks LEFT JOIN stwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'vewiki' as source, page_id, page_title, ll_lang, ll_title FROM vewiki_p.langlinks LEFT JOIN vewiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'crwiki' as source, page_id, page_title, ll_lang, ll_title FROM crwiki_p.langlinks LEFT JOIN crwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'dzwiki' as source, page_id, page_title, ll_lang, ll_title FROM dzwiki_p.langlinks LEFT JOIN dzwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'ikwiki' as source, page_id, page_title, ll_lang, ll_title FROM ikwiki_p.langlinks LEFT JOIN ikwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'tumwiki' as source, page_id, page_title, ll_lang, ll_title FROM tumwiki_p.langlinks LEFT JOIN tumwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'chwiki' as source, page_id, page_title, ll_lang, ll_title FROM chwiki_p.langlinks LEFT JOIN chwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'ngwiki' as source, page_id, page_title, ll_lang, ll_title FROM ngwiki_p.langlinks LEFT JOIN ngwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'iiwiki' as source, page_id, page_title, ll_lang, ll_title FROM iiwiki_p.langlinks LEFT JOIN iiwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'chowiki' as source, page_id, page_title, ll_lang, ll_title FROM chowiki_p.langlinks LEFT JOIN chowiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'mhwiki' as source, page_id, page_title, ll_lang, ll_title FROM mhwiki_p.langlinks LEFT JOIN mhwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'aawiki' as source, page_id, page_title, ll_lang, ll_title FROM aawiki_p.langlinks LEFT JOIN aawiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'kjwiki' as source, page_id, page_title, ll_lang, ll_title FROM kjwiki_p.langlinks LEFT JOIN kjwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'howiki' as source, page_id, page_title, ll_lang, ll_title FROM howiki_p.langlinks LEFT JOIN howiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'muswiki' as source, page_id, page_title, ll_lang, ll_title FROM muswiki_p.langlinks LEFT JOIN muswiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'krwiki' as source, page_id, page_title, ll_lang, ll_title FROM krwiki_p.langlinks LEFT JOIN krwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) UNION ALL (SELECT DISTINCT 'hzwiki' as source, page_id, page_title, ll_lang, ll_title FROM hzwiki_p.langlinks LEFT JOIN hzwiki_p.page ON page_id = ll_from WHERE page_namespace = 0 AND (ll_lang = "tokipona" OR ll_lang = "yue" OR ll_lang = "zh-cn" OR ll_lang = "zh-tw")) ;
{"resultsets": [{"headers": ["source", "page_id", "page_title", "ll_lang", "ll_title"], "rowcount": 2}]}
null
Unclean redirect pages on rowiki
null
USE rowiki_p; SELECT page_title, page_len FROM page WHERE page_is_redirect=1 AND page_namespace=0 AND page_len > 250 ORDER BY page_len ASC; /*LIMIT 150;*/ /* Created by XXN */
{"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 79}]}
null
Images with label supported by WMFR (2013-2014)
null
USE commonswiki_p; SELECT /* SLOW_OK */ COUNT(*) FROM (SELECT /* SLOW_OK */ page.page_title FROM image CROSS JOIN page ON image.img_name = page.page_title CROSS JOIN categorylinks ON page.page_id = categorylinks.cl_from CROSS JOIN categorylinks c2 ON page.page_id = c2.cl_from LEFT JOIN oldimage ON image.img_name = oldimage.oi_name AND oldimage.oi_timestamp = (SELECT MIN(o.oi_timestamp) FROM oldimage o WHERE o.oi_name = image.img_name) WHERE categorylinks.cl_to = "Media_supported_by_Wikimedia_France" AND IF(oldimage.oi_timestamp IS NULL, img_timestamp, oldimage.oi_timestamp) BETWEEN 20130701000000 AND 20140701000000 AND (c2.cl_to = "Quality_images" OR c2.cl_to = "Valued_images_supported_by_Wikimedia_France" OR c2.cl_to = "Featured_pictures_supported_by_Wikimedia_France") GROUP BY page.page_title ORDER BY img_timestamp ASC) labels;
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]}
null
Users in commons category
null
#1 SELECT DISTINCT rev_user_text, rev_user, cl_to #2 FROM commonswiki_p.page p #3 INNER JOIN commonswiki_p.categorylinks cl ON p.page_id = cl.cl_from #4 INNER JOIN commonswiki_p.revision r ON p.page_id = r.rev_page #5 WHERE p.page_namespace = 6 #6 AND cl.cl_to IN ("Images_from_Wiki_Loves_Earth_2014_in_Austria") AND r.rev_timestamp > 20140501000000 AND r.rev_timestamp < 20140601000000 #7 AND r.rev_parent_id = 0; #LINE 1: declare which database fields (columns) you want to include in your output. #You can include any fields from any of the tables you are joining (in this case: page, categorylinks, revision) #LINE 2: declare which wiki you are pulling data from. #In this case, commonswiki_p. You can find a full list here: https://tools.wmflabs.org/tools-info/?dblist=s1.labsdb #LINE 3: join the page table with the categorylinks table on their COMMON KEY, which is the id of the page. #LINE 4: join the page table with the revision table on their COMMON KEY, which is the id of the page. #LINE 5: specify the numeric namespace(s) of the pages you want to get information for. #There is a list of standard namespaces here: https://en.wikipedia.org/wiki/Wikipedia:Namespace #LINE 6: specify the category(ies) that the pages are in. If you wanted to get pages from multipe categories, #you would write the query the same way: AND cl.cl_to IN ("My_first_category", "Another_category") #LINE 7: specify that you want to return the revision information from the FIRST revision to the page. #the "parent" of a revision is the previous revision to that page. #The first revision to a page doesn't have a "parent", so the value for rev_parent_id will be 0.
{"resultsets": [{"headers": ["rev_user_text", "rev_user", "cl_to"], "rowcount": 246}]}
null
All IdeaLab endorsements
with timestamp and endorser
SELECT page_title, rev_user_text, rev_timestamp, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("IdeaLab/Ideas/IdeaLab") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "IdeaLab/%" AND (r.rev_comment LIKE "%endorse%" OR r.rev_comment LIKE "%Endorse%");
{"resultsets": [{"headers": ["page_title", "rev_user_text", "rev_timestamp", "rev_comment"], "rowcount": 143}]}
null
All Learning pattern endorsements
null
SELECT page_title, rev_user_text, rev_timestamp, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("Learning_patterns") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "Learning_patterns/%" AND (r.rev_comment LIKE "%endorse%" OR r.rev_comment LIKE "%Endorse%");
{"resultsets": [{"headers": ["page_title", "rev_user_text", "rev_timestamp", "rev_comment"], "rowcount": 206}]}
null
All IEG endorsements - 2014 round 2
null
SELECT page_title, rev_user_text, rev_timestamp, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("IEG_2014_round_2") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "IEG/%" AND (r.rev_comment LIKE "%endorse%" OR r.rev_comment LIKE "%Endorse%");
{"resultsets": [{"headers": ["page_title", "rev_user_text", "rev_timestamp", "rev_comment"], "rowcount": 295}]}
null
IdeaLab AddMe joiners
null
SELECT page_title, rev_user_text, rev_timestamp, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("IdeaLab/Ideas/IdeaLab") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "IdeaLab/%" AND r.rev_comment LIKE "Joined as%";
{"resultsets": [{"headers": ["page_title", "rev_user_text", "rev_timestamp", "rev_comment"], "rowcount": 19}]}
null
IEG AddMe joiners
null
SELECT page_title, rev_user_text, rev_timestamp, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("IEG_2014_round_2") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "IEG/%" AND r.rev_comment LIKE "Joined as%";
{"resultsets": [{"headers": ["page_title", "rev_user_text", "rev_timestamp", "rev_comment"], "rowcount": 9}]}
null
IEG 2014 round 2 commenters
grouped by proposal
select proposal, count(commenters) as all_commenters FROM (SELECT distinct rev_user_text AS commenters, page_title AS proposal FROM metawiki_p.page p JOIN metawiki_p.revision r ON p.page_id = r.rev_page WHERE p.page_namespace IN (201) AND p.page_title LIKE "IEG/%" AND page_title IN (SELECT page_title FROM metawiki_p.categorylinks cl JOIN metawiki_p.page p ON cl.cl_from = p.page_id WHERE cl_to = "IEG_2014_round_2")) AS tmp GROUP BY proposal;
{"resultsets": [{"headers": ["proposal", "all_commenters"], "rowcount": 43}]}
null
IEG 2014 round 1 commenters
null
select proposal, count(commenters) as all_commenters FROM (SELECT distinct rev_user_text AS commenters, page_title AS proposal FROM metawiki_p.page p JOIN metawiki_p.revision r ON p.page_id = r.rev_page WHERE p.page_namespace IN (201) AND p.page_title LIKE "IEG/%" AND page_title IN (SELECT page_title FROM metawiki_p.categorylinks cl JOIN metawiki_p.page p ON cl.cl_from = p.page_id WHERE cl_to = "IEG_2014_round_1")) AS tmp GROUP BY proposal;
{"resultsets": [{"headers": ["proposal", "all_commenters"], "rowcount": 31}]}
null
IEG 2014 round 2 commenters - selected/not
Selected vs not selected proposals
#commenters on 2014 round 2 selected proposals select proposal, count(commenters) as all_commenters FROM (SELECT distinct rev_user_text AS commenters, page_title AS proposal FROM metawiki_p.page p JOIN metawiki_p.revision r ON p.page_id = r.rev_page WHERE p.page_namespace IN (201) AND p.page_title LIKE "IEG/%" AND page_title IN (SELECT page_title FROM metawiki_p.categorylinks cl JOIN metawiki_p.page p ON cl.cl_from = p.page_id WHERE cl_to = "IEG/Proposals/Selected") AND r.rev_timestamp BETWEEN 20140901000000 and 20141103000000) AS tmp GROUP BY proposal; #commenters on 2014 Round 2 not selected proposals select proposal, count(commenters) as all_commenters FROM (SELECT distinct rev_user_text AS commenters, page_title AS proposal FROM metawiki_p.page p JOIN metawiki_p.revision r ON p.page_id = r.rev_page WHERE p.page_namespace IN (201) AND p.page_title LIKE "IEG/%" AND page_title IN (SELECT page_title FROM metawiki_p.categorylinks cl JOIN metawiki_p.page p ON cl.cl_from = p.page_id WHERE cl_to = "IEG/Proposals/Not_selected") AND r.rev_timestamp BETWEEN 20140901000000 and 20141103000000) AS tmp GROUP BY proposal;
{"resultsets": [{"headers": ["proposal", "all_commenters"], "rowcount": 9}, {"headers": ["proposal", "all_commenters"], "rowcount": 17}]}
null
IEG 2014 round 1 commenters - selected/not
selected vs. not selected proposals
#commenters on 2014 round 1 selected proposals select proposal, count(commenters) as all_commenters FROM (SELECT distinct rev_user_text AS commenters, page_title AS proposal FROM metawiki_p.page p JOIN metawiki_p.revision r ON p.page_id = r.rev_page WHERE p.page_namespace IN (201) AND p.page_title LIKE "IEG/%" AND page_title IN (SELECT page_title FROM metawiki_p.categorylinks cl JOIN metawiki_p.page p ON cl.cl_from = p.page_id WHERE cl_to = "IEG/Proposals/Selected") AND r.rev_timestamp BETWEEN 20140301000000 and 20140506000000) AS tmp GROUP BY proposal; #commenters on 2014 round 1 not selected proposals select proposal, count(commenters) as all_commenters FROM (SELECT distinct rev_user_text AS commenters, page_title AS proposal FROM metawiki_p.page p JOIN metawiki_p.revision r ON p.page_id = r.rev_page WHERE p.page_namespace IN (201) AND p.page_title LIKE "IEG/%" AND page_title IN (SELECT page_title FROM metawiki_p.categorylinks cl JOIN metawiki_p.page p ON cl.cl_from = p.page_id WHERE cl_to = "IEG/Proposals/Not_selected") AND r.rev_timestamp BETWEEN 20140301000000 and 20140506000000) AS tmp GROUP BY proposal;
{"resultsets": [{"headers": ["proposal", "all_commenters"], "rowcount": 14}, {"headers": ["proposal", "all_commenters"], "rowcount": 7}]}
null
All FY2014-15 funded PEGs
with creator and creation date
SELECT page_title, rev_user_text, EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("WMF_grants_funded_in_FY_2014-15") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "PEG/%" AND r.rev_parent_id = 0;
{"resultsets": [{"headers": ["page_title", "rev_user_text", "year", "month", "rev_comment"], "rowcount": 33}]}
null
all IEG 2014 round 2 proposals
with creator and creation date
SELECT page_title, rev_user_text, EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("IEG_2014_round_2") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "IEG/%" AND r.rev_parent_id = 0;
{"resultsets": [{"headers": ["page_title", "rev_user_text", "year", "month", "rev_comment"], "rowcount": 47}]}
null
25 Most edited pages in last 30 days
null
USE tewiki_p; SELECT rc_title, COUNT(*) AS num_edits FROM recentchanges WHERE rc_namespace = 0 GROUP BY rc_title ORDER BY num_edits DESC LIMIT 25;
{"resultsets": [{"headers": ["rc_title", "num_edits"], "rowcount": 25}]}
null
IEG 2014 round 1 endorsements
null
SELECT page_title, rev_user_text, rev_timestamp, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("IEG_2014_round_1") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "IEG/%" AND (r.rev_comment LIKE "%endorse%" OR r.rev_comment LIKE "%Endorse%");
{"resultsets": [{"headers": ["page_title", "rev_user_text", "rev_timestamp", "rev_comment"], "rowcount": 144}]}
null
IEG 2014 round 2 endorsements per proposal
null
SELECT COUNT(DISTINCT `rev_user_text`) AS endorsements, page_title FROM ( SELECT page_title, page_id, rev_user_text, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("IEG_2014_round_2") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "IEG/%" AND (r.rev_comment LIKE ("%Endorse%") OR r.rev_comment LIKE ("%endorse"))) AS tmp GROUP BY page_title ORDER BY endorsements DESC;
{"resultsets": [{"headers": ["endorsements", "page_title"], "rowcount": 35}]}
null
IEG 2014 round 1 endorsements by proposal
null
SELECT COUNT(DISTINCT `rev_user_text`) AS endorsements, page_title FROM ( SELECT page_title, page_id, rev_user_text, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("IEG_2014_round_1") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "IEG/%" AND (r.rev_comment LIKE ("%Endorse%") OR r.rev_comment LIKE ("%endorse"))) AS tmp GROUP BY page_title ORDER BY endorsements DESC;
{"resultsets": [{"headers": ["endorsements", "page_title"], "rowcount": 19}]}
null
People joining ideas by month/year
null
SELECT COUNT(rev_user_text) AS participants, EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month` FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("IdeaLab/Ideas/IdeaLab") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "IdeaLab/%" AND (r.rev_comment LIKE ("Join%") OR r.rev_comment LIKE ("%Participants%")) GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["participants", "year", "month"], "rowcount": 12}]}
null
All patterns created since Jan 2014
with creator and creation date
SELECT page_title, rev_user_text, EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month`, rev_comment FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("Learning_patterns") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "Learning_patterns/%" AND p.page_title NOT LIKE "%/%/%" AND r.rev_timestamp > 20140101000000 AND r.rev_parent_id = 0;
{"resultsets": [{"headers": ["page_title", "rev_user_text", "year", "month", "rev_comment"], "rowcount": 100}]}
null
Learning pattern endorsements per month
EXCLUDING WMF STAFF ENDORSEMENTS
SELECT COUNT(rev_user_text) AS endorsements, EXTRACT(YEAR FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `year`, EXTRACT(MONTH FROM DATE_FORMAT(rev_timestamp,'%Y%m%d%H%i%s')) AS `month` FROM metawiki_p.page AS p JOIN metawiki_p.categorylinks AS cl ON p.page_id = cl.cl_from JOIN metawiki_p.revision AS r ON p.page_id = r.rev_page WHERE cl.cl_to IN ("Learning_patterns") AND cl.cl_type = "page" AND p.page_namespace = 200 AND p.page_title LIKE "Learning_patterns/%" AND (r.rev_comment LIKE ("%Endorse%") OR r.rev_comment LIKE ("%endorse%")) AND r.rev_user_text NOT LIKE "%(WMF)" GROUP BY `year`, `month` ORDER BY `year` ASC, `month` ASC;
{"resultsets": [{"headers": ["endorsements", "year", "month"], "rowcount": 16}]}
null
Top 250 English Wikipedia articles in recent changes
copied from some other query
USE enwiki_p; SELECT rc_title, COUNT(*) AS num_edits FROM recentchanges WHERE rc_namespace = 0 GROUP BY rc_title ORDER BY num_edits DESC LIMIT 250;
{"resultsets": [{"headers": ["rc_title", "num_edits"], "rowcount": 250}]}
null
All toolkit pages
null
SELECT page_title FROM metawiki_p.page AS p WHERE p.page_namespace = 200 AND p.page_title LIKE "IdeaLab/%/Toolkit";
{"resultsets": [{"headers": ["page_title"], "rowcount": 52}]}
null