title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Weeklypedia SVWP -- 2021-04-02
null
SELECT rc_cur_id AS page_id, rc_title AS title, COUNT(*) AS edits, COUNT(DISTINCT rc_actor) AS users FROM recentchanges WHERE rc_namespace = 0 AND rc_type = 0 AND rc_timestamp > 20210625000000 AND rc_timestamp < 20210702000000 GROUP BY page_id ORDER BY edits DESC LIMIT 10
{"runningtime": "0.27", "resultsets": [{"headers": ["\u0627\u0644\u0645\u0642\u0627\u0644\u0629", "\u062d\u062c\u0645 \u0627\u0644\u0645\u0642\u0627\u0644\u0629", "\u062a\u0642\u064a\u064a\u0645 \u0627\u0644\u062c\u0648\u062f\u0629"], "rowcount": 144}]}
dagwiki_p
Top/High-importance articles w/o images
Non-redirect pages in the main namespace rated "Top" or "High" by any Wikiproject that have no images of any sort (not even those from templates like {{unreferenced}}). For [[WP:VPM#How do we find articles that have no files?]] circa 2 July 2021.
SELECT page_title, pa_importance, pa_class, pap_project_title FROM page JOIN page_assessments ON pa_page_id = page_id JOIN page_assessments_projects ON pap_project_id = pa_project_id LEFT JOIN imagelinks on il_from = page_id WHERE il_from IS NULL AND page_namespace = 0 AND page_is_redirect = 0 AND pa_importance I...
{"runningtime": "0.06", "resultsets": [{"rowcount": 7, "headers": ["\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a"]}]}
enwiki
growth edit summaries
null
SELECT rev_id, rev_timestamp, comment_text FROM change_tag JOIN revision ON rev_id=ct_rev_id JOIN comment ON comment_id=rev_comment_id WHERE ct_tag_id=(SELECT ctd_id FROM change_tag_def WHERE ctd_name="newcomer task add link") AND comment_text LIKE "Návrhy odkazů%" ORDER BY rev_id DESC LIMIT 20
{"runningtime": "0.07", "resultsets": [{"rowcount": 7, "headers": ["\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a"]}]}
cswiki
Landesarchiv Saarbrücken: edits
null
SELECT CONCAT('File:', page_title, '|[[:File:', page_title, ']] (', COUNT(rev_id), ')') FROM page INNER JOIN image ON page_title = img_name INNER JOIN actor ON img_actor = actor_id INNER JOIN revision ON rev_page = page_id WHERE page_namespace = 6 AND actor_name = 'LandesarchivSaarbrücken' GROUP BY page_title ORDER BY ...
{"runningtime": "326.83", "resultsets": [{"rowcount": 52, "headers": ["page_namespace", "\u0627\u0644\u0645\u0642\u0627\u0644\u0629", "\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0625\u0646\u0634\u0627\u0621", "\u062d\u062c\u0645 \u0627\u0644\u0645\u0642\u0627\u0644\...
commonswiki_p
Landesarchiv Saarbrücken: usage
null
SELECT CONCAT('File:', gil_to, '|[[:File:', gil_to, ']] (', COUNT(gil_page), ')') FROM globalimagelinks INNER JOIN image ON gil_to = img_name LEFT JOIN oldimage ON gil_to = oi_name INNER JOIN actor ON img_actor = actor_id WHERE actor_name = 'LandesarchivSaarbrücken' GROUP BY gil_to ORDER BY COUNT(gil_page) DESC LIMIT 2...
{"runningtime": "288.30", "resultsets": [{"rowcount": 58, "headers": ["ROUND(revision.rev_len * 100.0 / article.page_len, 1)", "page_namespace", "\u0627\u0644\u0645\u0642\u0627\u0644\u0629", "\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0625\u0646\u0634\u0627\u0621", ...
commonswiki_p
Landesarchiv Saarbrücken: categories
null
SELECT cl_to, COUNT(cl_from) FROM categorylinks INNER JOIN page ON cl_from = page_id INNER JOIN image ON page_title = img_name INNER JOIN actor ON img_actor = actor_id WHERE actor_name = 'LandesarchivSaarbrücken' GROUP BY cl_to ORDER BY COUNT(cl_from) DESC LIMIT 20
{"runningtime": "25.58", "resultsets": [{"rowcount": 3208, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}]}
commonswiki_p
Landesarchiv Saarbrücken: volunteers
null
SELECT CONCAT('# [[User:', a2.actor_name, ']]: ', COUNT(rev_id)) FROM image INNER JOIN actor a1 ON img_actor = a1.actor_id INNER JOIN page ON img_name = page_title INNER JOIN revision ON rev_page = page_id INNER JOIN actor a2 ON rev_actor = a2.actor_id WHERE page_namespace = 6 AND a1.actor_name = 'LandesarchivSaarbrück...
{"connection_id": 14146056}
commonswiki_p
Pound signs within sections (enwiki)
null
SELECT page_title, rd_title, rd_fragment FROM page RIGHT JOIN redirect on page_id = rd_from WHERE page_namespace = 0 AND rd_fragment RLIKE "#\\D"
{"runningtime": "13.48", "resultsets": [{"rowcount": 1000, "headers": ["\u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0\u0995\u09be\u09b0\u09c0_\u09a8\u09be\u09ae", "\u09ae\u09cb\u099f_\u09a8\u09bf\u09ac\u09a8\u09cd\u09a7"]}]}
enwiki_p
Pages in NS0 on bnwikisource greater than 5000 bytes
null
use bnwikisource_p; select concat(page_title), page_len from page where page_namespace = 0 and page_len > 5000 group by page_title, page_len order by page_len;
{"runningtime": "0.10", "resultsets": [{"headers": ["rev_id", "rev_timestamp"], "rowcount": 10}]}
bnwikisource_p
একটি বিষয়শ্রেণীর পাতাগুলি থেকে লাল লিঙ্ক
null
SELECT page_namespace AS ans, page_title AS article, pl_namespace AS rns, pl_title AS redlink FROM categorylinks JOIN pagelinks ON pl_from = cl_from AND NOT EXISTS (SELECT 1 FROM page WHERE page_title = pl_title AND page_namespace = pl_namespace) JOIN page ON page_id = cl_from WHERE cl_to = "বাংলাদেশ" ORDER BY article,...
{"runningtime": "0.09", "resultsets": [{"rowcount": 1, "headers": ["rev_id", "rev_page", "min(rev_timestamp)"]}]}
bnwiki_p
First revision with the "visualeditor" tag after a given revision for a given page
null
SELECT * FROM change_tag, change_tag_def, revision, page WHERE ct_tag_id = ctd_id AND ct_rev_id = rev_id AND rev_page = page_id AND rev_deleted = 0 AND page_namespace = 104 AND page_title = "Carroll_-_Sylvie_and_Bruno_Concluded.djvu/212" AND ctd_name = "visualeditor" AND rev_timestamp <= 20180818162141 ORDER BY rev_t...
{"runningtime": "39.26", "resultsets": [{"rowcount": 1, "headers": ["COUNT(DISTINCT(rev_page))", "SUBSTR(rev_timestamp,1,6)"]}]}
enwikisource_p
...
null
SELECT DISTINCT CONCAT('# [[',fp.page_title,']]') AS 'sayfa adı' FROM page fp, page_props ff, pagelinks, page dp, page_props dd WHERE fp.page_id = pl_from AND fp.page_namespace = 0 AND pl_title=dp.page_title AND dp.page_id=dd.pp_page AND dd.pp_propname='disambiguation' AND fp.page_id=ff.pp_page AND NOT ff.pp_propnam...
{"runningtime": "0.84", "resultsets": [{"rowcount": 490, "headers": ["user_name", "user_editcount"]}, {"rowcount": 4, "headers": ["page_id"]}]}
trwiki_p
Current indef blocks by Kubura with TPA disabled
For blocked email access: AND ipb_block_email = 1
SET STATEMENT max_statement_time = 60 FOR SELECT actor_name, ipb_address, comment_text FROM ipblocks INNER JOIN actor ON (ipblocks.ipb_by_actor = actor.actor_id) INNER JOIN comment ON (ipblocks.ipb_reason_id = comment.comment_id) WHERE TRUE AND actor_name = 'Kubura' AND ipb_allow_usertalk = 0
{"connection_id": 14986147}
hrwiki_p
TPA and email indefs by Maestro
null
SET STATEMENT max_statement_time = 60 FOR SELECT actor_name, ipb_address, comment_text FROM ipblocks INNER JOIN actor ON (ipblocks.ipb_by_actor = actor.actor_id) INNER JOIN comment ON (ipblocks.ipb_reason_id = comment.comment_id) WHERE TRUE AND actor_name = 'Maestro Ivanković' AND ipb_allow_usertalk = 0 AND...
{"runningtime": "0.10", "resultsets": [{"headers": ["count(distinct(rev_page))", "MIN(SUBSTR(rev_timestamp,1,6))", "rev_timestamp"], "rowcount": 28}]}
hrwiki_p
TPA and email indefs by Ivi104
null
SET STATEMENT max_statement_time = 60 FOR SELECT actor_name, ipb_address, comment_text FROM ipblocks INNER JOIN actor ON (ipblocks.ipb_by_actor = actor.actor_id) INNER JOIN comment ON (ipblocks.ipb_reason_id = comment.comment_id) WHERE TRUE AND actor_name = 'Ivi104' AND ipb_allow_usertalk = 0 AND ipb_block_...
{"runningtime": "0.06", "resultsets": [{"rowcount": 1, "headers": ["count(distinct(rev_page))", "MIN(SUBSTR(rev_timestamp,1,6))", "rev_timestamp"]}]}
hrwiki_p
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"runningtime": "26.97", "resultsets": [{"rowcount": 3, "headers": ["user_name", "rc_this_oldid", "comment_text"]}]}
enwiki
Size of uploads by Drow_male
null
USE commonswiki_p; SELECT COUNT(img_name) AS Count, ROUND(SUM(img_size/(1<<30))) AS Size_GB FROM image JOIN actor_image ON actor_id = img_actor WHERE actor_name = "Drow_male";
{"runningtime": "0.35", "resultsets": [{"rowcount": 117, "headers": ["user", "review_cnt"]}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "30.66", "resultsets": [{"headers": ["user", "review_cnt"], "rowcount": 310}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"connection_id": 15144475}
commonswiki_p
Spam blocks
null
SET STATEMENT max_statement_time = 60 FOR SELECT DISTINCT actor_name, ipb_address, comment_text, ipb_timestamp FROM ipblocks INNER JOIN actor ON (ipblocks.ipb_by_actor = actor.actor_id) INNER JOIN comment ON (ipblocks.ipb_reason_id = comment.comment_id) WHERE TRUE AND ipb_user > 0 -- exclude IPs A...
{"runningtime": "9020.58", "resultsets": [{"headers": ["count(user_id)", "SUBSTR(user_registration,1,6)"], "rowcount": 6208353}]}
enwiki_p
AfC review counts, last month
null
select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / ...
{"runningtime": "0.08", "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": 7}]}
enwiki_p
AfC accepts of all time (WP:AfC/recent)
This is changes to 'Wikipedia:Articles for creation/recent', and recent_edits shows if active
select actor_name as editor, COUNT(rev_actor) as accepts, (select COUNT(rc_id) from recentchanges_userindex where rc_actor = actor_id ) as recent_edits from revision_userindex left join actor on rev_actor = actor_id where (rev_page = 21063913) group by rev_actor order by accepts desc, recent_edits;
{"runningtime": "0.08", "resultsets": [{"rowcount": 7, "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"]}]}
enwiki_p
AfC review counts, last 24 hours
AfC review counts, last 24 hours
select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / c...
{"runningtime": "0.12", "resultsets": [{"rowcount": 31, "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"]}]}
enwiki_p
English Wikipedia namespaces (hardcoded)
Reusable snippet with a virtual namespace table for English Wikipedia.
-- See https://en.wikipedia.org/wiki/Template:Namespaces WITH namespace AS ( SELECT 0 AS namespace_id, "" AS namespace_name, FALSE AS namespace_talk, FALSE AS namespace_deprecated, FALSE AS namespace_virtual UNION SELECT 1, "Talk", TRUE, FALSE, FALSE UNION SELECT 2, "User", FALSE, FALSE, FALSE UNION SELEC...
{"runningtime": "308.89", "resultsets": [{"rowcount": 573, "headers": ["CONCAT(\"Q\",ips_item_id)", "Lhr", "CONCAT('\"',ips_site_page,'\"')"]}]}
enwiki_p
pdf upload count by year
Number of files with the .pdf extension uploaded every year. For [[WT:CSD#Proposal: Remove F10]] circa 7 July 2021.
SELECT LEFT(log_timestamp, 4) AS year, COUNT(*) FROM logging WHERE log_type = 'upload' AND log_action = 'upload' AND log_title RLIKE '\.[pP][dD][fF]$' GROUP BY LEFT(log_timestamp, 4);
{"runningtime": "0.14", "resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 50}]}
enwiki
English Wikipedia namespaces (hardcoded)
Reusable snippet with a virtual namespace table for English Wikipedia.
-- derived from siteinfo-namespaces.json in the dump WITH namespace(id, local_name, canonical_name, is_talk) AS ( VALUES (-2, 'Media', 'Media', false), (-1, 'Special', 'Special', false), (0, '', '', false), (1, 'Talk', 'Talk', true), (2, 'User', 'User', false), (3, 'User talk', 'User talk', tr...
{"runningtime": "0.07", "resultsets": [{"rowcount": 6, "headers": ["CONCAT('# [[:\u062a\u0635\u0646\u064a\u0641:',p.page_title,']]')"]}]}
enwiki_p
File pages with extension that can't be uploaded anymore
null
SELECT concat("File:", page_title) FROM page WHERE page_namespace = 6 AND page_title NOT RLIKE "\.([pP][nN][gG]|[jJ][pP][eE]?[gG]|[sS][vV][gG]|[tT][iI][fF]?[fF]|[gG][iI][fF]|[wW][eE][bB][pPmM]|[mM][pP][eE]?[gG]|[mM][iI][dD][iI]?|[oO][gG][gGvVaA]|[mM][pP][3]|[wW][aA][vV]|[xX][cC][fF]|[dD][jJ][vV][uU]|[fF][lL][aA][cC]|[o...
{"runningtime": "0.15", "resultsets": [{"headers": ["\u0645", "\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a", "count(rev_len)"], "rowcount": 50}]}
enwiki
Last 30d IP vandalism ratio per subnets (enwiki)
null
use enwiki_p; SELECT reverts_c, edits_c, revert_address_count, edit_address_count, reverts_c/edits_c AS revert_edit_ratio, reverts_ip_range AS ip_range FROM ( SELECT SUM(1) AS reverts_c, COUNT(DISTINCT REGEXP_SUBSTR(lower(rc_comment),'/([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9...
{"runningtime": "0.91", "resultsets": [{"headers": ["\u0645", "\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a"], "rowcount": 12}]}
enwiki
Number of Registered user (last two month)
null
use bnwiki_p; SELECT COUNT(user_name) FROM user WHERE user_registration BETWEEN 20210501000000 AND 20210628000000;
{"runningtime": "0.72", "resultsets": [{"rowcount": 8, "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"]}]}
bnwiki
List of registered user (last two month)
null
use bnwiki_p; SELECT user_name FROM user WHERE user_registration BETWEEN 20210501000000 AND 20210628000000;
{"runningtime": "0.71", "resultsets": [{"rowcount": 2, "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"]}]}
bnwiki
bnwiki users with 1 edit in last two month
null
use bnwiki_p; SELECT user_name FROM user WHERE user_editcount = 1 AND user_registration BETWEEN 20210501000000 AND 20210628000000;
{"runningtime": "8.30", "resultsets": [{"headers": ["actor_name", "total diff"], "rowcount": 5461}]}
bnwiki
bnwiki users more than 1 edits (last two month)
null
use bnwiki_p; SELECT user_name FROM user WHERE user_editcount > 1 AND user_registration BETWEEN 20210501000000 AND 20210628000000;
{"runningtime": "0.48", "resultsets": [{"rowcount": 50, "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", ...
bnwiki
WLE 2021 in Ukraine Participants
null
SELECT DISTINCT A.actor_name, COUNT(1) as articles FROM commonswiki_p.revision R JOIN commonswiki_p.page P1 ON R.rev_page = P1.page_id JOIN commonswiki_p.page P2 ON P1.page_title = P2.page_title JOIN commonswiki_p.categorylinks CL ON P2.page_id = CL.cl_from JOIN commonswiki_p.actor A ON R.rev_actor = A.actor_id WHE...
{"runningtime": "8.10", "resultsets": [{"rowcount": 5460, "headers": ["actor_name", "tdif"]}]}
commonswiki_p
English Wiktionary namespaces
A selection of random pages to demonstrate a way of printing readable full titles.
-- Generated from siteinfo-namespaces in the dump; namespaces.name is the local name, not the canonical name. with namespaces(id, name) as ( values (-2, 'Media'), (-1, 'Special'), (0, ''), (1, 'Talk'), (2, 'User'), (3, 'User talk'), (4, 'Wiktionary'), (5, 'Wiktionary talk'), (6, 'Fi...
{"runningtime": "0.22", "resultsets": [{"rowcount": 104, "headers": ["Tables_in_wikidatawiki_p"]}]}
enwiktionary_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "0.70", "resultsets": [{"rowcount": 100, "headers": ["actor_name", "tdif"]}]}
commonswiki_p
#/mainspace pages in Category:Living people 210709
Number of pages in the enwiki main namespace that are in [[Category:Living people]] and transclude {{Infobox football biography}}. For [[w:en:User:Levivich/Footy AfDs]].
SELECT COUNT(*) FROM categorylinks JOIN page ON page_id = cl_from WHERE page_namespace = 0 AND cl_to = 'Living_people';
{"runningtime": "0.07", "resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 3}]}
enwiki
#/living footballers in main namespace 210709
Number of pages in the enwiki main namespace that are in [[Category:Living people]] and transclude {{Infobox football biography}}. For [[w:en:User:Levivich/Footy AfDs]].
SELECT COUNT(*) FROM page JOIN templatelinks ON page_id = tl_from JOIN categorylinks ON page_id = cl_from WHERE page_namespace = 0 AND cl_to = 'Living_people' AND tl_namespace = 10 AND tl_title = 'Infobox_football_biography';
{"runningtime": "0.19", "resultsets": [{"rowcount": 100, "headers": ["wbit_id", "wbit_item_id", "wbit_term_in_lang_id"]}]}
enwiki
Largest pages (excl. lists)
CARE: this tool looks at the total page size in bytes. The returned results are not an accurate indicator of readable prose size.
SELECT page_namespace, page_title, page_len FROM enwiki_p.page WHERE page_namespace = 0 AND page_title NOT LIKE "%List%" ORDER BY page_len DESC LIMIT 100
{"runningtime": "0.38", "resultsets": [{"rowcount": 1, "headers": ["actor_name", "total diff"]}, {"rowcount": 177, "headers": ["actor_name", "rc_title", "total diff"]}]}
enwiki_p
AfC review counts, last 24 hours
AfC review counts, last 9 days
use enwiki_p; select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accept...
{"runningtime": "0.18", "resultsets": [{"headers": ["page_title"], "rowcount": 29}]}
enwiki
Most-thanked users of an arbitrary timespan (enwiki)
Will re-run this from time to time as the year goes on
SET @start = 20210505162855; SELECT RANK() OVER (ORDER BY ratio DESC) AS rank, user_name, thanks, edits, (SELECT thanks/edits) AS ratio FROM (SELECT *, (SELECT (SELECT COUNT(1) FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY rev_timestamp DESC) AS rn...
{"runningtime": "0.11", "resultsets": [{"headers": ["page_id"], "rowcount": 30}]}
enwiki_p
Volunteer translators of UCoC
null
use metawiki_p; SET @pageTitle = ("Universal Code of Conduct/Policy text"); SELECT actor_name as user, page_title as pageTitle, substring_index(page_title, '/', -1) AS language, count(*) AS no_translations, CONCAT("https://meta.wikimedia.org/wiki/Special:Contributions/", actor_name) AS Centralauth FROM page...
{"runningtime": "0.07", "resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 5}]}
metawiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "0.42", "resultsets": [{"rowcount": 250, "headers": ["Time", "Article name", "Edit summary", "User name", "Tag id"]}]}
commonswiki_p
Templates ending in `/meta/color`
null
select concat("Template:", page_title) as `title` from page where page_namespace=10 and page_title like "%/meta/color" order by title desc;
{"runningtime": "0.13", "resultsets": [{"rowcount": 50, "headers": ["Time", "Article name", "User name", "Tag name"]}]}
enwiki
Templates ending in `/meta/shortname`
null
select concat("Template:", page_title) as `title` from page where page_namespace=10 and page_title like "%/meta/shortname" order by title desc;
{"runningtime": "0.13", "resultsets": [{"rowcount": 50, "headers": ["Time", "Tag name"]}]}
enwiki
Templates ending in `/meta/shading`
null
select concat("Template:", page_title) as `title` from page where page_namespace=10 and page_title like "%/meta/shading" order by title desc;
{"runningtime": "0.12", "resultsets": [{"headers": ["Time", "Title", "Tag name"], "rowcount": 50}]}
enwiki
My AfC stats
null
select count(rev_id) as reviews, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / count(rev_id...
{"runningtime": "0.78", "resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 37}]}
enwiki
Categories ending in `political party colour templates`
null
select concat("Category:", page_title) as `title` from page where page_namespace=14 and page_title like "%test%" order by title desc;
{"runningtime": "0.88", "resultsets": [{"rowcount": 109, "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"]}]}
enwiki
Categories ending in `political party colour templates`
null
select concat("Category:", page_title) as `title` from page where page_namespace=14 and page_title like "%political_party_colour_templates" order by title desc;
{"runningtime": "0.70", "resultsets": [{"rowcount": 0, "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"]}]}
enwiki
Categories ending in `political party colour templates`
null
select concat("Category:", page_title) as `title` from page where page_namespace=14 and page_title like "%political_party_colour_templates" order by title desc;
{"runningtime": "0.68", "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": 0}]}
enwiki
AfC Participant block check
null
select * from ipblocks where ipb_address IN ('-noah-', '-revi', '15', '1997kB', '28bytes', '2pou', '333-blue', '78.26', '94rain', '97198', 'AafiOnMobile', 'Abcmaxx', 'Abryn', 'Acalycine', 'Acebulf', 'Ad Orientem', 'Ahecht', 'Ajpolino', 'Alarichall', 'Alex Noble', 'Alexandermcnabb', 'Alexbrn', 'Alpha3031', 'Amakuru', 'A...
{"runningtime": "25.20", "resultsets": [{"rowcount": 11, "headers": ["user_name", "rc_this_oldid", "comment_text"]}]}
enwiki
Find redirects with ae/oe to ä/ö in a specific category
The free text parts has to be changed before running the script.
SELECT page_title AS "Page" FROM page JOIN pagelinks ON pl_from = page_id AND page_is_redirect = 1 AND pl_namespace = 0 AND page_title like "%oe%" AND pl_title like "%ö%" AND (EXISTS( SELECT * FROM page p2 JOIN categorylinks ON cl_from = page_id WHERE cl_to in ("Åländska_öar_i_Skärgårdshavet") AND p2.page...
{"runningtime": "15.92", "resultsets": [{"rowcount": 9135, "headers": ["Article", "Created by user", "Time", "page_is_redirect"]}]}
svwiki
Ukwiki GFDL migration candidates by upload date
null
#USE ukwiki_p; SELECT CONCAT("# [[:File:", page_title, "]]") as File, img_timestamp, actor_name FROM templatelinks JOIN page ON tl_from = page_id JOIN image ON img_name = page_title AND page_namespace = 6 JOIN actor_image ON img_actor = actor_id JOIN categorylinks ON cl_from = page_id AND cl_type = "file" AND cl_to =...
{"runningtime": "0.25", "resultsets": [{"rowcount": 64, "headers": ["\u0645", "\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a"]}]}
ukwiki_p
Files with EXIF rotation
null
SELECT img_name FROM image WHERE img_metadata LIKE '%Orientation";i:6%'
{"runningtime": "0.08", "resultsets": [{"headers": ["count(*)"], "rowcount": 1}]}
jawiki_p
edo - nlwiki_p Anonymous edits rc_patrolled summary
forked from Bdijkstra - show all unpatrolled edits for the last weeks by day/user/lemma
USE nlwiki_p; # anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION...
{"runningtime": "0.20", "resultsets": [{"rowcount": 100, "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"]}]}
nlwiki
All non-free files on hr.wiki by size (oversized)
null
#USE lbwiki_p; #SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p SELECT CONCAT('# [[:File:', p.page_title, ']]') AS Filename, img_width, img_height, CONCAT(img_width*img_height) as pixels #, img_size FROM page p JOIN image ON img_name = page_title INNER JO...
{"runningtime": "44.18", "resultsets": [{"rowcount": 30000, "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"]}]}
hrwiki_p
Non-free files used outside articles (hr.wiki)
null
#USE viwiki_p; SELECT DISTINCT CONCAT('# [[:File:', p.page_title, ']]') FROM page p INNER JOIN categorylinks c ON p.page_id = c.cl_from INNER JOIN (imagelinks i LEFT JOIN redirect r ON i.il_from = r.rd_from) ON p.page_title = i.il_to WHERE c.cl_to = "Sve_neslobodne_datoteke" AND i.il_from_namespace != 0 #Articles AND i...
{"runningtime": "6.20", "resultsets": [{"rowcount": 1, "headers": ["COUNT(ru.rev_id)"]}]}
hrwiki_p
rowiki GFDL files by upload date in cat
null
#USE jawiki_p; SELECT CONCAT("File:", page_title) as File, img_timestamp, actor_name FROM templatelinks JOIN page ON tl_from = page_id JOIN image ON img_name = page_title AND page_namespace = 6 JOIN actor_image ON img_actor = actor_id JOIN categorylinks ON cl_from = page_id AND cl_type = "file" AND cl_to = "Wikipedia_...
{"runningtime": "3.62", "resultsets": [{"rowcount": 2525, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]}
rowiki_p
قائمة المستخدمين الأكثر مراجعةً للتعديلات في يوم ويكيبيديا العربية السابع عشر
null
USE arwiki_p; select CONCAT('[[مستخدم:',actor_name,'|',actor_name,']]'), COUNT(*) from logging INNER JOIN actor ON logging.log_actor = actor.actor_id where log_timestamp BETWEEN 20210710000000 AND 20210711000000 and log_action = "approve" and log_namespace = 0 group by actor_name having COUNT(*)>1 ORDER BY COUNT(*) DES...
{"runningtime": "87.09", "resultsets": [{"rowcount": 6, "headers": ["page_id", "pp_propname", "pp_value"]}]}
arwiki_p
قائمة المستخدمين الأكثر مراجعةً للمقالات في يوم ويكيبيديا العربية السابع عشر
null
use arwiki_p; select CONCAT('[[مستخدم:',actor_name,'|',actor_name,']]'), COUNT(*) from logging INNER JOIN actor ON logging.log_actor = actor.actor_id LEFT JOIN page ON log_title = page_title where log_timestamp between 20210710000000 and 20210711000000 and log_action = "approve-i" and log_namespace = 0 and page_is_redi...
{"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]}
arwiki_p
قائمة المستخدمين الأكثر إنشاءً للمقالات في يوم ويكيبيديا العربية السابع عشر
قائمة المستخدمين الأكثر إنشاءً للمقالات في يوم ويكيبيديا العربية الثالث عشر.
use arwiki_p; SELECT concat('[[مستخدم:',actor_name,'|',actor_name,']]') AS "المستخدم", COUNT(*) AS "عدد المقالات" 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 20210101000000 an...
{"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]}
arwiki_p
قائمة المستخدمين الأكثر مراجعةً للتعديلات في يوم ويكيبيديا العربية السابع عشر
null
USE arwiki_p; select CONCAT('[[مستخدم:',actor_name,'|',actor_name,']]'), COUNT(*) from logging INNER JOIN actor ON logging.log_actor = actor.actor_id where log_timestamp BETWEEN 20210101000000 AND 20210711000000 and log_action = "approve" and log_namespace = 0 group by actor_name having COUNT(*)>1 ORDER BY COUNT(*) DES...
{"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"]}]}
arwiki_p
Edits by users on specific pages from date
Edits by Non-IP users from date
SELECT CONCAT("[[User:",user_name,"|",user_name,"]]") as Username, COUNT(*) as Edits_since FROM page JOIN revision ON revision.rev_page = page.page_id JOIN revision_actor_temp ON revactor_rev=rev_id JOIN actor ON revactor_actor=actor_id JOIN user ON user_id =actor_user WHERE LEFT(rev_timestamp,8) >...
{"runningtime": "0.79", "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", "pl_from", "pl_namespace", "pl_title", "pl_from_namesp...
tewikisource_p
WStaProofreadersListகம்பன்கவித்திரட்டு1
This Query will provide the list of users who did edit on given book with its all pages.
Use tawikisource_p; SET @w:=0; select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book WHERE rev_page IN (select p...
{"runningtime": "0.08", "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}]}
tawikisource
validated-infoFarmer-கம்பன்கவித்திரட்டு1
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; 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 "%Pr...
{"runningtime": "12.35", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 1, ...
tawikisource
proofread-கம்பன்கவித்திரட்டு1-Yasosri
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; 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 "%Pro...
{"runningtime": "2.65", "resultsets": [{"rowcount": 1729, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]}
tawikisource
Oldest drafts last edited by a bot
null
select CONCAT("Draft:", log_title), actor_name, log_timestamp, rev_timestamp from logging join page on page_id = log_page join revision_userindex on page_latest = rev_id join actor_revision on rev_actor = actor_id join user_groups on actor_user = ug_user where log_type = "create" and log_action = ...
{"connection_id": 18246659}
enwiki
Links to ArbCom case shortcuts (enwiki)
null
SELECT pl_title, COUNT(pl_title) AS backlinks FROM pagelinks INNER JOIN page on pl_title = page_title INNER JOIN redirect on page_id = rd_from WHERE pl_namespace = 4 AND pl_title LIKE "ARB_%" AND rd_namespace = 4 AND rd_title LIKE "Arbitration/Requests/Case/_%" GROUP BY pl_title ORDER BY 2 DESC
{"runningtime": "0.31", "resultsets": [{"rowcount": 67, "headers": ["page_title", "pp_value"]}]}
enwiki_p
Löschanträge 2017 - dewiki
null
use dewiki_p; SELECT count(*) AS Anzahl, actor_name FROM page, revision, actor_revision, comment_revision WHERE page_title LIKE "Löschkandidaten/%" AND page_namespace = 4 AND page_id = rev_page AND rev_actor = actor_id AND comment_id = rev_comment_id AND comment_text like "Neuer Abschnitt%" AND rev...
{"runningtime": "0.86", "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": 59}]}
dewiki_p
Number of PC-protected pages on enwiki
null
SELECT COUNT(*) FROM flaggedpages
{"runningtime": "0.72", "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": 0}]}
enwiki_p
validated-யாஷிகா-கம்பன்கவித்திரட்டு1
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; 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 "%Pro...
{"runningtime": "111.95", "resultsets": [{"rowcount": 240, "headers": ["mes", "#ArtNuevosMes"]}]}
tawikisource
proofread-கம்பன்கவித்திரட்டு1-சத்திரத்தான்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; 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 "%Pro...
{"runningtime": "3.56", "resultsets": [{"rowcount": 4, "headers": ["CONCAT('# [[:File:', page_title, ']]')"]}]}
tawikisource
proofread-கம்பன்கவித்திரட்டு1-P.devibharathi
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; 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 "%Pro...
{"runningtime": "71.50", "resultsets": [{"rowcount": 25198, "headers": ["Artikel", "Kategorie"]}]}
tawikisource
proofread-கம்பன்கவித்திரட்டு1-இ.வாஞ்சூர்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; 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 "%Pro...
{"runningtime": "66.28", "resultsets": [{"rowcount": 22917, "headers": ["Artikel", "Kategorie"]}]}
tawikisource
proofread-கம்பன்கவித்திரட்டு1-தாட்சாயனி
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; 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 "%Pro...
{"runningtime": "0.23", "resultsets": [{"rowcount": 100, "headers": ["count(*)", "MES"]}]}
tawikisource
Hyphens in titles - hrwiki
null
select page_namespace, page_title from page where page_title like "%\\_-\\_%" and page_is_redirect = 0 and page_namespace = 0;
{"runningtime": "0.24", "resultsets": [{"rowcount": 100, "headers": ["count(*)", "MES"]}]}
hrwiki_p
lvwiki items without claims
SELECT * FROM pag_e join page_props on page_id=pp_page AND pp_propname='wb-claims' AND pp_sortkey=0 join wb_items_per_site on ips_site_id='lvwiki' and page_title=CONCAT('Q', ips_item_id) limit 20
select wbit_item_id, count(*) as cnt from wbt_item_terms where wbit_item_id in (3817409, 27055943) group by wbit_item_id
{"runningtime": "303.08", "resultsets": [{"headers": ["CONCAT(\"Q\",ips_item_id)", "Lar", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 137}]}
wikidatawiki_p
Very long talk pages
null
SELECT talkpage.page_title, talkpage.page_len FROM page talkpage WHERE talkpage.page_namespace = 1 AND talkpage.page_title IN (SELECT pg.page_title FROM page pg WHERE pg.page_namespace = 0) AND talkpage.page_len > 100000 ORDER BY talkpage.page_len DESC
{"runningtime": "0.80", "resultsets": [{"rowcount": 0, "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"]}]}
enwiki_p
Redirects from main namespace to non-main ns
null
select page_title as "source_article", rd_title as "target_title", rd_namespace as "target_namespace" from redirect inner join page on page_id = rd_from where page_namespace = 0 and rd_namespace != 0 order by page_title;
{"runningtime": "0.07", "resultsets": [{"headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace"], "rowcount": 10}]}
plwiki_p
validated-fathima-கம்பன்கவித்திரட்டு1
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; 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 "%Pr...
{"runningtime": "24.55", "resultsets": [{"rowcount": 1000, "headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace"]}]}
tawikisource
validated-யாஷிகா-கம்பன்கவித்திரட்டு1
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; 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 "%Pr...
{"runningtime": "962.20", "resultsets": [{"rowcount": 0, "headers": ["tl_title"]}]}
tawikisource
commons images used in lvwiki uploaded by new users
null
select img.img_name, user.user_name, img.img_timestamp-user.user_registration from image img join globalimagelinks gil on gil.gil_to=img.img_name and gil.gil_wiki='lvwiki' join actor on actor.actor_id=img.img_actor join user on actor.actor_user=user.user_id join page pg on pg.page_namespace=6 and pg.page_is_redirect=...
{"runningtime": "9.09", "resultsets": [{"rowcount": 100, "headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"]}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "15.47", "resultsets": [{"rowcount": 317, "headers": ["user_name"]}]}
commonswiki_p
قوالب التعاقب
null
null
{"runningtime": "4.83", "resultsets": [{"headers": ["\u0648\u0636\u0639\u06cc\u062a \u06af\u0634\u062a", "\u062a\u0639\u062f\u0627\u062f"], "rowcount": 4}, {"headers": ["user", "unpatrolled"], "rowcount": 10}, {"headers": ["day", "unpatrolled", "manually patrolled", "autopatrolled", "total"], "rowcount": 31}, {"headers...
arwiki
All female editors on German Wikipedia with Wikimail set, sorted by user_id
null
USE dewiki_p; SELECT up_user, user.user_editcount, user.user_name, edits_after FROM user_properties JOIN user ON user.user_id = user_properties.up_user INNER JOIN (SELECT rev_user_text AS edit_username, COUNT(rev_id) AS edits_after FROM revision_compat WHERE rev_ti...
{"runningtime": "5.64", "resultsets": [{"rowcount": 4, "headers": ["\u0648\u0636\u0639\u06cc\u062a \u06af\u0634\u062a", "\u062a\u0639\u062f\u0627\u062f"]}, {"rowcount": 10, "headers": ["\u06a9\u0627\u0631\u0628\u0631", "\u06af\u0634\u062a\u200c\u0646\u062e\u0648\u0631\u062f\u0647"]}, {"rowcount": 31, "headers": ["day",...
dewiki
WikiDaheim users 2018 (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...
{"runningtime": "0.77", "resultsets": [{"rowcount": 1, "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"]}]}
commonswiki_p
قوالب
null
select p.page_id,concat("[[قالب:",REPLACE(p.page_title,"_"," "),"]]") as name,COUNT( t.tl_title) AS Total,COUNT(distinct l.ll_lang) AS Interlanguage from page p LEFT JOIN templatelinks t ON t.tl_title = p.page_title LEFT JOIN langlinks l ON l.ll_from = p.page_id where p.page_title REGEXP "معلومات|صندوق|شخصية|ص\\.م...
{"runningtime": "37.59", "resultsets": [{"headers": ["concat ('*[[',page_title,']]')"], "rowcount": 240}]}
arwiki
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...
{"runningtime": "2827.79", "resultsets": [{"rowcount": 901, "headers": ["\u0627\u0644\u0646\u0637\u0627\u0642", "\u0627\u0644\u0645\u0642\u0627\u0644\u0629", "\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "DATE_FORMAT(revision.rev_timestamp, '%Y-%m-%d\u060c %H:%i')", "\u062a\u0642\u064a\u064a\u0645 \u0627\u0644\u0...
huwiki
Deletion Ratios for one wiki during 2020
Example data for task https://phabricator.wikimedia.org/T246324. Shows ratio of main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted. This sample works for the Hungarian Wikipedia (huwiki) for 2019.
set @dbname = 'kowiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); set @created_total = ( select count(rev_id) from page, revision where page_id = rev_page and page_namespace = 0 and rev_timestamp like '2021%' and ...
{"connection_id": 16217997}
kowiki_p
Gewässer mit "alb" oder "albe" am Wortende
ERROR: type should be string, got "\nhttps://de.wikipedia.org/w/index.php?title=Diskussion:Felsalb&oldid=213871744#Felsalbe_oder_Felsalb%3F"
WITH RECURSIVE Cat AS (SELECT page_title FROM page WHERE page_title = 'Gewässer' /* Subcats dieser Kategorie */ AND page_namespace = 14 UNION SELECT SubCat.page_title FROM page AS...
{"runningtime": "1.45", "resultsets": [{"headers": ["page_title", "cnt", "actor_name"], "rowcount": 200}]}
dewiki_p
AFC Backlog Drive Review Counts
Forking so I can refresh the data. Credit to Robertsky and KylieTastic.
use enwiki_p; select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank, count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", ...
{"runningtime": "0.08", "resultsets": [{"headers": ["Database"], "rowcount": 4}]}
enwiki
- in title
null
select page_namespace, page_title from page where page_title like "%\\_-\\_%" and page_is_redirect = 0 and page_namespace = 0;
{"runningtime": "469.74", "resultsets": [{"rowcount": 0, "headers": ["File name", "Date", "Size", "Uploader's name"]}]}
bswiki_p
AfC review counts, last month
** NOT including deleted articles **
select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / ...
{"runningtime": "0.41", "resultsets": [{"rowcount": 100, "headers": ["user", "cnt"]}]}
enwiki_p
AfC deleted declined/rejected reviews, last month
As you can no longer see deleted article comments, for those who leave user messages on rejection, find deleted AfC decline/rejects Forked to refresh data, all credit to KylieTastic
select SUM(comment_text like "declined (%") - SUM(comment_text like "Declining submission:%") - SUM(comment_text like "Rejecting submission:%") as declined_then_deleted, actor_name from recentchanges_userindex left join actor on rc_actor = actor_id left join comment on rc_comment_id = comment_id where (rc_namespace =...
{"runningtime": "9.62", "resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 0, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]}
enwiki
Magda 1
null
USE dewiki_p; SELECT up_user, user.user_registration, user.user_editcount, user.user_name, edits_after FROM user_properties JOIN user ON user.user_id = user_properties.up_user INNER JOIN (SELECT rev_user_text AS edit_username, COUNT(rev_id) AS edits_after FROM revision_compat...
{"runningtime": "9.60", "resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 0, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]}
dewiki
tr.wiki GFDL files by upload date in cat
null
#USE jawiki_p; SELECT CONCAT("File:", page_title) as File, img_timestamp, actor_name FROM templatelinks JOIN page ON tl_from = page_id JOIN image ON img_name = page_title AND page_namespace = 6 JOIN actor_image ON img_actor = actor_id JOIN categorylinks ON cl_from = page_id AND cl_type = "file" AND cl_to = "Vikipedi_l...
{"runningtime": "15.85", "resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 2903, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]}
trwiki_p
Magda 2
null
USE dewiki_p; SELECT up_user, user.user_registration, user.user_editcount, user.user_name, edits_after FROM user_properties JOIN user ON user.user_id = user_properties.up_user INNER JOIN (SELECT rev_user_text AS edit_username, COUNT(rev_id) AS edits_after FROM revision_compat...
{"runningtime": "9.99", "resultsets": [{"headers": ["now()"], "rowcount": 1}, {"headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"], "rowcount": 0}]}
dewiki
Magda 3
null
USE dewiki_p; SELECT up_user, user.user_registration, user.user_editcount, user.user_name, edits_after FROM user_properties JOIN user ON user.user_id = user_properties.up_user INNER JOIN (SELECT rev_user_text AS edit_username, COUNT(rev_id) AS edits_after FROM revision_compat...
{"runningtime": "9.84", "resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 0, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]}
dewiki
Magda 4
null
USE dewiki_p; SELECT up_user, user.user_registration, user.user_editcount, user.user_name, edits_after FROM user_properties JOIN user ON user.user_id = user_properties.up_user INNER JOIN (SELECT rev_user_text AS edit_username, COUNT(rev_id) AS edits_after FROM revision_compat...
{"runningtime": "9.59", "resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 0, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]}
dewiki
Benutzerkategorien
null
WITH recursive personenkategorien as ( SELECT CONCAT(p.page_title,' ') page_title, 'main ...
{"runningtime": "9.62", "resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 0, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]}
dewiki_p
AfC review counts, month to date
AfC count, current month
use enwiki_p; select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank, count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", ...
{"runningtime": "10.92", "resultsets": [{"headers": ["now()"], "rowcount": 1}, {"headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"], "rowcount": 12}]}
enwiki