title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Misplaced disambiguation pages
null
select page_title, rd_title from redirect join page on rd_from = page_id and page_namespace = 0 and rd_namespace = 0 where (rd_title like CONCAT(page_title, '\_(%)') or rd_title like CONCAT(page_title, ',\_%'))
{"resultsets": [{"headers": ["title", "count"], "rowcount": 5}], "runningtime": "0.06"}
enwiki_p
Broken redirects
null
SELECT page_title FROM page, redirect WHERE page_id = rd_from AND rd_interwiki = '' AND page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM page WHERE page_title = rd_title AND page_namespace = rd_namespace )
{"resultsets": [{"headers": ["page_title", "page_touched"], "rowcount": 2}], "runningtime": "0.07"}
enwiki_p
Unreferenced BLPs (huwiki fork)
BLPs of huwiki, which do not utilize any of the conventional citation templates, an external link, ISBN numbers, or a section titled "Források" (common name on huwiki for a reflist).
WITH article AS ( SELECT * FROM page JOIN categorylinks ON page_id = cl_from AND cl_to = "Élő_személyek" WHERE page_namespace = 0 AND page_is_redirect = 0 ), no_ext AS ( SELECT DISTINCT(page_title), page_len FROM article LEFT JOIN externallinks ON page_id = el_from WHERE el_id IS NULL ), no_cite AS ...
{"resultsets": [{"headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 10}], "runningtime": "0.04"}
huwiki_p
Playoffs
Titles with "I Play-offs"
select page_title from page where page_namespace=0 and ((page_title like '%playoffs') or (page_title like '%playoffs')) and page_is_redirect=0
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 0}], "runningtime": "0.04"}
enwiki
Articles created by CX in siwiki in 2021
null
-- When appropriate, change 'contenttranslation' to 'sectiontranslation' set @cx_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); SELECT rev_timestamp, actor_name, page_title, page_namespace, page_id, MAX(ct_rev_id) FROM `cha...
{"resultsets": [{"headers": ["deleted_page", "date_of_delete", "name_of_page"], "rowcount": 11282}], "runningtime": "5676.76"}
lijwiki_p
RT
null
SELECT CONCAT('# [[আলাপ:',page_title,']]') FROM page LEFT JOIN pagelinks ON pl_title = page_title AND pl_namespace = page_namespace WHERE pl_namespace IS NULL AND page.page_namespace =1 AND page.page_is_redirect = 1 ;
{"resultsets": [{"headers": ["CONCAT(\"Template talk:\",page_title,\"\")"], "rowcount": 999}], "runningtime": "3.08"}
bnwiki_p
(from 2023) SDC edits by user and edit summary #WMSE-WLE-sweden
null
SELECT page_title, comment_text FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page LEFT JOIN comment_revision ON comment_id = r1.rev_comment_id LEFT JOIN revision r2 ON r1.rev_parent_id = r2.rev_id WHERE actor_name IN ('AliciaFagervingWMSE-bot') AND ...
{"resultsets": [{"headers": ["count(distinct rev_page)"], "rowcount": 1}], "runningtime": "0.29"}
commonswiki_p
Old articles that probably need talk pages
null
SELECT DISTINCT CONCAT("[[", p.page_title, "]]") AS page_title, CONCAT("[[Talk:", p.page_title, "]]") AS talk_title, r.rev_timestamp AS time FROM revision AS r, templatelinks AS tl, linktarget AS lt, page AS p LEFT OUTER JOIN page AS p2 ON p2.page_title = p.page_title AND p2.page_namespace = ...
{"connection_id": 177938972}
enwiki
This week new user sandboxs with external links (arwiki)
null
USE arwiki_p; SELECT CONCAT('# [[مستخدم:',article.page_title,']]') as "الصفحة", MIN(revision.rev_id) as "النسخة", actor.actor_name as "المستخدم", revision.rev_actor as "معرف المستخدم", revision.rev_timestamp as "تاريخ الإنشاء", article.page_len as "حجم الصفحة" FROM revision inner join actor on actor_id = rev_actor...
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 121}], "runningtime": "10.17"}
arwiki
CSD G8 category redirects
null
select page_title, pl_title from page, pagelinks where pl_namespace = 14 and pl_from_namespace = 14 and page_id = pl_from and pl_from in (select tl_from from templatelinks where tl_target_id in ( select lt_id from linktarget where lt_title = 'Category_redirect' and lt_namespace = 10 )) and pl_title not in (select pag...
{"resultsets": [{"headers": ["rev_page", "date", "same_day_revs", "prev_day_revs", "week_before_revs", "month_before_revs", "year_before_revs", "week_after_revs", "day_after_revs", "day_after_2_revs"], "rowcount": 98572}], "runningtime": "174.11"}
enwiki_p
Externallinks
null
/* select el_index_60, el_to, page_title from externallinks join page on el_from = page_id and page_namespace = 0 where el_index_60 not rlike '^(http|https|ftp|irc|telnet|mms|gopher|svn|git|worldwind|nntp)://' and el_index_60 not rlike '^(mailto|news|urn|geo|sms):' */ -- select count(*) from externallinks select el_in...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 1000}], "runningtime": "70.80"}
enwiki_p
popular images in category
null
select page_title, count(*) from categorylinks inner join page on cl_from = page_id inner join globalimagelinks on gil_to = page_title and page_namespace = 6 where cl_to = "PNG_that_should_use_vector_graphics" group by 1 order by 2 desc limit 1000;
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 0}], "runningtime": "0.05"}
commonswiki_p
Inactive talkpages of non-blocked inactive IPs
IP talkpages that have not been edited in the last 5 years, the IP is not currently blocked and there have been no edits from that IP in the last 5 years. Also checks for range blocks
select CONCAT('[[User talk:', page_title, ']]') as 'IP talkpage' -- format as wikilink so that it can be read by AWB from page join revision on rev_id = page_latest and rev_timestamp < '20180314' -- latest page edit is older than the given date join actor on actor_user is null and actor_name = page_title -- IP with Us...
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 895}], "runningtime": "0.89"}
enwiki
Broken redirects
null
SELECT page_title FROM page, redirect WHERE page_id = rd_from AND rd_interwiki = '' AND page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM page WHERE page_title = rd_title AND page_namespace = rd_namespace )
{"resultsets": [{"headers": ["lt_title"], "rowcount": 52}], "runningtime": "9.01"}
enwiki_p
Most wanted articles for Women in Red: B
null
WITH names AS (SELECT SUBSTRING_INDEX(page_title, "_", 1) AS name FROM categorylinks JOIN page ON page_id=cl_from AND page_namespace=0 AND page_title LIKE "B%" WHERE cl_type="page" AND cl_to="Feminine_given_names") SELECT pl_title Target, SUM(page_title IS NULL) LinkCount FROM pagelinks LEFT JOIN page...
{"connection_id": 113970061}
enwiki_p
Disambiguation pages that aren't disambig-class or tagged with WikiProject Disambiguation
The minimal fixes to get this working. For [[WP:RAQ#Disambiguation pages with no WikiProject banner]] circa 25 August 2022.
SELECT Pa.page_title FROM categorylinks JOIN page Pa ON Pa.page_namespace = 0 AND Pa.page_is_redirect = 0 AND Pa.page_id = cl_from JOIN page Pt ON Pt.page_title = Pa.page_title AND Pt.page_namespace = 1 WHERE cl_to = "All_disambiguation_pages" AND NOT EXISTS (SELECT 1 FROM categorylinks WHERE cl_from = Pt.page_id AND c...
{"resultsets": [{"headers": ["CONCAT(\"'\",log_title,\"',\")"], "rowcount": 369}], "runningtime": "0.93"}
enwiki_p
Novem Linguae's AFC review count
null
SELECT comment_text, page_title, rev_timestamp FROM revision_userindex JOIN actor ON rev_actor = actor_id JOIN comment_revision ON comment_id = rev_comment_id JOIN page ON rev_page = page_id WHERE actor_name = 'Novem Linguae' AND page_namespace = 3 AND comment_text RLIKE '(?:accepted|declined|rejected)' AND page_title ...
{"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", ...
enwiki
Disambiguation pages that aren't disambig-class or tagged with WikiProject Disambiguation
The minimal fixes to get this working. For [[WP:RAQ#Disambiguation pages with no WikiProject banner]] circa 25 August 2022.
SELECT Pa.page_title FROM page Pa JOIN page Pt on Pt.page_title = Pa.page_title and Pt.page_namespace = 1 WHERE Pa.page_namespace = 0 AND Pa.page_is_redirect = 0 AND Pa.page_id IN ( SELECT cl_from FROM categorylinks WHERE cl_to = "All_disambiguation_pages" ) AND Pt.page_id NOT IN ( SELECT cl_from FROM categorylinks...
{"resultsets": [{"headers": ["reviews", "rc_title", "accepted", "accept %", "declined", "decline %"], "rowcount": 1560}], "runningtime": "16.51"}
enwiki_p
CSD G8 talkpages
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE talk.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' ...
{"resultsets": [{"headers": ["total", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 1}], "runningtime": "29.47"}
enwiki_p
Old articles that probably need talk pages (with left outer joins)
null
SELECT DISTINCT CONCAT("[[", p.page_title, "]]") AS page_title, CONCAT("[[Talk:", p.page_title, "]]") AS talk_title, r.rev_timestamp AS time FROM revision AS r, page AS p -- only incude pages without a talk page LEFT OUTER JOIN page AS p2 ON p2.page_title = p.page_title AND p2.page_namespace = 1 AND p....
{"resultsets": [{"headers": ["Page"], "rowcount": 0}], "runningtime": "53.44"}
enwiki
Top Wikipedia User by Bytecounts (This month)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
select * /*sum(tdif)*/ from (select actor_name, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex left join actor on rc_actor = actor_id where rc_timestamp >= 20230601000000 and rc_timestamp <= 20230615000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') ...
{"resultsets": [{"headers": ["actor_name", "tdif"], "rowcount": 131}], "runningtime": "3.05"}
idwiki
Broken redirects
null
SELECT page_title FROM page, redirect WHERE page_id = rd_from AND rd_interwiki = '' AND page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM page WHERE page_title = rd_title AND page_namespace = rd_namespace )
{"resultsets": [{"headers": ["alias", "c"], "rowcount": 153736}], "runningtime": "178.89"}
enwiki_p
CSD G8 Editnotices
null
-- select distinct substring_index(page_title, '/', 2) from page -- where page_title like 'Editnotices/%' and page_namespace = 10 select p1.page_title from page p1 where p1.page_namespace = 10 and p1.page_title rlike '^Editnotices/(Page|Group|Protection)/' and regexp_replace(p1.page_title, '^Editnotices/(Page|Group|Pr...
{"resultsets": [{"headers": ["declined_then_deleted", "actor_name"], "rowcount": 162}], "runningtime": "26.91"}
enwiki_p
HESultan1
null
# Simplified query to focus on blocked editors. # The page_id list can be manually compiled by looking at page id under "page information" in the Wiki web interface, # or by running Quarry query #62940 with a list of titles. select page_title as 'page title', user_name, comment_text as 'block reason' from page,...
{"resultsets": [{"headers": ["User page", "User edit count", "Page last edited", "Page length", "Is new?"], "rowcount": 690}], "runningtime": "5.74"}
enwiki
Free files with at least one old version
[[User talk:Cryptic#Files with multiple versions Quarry]]
SELECT CONCAT('File:', REPLACE(oi_name, '_', ' ')) AS filename, COUNT(*) AS 'old versions' FROM oldimage JOIN page ON page_namespace = 6 AND page_title = oi_name WHERE (oi_deleted & 1) = 0 AND NOT EXISTS (SELECT 1 FROM categorylinks WHERE page_id = cl_from ...
{"resultsets": [{"headers": ["reviews", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 1}], "runningtime": "51.53"}
enwiki_p
large oil and gas
null
# Simplified query to focus on blocked editors. # The page_id list can be manually compiled by looking at page id under "page information" in the Wiki web interface, # or by running Quarry query #62940 with a list of titles. select page_title as 'page title', user_name, comment_text as 'block reason' from page,...
{"resultsets": [{"headers": ["pa_page_id", "pa_project_id", "pa_class", "pa_importance", "pa_page_revision"], "rowcount": 100}], "runningtime": "0.15"}
enwiki
DYK nominations created since 2023-06-12
null
select log_title from logging where log_timestamp > 20230612000000 and log_namespace = 10 and log_title like 'Did_you_know_nominations/%' and log_type = 'create' and log_action = 'create' ;
{"resultsets": [], "runningtime": "0.03"}
enwiki_p
enwiki random cats1
null
SELECT CONCAT("Category talk:",cat_title,"") FROM category WHERE cat_title LIKE "%by_nationality%" #ORDER BY RAND() LIMIT 9999;
{"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 8}, {"headers": ["avg_edits_per_day"], "rowcount": 1}, {"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 9}, {"headers": ["avg_edits_per_day"], "rowcount": 1}], "runningtime": "2.19"}
enwiki_p
Reviewer stats by time interval (huwiki)
FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days.
use huwiki_p; SELECT CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#', user_name as 'Szerkesztő', count(*) as 'Ellenőrzések száma az időszakban' FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'review' AND log_action IN ('approve', 'a...
{"resultsets": [{"headers": ["title", "count"], "rowcount": 7}], "runningtime": "0.07"}
huwiki_p
WikiProjects for an article (sans sorting)
null
SELECT CONCAT("[[", p.page_title, "]]") AS page_title, CONCAT("[[Talk:", p.page_title, "]]") AS talk_title, -- lt.lt_title, -- COUNT(p2.page_id) -- group_concat( DISTINCT lt.lt_title ORDER BY COUNT(p2.page_id) DESC SEPARATOR '}} {{' LIMIT 20) wikiprojects CONCAT("{{", group_concat( DISTINCT lt.lt_title SEP...
{"resultsets": [{"headers": ["reviewer", "Articles", "Redirects", "Total"], "rowcount": 1}], "runningtime": "0.09"}
enwiki
CSD G14 dabpages
null
SELECT p1.page_title, pl_title, COUNT(pl_title) as links FROM page p1 LEFT JOIN pagelinks ON pl_from = p1.page_id AND pl_namespace = 0 AND pl_title IN (select p2.page_title from page p2 where p2.page_namespace = 0) -- LEFT JOIN page p2 ON p2.page_title = pl_title AND p2.page_namespace = 0 WHERE p1.page_id IN ( select...
{"resultsets": [{"headers": ["page_title", "pp_value"], "rowcount": 0}], "runningtime": "2.16"}
enwiki_p
Hard category redirects
null
select page_title, page_is_redirect, rd_title from redirect, page where rd_from = page_id and rd_namespace = 14 and page_namespace = 14;
{"resultsets": [{"headers": ["page_title", "pp_value"], "rowcount": 5}], "runningtime": "2.29"}
enwiki_p
Transclusions of missing templates
Code from https://github.com/fastily/fastilybot-toolforge/blob/master/scripts/report14.sql
select page_title, lt_title from linktarget join templatelinks on tl_target_id = lt_id join page on tl_from = page_id and page_namespace = 0 where lt_namespace = 10 and lt_title not in (select page_title from page where page_namespace = 10); /* select page_title, pl_title from pagelinks join page on pl_from = page_id ...
{"resultsets": [{"headers": ["title", "count"], "rowcount": 5}], "runningtime": "0.07"}
enwiki_p
WikiProjects for an article (with sorting using WITH)
null
WITH wikiprojects AS ( SELECT p.page_title, lt.lt_title AS lt_title, COUNT(p2.page_id) AS cnt FROM page AS p, page AS p2, pagelinks AS pl, templatelinks AS tl, linktarget AS lt where p.page_title = 'OnGreen' AND p.page_namespace = 0 AND p.page_is_redirect = 0 AND p.page_id = pl.pl_from A...
{"resultsets": [{"headers": ["CONCAT('[[:File:', p.page_title, ']]')", "GROUP_CONCAT('[[',d.page_title,']]' SEPARATOR ' and ')"], "rowcount": 76}], "runningtime": "0.46"}
enwiki
Submitted drafts that have no citations
null
select concat("https://en.wikipedia.org/wiki/Draft:", page_title) as title, ptpt2.ptrpt_value,ptrp_reviewed_updated from pagetriage_page join page on page_id = ptrp_page_id join pagetriage_page_tags ptpt1 on ptrp_page_id=ptpt1.ptrpt_page_id join pagetriage_page_tags ptpt2 on ptrp_page_id=ptpt2.ptr...
{"resultsets": [{"headers": ["lt_title"], "rowcount": 57}], "runningtime": "9.29"}
enwiki
Submitted drafts that should be redirects
null
select concat("https://en.wikipedia.org/wiki/Draft:", page_title) as title, ptpt2.ptrpt_value,ptrp_reviewed_updated, length(ptpt1.ptrpt_value) as blurb_size from pagetriage_page join page on page_id = ptrp_page_id join pagetriage_page_tags ptpt1 on ptrp_page_id=ptpt1.ptrpt_page_id join pagetria...
{"resultsets": [{"headers": ["page_title"], "rowcount": 4}], "runningtime": "0.06"}
enwiki
Old articles that probably need talk pages, with suggested Wikiprojects
null
WITH pages_sans_talk_pages AS ( SELECT DISTINCT p.page_title as page_title, p.page_namespace as page_namespace, p.page_is_redirect as page_is_redirect, p.page_id as page_id FROM revision AS r, page AS p -- only incude pages without a talk page LEFT OUTER JOIN page AS p2 ON p2.page_title = p.page_titl...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 0}], "runningtime": "0.18"}
enwiki
Malplaced disambiguation pages
null
select page_namespace, page_title, rd_title from redirect join page on rd_from = page_id and rd_namespace = page_namespace and rd_title = CONCAT(page_title, '_(disambiguation)') /* select p1.page_title, r1.rd_title, r2.rd_title from redirect r1 join page p1 on r1.rd_from = p1.page_id and p1.page_namespace = 1 and p1.p...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 254}], "runningtime": "0.33"}
enwiki_p
Reviewer stats by time interval (huwiki)
FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days.
use huwiki_p; SELECT CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#', user_name as 'Szerkesztő', count(*) as 'Ellenőrzések száma az időszakban' FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'review' AND log_action IN ('approve', 'a...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 0}], "runningtime": "0.05"}
huwiki_p
Match redirects in talk and subject namespace
null
with page_redirect as ( select page_namespace, page_title, rd_title from page join redirect on page_id = rd_from and rd_namespace = page_namespace where page_is_redirect = 1 ) select pr1.page_title, pr1.rd_title, pr2.rd_title, pr3.rd_title from page_redirect pr1 join page_redirect pr2 on pr1.page_title = pr2.pag...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 0}], "runningtime": "0.05"}
enwiki_p
Wikidata MDanielsBot 1b
null
SELECT COUNT(wbit_item_id) FROM wbt_item_terms LEFT JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id LEFT JOIN wbt_type ON wbtl_type_id = wby_id LEFT JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id LEFT JOIN wbt_text ON wbxl_text_id = wbx_id WHERE wbtl_type_id = 2 # Description AND wbxl_langu...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 0}], "runningtime": "0.05"}
wikidatawiki
Wikidata MDanielsBot 1c
null
SELECT COUNT(wbit_item_id) FROM wbt_item_terms LEFT JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id LEFT JOIN wbt_type ON wbtl_type_id = wby_id LEFT JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id LEFT JOIN wbt_text ON wbxl_text_id = wbx_id WHERE wbtl_type_id = 2 # Description AND wbxl_langu...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 0}], "runningtime": "0.05"}
wikidatawiki
Top Wikipedia Page by Bytecounts (This Month)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
select * from (select rc_title, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex where rc_timestamp >= 20230601000000 and rc_timestamp <= 20230615000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') group by rc_title) a where tdif > 30000 order by tdif de...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 0}], "runningtime": "0.03"}
idwiki_p
Top Wikipedia User by Bytecounts (This month)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
select * /*sum(tdif)*/ from (select actor_name, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex left join actor on rc_actor = actor_id where rc_timestamp >= 20230601000000 and rc_timestamp <= 20230615000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') ...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 0}], "runningtime": "0.05"}
idwiki_p
Top Wikipedia Page by Bytecounts (This Month)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
selectselect * from (select rc_title, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex where rc_timestamp >= 20230601000000 and rc_timestamp <= 20230615000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') group by rc_title) a where tdif > 30000 order by t...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 0}], "runningtime": "0.05"}
idwiki_p
Top Wikipedia Page by Bytecounts (This Month)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
select * from (select rc_title, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex where rc_timestamp >= 20230601000000 and rc_timestamp <= 20230615000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') group by rc_title) a where tdif > 30000 order by tdif de...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 1555}], "runningtime": "1.64"}
idwiki_p
List of RFAs (including un-transcluded)
null
SELECT MIN(rev_timestamp) AS creation_date, REPLACE(page_title, 'Requests_for_adminship/', '') AS candidate_name FROM page LEFT JOIN revision ON page_id = rev_page WHERE page_namespace = 4 AND page_title LIKE 'Requests_for_adminship/%' AND page_title NOT LIKE 'Requests_for_adminship/20%' AND page_title NOT LIKE 'Reques...
{"connection_id": 181143102}
enwiki
Candidate edit count at time of RFA
null
SELECT MIN(rev_timestamp) AS creation_date, REPLACE(page_title, 'Requests_for_adminship/', '') AS candidate_name FROM page LEFT JOIN revision ON page_id = rev_page WHERE page_namespace = 4 AND page_title LIKE 'Requests_for_adminship/%' AND page_title NOT LIKE 'Requests_for_adminship/20%' AND page_title NOT LIKE 'Reques...
{"resultsets": [{"headers": ["namespace", "title", "page_id"], "rowcount": 10}], "runningtime": "0.06"}
enwiki
User's edit count at an approximate point in time
Deleted revisions are not counted.
SELECT * -- COUNT(*) FROM revision JOIN actor ON actor_id = rev_actor JOIN user ON user_name = actor_user -- WHERE user_name = 'Novem Linguae'
{"resultsets": [{"headers": ["page_title"], "rowcount": 467}], "runningtime": "3.09"}
enwiki
Edit counts by time of +sysop (modern RFAs: 2018-present)
Users who have been granted administrator since mid-2006, and their edit counts before and after promotion. Edits are counted as live or deleted based on whether they're currently deleted *now*, not at the time of the rights grant. The rights log didn't exist until 24 Dec 2004, didn't record which rights were changed...
WITH admins (a_timestamp, a_name, a_actor) AS ( SELECT log_timestamp, actor_name, actor_id FROM logging JOIN actor_logging ON actor_name = REPLACE(log_title, '_', ' ') WHERE log_type = 'rights' AND log_action = 'rights' AND ( -- pre-Nov-2012 format (log_params LIKE '%\n%sysop%' -- new groups i...
{"resultsets": [{"headers": ["ID", "Namespace", "Title", "Date", "Summary", "Username"], "rowcount": 773}], "runningtime": "2593.83"}
enwiki_p
Candidate edit count at time of RFA
Changes: less sum() columns, newest RFAs first
WITH admins (a_timestamp, a_name, a_actor) AS ( SELECT log_timestamp, actor_name, actor_id FROM logging JOIN actor_logging ON actor_name = REPLACE(log_title, '_', ' ') JOIN comment on log_comment_id = comment_id WHERE log_type = 'rights' AND log_action = 'rights' AND ( -- pre-Nov-2012 format ...
{"resultsets": [{"headers": ["Q_id"], "rowcount": 117288}], "runningtime": "157.45"}
enwiki_p
Broken redirects
null
SELECT page_title FROM page, redirect WHERE page_id = rd_from AND rd_interwiki = '' AND page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM page WHERE page_title = rd_title AND page_namespace = rd_namespace )
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 1000}], "runningtime": "60.39"}
enwiki_p
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["naraguna", "gunggung"], "rowcount": 49}], "runningtime": "0.18"}
enwiki_p
Reviewer stats by time interval (huwiki)
FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days.
use huwiki_p; SELECT CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#', user_name as 'Szerkesztő', count(*) as 'Ellenőrzések száma az időszakban' FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'review' AND log_action IN ('approve', 'a...
{"resultsets": [{"headers": ["actor_name", "page_title", "page_len", "creation_date"], "rowcount": 18223}], "runningtime": "18.32"}
huwiki_p
Reviewer stats by time interval (huwiki)
FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days.
use huwiki_p; SELECT CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#', user_name as 'Szerkesztő', count(*) as 'Ellenőrzések száma az időszakban' FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'review' AND log_action IN ('approve', 'a...
{"resultsets": [{"headers": ["URL"], "rowcount": 0}], "runningtime": "67.32"}
huwiki_p