title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
English Wikipedia modules sorted by number of pages where transcluded (top 1000, descending order)
List of modules in English Wikipedia sorted in descending order by the number of pages on which the module is transcluded (top 1000 results)
USE enwiki_p; SELECT tl_title, COUNT(*) FROM templatelinks WHERE tl_namespace = 828 GROUP BY tl_title ORDER BY COUNT(*) DESC LIMIT 1000;
{"resultsets": [{"headers": ["wikitext"], "rowcount": 0}], "runningtime": "99.58"}
null
Macedonian Week
List of articles created for the Investigative Journalism Week on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name, COUNT(1) AS created, SUM(article.page_len) as...
{"resultsets": [{"headers": ["page_title"], "rowcount": 9951}], "runningtime": "81.79"}
null
Page revisions
Revision on "Syria" article.
use enwiki_p; SELECT * FROM revision INNER JOIN comment_revision ON revision.rev_comment_id=comment_revision.comment_id WHERE rev_page = 7515849 LIMIT 100
{"resultsets": [{"headers": ["afl_id", "afl_filter", "afl_user", "afl_user_text", "afl_ip", "afl_action", "afl_actions", "afl_var_dump", "afl_timestamp", "afl_namespace", "afl_title", "afl_wiki", "afl_deleted", "afl_patrolled_by", "afl_rev_id"], "rowcount": 1}], "runningtime": "0.11"}
null
Midi uploads by time
Note: For file overwrites, this counts the most recent overwrite as timestamp. Deleted and old versions of files are not included. change ORDER BY img_timestamp desc to ORDER BY img_size to order by size
use commonswiki_p; SELECT img_name, img_timestamp, img_size from image where img_media_type = 'AUDIO' and img_major_mime = 'audio' and img_minor_mime = 'midi' ORDER BY img_timestamp desc
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 1}], "runningtime": "0.13"}
null
GA/FA and GAN/FAC linked from October 19
GA/FA and GAN/FAC linked from [[October 19]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"headers": ["rc_timestamp", "rc_title", "oresc_model", "oresc_probability", "actor_name", "rc_this_oldid"], "rowcount": 0}], "runningtime": "0.15"}
null
Edit count $
enter project, exeptions, & limit
select user_name,user_editcount from incubatorwiki_p.user u where u.user_editcount > 1000 and (u.user_name not like "%بوت%" and u.user_name not like "%BoT%" and u.user_name not like "%BOT%" and u.user_name not like "%bot%" and u.user_name not like "%Bot" and u.user_name not like "%boT%" and u.user_name not like "%messa...
{"resultsets": [{"headers": ["page_title"], "rowcount": 1085}], "runningtime": "30.14"}
null
#Articles
select project & time
use enwiki_p; SELECT concat('[[User:',actor_name,'|',actor_name,']]') AS "User", COUNT(*) AS "Articles" FROM revision r INNER JOIN actor ON r.rev_actor = actor.actor_id INNER JOIN page p on r.rev_page = p.page_id WHERE p.page_namespace =0 and p.page_is_redirect =0 and r.rev_timestamp between 20191015000000 and 20191014...
{"resultsets": [{"headers": ["page_title"], "rowcount": 1085}], "runningtime": "21.96"}
null
Wikipedian kumoukset kumoa-toiminnolla
null
use fiwiki_p; SELECT page_title, rev_id, rev_timestamp, rev_user_text, comment_text FROM revision, page, comment WHERE page_id=rev_page AND rev_timestamp > 20100000000000 AND rev_comment_id=comment_id AND comment_text LIKE "%Kumottu muokkaus%" ORDER BY rev_timestamp DESC LIMIT 2025
{"resultsets": [{"headers": ["line"], "rowcount": 4230}], "runningtime": "134.91"}
null
(The xxx song, album, or EP)
Titles with "(The xxx song)" or "(The xxx album)" or "(The xxx EP)"
select page_title from page where page_namespace=0 and (page_title like '%(The!_%' escape '!') and not (page_title like '%(The!_The!_%' escape '!') and not (page_title like '%(The!_1975!_%' escape '!') and ((page_title like '%song)') or (page_title like '%album)') or (page_title like '%EP)')) and page_is_red...
{"resultsets": [{"headers": ["page_title", "page_len", "cat_pages", "rev_timestamp", "rev_actor"], "rowcount": 247}], "runningtime": "1356.09"}
null
Gender of editors to specific page
null
select distinct actor_name as "username", (select up_value from user_properties where up_user=actor_user and up_property="gender") as "gender" from revision join actor on rev_actor=actor_id where rev_page= (select page_id from page where page_namespace=4 and page_title="Talk:Chelsea_Manning/August_2013_move_request")
{"resultsets": [], "runningtime": "0.03"}
null
Empty article talks on plwiki
null
USE plwiki_p; SELECT concat("# [[Dyskusja:",page_title,"]]") AS page_title FROM plwiki_p.page WHERE page_namespace = 1 AND page_len = 0 ORDER BY page_title;
{"connection_id": 27786598}
null
Facenapalm reviews
prepat - was previous revision reviewed? pat - review flag for current revision bad = 1 - problems, should not happen
use ruwiki_p; SELECT (prepat <> "no") AND (pat <> "auto") as bad, B.* FROM (SELECT CASE WHEN rev_parent_id = 0 THEN "new" WHEN f1.fr_timestamp IS NULL THEN "no" ELSE "yes" END as prepat, CASE WHEN f2.fr_flags IS NULL THEN "no" WHEN f2.fr_flags LIKE "%auto%" THEN "auto" ELSE "manual...
{"resultsets": [{"headers": ["Length", "Type", "COUNT(*)"], "rowcount": 25}], "runningtime": "0.30"}
null
Reviewer edits
prepat - was previous revision reviewed? pat - review flag for current revision bad = 1 - problems, should not happen
use ruwiki_p; SELECT *, (prepat <> "no") AND (pat <> "auto") as bad FROM (SELECT user_name, page_title, rev_id, rev_timestamp, CASE WHEN rev_parent_id = 0 THEN "new" WHEN f1.fr_timestamp IS NULL THEN "no" ELSE "yes" END as prepat, CASE WHEN f2.fr_flags IS NULL THEN "no" WHEN f2.fr_flags L...
{"resultsets": [], "runningtime": "0.06"}
null
Number of lexemes published a day
Drop an unnecessary join on pagelinks to get execution time down.
USE wikidatawiki_p; SELECT count(page.page_title) AS pages, DATE_FORMAT(revision.rev_timestamp, '%Y-%m-%d') AS date FROM page JOIN revision ON page.page_id=revision.rev_page WHERE page.page_namespace=146 AND revision.rev_parent_id=0 # No parent rev = page creation GROUP BY date ORDER BY revision.rev_timestamp
{"resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wpage", "commonscat"], "rowcount": 23}], "runningtime": "165.26"}
null
Hewiki pages by enwiki category
null
select ll_title from enwiki_p.categorylinks cl inner join enwiki_p.langlinks on cl.cl_from=ll_from inner join hewiki_p.page p on p.page_title=ll_title and p.page_namespace=0 where ll_lang='he' and cl_to ='Companies_listed_on_the_Frankfurt_Stock_Exchange' and not exists(select * from hewiki_p.categorylinks hcl where h...
{"resultsets": [{"headers": ["pp_value", "page_title", "tl_namespace", "tl_title"], "rowcount": 16459}], "runningtime": "644.86"}
null
Hewiki pages by enwiki category
null
select ll_title from enwiki_p.categorylinks cl inner join enwiki_p.langlinks on cl.cl_from=ll_from inner join hewiki_p.page p on p.page_title=ll_title and p.page_namespace=0 where ll_lang='he' and cl_to ='Companies_listed_on_the_Shanghai_Stock_Exchange' and not exists(select * from hewiki_p.categorylinks hcl where hc...
{"resultsets": [{"headers": ["en_baslik", "tr_baslik", "tr_kategori"], "rowcount": 74}], "runningtime": "0.81"}
null
~Bad links from Commons to other wikis
work in progress
USE etwiki_p; #SET @w = 'dewiki'; SET @pr = 'de'; SET @prs = @pr; #SET @w = 'enwiki'; SET @pr = 'en'; SET @prs = @pr; #SET @w = 'eswiki'; SET @pr = 'es'; SET @prs = @pr; #SET @w = 'frwiki'; SET @pr = 'fr'; SET @prs = @pr; #SET @w = 'nlwiki'; SET @pr = 'nl'; SET @prs = @pr; #SET @w = 'ruwiki'; SET @pr = 'ru'; SET @prs =...
{"resultsets": [{"headers": ["en_baslik", "tr_baslik", "tr_kategori"], "rowcount": 8}], "runningtime": "0.12"}
null
enwiki articles without any statements in Wikidata
null
/* /query/39486 */ use wikidatawiki_p; SELECT * FROM wb_items_per_site,page_props,page WHERE ips_site_id IN ('enwiki') AND page_namespace=0 AND ips_item_id=substr(page_title,2)*1 AND page_id=pp_page AND pp_propname='wb-claims' AND pp_sortkey=0
{"resultsets": [{"headers": ["page_id", "page_title", "CONCAT(\"File:\", cp.page_title)"], "rowcount": 2}], "runningtime": "152.93"}
null
zhwiki include Notability but not in NB
null
USE zhwiki_p; SELECT page_title FROM ( SELECT tl_from FROM templatelinks WHERE tl_namespace = 10 AND tl_from_namespace = 0 AND tl_title = 'Notability') t1 LEFT JOIN page ON tl_from = page_id LEFT JOIN ( SELECT pl_title, pl_namespace FROM pagelinks WHERE pl_from = 1164200 /*AND pl_namespace = 0*/ ) t2 O...
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 85}], "runningtime": "6.71"}
null
A magyar Wikipédia mérete
https://hu.wikipedia.org/wiki/Szerkesztő:Samat/A_magyar_Wikipédia_mérete
USE huwiki_p; /* Real data */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page_id) AS articles, AVG(page_len) AS 'average (B)' FROM page WHERE page_namespace = 0 AND page_is_redirect = 0; /* With redirects */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page...
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 94}], "runningtime": "2.45"}
null
metawiki: redirect from ns0/4 to user
null
USE metawiki_p; SELECT CONCAT("[[{{ns:", page_namespace, "}}:", page_title, "]]") AS "from", CONCAT("[[{{ns:", rd_namespace, "}}:", rd_title, "]]") AS "to" FROM ( SELECT * FROM redirect WHERE rd_namespace = 2 ) rd LEFT JOIN page ON rd_from = page_id WHERE page_namespace = 0 OR page_namespace = 4
{"resultsets": [{"headers": ["CURRENT_DATE"], "rowcount": 1}, {"headers": ["term_entity_type", "term_language", "labels", "descriptions", "aliases"], "rowcount": 49}], "runningtime": "148.46"}
null
All files on Commons needing categories as of 2016 in one place
null
use commonswiki_p; SELECT current_date; SELECT page_title FROM page JOIN categorylinks ON cl_from = page_id WHERE cl_to = "All_media_needing_categories_as_of_2016" AND page_namespace = 6;
{"resultsets": [{"headers": ["AVG(page_len)"], "rowcount": 1}], "runningtime": "6.23"}
null
Most common properties used on Lexemes
The properties used most commonly on Lexemes, anywhere on the page. (Strictly speaking, this includes properties used as the values of statements for property-type properties, but that should be exceedingly rare.)
USE `wikidatawiki_p`; SELECT `property_id`, `wbx_text` AS `property_label`, `count` FROM ( SELECT `pl_title` AS `property_id`, COUNT(DISTINCT `pl_from`) AS `count` FROM `pagelinks` WHERE `pl_from_namespace` = 146 -- Lexeme: AND `pl_namespace` = 120 -- Property: GROUP BY `pl_title` ) AS `properties` JOIN `wbt...
{"resultsets": [{"headers": ["page_title", "a"], "rowcount": 345}], "runningtime": "6.15"}
null
Hewiki fair use unused pictures 1
null
use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists (select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as p2 where p2.page_namespace = 14 and p2.pag...
{"resultsets": [{"headers": ["page_namespace", "page_title", "tl_title"], "rowcount": 607}], "runningtime": "54.24"}
null
Hewiki fair use unused pictures 1
null
use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists (select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as p2 where p2.page_namespace = 14 and p2.pag...
{"resultsets": [{"headers": ["totale", "page_count_error", "weight"], "rowcount": 5}, {"headers": ["page_id", "page_title", "totale", "linter_params", "ptotale"], "rowcount": 437}], "runningtime": "9.94"}
null
Hewiki fair use unused pictures 1
null
use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists (select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as p2 where p2.page_namespace = 14 and p2.pag...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 30}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 12}], "runningtime": "3.54"}
null
zhwb category
null
USE zhwikibooks_p; SELECT * FROM category WHERE cat_title = '快速刪除候選' LIMIT 100
{"resultsets": [{"headers": ["@r := @r+1", "en_title", "en_len", "de_title", "de_len"], "rowcount": 5}], "runningtime": "23.11"}
null
uk.wiki global replace #2
null
USE ukwiki_p; SELECT u.user_name, COUNT(rc.rc_id) FROM ukwiki_p.user u JOIN ukwiki_p.actor AS a ON u.user_id = a.actor_user JOIN ukwiki_p.recentchanges_userindex AS rc ON rc.rc_actor = a.actor_id WHERE rc.rc_minor = 1 /* AND NOT EXISTS ( SELECT 1 FROM ukwiki_p.user_groups ug WHERE ug.ug_user = u.user_id AND ug....
{"resultsets": [{"headers": ["user", "edit_count"], "rowcount": 67}], "runningtime": "5.14"}
null
Tühjad ja lühikesed arutelulehed vol 2
Empty or short talk pages
USE etwiki_p; SELECT CONCAT('* [[{{ns:', page_namespace, '}}:', page_title, ']]') as talkpage, page_len FROM page WHERE #välja arvatud kasutaja arutelud page_namespace <> 1 AND page_namespace % 2 =1 AND page_is_redirect = 0 AND page_len < 60 ORDER BY page_len ASC;
{"resultsets": [{"headers": ["bucket", "cnt"], "rowcount": 56}], "runningtime": "16.35"}
null
980801 mp1 # of DAB pages with direct link (pages)
null
USE fawiki_p; SELECT COUNT(DISTINCT(page_title)) FROM pagelinks JOIN page WHERE page_is_redirect=0 AND page_namespace=0 AND page_id IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation') AND pl_from IN ( SELECT page_id FROM page WHERE page_is_redirect=0) AND pl_title=page_title AND pl_nam...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 3000}], "runningtime": "26.96"}
null
980801 mp1 # of direct links to DAB pages (pages)
null
USE fawiki_p; SELECT COUNT(page_id) FROM pagelinks JOIN page WHERE page_is_redirect=0 AND page_namespace=0 AND page_id IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation' ) AND pl_from IN ( SELECT page_id FROM page WHERE page_is_redirect=0 ) AND pl_title=page_title AND pl_namespace ...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 3000}], "runningtime": "29.63"}
null
980801 mp1 # of DAB pages
null
USE fawiki_p; SELECT COUNT(page_title) FROM page WHERE page_id IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation');
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 3000}], "runningtime": "33.33"}
null
980801 mp1 # of redirected links to DAB pages (pages)
null
USE fawiki_p; SELECT COUNT(pl_title) FROM pagelinks LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title LEFT JOIN redirect ON page_id = rd_from WHERE page_is_redirect = 1 AND page_namespace = 0 AND rd_namespace = 0 AND pl_from IN ( SELECT page_id FROM page WHERE page_is_redirect=0 AND ...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 3000}], "runningtime": "29.31"}
null
980801 mp1 # of DAB pages with redirected link (pages)
null
USE fawiki_p; SELECT COUNT(DISTINCT(page_title)) FROM pagelinks LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title LEFT JOIN redirect ON page_id = rd_from WHERE page_is_redirect = 1 AND page_namespace = 0 AND rd_namespace = 0 AND pl_from IN ( SELECT page_id FROM page WHERE page_is_redir...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 3000}], "runningtime": "36.09"}
null
980801 owp1 All orphan articles
null
USE fawiki_p; SELECT concat('# [[',p1.page_title,']]') FROM page AS p1 WHERE p1.page_is_redirect = 0 AND p1.page_namespace = 0 # not a DAB page AND p1.page_id NOT IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation' ) # not receiving direct link AND NOT ( p1.page_title IN ( SELECT pl1....
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 3000}], "runningtime": "53.02"}
null
980801 # of fa articles
null
USE fawiki_p; SELECT COUNT(page_id) FROM page WHERE page_is_redirect = 0 AND page_namespace = 0;
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 3000}], "runningtime": "67.22"}
null
Translators at meta with language, number of translations
For a given prefix of translatable pages, take all translators for the latest versions of translation units (otherwise someone fixing their own typos would look a prolific translator) and order them by language and translation volume.
use metawiki_p; SELECT actor_name as user, substring_index(page_title, '/', -1) AS language, count(*) AS no_translations, CONCAT('* {{target | page = User:', actor_name, ' | site = meta.wikimedia.org}}') AS url FROM page LEFT JOIN -- Take only the latest revision of each translation to simplify revision ON ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 21}], "runningtime": "0.31"}
null
Hewiki fair use unused pictures 1
null
use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists (select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as p2 where p2.page_namespace = 14 and p2.pag...
{"resultsets": [{"headers": ["num_pages", "num_users"], "rowcount": 1}], "runningtime": "0.36"}
null
Most edited pages in ukwiki this month
null
SELECT REPLACE(P.page_title,'_',' ') AS title, COUNT(1) AS edits FROM ukwiki_p.revision R JOIN ukwiki_p.page P ON R.rev_page=P.page_id WHERE R.rev_timestamp > 20191001000000 AND P.page_namespace = 0 GROUP BY P.page_title ORDER BY edits DESC LIMIT 20
{"resultsets": [{"headers": ["ug_user", "ug_group", "ug_expiry", "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"...
null
Pages in ukwiki with most contributors this month
null
SELECT NQ.title, COUNT(1) AS page_contributors FROM ( SELECT REPLACE(P.page_title,'_',' ') AS title, A.actor_name AS actor, COUNT(1) AS edits FROM ukwiki_p.revision R JOIN ukwiki_p.page P ON R.rev_page=P.page_id JOIN ukwiki_p.actor A ON R.rev_actor=A.actor_id WHERE R.rev_timestamp > 20191001000000 AND P.pa...
{"resultsets": [{"headers": ["\u0639\u0646\u0648\u0627\u0646", "\u062a\u0627\u0631\u06cc\u062e", "\u0633\u0627\u0632\u0646\u062f\u0647"], "rowcount": 2154}], "runningtime": "8.10"}
null
WikiDaheim users 2019 (by first revision, by uploader)
null
USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count FROM actor, revision, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND actor.actor_id = revision.rev_actor AND image.img_name = page.page_title and revision.r...
{"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_namespace", "rc_title", "rc_cur_id", "page_namespace", "page_title"], "rowcount": 100}], "runningtime": "0.41"}
null
Rotverlinkte Vornamensträger
null
USE dewiki_p; SELECT REPLACE(P.page_title, '_', ' ') AS Vornamensliste, COUNT(pl_title) AS Anzahl, GROUP_CONCAT(REPLACE(pl_title, '_', ' ') SEPARATOR ', ') AS "Mögliche Vornamen-Rotlinks" FROM page AS P, categorylinks, pagelinks LEFT JOIN page AS rotlink ON pl_names...
{"resultsets": [{"headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"], "rowcount": 90}], "runningtime": "54.78"}
null
#/categories per page, bio vs non-bio
Counts the number of non-hidden categories in a sample of non-redirect mainspace pages, split by whether they're likely to be biographies. The sole criterion for "biographical" is whether the page is in a category whose title contains "birth", case-sensitive. (One of the implications is that completely uncategorized ...
-- Resultset 1: summary SELECT is_biographical, COUNT(*) AS number_of_articles, AVG(number_of_categories), STDDEV(number_of_categories), MIN(number_of_categories), MAX(number_of_categories) FROM ( SELECT (EXISTS (SELECT 1 FROM categorylinks isbio WHERE isbio.cl_to LIKE '%birth%' ...
{"resultsets": [{"headers": ["user", "language", "no_translations", "url"], "rowcount": 616}], "runningtime": "58.68"}
null
Links to Google Scholar in articles created by user
null
USE enwiki_p; SELECT page_title FROM page JOIN revision ON rev_page = page_id AND page_namespace = 0 AND rev_parent_id = 0 JOIN actor ON rev_actor = actor_id AND actor_name = "Nemo bis";
{"resultsets": [{"headers": ["rev_actor", "n_total_edits", "n_days_usage", "user_name", "edit_count", "username"], "rowcount": 100}], "runningtime": "97.12"}
null
Disambiguation/surname pairs
null
USE cswiki_p; SELECT disamb.page_title AS d, disamb.page_len AS d_len, surname.page_title AS s, surname.page_len AS s_len FROM page AS disamb, page AS surname WHERE disamb.page_title LIKE '%\_(rozcestník\)' AND disamb.page_namespace = 0 AND disamb.page_is_redirect = 0 AND surname.page_title LIKE '%\_(příjmení\)' AND su...
{"resultsets": [{"headers": ["left(el_to, locate(\"/\", el_to, 9))"], "rowcount": 100}], "runningtime": "0.41"}
null
WikiDaheim users 2019 (by first revision, by uploader)
null
USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count FROM actor, revision, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND image.img_name = page.page_title AND categorylinks.cl_to = "Quality images" GROUP BY user ...
{"resultsets": [{"headers": ["concat(\"\u0648\u06cc\u06a9\u06cc\u200c\u067e\u062f\u06cc\u0627:\", page_title)", "concat(page_len, \"\u0628\u0627\u06cc\u062a\")"], "rowcount": 180}], "runningtime": "0.91"}
null
Proofread-shobia-நெஞ்சக்கனல்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"resultsets": [{"headers": ["comment_text"], "rowcount": 100}], "runningtime": "11.41"}
null
Ben Adriel draft
null
use hewiki_p; select * from page where exists (select * from pagelinks where page_id = pl_from and pl_namespace = 0 and pl_title in ('רוסיה_הצארית'))
{"connection_id": 108214860}
null
Top editors in Javanese Wikipedia in 2019-10
null
use wikishared_p; select * from cx_translations limit 10;
{"resultsets": [{"headers": ["page_title"], "rowcount": 11}], "runningtime": "46.16"}
null
Wikimedia Commons users known to not be credited
Distinct usernames for {{Published|legal=no}} files, listed in https://commons.wikimedia.org/wiki/Category:Files_reused_by_external_parties_out_of_compliance_with_licensing_terms
USE commonswiki_p; SELECT group_concat(img_name, " "), actor_name FROM categorylinks JOIN page t ON cl_to = "Files_reused_by_external_parties_out_of_compliance_with_licensing_terms" AND cl_from = t.page_id JOIN image ON t.page_title = img_name JOIN actor ON img_actor = actor_id JOIN page d ON d.page_title = t.page_titl...
{"resultsets": [{"headers": ["actor_name", "COUNT(*)"], "rowcount": 57}], "runningtime": "0.45"}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"headers": ["cat_id", "cat_title", "page_title", "page_id"], "rowcount": 42852}], "runningtime": "165.17"}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"headers": ["page_id", "page_title", "CONCAT(\"File:\", cp.page_title)"], "rowcount": 7}], "runningtime": "128.07"}
null
Mura di Lucca
null
null
{"resultsets": [{"headers": ["CONCAT(\"# [[\", page_title, \"]]\")"], "rowcount": 191}], "runningtime": "2.08"}
null
Age of User accounts created
null
USE enwiki_p; SELECT user_name, user_registration FROM user WHERE user_name in ("Armineaghayan","باسم","صالح","Dirac","شيماء","23artashes","علاء فحصي","Caleidoscopic","شادي","Marsela Khurshudyan","Slava sahakyan","دنيا","Canley","Sturm","Ambre Troizat","Clayoquot","عرين أسد أبو رمان","ولاء","श्रेष्ठ भूपेन्द्र","Արարատ ...
{"connection_id": 32724556}
null
Age of User accounts created (2)
null
USE enwiki_p; SELECT user_name, user_registration FROM user WHERE user_name in ("Armineaghayan","باسم","صالح","Dirac","شيماء","23artashes","علاء فحصي","Caleidoscopic","شادي","Marsela Khurshudyan","Slava sahakyan","دنيا","Canley","Sturm","Ambre Troizat","Clayoquot","عرين أسد أبو رمان","ولاء","श्रेष्ठ भूपेन्द्र","Արարատ ...
{"connection_id": 32728906}
null
মোট সম্পাদনার সংখ্যা
০২-০৯-২০১৮
USE bnwiki_p; SET @counter:=0; SELECT CONCAT("}}{{subst:সসংঅউতা|",@counter:=@counter+1,"") AS rank, CONCAT("|",user_name,"|") AS user_name, user_editcount FROM user WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot') AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)" ORDER BY user_editcount DESC...
{"resultsets": [{"headers": ["user_name", "DATE_FORMAT(user_registration, \"%D/%M/%Y %H:%i:%s\")"], "rowcount": 23}], "runningtime": "0.28"}
null
Links to redirects
null
use hewiki_p; select l.pl_from, l.pl_title, r.rd_title from redirect r join page p on r.rd_from=p.page_id join pagelinks l on p.page_title=l.pl_title where r.rd_namespace=0 and p.page_namespace=0 limit 1000;
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 29}], "runningtime": "34.81"}
null
Double file extensions
http://commons.wikimedia.org/wiki/User:Dispenser/Double_extension http://quarry.wmflabs.org/query/889
-- 2> /dev/null; date; echo ' /* Double file extensions * License: Public Domain * Run time: 20 minutes <SLOW_OK> */ USE commonswiki_p; SELECT CONCAT("* {{/link|File:", REPLACE(REPLACE(page_title, "_", " "), "=", "&#61;"), "}}") AS Filename FROM page WHERE page_namespace=6 AND page_is_redirect=0 AND CONVERT(page_tit...
{"resultsets": [{"headers": ["user_name", "DATE_FORMAT(user_registration, \"%D/%M/%Y %H:%i:%s\")"], "rowcount": 13}], "runningtime": "0.24"}
null
POTM TAWS OCT19
Proofread of the month. List of user who have participated in the event.
SELECT act.actor_name as 'Editor', ndx.page_title as 'Work', sum(edp.page_namespace = 250) as 'Page-space: edits', sum(edp.page_namespace = 252) as 'Index-space: edits', sum(edp.page_namespace = 0) as 'Main-space: edits', COUNT(edp.page_id)-sum(edp.page_namespace in (0,250,252)) AS 'Other edits'...
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 10}], "runningtime": "1.47"}
null
KSA new articles by months
null
use arwiki_p; SELECT left(t4.rev_timestamp,4) as Menesis, count(left(t4.rev_timestamp,4)) as Raksti FROM revision AS t4 WHERE t4.rev_id IN ( Select min(t45.rev_id) From revision t45 inner join page p on t45.rev_page=p.page_id where p.page_namespace=0 and p.page_is_redirect=0 and t45.rev_page in (select cl_from from ...
{"resultsets": [{"headers": ["rc_title", "users", "editions", "first_revert", "last_revert"], "rowcount": 1}], "runningtime": "5.09"}
null
page_title LIKE "%animat%"
null
USE commonswiki_p; SELECT CONCAT("Category:",page_title,"") FROM page AS page WHERE page_namespace = 14 AND page_is_redirect = 0 AND (page_title LIKE "%Animated%" OR page_title LIKE "%animated%" OR page_title LIKE "%Animation%" OR page_title LIKE "%animation%" ) ORDER BY page_title DESC LIMIT 13999;
{"resultsets": [{"headers": ["rc_title", "users", "editions", "first_revert", "last_revert"], "rowcount": 1}], "runningtime": "4.59"}
null
Magyar szócikkek átlagos hossza
null
USE huwiki_p; SELECT count(*) as lapok_száma_a_főnévtérben FROM page where page_namespace=0; SELECT avg (page_len) as átlagos_hossz_a_főnévtérben FROM page where page_namespace=0; SELECT avg (page_len) as átlagos_hossz_a_főnévtérben_átirányító_lapok_nélkül FROM page where page_namespace=0 and page_is_redirect=0;
{"resultsets": [{"headers": ["concat(\"\u0631\u062f\u0647:\", cat_title)", "cat_pages"], "rowcount": 0}], "runningtime": "0.42"}
null
NPP Backlog # of articles by date Nov 5
null
SELECT LEFT(created,8) AS created_yyyymmdd, COUNT(*) AS unreviewed_count FROM ( SELECT ptrp_created AS created, ptrp_page_id AS pageid FROM pagetriage_page, pagetriage_page_tags, page WHERE pagetriage_page.ptrp_page_id = pagetriage_page_tags.ptrpt_page_id AND page.page_id = pagetriage_page_tags.ptrpt_p...
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}, {"headers": ["COUNT(*)", "newbies"], "rowcount": 1}], "runningtime": "3.49"}
null
Wikinews categories missing items
null
USE enwikinews_p; SELECT REPLACE(page.page_title, '_', ' ') AS 'Category' FROM page WHERE NOT EXISTS ( SELECT 1 FROM page_props WHERE pp_page = page_id AND pp_propname IN ( 'wikibase_item', 'disambiguation' ) ) AND page_namespace = 14 AND EXISTS ( SELECT 1 FROM templatelinks WHERE tl_from = page.page_id ...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 29}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 12}], "runningtime": "11.89"}
null
Proofread-shobia-நெஞ்சக்கனல்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"resultsets": [{"headers": ["ss_total_edits"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}, {"headers": ["userid", "name", "editcount", "admin", "bot"], "rowcount": 803}], "runningtime": "6.75"}
null
Proofread-Shobia -உத்தரகாண்டம்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"resultsets": [{"headers": ["title"], "rowcount": 40}], "runningtime": "1.12"}
null
Proofread-Shobia_kaniyam -உத்தரகாண்டம்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"resultsets": [{"headers": ["page_title"], "rowcount": 25}], "runningtime": "16.90"}
null
Proofread-Shobia_kaniyam -உத்தரகாண்டம்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"resultsets": [{"headers": ["title"], "rowcount": 24}], "runningtime": "1.06"}
null
Mainspace pages with wikidata Q#s in title
Enwiki mainspace pages whose title contains a Wikidata Q number as a disambiguator; what they redirect to if they're currently redirects, and whether they're in [[Category:All redirects for discussion]]. I have deliberately left the false positives in, despite the largest group of them (those starting with 'French_sub...
SELECT page_id, CONCAT('[[', page_title, ']]') AS 'page title', CASE WHEN page_is_redirect = 0 THEN NULL ELSE (SELECT CASE WHEN rd_namespace = 0 THEN CONCAT('[[', rd_title, ']]') ELSE CONCAT('[[{{ns:', rd_namespace, '}}:', rd_title, ']]') ...
{"resultsets": [{"headers": ["title"], "rowcount": 24}], "runningtime": "0.83"}
null
maiores canais do youtube desde 2005 até 2019
null
canais do youtube com mais inscritos
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 34}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 13}], "runningtime": "4.91"}
null
try2
null
use arwiki_p; select COUNT(*) from page where page_namespace = 0 and page_title like "%2019–20%"; select COUNT(*) from page where page_namespace = 0 and page_title like "%2018–19%"; select COUNT(*) from page where page_namespace = 0 and page_title like "%2017–18%"; select COUNT(*) from page where page_namespace = ...
{"resultsets": [{"headers": ["actor_name", "dag", "antal"], "rowcount": 0}], "runningtime": "0.28"}
null
Professional Football League
null
use enwiki_p; select page_title from page where page_namespace = 0 #like "%Professional_Football_League%" and LOWER(page_title) like "%Football_League%" and LOWER(page_title) not like "%–%" and LOWER(page_title) not like "%0%" and LOWER(page_title) not like "%1%" and LOWER(page_title) not like "%2%" and LOWE...
{"resultsets": [{"headers": ["actor_name", "dag"], "rowcount": 1000}], "runningtime": "4.77"}
null
Label/description/alias stats for langs #31-40 (as of 2019/09/24)
(Had to split the query since it kept getting killed lately. The rest of the languages are tracked in query #31655.) Thanks, Pasleim, for the original query!
use wikidatawiki_p; SELECT CURRENT_DATE; SELECT term_entity_type, term_language, count(if(term_type = 'label',1,null)) as labels, count(if(term_type = 'description',1,null)) as descriptions, count(if(term_type = 'alias',1,null)) as aliases FROM wb_terms WHERE term_language IN ( # 'vi', 'da', 'fi', 'a...
{"resultsets": [{"headers": ["rc_timestamp", "rc_title", "actor_name"], "rowcount": 10121}], "runningtime": "43.21"}
null
NPP Backlog # of articles by date Nov 6
null
SELECT LEFT(created,8) AS created_yyyymmdd, COUNT(*) AS unreviewed_count FROM ( SELECT ptrp_created AS created, ptrp_page_id AS pageid FROM pagetriage_page, pagetriage_page_tags, page WHERE pagetriage_page.ptrp_page_id = pagetriage_page_tags.ptrpt_page_id AND page.page_id = pagetriage_page_tags.ptrpt_p...
{"resultsets": [{"headers": ["ipb_id", "ipb_address", "ipb_user", "ipb_reason_id", "ipb_timestamp", "ipb_auto", "ipb_anon_only", "ipb_create_account", "ipb_expiry", "ipb_range_start", "ipb_range_end", "ipb_enable_autoblock", "ipb_deleted", "ipb_block_email", "ipb_by_actor", "ipb_allow_usertalk", "ipb_parent_block_id", ...
null
Weiterleitungen mit Klammerlemma, Personendaten und Normdaten
null
USE dewiki_p; SELECT page_title FROM page, templatelinks AS t1, templatelinks AS t2 WHERE page_namespace = 0 AND page_is_redirect = 1 AND page_title LIKE "%\_(%)" AND t1.tl_from = page_id AND t1.tl_title = "Personendaten" AND t1.tl_namespace = 10 AND t2.tl_from = page_id AND t2.tl_title = "Normd...
{"resultsets": [{"headers": ["sortie"], "rowcount": 11}], "runningtime": "0.28"}
null
Weiterleitungen mit Klammerlemma, Personendaten
null
USE dewiki_p; SELECT page_title FROM templatelinks AS t1, page WHERE page_namespace = 0 AND page_is_redirect = 1 AND page_title LIKE "%\_(%)" AND t1.tl_from = page_id AND t1.tl_title = "Personendaten" AND t1.tl_namespace = 10 AND NOT EXISTS (SELECT 1 FROM templatelinks AS t2 ...
{"resultsets": [{"headers": ["sortie"], "rowcount": 11}], "runningtime": "0.13"}
null
Pages and bytes for edits with a hashtag (by a single user in a timespan)
Number of unique pages edited and absolute bytes added by a bot in a certain time period where edit summaries contained a certain hashtag.
SELECT COUNT(DISTINCT(r.rev_page)) as num_pages, SUM(ABS(CAST(r.rev_len as SIGNED)-CAST(r_prev.rev_len as SIGNED))) as abs_diff FROM wikidatawiki_p.revision r JOIN wikidatawiki_p.revision r_prev ON r.rev_parent_id = r_prev.rev_id WHERE r.rev_timestamp > '20170311000001' AND r.rev_timestamp < '20180101000000' AND r.rev...
{"resultsets": [{"headers": ["page_namespace", "page_title", "page_len"], "rowcount": 1158}], "runningtime": "5.39"}
null
Deleted
null
SELECT user_id, user_name, user_editcount, user_registration FROM `user` WHERE user_editcount >= 75000 AND user_editcount <= 80000 AND user_registration < 20181105000000 AND EXISTS (SELECT 1 FROM user_groups WHERE user_id=ug_user AND ug_group = 'extendedconfirmed') AND NOT EXISTS (SELECT 1 FROM user_groups WHER...
{"resultsets": [{"headers": ["Persian"], "rowcount": 506}], "runningtime": "20.67"}
null
Editors by experience level 75000-80000 2019
For https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=842949728#Help_compiling_a_list_of_editors_by_experience_level Users registered at least a year ago, that are in neither the administrator nor new-page-patroller usergroups, with no blocks in at least a year, at least 5 total pa...
SELECT user_id, user_name, user_editcount, user_registration FROM `user` JOIN actor_user on actor_user=user_id WHERE user_editcount >= 75000 AND user_editcount <= 80000 AND user_registration < 20181105000000 AND EXISTS (SELECT 1 FROM user_groups WHERE user_id=ug_user AND ug_group = 'extendedconfirmed') AND NOT ...
{"resultsets": [{"headers": ["Title", "Content"], "rowcount": 506}], "runningtime": "26.51"}
null
Bengali SX Recruitment, 6 Nov 2019
To recruit for the Section Translation prototype validations, we want to generate a list of Bengali editors (actor names) to contact, such that any actor names must correspond to users who: 1.
use bnwiki_p; select rev_actor, actor_name, count(rev_actor) as edit_count from revision, actor where rev_timestamp like '201910%' and actor_id = rev_actor group by rev_actor order by edit_count DESC limit 20;
{"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "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_acti...
null
Redirects from Template talk to Module talk namespace
null
select * from page join redirect on rd_from=page_id where page_is_redirect=1 and page_namespace = 11 and rd_namespace = 829
{"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_e...
null
SHOW tables and DESC a table
null
SHOW tables; DESC actor; DESC comment; DESC revision;
{"resultsets": [{"headers": ["afl_id", "afl_filter", "afl_user", "afl_user_text", "afl_ip", "afl_action", "afl_actions", "afl_var_dump", "afl_timestamp", "afl_namespace", "afl_title", "afl_wiki", "afl_deleted", "afl_patrolled_by", "afl_rev_id"], "rowcount": 1}], "runningtime": "0.16"}
null
~Bad links from Commons to other wikis
work in progress
USE commonswiki_p; SELECT now(); #empty links, no target given (SELECT CONCAT('# [[', IF (page_namespace = 14, ':Category:', ''), REPLACE (page_title, '_', ' '), ']] ', '→ [[:', iwl_prefix, ':', REPLACE (iwl_title, '_', ' '), ']]') AS result FROM iwlinks INNER JOIN page ON page_id = iwl_from AND page_nam...
{"resultsets": [{"headers": ["filter_url", "filter_title", "filter_page_id"], "rowcount": 42097}], "runningtime": "246.81"}
null
page_title LIKE "%animat%"
null
USE commonswiki_p; SELECT CONCAT("Category:",cat_title,"") FROM category AS cat WHERE cat_title LIKE "%requiring%" OR cat_title LIKE "%Requiring%" ORDER BY cat_title ASC LIMIT 3999;
{"resultsets": [{"headers": ["File name", "Date", "Size", "Uploader's name"], "rowcount": 31}], "runningtime": "1635.94"}
null
Missing articles with Saudi_Arabia categories
null
SELECT CONCAT("[[:en:",page_title,"]]"), count(*), page_len FROM langlinks JOIN categorylinks ON ll_from = cl_from AND cl_to REGEXP '(Saudi|Saudi_Arabia|Saudi_Arabian)' JOIN page on ll_from = page_id WHERE page_namespace = 0 AND page_is_redirect = 0 AND NOT EXISTS (SELECT * FROM langlinks as t ...
{"resultsets": [{"headers": ["pap_project_title", "pa_class", "pa_importance", "counts"], "rowcount": 2123}], "runningtime": "29.60"}
null
She Did It Challenge
List of articles created for the She Did It Challenge on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT(actor_name) as actor_name, COUNT(1) AS created, SUM(article.page_len) as total_len, GROUP_CONCAT( DI...
{"resultsets": [{"headers": ["page", "pr_expiry", "reverted"], "rowcount": 50}], "runningtime": "52.67"}
null
~Bad links from wikis to Commons: disambigs
pages linking to disambigs
#USE dewiki_p; #USE dewikiquote_p; #USE dewikisource_p; #USE dewikivoyage_p; USE enwiki_p; #USE frwiki_p; #USE itwiki_p; #USE nlwiki_p; #USE svwiki_p; #USE commonswiki_p; #USE metawiki_p; #USE mediawikiwiki_p; #USE specieswiki_p; SET @w = LEFT (DATABASE(), LENGTH(DATABASE()) - 2); SET @l = (SELECT lang FROM meta_p.wiki...
{"resultsets": [{"headers": ["REGEXP_SUBSTR(el_to, 'Q[0-9]*')", "P18", "CONCAT(\"\\\"\", REPLACE(page_title, \"_\", \" \"), \"\\\"\")"], "rowcount": 0}], "runningtime": "0.17"}
null
PEP
null
use enwikinews_p; SELECT a.actor_name, #ru.rev_id, ru.rev_timestamp AS 'last edit', #lu.log_id, lu.log_timestamp AS 'last log action', GROUP_CONCAT( ug.ug_group ORDER BY ug.ug_group SEPARATOR ', ' ) AS 'groups' FROM actor a JOIN revision_userindex ru ON ru.rev_id = ( SELECT...
{"resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wikipage", "commonspage"], "rowcount": 411}], "runningtime": "53.64"}
null
ContentTranslation superfluous space edits monthly count
Counts edits made by Framabot against CX errors on French Wikipedia. Shows results for each month
use frwiki_p; select year(rev_timestamp) as Year,MONTHNAME(rev_timestamp) as Month,count(rev_id) as Issues from revision_userindex INNER JOIN comment ON rev_comment_id = comment_id INNER JOIN page ON rev_page = page_id INNER JOIN actor ON rev_actor = actor_id where actor_user = 2523928 and page_namespace = 0 ...
{"connection_id": 1027718}
null
Non-translations
null
SET @ns = 1198; #Translation namespace USE mediawikiwiki_p; SELECT page_title FROM page JOIN revision ON rev_id = page_latest WHERE page_namespace = @ns AND page_title LIKE '%/%/%' AND page_title NOT LIKE '%/%/en%' AND rev_sha1 IN ( SELECT rev_sha1 FROM page JOIN revision ON rev_id = page_latest WHERE page_nam...
{"resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wpage"], "rowcount": 0}], "runningtime": "446.91"}
null
Translation units
null
SET @t = 'Help:Project_sources'; SET @u = '5'; USE specieswiki_p; SELECT CONCAT('* [[Translations:', page_title, ']]') AS 'Links' FROM page WHERE page_namespace = 1198 AND page_title LIKE CONCAT(@t, '/', @u, '/%') AND page_title NOT LIKE '%/en'
{"resultsets": [{"headers": ["avg(page_len)"], "rowcount": 1}], "runningtime": "0.85"}
null
stats
null
use arwiki_p; select actor_name , rev_actor , page_namespace , page_content_model , count(*) AS count from revision_userindex,page , actor WHERE page_id = rev_page AND page_is_redirect = 0 and rev_parent_id = 0 #and page_namespace = 828 #and page_namespace in ( 10 , 14) #and page_content_model = "Scribunto" and actor...
{"resultsets": [{"rowcount": 30, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 7, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 12, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}], "runningtime": "7.29"}
null
Edit summaries beginning with "I have made some change"
null
select * from comment where comment_text like 'I have made some change%';
{"resultsets": [{"headers": ["actor_name", "COUNT(rc_id)"], "rowcount": 6701}], "runningtime": "24.22"}
null
Proofread-Monika-ஐந்துசெல்வங்கள்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 3}], "runningtime": "0.16"}
null
uploaded videos on specific period
null
#SELECT DISTINCT I.img_name, I.img_timestamp SELECT CONCAT ("File:",I.img_name,"") FROM commonswiki_p.image AS I LEFT JOIN commonswiki_p.page AS P ON I.img_name=P.page_title #WHERE I.img_timestamp > 20191014000000 WHERE I.img_timestamp BETWEEN 20100101000000 AND 20100115000000 AND P.page_namespace = 6 AND (P.page...
{"resultsets": [{"rowcount": 9, "headers": ["page_title"]}], "runningtime": "0.37"}
null
try2 Navseasoncats
null
#use enwiki_p; SELECT DISTINCT * #CONCAT('Category:',en.page_title,'') AS en , replace(en_ll.ll_title, " ", "_") as ar FROM enwiki_p.page en, enwiki_p.templatelinks en_tl , enwiki_p.langlinks en_ll , arwiki_p.page ar #JOIN arwiki_p.page #ON enwiki_p.page.page_title = arwiki_p.page.page_title WHERE en.page_namespace = ...
{"resultsets": [{"headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"], "rowcount": 81}], "runningtime": "123.13"}
null
The Polish actor fix
null
USE plwiki_p; /*SELECT CONCAT("#") as number, actor_user AS user_id, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS user_name, SUM(CAST(rev.rev_len as signed)-CAST(parent.rev_len as signed)) AS byte_count FROM actor JOIN revision rev ON actor_id = rev.rev_actor JOIN revision parent ON rev.rev_parent_id = parent.r...
{"resultsets": [{"headers": ["Page", "Comment", "UDate", "Wait"], "rowcount": 1512}], "runningtime": "1482.62"}
null
Who edits zh:WP:VPP most?
null
USE zhwiki_p; SELECT actor_name, COUNT(*) FROM revision JOIN revision_actor_temp ON revactor_rev = rev_id JOIN actor ON actor_id = revactor_actor LEFT JOIN ipblocks ON ipb_user = actor_user WHERE rev_page = 284591 AND TIMESTAMPDIFF(DAY, rev_timestamp, CURRENT_TIMESTAMP) <= 31 AND NOT ISNULL(actor_user) AND LOW...
{"resultsets": [{"rowcount": 934, "headers": ["ug_user", "ug_group", "ug_expiry"]}], "runningtime": "2.90"}
null
Renamed users @ zhwiki
null
USE zhwiki_p; SELECT log_title, log_params FROM logging WHERE log_type = "renameuser" AND TIMESTAMPDIFF(DAY, log_timestamp, CURRENT_TIMESTAMP) <= 31 AND NOT ISNULL(log_title)
{"resultsets": [{"headers": ["total", "total_ve", "total_mob"], "rowcount": 1}], "runningtime": "0.78"}
null
English Wikipedia portals by age and number of edits, editors
This query takes all pages in the Portal namespace and aggregates them by base page name (the name before the first slash), then it aggregates the timestamps and username for all the corresponding revisions. It helps find portals which, in aggregate, have very few edits and/or editors (either in total or relative to th...
USE enwiki_p; SELECT SUBSTRING_INDEX(page_title, "/", 1) AS portal, SUBSTR(MIN(rev_timestamp), 1, 4) AS creation, SUBSTR(AVG(rev_timestamp), 1, 4) AS avgEditsYear, COUNT(DISTINCT(rev_actor)) AS editors, COUNT(DISTINCT(rev_sha1)) AS revisions FROM page JOIN revision_userindex ON rev_page = page_id AND page_namespace = 1...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "6.17"}
null