title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
WD props by transclusions
null
select page_title, sum(link_count) from ( ( SELECT page_id, page_title, count(*) as link_count #concat('{{User:Edgars2007/ID/Template|row|',pl_title,'|',count(*),'}}') from page left join pagelinks on pl_title=page_title and pl_namespace=120 where page_namespace=120 and page_is_redirect=0 and pl_from_namespace=...
{"resultsets": [{"headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata", "img_bits", "img_media_type", "img_major_mime", "img_minor_mime", "img_description_id", "img_actor", "img_timestamp", "img_sha1"], "rowcount": 201}], "runningtime": "0.36"}
wikidatawiki_p
Articles with conflicting assessments
For main space articles To do: minimize discrepancies by treating all FL -> FA, Stub -> Start, etc. Also need to eliminate articles with inappropriate assessments, e.g. File or Portal (use separate query to find these issues) Edge case: https://en.wikipedia.org/w/index.php?title=!!!!!!!&redirect=no
SELECT CONCAT('https://en.wikipedia.org/wiki/', p.page_title) AS 'Page', COUNT(DISTINCT pa.pa_class) AS 'Differing assessments' FROM page p INNER JOIN page_assessments pa ON p.page_id = pa.pa_page_id AND pa.pa_class != '' WHERE p.page_namespace = 0 GROUP BY p.page_title HAVING COUNT(DISTINCT pa.pa_class) > 1
{"resultsets": [{"headers": ["user_name", "edits_before_2018", "edits_after_2022"], "rowcount": 27}], "runningtime": "171.07"}
enwiki_p
Inactive talkpages of inactive IPs
null
select CONCAT('[[User talk:', page_title, ']]') as 'IP talkpage' -- format as wikilinl from page join revision on rev_id = page_latest and rev_timestamp between '20170110' and '20180110' -- latest page edit is older than the given date join actor on actor_user is null and actor_name = page_title -- IP with User talk pa...
{"resultsets": [{"headers": ["rc_patrolled", "count"], "rowcount": 4}, {"headers": ["user", "unpatrolled"], "rowcount": 15}, {"headers": ["day", "unpatrolled", "manually patrolled", "autopatrolled", "total"], "rowcount": 31}, {"headers": ["rc_namespace", "unpatrolled"], "rowcount": 8}, {"headers": ["rc_namespace", "rc_...
enwiki_p
Incubator, all current projects (Sep 2022)
null
WITH base_table AS ( SELECT DISTINCT REGEXP_SUBSTR(page_title, 'W[a-z]/[a-z]+') AS prefix FROM page WHERE page_namespace IN (0, 1, 10, 11, 14, 15, 828, 829) HAVING prefix <> '') SELECT * FROM base_table WHERE prefix LIKE 'Wp/shi' ORDER BY prefix LIMIT 3000
{"resultsets": [{"headers": ["page_title"], "rowcount": 4}], "runningtime": "55.07"}
incubatorwiki
(TOTAL) SDC edits by user and edit summary #WMSE-WLM-brazil
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": ["ipb_address", "actor_name", "ipb_timestamp", "comment_text"], "rowcount": 416}], "runningtime": "6.10"}
commonswiki_p
Remerciements 2022
Most thanked people for the year on frwp. Für die Freikultur.
USE frwiki_p; SELECT log_title, COUNT(log_id) FROM logging_logindex WHERE log_type = "thanks" AND log_timestamp >= "20230000000000" AND log_timestamp <= "20240000000000" GROUP BY log_title ORDER BY 2 DESC
{"resultsets": [{"headers": ["img_sha1", "COUNT(*)"], "rowcount": 254}], "runningtime": "44.03"}
frwiki
testtest
null
USE ckbwiki_p; select page_title from page where page_namespace = 14 order by page_id asc;
{"resultsets": [{"headers": ["Username", "cnt"], "rowcount": 80}], "runningtime": "27.81"}
ckbwiki_p
Font tags in long sigs with recent edits
null
USE enwiki_p; SELECT user_name, up_value, LENGTH(up_value), user_editcount FROM user_properties JOIN `user` ON user_id = up_user WHERE up_property = "nickname" AND up_value LIKE "%<font%" AND user_name IN (SELECT actor_name FROM revision_userindex JOIN actor ON rev_actor...
{"resultsets": [{"headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"], "rowcount": 1}], "runningtime": "0.05"}
enwiki
List of DPLA bot uploads and byte size after May 2022
null
SELECT CONCAT("File:", img_name) AS filename FROM image JOIN actor_image ON actor_id = img_actor WHERE actor_name = "DPLA bot" AND img_timestamp > "2023010100000"
{"resultsets": [{"headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"], "rowcount": 68}], "runningtime": "1.39"}
commonswiki_p
IP blocks that expire soon
null
select ipb_address, ipb_timestamp, ipb_expiry, comment_text from ipblocks, comment where ipb_reason_id = comment_id and ipb_user = 0 and comment_text like '%proxy%' and ipb_expiry < now() + interval 1 month and ipb_expiry != 'infinity' order by ipb_expiry ;
{"resultsets": [{"headers": ["title", "rev_timestamp", "diff"], "rowcount": 1237}], "runningtime": "1.22"}
huwiki_p
# of geo_tags
count records in geo_tags and ANR
select p1.page_namespace as ns, count(*) from geo_tags AS g1 JOIN page AS p1 ON g1.gt_page_id = p1.page_id having ns= 0
{"resultsets": [{"headers": ["page_title"], "rowcount": 2}], "runningtime": "79.61"}
dewiki_p
Deletion rates of CX and non-CX articles for a wiki
For one wiki, shows how many articles were created using Content Translation (CX articles) and how frequently they were deleted, compared to articles created using other methods (non-CX articles).
SET @start_time = '20230101'; -- 1 Jan 2022 SET @end_time = '20230228'; -- 1 Oct 2022 SET @cx_tag_id = ( SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'contenttranslation' ); WITH nondeleted_new_articles AS ( SELECT SUM(IF(ct_tag_id = @cx_tag_id, 1, 0)) AS cx, SUM(IF(ct_tag_id IS N...
{"resultsets": [{"headers": ["rc_patrolled", "count"], "rowcount": 4}], "runningtime": "2.17"}
jawiki_p
Edit count Armenia and Azerbaijan articles
null
WITH ar_articles AS (SELECT cl_from FROM categorylinks WHERE cl_to = "WikiProject_Armenia_articles"), az_articles AS (SELECT cl_from FROM categorylinks WHERE cl_to = "WikiProject_Azerbaijan_articles"), intersection AS (SELECT * FROM ar_articles WHERE cl_from IN (SELECT * FROM az_art...
{"connection_id": 109348220}
enwiki_p
nlwiki Double archive links
null
SELECT page_namespace AS ns, page_title, el_to FROM externallinks, page WHERE el_from=page_id AND el_to REGEXP '^(https?:)?//(www\\.)?webcitation\\.org/[^\\?/=]+\\?url=https?://web\\.archive\\.org/web/|' '^(https?:)?//(web\\.)?archive\\.org/web/[0-9]+/https?://www\\.webcitation\\.org/|' '^(https?:)?//archive\\.(...
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.12"}
nlwiki
Tewiki:User-wise edit count in a specific namespace
null
select actor_name,count(rev_actor) from revision,actor,page where page_id=rev_page and actor_id=rev_actor and page_namespace=0 -- and user_id=actor_user -- and actor_name like "%AWB%" and rev_timestamp like "2022%" group by (rev_actor) having count(rev_actor) >99 order by count(rev_actor) desc
{"resultsets": [{"headers": ["New WikiQuote #SheSaid article", "Creator", "Date created", "Wikidata item", "Length"], "rowcount": 333}], "runningtime": "3.67"}
tewiki
enWikiquote: New articles in the past two weeks
New articles. on English WikiQuote from the last few weeks. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable". The default sort order is date of creation descending. One key use is identifying new articl...
SELECT CONCAT('"', NVL((SELECT 'V' WHERE EXISTS (SELECT 1 FROM templatelinks tm1 JOIN linktarget lt1 ON lt1.lt_id=tm1.tl_target_id WHERE tm1.tl_from=page_id AND tm1.tl_from_namespace=0 ...
{"resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 11}], "runningtime": "11.54"}
enwikiquote_p
LTA blocks
null
SELECT ipb_address, actor_name, ipb_timestamp, 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 lower(cast(comment_text as CHAR)) RLIKE 'long.term abuse|[[:<:]]lta[[:>:]]' ORDER BY ipb_timestamp DE...
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 1}], "runningtime": "7.51"}
enwiki_p
Informatietabellen anno controle
null
# 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 SELECT 'total...
{"resultsets": [{"headers": ["Potential untagged #SheSaid articles", "Wikidata item", "Creator", "Date created", "Length"], "rowcount": 307}], "runningtime": "9.49"}
nlwiki_p
Abkürzungs-Lemma
https://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion:Wurgl&oldid=227314760#Bitte_um_Hilfe:_Nächstes_Kapitel_Abkürzungen
WITH BklAbkz AS ( /* Alle Begriffsklärungsseiten rausfischen */ SELECT page_id AS bkl_page, UPPER(CONVERT(REPLACE(page_title, '_Begriffsklärung', '') USING utf8)) AS bkl_title FROM page, page_props WHERE page_namespace = 0 AND page_id = pp_page AND pp_propname = 'disambiguation' /...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 3043}], "runningtime": "1720.02"}
dewiki_p
Sandbox
null
SELECT REGEXP_REPLACE(SUBSTR(p.page_title, 23), "_?\\(\\d+[a-z]{2}_nomination\\)", "") as page, page_title as AFD, actor_name as User, date_format(min(rev_timestamp),'%Y-%m-%dT-%H:%i+00') as `Revision Timestamp` FROM page p JOIN revision_userindex ON rev_page = page_id AND rev_parent_id = 0 JOIN actor_revision ON a...
{"resultsets": [{"headers": ["Page title"], "rowcount": 0}], "runningtime": "3.66"}
enwiki
Pages with exactly one triage tag
https://phabricator.wikimedia.org/T321322
SELECT page_namespace, page_title, ptrpt_page_id, ptrp_created, ptrp_reviewed, ptrp_reviewed_updated, COUNT(*), ptrt_tag_name, ptrpt_value FROM pagetriage_page_tags LEFT JOIN pagetriage_page ON ptrp_page_id = ptrpt_page_id LEFT JOIN page ON page_id = ptrpt_page_id JOIN pagetriage_tags on ptrpt_tag_id = ptrt_tag_id wher...
{"resultsets": [{"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_type", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 1247}], "runningtime": "2.57"}
enwiki_p
Checking if T256704 is still a problem
null
SELECT count(*) FROM pagetriage_page WHERE ptrp_page_id NOT IN (SELECT page_id FROM page); #SELECT * FROM pagetriage_page WHERE ptrp_page_id NOT IN (SELECT page_id FROM page) order by ptrp_created desc limit 1; #select * from archive where ar_page_id=71874695 limit 1;
{"resultsets": [{"headers": ["page_title"], "rowcount": 82}], "runningtime": "0.38"}
enwiki
nlwiki External links with template arguments
null
SELECT page_namespace AS ns, page_title, el_to FROM externallinks, page WHERE el_to REGEXP '{{{' AND el_from=page_id AND page_namespace IN (0,4,6,8,10,12,14,100,828) LIMIT 100
{"resultsets": [{"headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata", "img_bits", "img_media_type", "img_major_mime", "img_minor_mime", "img_description_id", "img_actor", "img_timestamp", "img_sha1"], "rowcount": 45}], "runningtime": "0.10"}
nlwiki
longest unreviewed redirects (top 10)
null
select concat ("https://en.wikipedia.org/wiki/", page_title, "?redirect=no") as title, length(ptrpt_value) as l, ptrpt_value from pagetriage_page join page on ptrp_page_id=page_id join pagetriage_page_tags on ptrpt_page_id=page_id where page_is_redirect=1 and page_namespace=0 and ptrpt_tag_id=9 ...
{"resultsets": [{"headers": ["num", "Page title", "Is redirect?"], "rowcount": 0}], "runningtime": "3.95"}
enwiki
enWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22)
New #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" The last length size (in the #SheSaid campaign peri...
SELECT CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article", actor_name AS "Creator", CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ', MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created", ...
{"resultsets": [{"headers": ["title", "count"], "rowcount": 7}], "runningtime": "0.07"}
enwikiquote_p
new test
null
SELECT page_namespace, page_id, page_title, page_is_redirect FROM ...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect"], "rowcount": 50}], "runningtime": "0.11"}
kswiki
مقالات مراجعة حسب المستخدم
قائمة الصفحات المراجعة (قبول المراجعة) في آخر شهر حسب المستخدم الذي أدّى الفعل، مُرتبة بالأحدث في البداية.
use arwiki_p; select CONCAT('[[',page_title,']]') from logging INNER JOIN actor ON logging.log_actor = actor.actor_id LEFT JOIN page ON logging.log_page = page.page_id where log_action = "approve-i" and log_namespace = 0 and page_is_redirect = 0 and actor_name Like "أبو جاد" group by page_title ORDER BY log_timestamp D...
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 515}], "runningtime": "4.80"}
arwiki_p
nlwiki All-time bot accounts
null
SELECT DISTINCT log_title FROM logging WHERE log_type='rights' AND log_params REGEXP 'bot'
{"resultsets": [{"headers": ["yeard", "actor_name", "count(actor_name)"], "rowcount": 8}], "runningtime": "0.09"}
nlwiki
Pages re-created after previous G5 deletion
To do: -Expand namespaces (e.g. category, template) -When was page last deleted -Exclude creations by ext confirmed or higher users
WITH sock_template AS ( SELECT tl.tl_from FROM enwiki_p.templatelinks tl WHERE tl.tl_target_id IN (32197, 277052, 282063, 115252, 1968835) ) SELECT DISTINCT CONCAT('https://en.wikipedia.org/wiki/', CASE WHEN rc.rc_namespace = 2 THEN 'User:' WHEN rc.rc_namespace = 118 THEN 'Draft:' ELSE '' END, rc.rc_title) AS 'P...
{"resultsets": [{"headers": ["actor_name", "rc_title", "comment_text"], "rowcount": 100}], "runningtime": "3.94"}
enwiki_p
Registered users who need to be welcomed
Looks for registered users who have edited recently, have >= 50 edits, and no talk page. Most of these users should probably be welcomed and thanked for their contributions. To do: -Use recent changes table instead of rev -Filter out reverted and user space edits from users' edit count, if this can be done in a perfo...
WITH active_actors AS ( SELECT DISTINCT r.rev_actor FROM enwiki_p.revision_userindex r WHERE r.rev_deleted = 0 ORDER BY r.rev_timestamp DESC LIMIT 20000 ) SELECT CONCAT('https://en.wikipedia.org/wiki/Special:Contributions/', a.actor_name) AS 'User' FROM active_actors aa INNER JOIN enwiki_p.actor_revision a ON ...
{"resultsets": [{"headers": ["actor_name"], "rowcount": 59}], "runningtime": "5.54"}
enwiki_p
Pages re-created after previous XfD deletion
To do: -Catch pages moved to mainspace as well rather than just created there -Exclude bots from counting towards "Last AfD interaction" -Show last deletion date too in case it was G4'd recently or deleted for some other CSD
SELECT DISTINCT CONCAT('https://en.wikipedia.org/wiki/', rc.rc_title) AS 'Page', p.page_len AS 'Page length', TIMESTAMP(rc.rc_timestamp) AS 'Re-created at', TIMESTAMP(MAX(r.rev_timestamp)) AS 'Last AfD interaction' FROM enwiki_p.recentchanges_userindex rc INNER JOIN enwiki_p.logging_logindex l ON l.log_type = 'delete' ...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.28"}
enwiki_p
Examine namespaces of pagetriage_page table
null
SELECT page_namespace, COUNT(*), min(ptrp_created), max(ptrp_created), page_title, ptrp_reviewed, page_id FROM pagetriage_page JOIN page ON page_id = ptrp_page_id GROUP BY page_namespace
{"resultsets": [{"headers": ["transcode_id", "transcode_image_name", "transcode_key", "transcode_error", "transcode_time_addjob", "transcode_time_startwork", "transcode_time_success", "transcode_time_error", "transcode_final_bitrate"], "rowcount": 2}], "runningtime": "0.05"}
enwiki
Unique participants to @ISA on Commons (Y 2020 V1.0)
null
SELECT actor_name, COUNT(*) AS count FROM revision JOIN comment_revision ON rev_comment_id=comment_id JOIN page ON rev_page=page_id JOIN actor_revision ON rev_actor=actor_id JOIN change_tag ON rev_id=ct_rev_id JOIN change_tag_def ON ct_tag_id=ctd_id WHERE (ct_tag_id=414) AND rev_timestamp BETWEEN 20200101000000 AND...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 18}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 4}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 11}], "runningtime": "0.16"}
commonswiki_p
Unique participants to @ISA on Commons (2.2 - year 2022)
null
SELECT actor_name, COUNT(*) AS count FROM revision JOIN comment_revision ON rev_comment_id=comment_id JOIN page ON rev_page=page_id JOIN actor_revision ON rev_actor=actor_id JOIN change_tag ON rev_id=ct_rev_id JOIN change_tag_def ON ct_tag_id=ctd_id WHERE (ct_tag_id=563) AND rev_timestamp BETWEEN 20220101000000 AND...
{"resultsets": [{"headers": ["IP talkpage"], "rowcount": 697070}], "runningtime": "861.62"}
commonswiki_p
Unique participants to @ISA on Commons (2018-2022)
null
SELECT actor_name, COUNT(*) AS count FROM revision JOIN comment_revision ON rev_comment_id=comment_id JOIN page ON rev_page=page_id JOIN actor_revision ON rev_actor=actor_id JOIN change_tag ON rev_id=ct_rev_id JOIN change_tag_def ON ct_tag_id=ctd_id WHERE (ct_tag_id=414 OR ct_tag_id=593) AND rev_timestamp BETWEEN 2...
{"resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 12}], "runningtime": "32.61"}
commonswiki_p
Unique participants to @ISA on Commons (Sept-Dec Dev[1.0])
null
SELECT actor_name, COUNT(*) AS count FROM revision JOIN comment_revision ON rev_comment_id=comment_id JOIN page ON rev_page=page_id JOIN actor_revision ON rev_actor=actor_id JOIN change_tag ON rev_id=ct_rev_id JOIN change_tag_def ON ct_tag_id=ctd_id WHERE (ct_tag_id=593) AND rev_timestamp BETWEEN 20220901000000 AND...
{"resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 0}], "runningtime": "0.06"}
commonswiki_p
Article creations by editor and size
null
WITH all_creations AS (SELECT page_id, page_title, rev_actor, page_len, rev_id FROM page JOIN revision ON page_id = rev_page WHERE page_namespace = 0 AND rev_parent_id = 0 AND rev_timestamp >= '2013' AND rev_timestamp < '2014' ), not_redirect AS (SELECT DISTINCT page_id, page_title, rev_actor, pag...
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "4.60"}
enwiki_p
Commons files re-created after previous F10 deletion
null
SELECT DISTINCT CONCAT('https://commons.wikimedia.org/wiki/File:', rc.rc_title) AS 'File', TIMESTAMP(rc.rc_timestamp) AS 'Re-created at' FROM recentchanges_userindex rc INNER JOIN logging_logindex l ON l.log_type = 'delete' AND l.log_action = 'delete' AND rc.rc_title = l.log_title AND rc.rc_namespace = l.log_namespace ...
{"resultsets": [{"headers": ["p", "p\u0422\u041c\u041f1", "p\u0422\u041c\u041f2", "new_text"], "rowcount": 1}], "runningtime": "0.06"}
commonswiki_p
Qualified titles with shared base name lacking a (disambiguation) page
null
SELECT REGEXP_SUBSTR(page_title, "(.*?)(?=_\\(disambiguation\\)|,_|$)") AS basename, SUM(1 - page_is_redirect) pages, GROUP_CONCAT(page_title ORDER BY page_title SEPARATOR'|') AS titles FROM page Pq WHERE page_namespace = 0 AND page_title LIKE "A%" /* AND page_title NOT REGEXP "_\\((season|series|\\d{4}(.\\d{4})?\\))|...
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 35}], "runningtime": "5.83"}
enwiki_p
SPI cases by day
null
SELECT revision.rev_id, DATE(str_to_date(revision.rev_timestamp, '%Y%m%d%H%i%s')) as day, CAST(REGEXP_SUBSTR(comment.comment_text ,'[0-9]+') AS INTEGER) as cases FROM revision INNER JOIN comment ON revision.rev_comment_id = comment.comment_id WHERE revision.rev_page = 70417517 or revision.rev_page = 67730765 G...
{"resultsets": [{"headers": ["line"], "rowcount": 0}], "runningtime": "0.04"}
enwiki
users, bots by edit count
null
SET @row_number = 0; select (@row_number:=@row_number + 1) as "#", CONCAT("[[User:", user_name,"|", IF(ipb_expiry LIKE "infinity", "<s>", ""), user_name, IF(ipb_expiry LIKE "infinity", "</s>", ""), "]]") as "suradnik", CONCAT("[[Special:Contributions/",user_name,"|",user_editcount,"]]") as "broj uređivan...
{"connection_id": 189748525}
hrwiki_p
Attempted edits to user pages of blocked users
Returns edit attempts that hit abuse filter 803 ("prevent new users from editing other's user pages") on user pages of blocked users. Only offending accounts (the ones that triggered the filter) that are not currently blocked are shown. Accounts that show up in the "offending user" column have a high probability of b...
WITH sock_template AS ( SELECT tl.tl_from FROM enwiki_p.templatelinks tl WHERE tl.tl_target_id IN (32197, 277052, 282063, 115252, 1968835) ) SELECT REPLACE(afl.afl_user_text, ' ', '_') AS 'Offending user', afl.afl_title AS 'Blocked user', CASE WHEN p.page_id IN (SELECT tl_from FROM sock_template) THEN 'Yes' ELSE...
{"resultsets": [{"headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"], "rowcount": 125}], "runningtime": "0.18"}
enwiki_p
Deleted pages breaking PAGESINCATEGORY (1 cat)
Pages whose rows in categorylinks weren't deleted when the pages were, for a single given category. This causes a miscount in {{PAGESINCATEGORY}} for the categories they're in, in such a way that purging the category page - the usual solution - doesn't fix it. (Speedy deletion-related categories are particularly pron...
SET @cat = 'Candidates for speedy deletion as spam'; SELECT DISTINCT log_namespace, log_title FROM logging_logindex JOIN categorylinks ON cl_from = log_page JOIN archive ON ar_namespace = log_namespace AND ar_title = log_title AND ar_page_id = log_page -- this filters out redirects left by moves WHERE cl_to = REPLACE(...
{"resultsets": [{"headers": ["lt_title"], "rowcount": 47}], "runningtime": "9.13"}
enwiki_p
Deleted pages breaking PAGESINCATEGORY (subcat)
Pages whose rows in categorylinks weren't deleted when the pages were, for direct subcategories of a given category. This causes a miscount in {{PAGESINCATEGORY}} for the categories they're in, in such a way that purging the category page - the usual solution - doesn't fix it. (Speedy deletion-related categories are ...
SET @parentcat = 'Speedy deletion'; SELECT DISTINCT log_namespace, log_title, GROUP_CONCAT(DISTINCT zc.cl_to SEPARATOR ' | ') AS cat FROM logging_logindex JOIN categorylinks AS zc ON zc.cl_from = log_page JOIN archive ON ar_namespace = log_namespace AND ar_title = log_title AND ar_page_id = log_page -- this filters ou...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "1.31"}
enwiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-bulgaria
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": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 10}, {"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 10}], "runningtime": "0.06"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-aruba
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": ["num", "Page title"], "rowcount": 100000}], "runningtime": "121.18"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-slovenia
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 ...
{"connection_id": 98493080}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-norway
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": ["num", "Page title"], "rowcount": 786168}], "runningtime": "748.58"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-ireland
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": [], "runningtime": "0.03"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-italy
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": ["users_with_editcount100", "distinct_pages", "distinct_wikidataitems", "distinct_properties", "el_to"], "rowcount": 1}], "runningtime": "1.12"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-india
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": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "0.51"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-peru
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": ["users_with_editcount100", "distinct_pages", "distinct_wikidataitems", "distinct_properties", "el_to"], "rowcount": 1}], "runningtime": "0.64"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-serbia
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": ["rc_timestamp", "rc_user_text", "page_title", "eu_entity_id", "eu_aspect", "eu_page_id", "rc_source", "rc_comment", "el_to"], "rowcount": 74}], "runningtime": "0.68"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-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": ["c", "actor_name"], "rowcount": 24}], "runningtime": "218.05"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-brazil
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": ["title", "id", "count"], "rowcount": 0}], "runningtime": "0.07"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-finland
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": ["title", "id", "count"], "rowcount": 0}], "runningtime": "0.05"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-portugal
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(*)"], "rowcount": 1}], "runningtime": "4.12"}
commonswiki_p
(from 2022) SDC edits by user and edit summary #WMSE-WLM-suriname
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": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "1.67"}
commonswiki_p
Userspace pages of non-existent users
null
SELECT CONCAT('https://hu.wikipedia.org/wiki/User:', p.page_title) AS URL FROM page p LEFT JOIN 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) -- Exclude IPv6 ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 1}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 8}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 32}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcoun...
huwiki_p
Suspicious mainspace out-of-process deletions
null
select replace(concat("[[:{{subst:ns:",log_namespace,"}}:",replace(log_title,"_"," "),"]]"),":{{subst:ns:0}}:",":") as 'Page', (select actor_name from actor_logging where actor_id=log_actor) as "Deleting admin", comment_text as "Edit summary", log_timestamp as "Timestamp" from logging_logindex join comment_logging on c...
{"resultsets": [{"headers": ["gu_id", "gu_name", "gu_home_db", "gu_email", "gu_email_authenticated", "gu_salt", "gu_password", "gu_locked", "gu_hidden_level", "gu_registration", "gu_password_reset_key", "gu_password_reset_expiration", "gu_auth_token"], "rowcount": 10}], "runningtime": "0.05"}
enwiki_p
Suspicious mainspace G6 deletions
null
select log_title as 'Page', (select actor_name from actor_logging where actor_id=log_actor) as "Deleting admin", comment_text as "Edit summary", DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:%i') as "Timestamp" from logging_logindex q join comment_logging on comment_id=log_comment_id where log_type="delete" and log_action="...
{"resultsets": [{"headers": ["gu_id", "gu_name", "gu_home_db", "gu_email", "gu_email_authenticated", "gu_salt", "gu_password", "gu_locked", "gu_hidden_level", "gu_registration", "gu_password_reset_key", "gu_password_reset_expiration", "gu_auth_token"], "rowcount": 1}], "runningtime": "0.06"}
enwiki_p
Top NPP reviewers (redirects only) 2022
null
SELECT actor_name AS `Reviewer`, COUNT(IF(logtemp.page_is_redirect = 1, 1, NULL)) as `Redirect Reviews` FROM ( SELECT distinct log_actor, log_page, page_is_redirect FROM logging_userindex JOIN page ON page_title = log_title AND page_namespace = log_namespace WHERE log_timestamp BET...
{"resultsets": [{"headers": ["url", "COUNT(*)"], "rowcount": 0}], "runningtime": "0.08"}
enwiki_p
Testi per numero di pagine
null
SELECT page_title, COUNT(*) FROM pagelinks, page WHERE pl_from = page_id AND page_namespace = 0 AND page_is_redirect = 0 AND pl_namespace = 108 AND pl_from IN (SELECT page_id FROM page, categorylinks WHERE page_namespace = 0 AND page_id = cl_from AND (cl_to LIKE 'Testi_SAL_75%')) AND pl_from IN (SELECT page_id FROM pa...
{"resultsets": [{"headers": ["tl_target_id", "lt_title", "count(lt.lt_title)"], "rowcount": 103}], "runningtime": "18.31"}
itwikisource_p
Unreviewed disambiguation pages
null
SELECT page_title FROM page join page_props on pp_page = page_id join pagetriage_page ON ptrp_page_id = page_id WHERE page_is_redirect=0 AND page_namespace=0 and ptrp_reviewed = 0 and pp_propname = 'disambiguation' limit 100;
{"resultsets": [{"headers": ["concat('* [[', page_title, ']]')"], "rowcount": 1000}], "runningtime": "2.38"}
enwiki
Experienced users and newcomers
null
SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced SET @minTenureDays = 365; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced SET @eventDate = '20230101000000'; -- 3) see @minTenureDays SELECT user_name, user_editcount, ...
{"resultsets": [{"headers": ["LEFT(log_timestamp, 4)", "COUNT(*)"], "rowcount": 18}], "runningtime": "666.45"}
commonswiki
Indefinitely globally blocked IPs
null
SELECT gb_address, gb_by, gb_reason, gb_timestamp, gb_anon_only, gb_expiry FROM globalblocks WHERE gb_expiry = 'infinity' ORDER BY gb_timestamp ASC;
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
centralauth_p
wikidata: counts of all uk descriptions
~1000 sec
# https://doc.wikimedia.org/Wikibase/master/php/docs_storage_terms.html SELECT CONCAT('http://www.wikidata.org/entity/Q', MIN(wbt_item_terms.wbit_item_id)) as Q_id, wbt_text.wbx_text as descr, count(*) as cnt FROM wbt_item_terms JOIN wbt_term_in_lang on wbt_item_terms.wbit_term_in_lang_id = wbt_term_in_lang.wbt...
{"resultsets": [{"headers": ["Nome", "Registro", "N\u00ba edi\u00e7\u00f5es", "\u00daltima ed."], "rowcount": 32155}], "runningtime": "30.56"}
wikidatawiki_p
Admin blocks in 2023
Count of redirect in the enwiki new pages patrol qhttps://quarry.wmcloud.org/query/66460ueue grouped by user that created them.
SELECT actor_name, count(log_id) FROM logging JOIN actor ON log_actor = actor_id WHERE log_type = "block" AND log_timestamp > 20230000000000 GROUP BY actor_name
{"resultsets": [{"headers": ["page_title", "InitialSize", "CurrentSize", "Growth", "rev_timestamp", "datecount", "ContributorCount"], "rowcount": 1182}], "runningtime": "53.02"}
enwiki_p
Dab pages with 1 link
null
SELECT page_title, pl_title, COUNT(*) as links FROM page JOIN pagelinks ON pl_from = page_id JOIN categorylinks ON page_id = cl_from AND cl_to = "All_disambiguation_pages" WHERE page_namespace = 0 AND page_is_redirect = 0 AND pl_namespace = 0 GROUP BY page_title HAVING links < 2
{"resultsets": [{"headers": ["page_title", "InitialSize", "CurrentSize", "Growth", "rev_timestamp", "datecount", "ContributorCount"], "rowcount": 1179}], "runningtime": "216.98"}
enwiki_p
Empty
~2.8 sec per 1000 items
SELECT DISTINCT CONCAT('http://www.wikidata.org/entity/Q', wbt_item_terms.wbit_item_id) as Q_id FROM wbt_item_terms JOIN wbt_term_in_lang on wbt_item_terms.wbit_term_in_lang_id = wbt_term_in_lang.wbtl_id AND wbtl_type_id = 2 JOIN wbt_text_in_lang on wbt_term_in_lang.wbtl_text_in_lang_id = wbt_text_...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 32}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
wikidatawiki_p
TeWiki- Last six months users whose edits>500
null
WITH rev_filter AS ( SELECT rev_actor, COUNT(DISTINCT(rev_timestamp)) as last_twoyear_edits FROM revision WHERE rev_timestamp > '20201001000000' AND rev_timestamp < '20221031235959' GROUP BY rev_actor ), edits_filter AS( SELECT DISTINCT(actor_name) as username, last_twoyear_edits, user_editcount as alltime_e...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 31}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 35}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
tewiki_p
Graph edits by permissions
null
select ug_group, count(cl_from) from categorylinks join revision on rev_page = cl_from inner join page on cl_from = page_id and page_namespace = 10 join actor on rev_actor = actor_id join user_groups on actor_user = ug_user where cl_to = "Pages_with_disabled_graphs" group by ug_group
{"resultsets": [{"headers": ["user_name", "user_registration"], "rowcount": 10}], "runningtime": "11.67"}
enwiki_p
Articles with talk page redirects
null
SELECT concat( "[https://en.wikipedia.org/w/index.php?title=Talk:{{urlencode:", p.page_title, "}}&redirect=no Talk:", p.page_title, "] redirects to [[Talk:", r.rd_title, "]]" ) AS "Articles with talk page redirects" FROM redirect r INNER JOIN page p ON p.page_id = r.rd_from INNER JOIN page mp ON p.page_ti...
{"resultsets": [], "runningtime": "0.04"}
enwiki
Basic page metadata for decorating dump-based lists
null
USE skwiki_p; SELECT p.page_id, (SELECT pp_value FROM page_props WHERE pp_page = page_id AND pp_propname = 'wikibase_item') as wb_item, p.page_title, p.page_len, (SELECT count(*) FROM langlinks WHERE ll_from = p.page_id) as iw_count, count(r.rev_id) as rev_count, rf.rev_timestamp as rev_fir...
{"resultsets": [{"headers": ["page_title"], "rowcount": 472}], "runningtime": "3.35"}
skwiki
Name (Acronym)
null
select page_title from page where page_namespace=0 and page_is_redirect=0 and ( page_title regexp "([A-Z]).+_([A-Z]).+\\(\\1\\2\\)" or page_title regexp "([A-Z]).+?_([A-Z]).+?_([A-Z]).+?\\(\\1\\2\\3\\)" or page_title regexp "([A-Z]).+?_([A-Z]).+?_([A-Z]).+?_([A-Z]).+?\\(\\1\\2\\3\\4\\)" or page_title regexp "(...
{"resultsets": [{"headers": ["\u6a21\u677f", "\u94fe\u63a5\u547d\u540d\u7a7a\u95f4", "\u94fe\u63a5\u540d\u79f0"], "rowcount": 12991}], "runningtime": "14.46"}
enwiki_p
Orphaned archive pages
create a list of talk pages that are redirects with non-redirect archive subpages, mainly to find pages that have been moved improperly without their subpages For simplicity sakes, the archive subpages must follow the ' /Archive %(counter)d ' format to be picked up
select distinct CONCAT("{{User:Aidan9382//adle|1=Talk:",SUBSTR(page_title,1,LENGTH(page_title)-10),"}}") as basepage_title from page where page_namespace = 1 and page_is_redirect = 0 and page_title rlike "/Archive_[1-9]$" -- Covers enough cases and exists ( select 1 from page as basepage where basepage.page_names...
{"resultsets": [{"headers": ["count_number", "new_page_title"], "rowcount": 193}], "runningtime": "0.34"}
enwiki
Non-existant titles with archive subpages
List of archive pages following the format "Archive %(counter)d" under deleted pages
select distinct CONCAT("{{User:Aidan9382//adle|1=Talk:",SUBSTR(page_title,1,LENGTH(page_title)-10),"}}") as basepage_title from page where page_namespace = 1 and page_is_redirect = 0 and page_title rlike "/Archive_[1-9]$" -- Dont bother with more, too rare to care and not exists ( select 1 from page as basepage w...
{"resultsets": [{"headers": ["line"], "rowcount": 10}], "runningtime": "0.10"}
enwiki
Pages with copvio template not listed on WP:C
null
SELECT DISTINCT page.page_title, revision.rev_timestamp FROM page INNER JOIN revision ON page.page_latest = revision.rev_id INNER JOIN templatelinks ON page_id = tl_from INNER JOIN linktarget ON tl_target_id = lt_id WHERE lt_title IN ("Jogsértő", "Jogserto", "Copvio") AND page_namespace = 0 AND page.page_title NOT IN...
{"resultsets": [{"headers": ["CONCAT(\"* [[\",article.page_title, \"]]\")"], "rowcount": 6557}], "runningtime": "513.55"}
huwiki_p
CSD G8 talkpages
Count of articles in the enwiki new pages patrol queue grouped by user that created them.
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": ["actor_name", "files"], "rowcount": 21}], "runningtime": "0.12"}
enwiki
Commons files with FBMD in metadata (01.03.2022—09.03.2022)
files likely downloaded from Facebook and uploaded to Commons between between 01.03.2022 to 09.03.2022
USE commonswiki_p; SELECT img_name, img_timestamp, img_metadata FROM image WHERE img_timestamp > 20220301000000 AND img_timestamp < 20220309240000 AND img_metadata REGEXP 'FBMD*'
{"resultsets": [{"headers": ["CONCAT(\"Category:\",page_title,\"\")"], "rowcount": 3788}], "runningtime": "4.84"}
commonswiki
Pagine SAL 75% per data
null
SELECT page_title,DATE_FORMAT(rev_timestamp, '%d/%m/%Y') FROM page JOIN categorylinks ON page_id = cl_from JOIN revision ON rev_page = page_id AND rev_parent_id = 0 WHERE page_namespace = 108 AND cl_to = 'Pagine_SAL_75%' ORDER BY rev_timestamp;
{"resultsets": [{"headers": ["reason", "counter"], "rowcount": 25821}], "runningtime": "27.21"}
itwikisource_p
NLC Corruptted
Count the number of files and the total sizes of collections uploaded to Commons from NLC as listed at [[c:Commons:Library_back_up_project]].
#DESCRIBE page; # select * from image where img_actor = 26878372 and img_width = 0 and img_name LIKE "NLC%"; select * from page where page_title LIKE "NLC416-06jh009180-17061%"
{"resultsets": [{"headers": ["page_id", "pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 50}], "runningtime": "0.12"}
commonswiki
NLC Count
Count the number of files and the total sizes of collections uploaded to Commons from NLC as listed at [[c:Commons:Library_back_up_project]].
# DESCRIBE page; select substring(img_name, 4,3) as db, count(*), sum(img_size) from image where img_actor = 26878372 and img_name LIKE "NLC%" group by db; select "Total" as "#", count(*), sum(img_size) from image where img_actor = 26878372 and img_name LIKE "NLC%"; select "Commons Total" as "#", count(*), sum(img_size...
{"resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 0}], "runningtime": "0.04"}
commonswiki
Pages with delete template with no corresponding discussion page
null
SELECT DISTINCT page.page_title, revision.rev_timestamp FROM page INNER JOIN revision ON page.page_latest = revision.rev_id INNER JOIN templatelinks ON page_id = tl_from INNER JOIN linktarget ON tl_target_id = lt_id WHERE lt_title IN ("Törlés", "Törlés2", "Törlésre_jelölve") AND CONCAT('Törlésre_javasolt_lapok/',page....
{"connection_id": 113970382}
huwiki_p
Poorly ordered archives
Missing Archive 1 but has Archive [02-9] or double-digit archives (In a seperate query due to laziness) (basically anything thats not archive 1), normally indicates poor copying of a template without fixing parameters or poor post-move archive management
select distinct CONCAT("{{User:Aidan9382//adle|1=Talk:",SUBSTR(page_title,1,LENGTH(page_title)-10),"}}") as basepage_title from page where page_namespace = 1 and page_is_redirect = 0 and page_title rlike "/Archive_[2-9]$" -- Covers enough cases and not exists ( select 1 from page as basepage where basepage.page_n...
{"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 1}], "runningtime": "0.18"}
enwiki
Unreviewed new redirects by user
Count of articles in the enwiki new pages patrol queue grouped by user that created them.
SELECT actor_name, page_title, COUNT(*) FROM pagetriage_page JOIN page ON ptrp_page_id = page_id JOIN revision ON rev_page = page_id JOIN actor ON actor_id = rev_actor WHERE ptrp_reviewed = 0 AND page_namespace = 0 AND page_is_redirect = 1 AND rev_parent_id = 0 GROUP BY actor_name ORDER BY...
{"resultsets": [{"headers": ["Offending user", "Blocked user", "Blocked user tagged sock?", "Blocked user block time", "Most recent interaction"], "rowcount": 757}], "runningtime": "59.93"}
enwiki
Attempted edits to user pages of blocked users
Returns edit attempts that hit abuse filter 803 ("prevent new users from editing other's user pages") on user pages of blocked users. Only offending accounts (the ones that triggered the filter) that are not currently blocked are shown. Accounts that show up in the "offending user" column have a high probability of b...
WITH sock_template AS ( SELECT tl.tl_from FROM frwiki_p.templatelinks tl WHERE tl.tl_target_id IN (32197, 277052, 282063, 115252, 1968835) ) SELECT REPLACE(afl.afl_user_text, ' ', '_') AS 'Offending user', afl.afl_title AS 'Blocked user', CASE WHEN p.page_id IN (SELECT tl_from FROM sock_template) THEN 'Yes' ELSE...
{"resultsets": [{"headers": ["totale", "page_count_error", "weight"], "rowcount": 1}, {"headers": ["page_id", "page_namespace", "page_title", "linter_params", "totale"], "rowcount": 43}], "runningtime": "0.13"}
frrwiki_p
Size of uploads by Fæ
This count based purely on filename and uploader, a handy guide to size of the total size uploads presuming bot accounts are not the actual uploaders for some projects.
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 = "Nintendofan885";
{"resultsets": [{"headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace", "tl_target_id", "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}], "run...
commonswiki_p
fork: enwiki: Talk pages called Something/Archive A, B, etc. (by Certes)
null
SELECT page_title FROM page WHERE page_namespace = 1 AND page_is_redirect = 0 AND page_title REGEXP "/Archive_[A-Z]$" ORDER BY page_title
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 93}], "runningtime": "0.36"}
enwiki_p
verlinkte Weiterleitungen mit Anzahl Verlinkungen
verlinkte Weiterleitungen mit Anzahl Verlinkungen
SELECT CONCAT('[{{fullurl:', REPLACE(WL.page_title, '_', ' '), '&redirect=no}} ', REPLACE(WL.page_title, '_', ' '), ']') AS Weiterleitung, CONCAT('[[', REPLACE(NACH.rd_title, '_', ' '), ']]') AS Ziel, COUNT(VONPAGE.page_id) AS "Anzahl Links auf Weiterleitung", CONCAT('[[', GROUP_CONCAT(REPLACE(VONP...
{"resultsets": [{"headers": ["page_title"], "rowcount": 6}], "runningtime": "58.65"}
dewiki_p
enWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22)
New #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" The last length size (in the #SheSaid campaign peri...
SELECT CONCAT('# [[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article" /*, actor_name AS "Creator", CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ', MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date creat...
{"resultsets": [], "runningtime": "0.03"}
enwikiquote_p
Count fixes in Wikipedia:Correct typos in one click
null
SELECT COUNT(*) FROM revision LEFT JOIN comment on rev_comment_id=comment_id WHERE rev_page in (60533818,62053073,61925999,61926002,61926007,61926012,61926014,62002342,62002343,62002345,62002348,62002349,61925967,62057349,61925968,61925974,61925980,61925985,61925989,61925991,61925997) AND comment_text LIKE "% fixed!";
{"resultsets": [{"headers": ["user_talk"], "rowcount": 1831}], "runningtime": "960.37"}
enwiki_p
new-to-commons sound logo voters
null
SELECT DISTINCT user_name, user_registration FROM revision_userindex JOIN actor_revision ON rev_actor = actor_id JOIN `user` ON actor_user = user_id WHERE rev_page = ( SELECT page_id FROM page WHERE page_namespace = 4 AND page_title = "Sound_Logo_Vote/Votes" ) AND user_registration > 202211150000...
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 12}, {"headers": ["page_title"], "rowcount": 7}], "runningtime": "0.69"}
commonswiki_p
Top 1000 pages with another topic at the base name
Pages called Foo (bar) which are widely read, where Foo is (or redirects to) a different article. There may be a case for moving Foo and putting a dab, or even Foo (bar), at that title. There may also be links to fix where an editor has erroneously linked to the base name but intended the qualified topic.
SELECT pl_title AS Qualified, Pb.page_title as Base FROM pagelinks JOIN page Pq ON Pq.page_namespace=0 AND Pq.page_title=pl_title JOIN page Pb ON Pb.page_namespace=0 AND Pb.page_title=SUBSTRING_INDEX(pl_title, "_(", 1) WHERE pl_from = (SELECT Pr.page_id FROM page Pr WHERE Pr.page_namespace=2 AND Pr.page_title="HostBot/...
{"resultsets": [{"headers": ["pl_title"], "rowcount": 9}], "runningtime": "10.61"}
enwiki_p
Vandalismebestrijdig nlwiki
null
# 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 SELECT 'total...
{"resultsets": [{"headers": ["concat(\"[[\",page_title,\"]]\")", "redlinksCount"], "rowcount": 7460}], "runningtime": "8.80"}
nlwiki_p
sound logo votes by hour
null
SELECT LEFT(rev_timestamp, 10), COUNT(*) FROM revision_userindex WHERE rev_page = ( SELECT page_id FROM page WHERE page_namespace = 4 AND page_title = "Sound_Logo_Vote/Votes" ) AND rev_timestamp > 20221206000000 GROUP BY 1
{"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", ...
commonswiki_p
Large uploads on Commons by size
null
SELECT REPLACE(cl_to, "_", " ") AS "Category", FORMAT(COUNT(img_name), 'N0') AS "File count", ROUND(SUM(img_size/(1<<30))) AS "Size (GB)" FROM page JOIN image ON page_title = img_name JOIN categorylinks ON page_id = cl_from WHERE cl_to = "Flickr_images_reviewed_by_FlickreviewR_2" OR cl_to = "PD_NASA" OR cl_to = "Fi...
{"resultsets": [{"headers": ["page_title"], "rowcount": 171}], "runningtime": "0.40"}
commonswiki_p
itWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22)
New #SheSaid WikiQuote 2022 campaign articles. on Italian WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
SELECT CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article", actor_name AS "Creator", CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ', MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created", ...
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "3.03"}
itwikiquote_p
enWikiquote: All new articles since 20221001
New articles. on Italian WikiQuote from 1-Ocotober-2022 This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" The latest version leverages the current date through the NOW() function and is set to examines ne...
SELECT (SELECT '#SheSaid' WHERE EXISTS(SELECT 'ọ' FROM comment_revision JOIN revision x ON x.rev_comment_id=comment_id WHERE x.rev_page=page_id AND comment_text RLIKE '.*#[Ss]he[...
{"resultsets": [{"headers": ["ips_row_id", "ips_item_id", "ips_site_id", "ips_site_page"], "rowcount": 5}], "runningtime": "0.05"}
itwikiquote_p
Vandalismbestrijding nlwiki
null
# 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 SELECT 'total...
{"resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data", "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_n...
nlwiki_p