title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Full 1 mo w/out rev count
null
USE enwiki_p; with recent_user_edits as ( select user.user_id, user.user_name, user.user_registration as acct_created, actor.actor_id, count(rc_id) as recent_rev_count from recentchanges join actor on recentchanges.rc_actor = actor.actor_id join user on actor.actor_user = user.user_id where rc_timest...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 6}], "runningtime": "71.22"}
enwiki
User id and counts for 30 days
null
USE enwiki_p; select user.user_id, count(rc_id) as recent_rev_count, count(revision.rev_id) as lifetime_rev_count from recentchanges join actor on recentchanges.rc_actor = actor.actor_id join user on actor.actor_user = user.user_id join revision on actor.actor_id = revision.rev_actor where rc_timestamp ...
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 79}, {"headers": ["page_namespace", "page_title", "cl_timestamp"], "rowcount": 735}], "runningtime": "10.81"}
enwiki
Commons file count per year
null
SELECT floor(img_timestamp/10000000000) as year, sum(1) as total, sum(img_media_type="BITMAP") as bitmap, sum(img_media_type="DRAWING") as drawing, sum(img_media_type="AUDIO") as audio, sum(img_media_type="VIDEO") as video, sum(img_media_type="OFFICE") as office, sum(img_media_type="3D")...
{"connection_id": 64415028}
commonswiki_p
redirect
null
SELECT * FROM redirect WHERE rd_from = 5399499; SELECT * FROM page WHERE page_id = 5399499
{"resultsets": [{"headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace", "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": 4}],...
zhwiki_p
Inactive IP talkpages
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
select CONCAT('[[User talk:', page_title, ']]') as user_talk, rev_timestamp from page join revision on rev_id = page_latest and rev_timestamp < '20170504' join actor on actor_user is null and actor_name = page_title where page_namespace = 3 and page_title like '123%' /* Temporary restriction to make query small enough ...
{"resultsets": [{"headers": ["Page"], "rowcount": 2131}], "runningtime": "69.97"}
enwiki
Total AfC reviews, last 7 days
** NOT including deleted articles **
select count(rc_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(rc_id),...
{"connection_id": 49544595}
enwiki_p
Reverted "newcomer task add link"
null
SET @add_link_tag = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'newcomer task add link'); SET @reverted_tag = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'mw-reverted'); SELECT ct_add.ct_rev_id FROM change_tag ct_add INNER JOIN change_tag ct_revert ON ct_add.ct_rev_id = ct_revert.ct_rev_id AND ct_rev...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 1}], "runningtime": "287.63"}
ruwiki_p
آب‌وهوا
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%آب‌وهوا%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 60}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 21}], "runningtime": "3.59"}
fawiki_p
آب و هوا
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%آب_و_هوا%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 56}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 21}], "runningtime": "0.70"}
fawiki_p
اقلیم
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%اقلیم%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["concat(\"* [[:en:Category:\",page_title,\"]]\")", "count(cl_from)"], "rowcount": 177}], "runningtime": "258.58"}
fawiki_p
drafts w/o draft template
null
SELECT /* u.user_editcount, count(p.page_id) */ p.page_title, p.page_id, r.rev_id, r.rev_actor, u.user_name, u.user_editcount, u.user_registration FROM page p, revision r, actor a, user u WHERE 1=1 /* AND page_title not like '%/%' */ /* AND page_title like 'A%' */ AND p.page_namespace = 118 AND p.page_id not in (SE...
{"resultsets": [{"headers": ["count", "antal"], "rowcount": 4}], "runningtime": "0.15"}
enwiki_p
Thanked people for 2021 frwiki
Most thanked people in 2021 Blame Mz7, SQL, and stwalkerster for this
USE frwiki_p; SELECT log_title, COUNT(log_id) FROM logging_logindex WHERE log_type = "thanks" AND log_timestamp >= "20220000000000" AND log_timestamp <= "20230000000000" GROUP BY log_title ORDER BY 2 DESC
{"resultsets": [{"headers": ["actor_user IS NULL", "actor_name", "COUNT(*)"], "rowcount": 4525}], "runningtime": "43.01"}
frwiki
test2
null
SELECT * FROM ipblocks WHERE 1=1 AND ipb_user = 0 AND ipb_parent_block_id is null -- AND ipb_range_start is not null -- and ipb_address like '115.166.32.0%' order by ipb_timestamp desc limit 100
{"resultsets": [{"headers": ["page_namespace", "page_title", "linter_cat", "linter_params"], "rowcount": 139}], "runningtime": "4.61"}
enwiki_p
short drafts
null
SELECT /* u.user_editcount, count(p.page_id) */ p.page_title, p.page_id, r.rev_id, r.rev_actor, a.actor_name, u.user_editcount, u.user_registration FROM page p, revision r, actor a LEFT JOIN user u on a.actor_user = u.user_id WHERE 1=1 /* AND page_title not like '%/%' */ /* AND page_title like 'A%' */ AND p.page_na...
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "actor_id", "actor_user", "actor_name"], "rowcount": 79}], "runningtime": "2.99"}
enwiki_p
drafts w/o draft template bl
null
SELECT /* u.user_editcount, count(p.page_id) */ p.page_title, p.page_id, r.rev_id, r.rev_actor, a.actor_name, u.user_editcount, u.user_registration FROM page p, revision r, actor a LEFT JOIN user u on a.actor_user = u.user_id WHERE 1=1 /* AND page_title not like '%/%' */ /* AND page_title like 'A%' */ AND p.page_na...
{"resultsets": [{"headers": ["log_timestamp", "actor_name", "log_title", "comment_text", "log_params"], "rowcount": 248}], "runningtime": "3.42"}
enwiki_p
Number of edits and editors per month on Wikidata Lexemes
null
SELECT SUBSTR(DATE(`revision_userindex`.`rev_timestamp`), 1, 7) AS `month`, COUNT(*) AS `edits`, COUNT(DISTINCT `actor_name`) AS `count` FROM `revision_userindex`, `page`, `actor_revision` WHERE `revision_userindex`.`rev_page` = `page`.`page_id` AND `revision_userindex`.`rev_actor` = `actor_revision`.`actor_id` ...
{"resultsets": [{"headers": ["_item", "_desc"], "rowcount": 2327}], "runningtime": "5.30"}
wikidatawiki_p
منشا
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%منشا%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["cl_from", "cl_to"], "rowcount": 3725}], "runningtime": "2.81"}
fawiki_p
-
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%-%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 96}], "runningtime": "6.63"}
fawiki_p
Date format edit summaries (recent)
Edit summaries of "date formats per [[MOS:DATEFORMAT]] by [[WP:MOSNUMscript|script]]"
SELECT COUNT(*), MIN(rc_timestamp) FROM recentchanges JOIN comment_recentchanges ON comment_id = rc_comment_id AND comment_text like "%date formats per [[MOS:DATEFORMAT]] by [[WP:MOSNUMscript|script]]%" /*WHERE rc_timestamp >= "20220508"*/
{"resultsets": [{"headers": ["total", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 1}], "runningtime": "22.92"}
enwiki_p
Date format edit summaries (all)
Edit summaries of "date formats per [[MOS:DATEFORMAT]] by [[WP:MOSNUMscript|script]]"
SELECT COUNT(*) FROM revision JOIN comment_revision ON comment_id = rev_comment_id AND comment_text like "%date formats per [[MOS:DATEFORMAT]] by [[WP:MOSNUMscript|script]]%" WHERE rev_timestamp between '201412101442' and '2015'
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 93}], "runningtime": "2.37"}
enwiki_p
Count noindex pages by namespace
null
SELECT page_namespace, pp_value, COUNT(*) FROM page JOIN page_props ON pp_page = page_id AND pp_propname = 'noindex' GROUP BY page_namespace, pp_value
{"resultsets": [{"headers": ["CONCAT(\"MediaWiki:\", page_title)"], "rowcount": 114}], "runningtime": "0.58"}
enwiki_p
Sottodominî frequenti nella Wikipedia in italiano
Collegamenti dalle voci (namespace principale) comunque generati (sia espliciti sia da template).
USE cawiki_p; SELECT COUNT(*), SUBSTRING_INDEX(el_index, '.', 3) AS sito FROM externallinks, page WHERE el_from = page_id AND page_namespace = 0 GROUP BY 2 HAVING COUNT(*) > 10 ORDER BY 1 DESC;
{"resultsets": [{"headers": ["CONCAT(\"[[Special:ChangeContentModel/MediaWiki:\", page_title, \"]]\")"], "rowcount": 114}], "runningtime": "0.19"}
cawiki_p
File links on my sandbox1 page
Extract page links to files from [[:en:User:Ahecht/sandbox1]]
select pl_title from pagelinks where pl_from = 70693734 and pl_namespace = 6
{"resultsets": [{"headers": ["user", "patrol_cnt"], "rowcount": 1093}], "runningtime": "2.29"}
enwiki_p
Counts of Liz's page deletion log entries, grouped by type
null
SELECT SUBSTR(comment_text, 1, 12), COUNT(*) FROM logging_userindex JOIN comment ON comment_id = log_comment_id WHERE log_actor = ( SELECT actor_id FROM actor JOIN user ON actor_user = user_id WHERE user_name = 'Liz' ) AND log_type = 'delete' AND log_action = 'delete' GROUP BY SUBSTR(comment_text, 1, 12) OR...
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 13}], "runningtime": "0.06"}
enwiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 16}], "runningtime": "0.07"}
enwiki_p
jvws - Most active editors on Kompetisi Wikisource 2022
Number of edits in page namespace.
# https://id.wikimedia.org/wiki/Kompetisi_Wikisource_2022 SELECT actor.actor_name AS naraguna, COUNT(actor.actor_name) AS gunggung FROM page JOIN revision ON page.page_id=revision.rev_page JOIN actor ON revision.rev_actor=actor.actor_id WHERE page.page_namespace=250 # Mandhala aran: "Kaca:" AND revision.rev_timestamp...
{"resultsets": [{"headers": ["filename", "page_id", "timestamp", "uploader", "template"], "rowcount": 75261}], "runningtime": "70.90"}
jvwikisource_p
Vandalismebestrijding nlwiki (IP-patrolling)
Vandalismebestrijding, IP-controle 12:55 (CEST 10 mei 2022 1180 ongecontroleerde/ongemarkeerden
# 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": ["page_title"], "rowcount": 114}], "runningtime": "0.18"}
nlwiki_p
(Updated May 10 2022) zhwiki users having over 500 edits + all bots, sorted by edit count
null
SELECT ss_total_edits FROM site_stats; SELECT SUM(user_editcount) FROM user WHERE user_editcount < 500; SELECT user.user_id AS user_id, user.user_name AS user_name, user.user_editcount AS user_editcount, CASE WHEN (ug.user_admin > 0 OR ue.user_admin > 0) THEN 1 ELSE 0 END AS user_admin, CASE WHEN (ug.user_bot ...
{"resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 0}], "runningtime": "0.05"}
zhwiki_p
Vandalismebestrijding nlwiki (Ip-patrolling)
IP-controle (vandalismebestrijding) 934 10 mei 2022 16:37 (CEST)
# 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": ["cat1", "title"], "rowcount": 51}], "runningtime": "15.56"}
nlwiki_p
Pages created in DE in 2021 by Gender
Biography pages created in 2021 in in the German Wikipedia. Note this does not include pages deleted.
with new_pages as ( SELECT rev_timestamp, page_title, page_id FROM revision r JOIN page p ON p.page_id = r.rev_page WHERE r.rev_parent_id = 0 AND p.page_namespace = 0 AND r.rev_timestamp BETWEEN 20210000000000 AND 20219999999999 ) SELECT cl_to category, count(1) pages FROM categorylinks cl JOIN new_pages np ON np.p...
{"resultsets": [{"headers": ["ss_total_edits"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_editcount", "user_admin", "user_bot"], "rowcount": 811}], "runningtime": "7.19"}
dewiki_p
Longest titles in dewiki
null
SELECT REPLACE(page_title, '_', ' ') AS 'Longest ns0 page title', CHAR_LENGTH(page_title) AS 'Length' FROM page WHERE page_namespace = 0 ORDER BY CHAR_LENGTH(page_title) DESC LIMIT 1; SELECT REPLACE(page_title, '_', ' ') AS 'Longest article title', CHAR_LENGTH(page_title) AS 'Length' FROM page WHERE ...
{"resultsets": [{"headers": ["actor_name", "count(log_actor)"], "rowcount": 13}], "runningtime": "2.56"}
dewiki_p
GhostInTheMachine's deleted contributions
Deleted contributions to enwiki by [[User:GhostInTheMachine]]
SELECT archive_userindex.ar_timestamp, archive_userindex.ar_minor_edit, archive_userindex.ar_namespace, archive_userindex.ar_title FROM archive_userindex JOIN actor_archive ON actor_id = ar_actor WHERE actor_name = 'GhostInTheMachine' ORDER BY ar_timestamp DESC;
{"resultsets": [{"headers": ["rd_from", "rd_namespace", "rd_title", "rd_interwiki", "rd_fragment", "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"], "rowco...
enwiki
Burwell U.S. coins
A list of all Wikimedia Commons files that include "Burwell" in the metadata. Burwell and Burwell is a contractor used by the U.S. mint to take photographs of coins, and its photographs are protected by copyright.
SELECT CONCAT("* [[:File:", img_name, "]]") FROM image WHERE INSTR(img_metadata, "Burwell") > 0 AND img_media_type = "BITMAP"
{"resultsets": [{"headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"], "rowcount": 107}], "runningtime": "24.57"}
commonswiki_p
چطور
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%چطور%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 10}, {"headers": ["page_title"], "rowcount": 10}], "runningtime": "25.84"}
fawiki_p
Main namespace page links from a page
Main namespace internal links to specified article. Helps in strengthening the team contributing to a prominent article and its links
SELECT CONCAT("[[",REPLACE(page_title,"_"," "),"]]") as pagelink, page_len FROM page Where page_namespace=0 and page_title in ( SELECT pl_title FROM page, pagelinks Where page_title='ఆంధ్రప్రదేశ్' AND pl_from_namespace = 0 AND pl_from =page_id AND pl_namespace=0) ORDER BY page_len DESC LIMIT 1000
{"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": 1595}], "runningtime": "3.05"}
tewiki_p
Talkpage semis on enwiki
null
SELECT talk.page_title, pr_expiry FROM page_restrictions LEFT JOIN page talk ON talk.page_id = pr_page WHERE talk.page_namespace = 1 AND talk.page_is_redirect = 0 AND pr_type = "edit" AND pr_level = "autoconfirmed" AND (talk.page_title NOT LIKE "_%/%" OR EXISTS (SELECT 1 -- Edge case: Article has / in title ...
{"resultsets": [{"headers": ["page_namespace", "concat(\"Template:\",page_title)", "cl_timestamp"], "rowcount": 21}], "runningtime": "0.08"}
enwiki_p
Overprotected talkpages on enwiki
null
SELECT article.page_title, articlepr.pr_expiry, article.page_is_redirect, talkpr.pr_expiry, talk.page_is_redirect FROM page_restrictions talkpr LEFT JOIN page talk ON talk.page_id = talkpr.pr_page LEFT JOIN page article ON article.page_title = talk.page_title JOIN page_restrictions articlepr ON articlepr.pr_pa...
{"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 6}, {"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 11}], "runningtime": "4.03"}
enwiki_p
Page links updated in namespace before date
null
SELECT * FROM page
{"resultsets": [{"headers": ["page_title"], "rowcount": 83}], "runningtime": "0.49"}
enwiki
Non-fungible token page selection
null
WITH selection as ( SELECT rev_id, page_title, page_namespace, comment_text, actor_name, rev_timestamp, rev_minor_edit, rev_deleted, rev_len FROM revision LEFT JOIN page ON rev_page = page_id LEFT JOIN comment ON rev_comment_id = comment_id LEFT JOIN actor ON rev_actor = actor_id ) SELECT db1.page_ti...
{"resultsets": [{"headers": ["tl_title", "counting"], "rowcount": 165}], "runningtime": "0.32"}
enwiki
Fall of Kabul (2021) page selection
null
WITH selection as ( SELECT rev_id, page_title, page_namespace, comment_text, actor_name, rev_timestamp, rev_minor_edit, rev_deleted, rev_len FROM revision LEFT JOIN page ON rev_page = page_id LEFT JOIN comment ON rev_comment_id = comment_id LEFT JOIN actor ON rev_actor = actor_id ) SELECT db1.page_ti...
{"resultsets": [{"headers": ["page_title"], "rowcount": 580}], "runningtime": "0.71"}
enwiki
Australia page selection
null
WITH selection as ( SELECT rev_id, page_title, page_namespace, comment_text, actor_name, rev_timestamp, rev_minor_edit, rev_deleted, rev_len FROM revision LEFT JOIN page ON rev_page = page_id LEFT JOIN comment ON rev_comment_id = comment_id LEFT JOIN actor ON rev_actor = actor_id ) SELECT db1.page_ti...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 62}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 9}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 21}], "runningtime": "2.42"}
enwiki
COVID-19 pandemic page selection
null
WITH selection as ( SELECT rev_id, page_title, page_namespace, comment_text, actor_name, rev_timestamp, rev_minor_edit, rev_deleted, rev_len FROM revision LEFT JOIN page ON rev_page = page_id LEFT JOIN comment ON rev_comment_id = comment_id LEFT JOIN actor ON rev_actor = actor_id ) SELECT db1.page_ti...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 60}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 21}], "runningtime": "0.67"}
enwiki
AFC for last 7 faus5
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 / count...
{"resultsets": [{"headers": ["date", "reviews", "accepts", "declines", "rejects", "accept %", "decline %", "reject %"], "rowcount": 31}], "runningtime": "17.54"}
enwiki
Active users with userpages redirecting on enwiki
null
SELECT DISTINCT page_title, rd_namespace, rd_title FROM recentchanges INNER JOIN actor ON actor_id = rc_actor INNER JOIN page ON page_title = REPLACE(actor_name, " ", "_") INNER JOIN redirect ON rd_from = page_id WHERE page_namespace = 2 AND rd_namespace != 2 AND rd_namespace != 3
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 2193}], "runningtime": "15.14"}
enwiki_p
Vandalismebestrijding nlwiki (IP-patrolling)
Ip-controle, 754 open, 12 mei 2022 13:52 (CEST)
# 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": ["actor_name", "count(*)"], "rowcount": 286}], "runningtime": "1.07"}
nlwiki_p
ukwiki most rollbacked pages
null
select p.page_namespace, p.page_title, count(distinct r.rev_actor) as unique_rollbacks, count(*) as rollbacks from revision_userindex r join change_tag ct on ct.ct_rev_id = r.rev_id join change_tag_def ctd on ct.ct_tag_id = ctd.ctd_id join page p on r.rev_page = p.page_id where ctd.ctd_name in ( 'mw-undo', ...
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 49}], "runningtime": "6.83"}
ukwiki_p
Most thanking/thanked users (total, last year) on cswiki
null
USE cswiki_p; -- Most thanked, total SELECT log_title as thanked, COUNT(*) as count FROM logging WHERE log_type = "thanks" GROUP BY log_title ORDER BY count DESC, log_title LIMIT 100; -- Most thanking, total SELECT actor_name as thanking, COUNT(*) as count FROM logging,...
{"resultsets": [{"headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace", "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}],...
cswiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["cat_title", "cat_pages", "cat_id"], "rowcount": 1}], "runningtime": "3.56"}
enwiki_p
Commons: Distribution of rc-categorize (Corrected)
For https://phabricator.wikimedia.org/T307328
select count(*), 'categorize-hiddencat' as _query from recentchanges join page on page_namespace=rc_namespace AND page_title=rc_title join page_props on pp_page = page_id where rc_source = 'mw.categorize' and pp_propname = 'hiddencat' UNION ALL select count(*), 'categorize-all' as _query from recentchanges where rc_s...
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "2.01"}
commonswiki
Frwiki Talk:*/À_faire
null
SELECT page_namespace, page_title, SUBSTRING_INDEX(page_title,'/À_faire',1) FROM page talkpage WHERE talkpage.page_title LIKE '%/À_faire' AND talkpage.page_namespace IN (1,5,11,15,101,119,711,829) AND (NOT EXISTS (SELECT 1 FROM page mainpage WHERE mainpage.page_namespace = talkpage.page_namespace-1 AND mainpage...
{"resultsets": [{"headers": ["page_namespace", "COUNT(*)"], "rowcount": 9}], "runningtime": "0.65"}
frwiki_p
nlwiki species-redirects to re-categorize
null
SELECT p3.page_title AS rd_from, rd_title, t.cat_title AS cat FROM categorylinks cl2, page p3, ( SELECT DISTINCT p2.page_title AS cat_title, p1.page_title AS subcat_title FROM page p1, revision, categorylinks cl1, page p2 WHERE p1.page_namespace=14 AND p1.page_title NOT REGEXP '^Wikipedia:' AND p2.p...
{"resultsets": [{"headers": ["ips_item_id"], "rowcount": 10}], "runningtime": "0.05"}
nlwiki
Vandalismebestrijding nlwiki
Ip-controle, 374x
# 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": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 10}], "runningtime": "0.06"}
nlwiki_p
test
null
SELECT * FROM page_assessments LIMIT 10
{"resultsets": [{"headers": ["iwl_title", "P1612", "CONCAT(\"\\\"\", REPLACE(page_title, \"_\", \" \"), \"\\\"\")"], "rowcount": 63}], "runningtime": "0.16"}
enwiki
Perry
null
SELECT page_title, cl_to, pa_class FROM page JOIN categorylinks ON cl_from = page_id JOIN page_assessments ON pa_page_id = page_id WHERE cl_to = "Nintendo_3DS_games" AND (pa_class = "Stub" OR pa_class = "Start") AND page_namespace = 0 GROUP BY page_title
{"resultsets": [{"headers": ["CONCAT(\"Q\",ips_item_id)", "Lhi", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 230}, {"headers": ["CONCAT(\"Q\",ips_item_id)", "Lhi", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 4}, {"headers": ["CONCAT(\"Q\",ips_item_id)", "Lhi", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 2}]...
enwiki_p
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"headers": ["CONCAT(\"Q\",ips_item_id)", "Lar", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 364}], "runningtime": "543.11"}
eswiki
Colocationwebhost blocks @enwiki
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 comment.comment_text LIKE '%Colocationwebhost%' ORDER BY ipb_time...
{"resultsets": [{"headers": ["log_timestamp", "log_title", "actor_name"], "rowcount": 156389}], "runningtime": "144.77"}
enwiki_p
Vandalismebestrijding nlwiki
IP-controle, 391 open, 14 mei 2022, 14:25 (CEST)
# 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": ["page_title"], "rowcount": 155}], "runningtime": "1.23"}
nlwiki_p
قزل
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%قزل%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["page_title"], "rowcount": 126}], "runningtime": "0.77"}
fawiki_p
Slovak Wikidatists > 2021
null
USE wikidatawiki_p; SELECT actor_name, COUNT(rev_id) AS c FROM pagelinks JOIN revision_userindex ON rev_page = pl_from JOIN actor_revision ON rev_actor = actor_id WHERE pl_title = 'Q214' # parameter AND pl_namespace = 0 AND pl_from_namespace = 0 AND actor_user IS NOT NULL AND actor_user NOT IN (SELECT ug_user FROM user...
{"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": 3}, {"headers": ["rc_namespace", "rc_...
wikidatawiki_p
nlwiki Stubs created by Joopwikibot w/o external links or images
null
SELECT COUNT(DISTINCT page_id) FROM revision, page, categorylinks WHERE rev_actor=(SELECT actor_id FROM actor WHERE actor_name='Joopwikibot') AND rev_parent_id=0 AND rev_page=page_id AND page_namespace=0 AND page_is_redirect=0 AND NOT EXISTS (SELECT * FROM externallinks WHERE el_from=page_id) AND cl_from=page_...
{"resultsets": [{"headers": ["Dateiname"], "rowcount": 0}], "runningtime": "31.53"}
nlwiki
Pick random 1000 articles from plwiki
This query returns a list of 1000 articles (page id and title). They are picked from the main namespace excluding redirects. The randomness is guaranteed by the column page_random which is populated with a random value at page creation. We ask then for these rows that have the number above some random threshold. Runnin...
SELECT page_id, page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_random > 0.237 -- Some random number ORDER BY page_random LIMIT 1000;
{"resultsets": [{"headers": ["DAY(REPLACE(STR_TO_DATE(rc_timestamp, '%Y%m%e%H%i%s'),'T',' '))", "COUNT(*)"], "rowcount": 27}], "runningtime": "176.44"}
plwiki_p
Vandalismebestrijding nlwiki
IP-controle, 15 mei 2022, 416 ongemarkeerd/ongecontroleerd, 13:56 (CEST)
# 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": ["pl_from", "page_title"], "rowcount": 9}], "runningtime": "0.55"}
nlwiki_p
Block reason search
null
SET STATEMENT max_statement_time = 120 FOR SELECT * FROM ipblocks INNER JOIN comment_ipblocks AS comment ON ipblocks.ipb_reason_id = comment.comment_id WHERE TRUE AND ipb_user > 0 AND comment_text LIKE '%Bodiadub%' ORDER BY ipb_timestamp DESC
{"resultsets": [{"headers": ["page_id", "page_title", "page_random", "gap"], "rowcount": 669}], "runningtime": "1.07"}
enwiki
Ficheiros com versões antigas
null
SELECT DISTINCT CONCAT('Ficheiro:', REPLACE(oi_name, '_', ' ')) FICHEIRO FROM oldimage WHERE oi_size;
{"resultsets": [{"headers": ["page_id", "page_title", "page_random", "gap"], "rowcount": 5}], "runningtime": "0.41"}
ptwiki_p
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"headers": ["page_id", "page_title"], "rowcount": 1}], "runningtime": "0.05"}
eswiki
Celková aktivita revertérů
Celková aktivita reverterů od doby, kdy funguje značka rychlý revert. Můžou zde být zahrnuti i správci či příslušníci jiných uživatelských skupin, kteří mohou rychle revertovat, a také bývalí členové jedné z uživatelských skupin, která může rychle revertovat.
use cswiki_p; select actor_name, count(*) from change_tag join revision on ct_rev_id=rev_id join actor on actor_id=rev_actor where ct_tag_id=(select ctd_id from change_tag_def where ctd_name="mw-rollback") group by actor_id order by count(*) desc
{"resultsets": [{"headers": ["acitve_page", "edits", "latest_edit_date"], "rowcount": 28}], "runningtime": "2.45"}
cswiki
WLE-IT participants 2014-2021 not active in 2022
null
use commonswiki_p; SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line FROM revision r_prev join categorylinks on rev_page = cl_from join actor on rev_actor = actor_id and actor_user is not null WHERE rev_parent_id = 0 and cl_to IN ( "Images_from_Wiki_Loves_Earth_2014_in_Italy", ...
{"resultsets": [{"headers": ["blocks", "actor_name"], "rowcount": 183}], "runningtime": "29.08"}
commonswiki
WLE-BR participants 2014-2021 not active in 2022
null
use commonswiki_p; SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line FROM revision r_prev join categorylinks on rev_page = cl_from join actor on rev_actor = actor_id and actor_user is not null WHERE rev_parent_id = 0 and cl_to IN ( "Images_from_Wiki_Loves_Earth_2014_in_Brazil",...
{"resultsets": [{"headers": ["blocks", "actor_name"], "rowcount": 183}], "runningtime": "10.39"}
commonswiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["ll_lang", "COUNT(t.articles)", "total_articles"], "rowcount": 1}], "runningtime": "0.07"}
enwiki_p
ger revisions by actor id
null
SELECT rev_id, page_namespace, page_title FROM revision LEFT JOIN page ON rev_page = page_id WHERE rev_actor = 2976 AND page_namespace = 0 ORDER BY rev_id DESC
{"resultsets": [{"headers": ["tl_title"], "rowcount": 139}], "runningtime": "2178.75"}
zhwiki_p
zhwiki: users with voting right #2-2
null
SELECT user_name, user_editcount, user_registration, user_id, actor_id FROM user LEFT JOIN actor ON user_id = actor_user WHERE user_editcount >= 1500 # AND user_editcount < 3000
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 1}], "runningtime": "143.87"}
zhwiki_p
Групи користувача
null
SELECT `user`.user_name, user_groups.* FROM `user` JOIN user_groups ON user_groups.ug_user = `user`.user_id WHERE lower(`user`.user_name) = '28bot'
{"resultsets": [{"headers": ["ug_user", "ug_group", "ug_expiry"], "rowcount": 10}], "runningtime": "0.05"}
enwiki_p
user editcount before basetime
null
SELECT rev_actor, COUNT(*) AS editcount FROM revision LEFT JOIN page ON rev_page = page_id WHERE rev_actor IN (-1) AND rev_timestamp < 20220515002400 AND page_namespace = 0 GROUP BY rev_actor
{"resultsets": [{"headers": ["ug_user", "ug_group"], "rowcount": 1}], "runningtime": "0.06"}
zhwiki_p
Vandalismebestrijding IP-patrolling nlwiki
IP-controle, 106 wijzigingen te gaan.. 17 mei 2022
# 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": ["ug_user", "user_name", "ug_group"], "rowcount": 1}], "runningtime": "0.06"}
nlwiki_p
WLE-IT participants 2014-2021 not active in 2022
null
use commonswiki_p; SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line FROM revision r_prev join categorylinks on rev_page = cl_from join actor on rev_actor = actor_id and actor_user is not null WHERE rev_parent_id = 0 and cl_to IN ( "Images_from_Wiki_Loves_Earth_2014_in_Spain", ...
{"resultsets": [{"headers": ["page_title", "rev_timestamp"], "rowcount": 354}], "runningtime": "0.40"}
commonswiki
WLE-IT participants 2014-2021 not active in 2022
null
use commonswiki_p; SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line FROM revision r_prev join categorylinks on rev_page = cl_from join actor on rev_actor = actor_id and actor_user is not null WHERE rev_parent_id = 0 and cl_to IN ( "Images_from_Wiki_Loves_Earth_2014_in_Spain", ...
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 35}], "runningtime": "3.19"}
commonswiki
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...
{"connection_id": 334670924}
enwiki
Most pending changes accepts (all time)
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' GROUP BY log_actor ORDER BY manual_accept_count DESC LIMIT 1000
{"connection_id": 334694436}
enwiki
Overall ratio of declared genders
Curious about this in 2022
SELECT up_value, COUNT(*) FROM user_properties WHERE up_property='gender' GROUP BY up_value;
{"resultsets": [{"headers": ["page_title", "rev_len", "page_len", "rev_page", "rev_timestamp"], "rowcount": 10}], "runningtime": "0.08"}
enwiki
test1
null
select * from l10n_cache limit 100
{"resultsets": [{"headers": ["lang", "articles", "percent_of_en"], "rowcount": 145}], "runningtime": "0.57"}
enwiki_p
filearchive
null
select * from filearchive where fa_name = '!!Capo32.JPG' limit 100
{"resultsets": [{"headers": ["page_title", "linter_params"], "rowcount": 865}], "runningtime": "17.96"}
enwiki_p
Wikilinks from page
null
select pl_title from pagelinks where pl_from= (select page_id from page where page_title='Ninekirks' and page_namespace=0)
{"resultsets": [{"headers": ["page_title", "linter_params"], "rowcount": 55}], "runningtime": "11.07"}
enwiki
Find images with phrase in title a
null
use commonswiki_p; set @cat1:="Media_needing_categories%"; set @cat2:="Photos_from_Panoramio_needing_categories_as_of_%"; set @cat3:="Media_with_geo-coordinates_needing_categories"; set @cat4:="Uncategorized%"; #describe geo_tags; select distinct concat("File:", page_title) as Dateiname from page #left join categoryli...
{"resultsets": [{"headers": ["page_title", "comment_text"], "rowcount": 1822}], "runningtime": "3.38"}
commonswiki_p
Vandalismebestrijding
IP-controle, vandalismebestrijding 18-5-2022 16:40 (CEST)
# 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": ["actor_name", "page_id", "pagename", "date"], "rowcount": 403}], "runningtime": "0.53"}
nlwiki_p
Tidy font link bug on Wikipedia namespace (Articles for Deletion)
null
select CONCAT('*[[Wikipedia:', page_title, ']]') as page_title /* , count(*) as page_count*/ from linter join page on page.page_id = linter.linter_page where page.page_namespace=4 and linter_cat=13 /* and page_title like 'Articles_for_deletion%' and page_title not like 'Articles_for_deletion/Log/%' */ group by page_ti...
{"resultsets": [{"headers": ["cl_to", "count_cl_to"], "rowcount": 16}, {"headers": ["tl_title", "count_tl_title"], "rowcount": 3}, {"headers": ["page_title", "pl_title"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["tl_namespace", "tl_title", "cou...
enwiki
Active user of Assames Wikisource NS0 & NS104
MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account
USE asnwikisource_p; SELECT CONCAT("# {{target | user =",actor_name,"| site = as.wikisource.org }}") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE actor_user IS NOT NULL AND page_namespace IN ('0','104')...
{"resultsets": [{"headers": ["pl_namespace", "redirect_title"], "rowcount": 0}], "runningtime": "0.28"}
aswikisource_p
10 first edits on ptwiki
null
SELECT rev_id FROM revision ORDER BY rev_id ASC LIMIT 10;
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "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_...
ptwiki
zhwp: logging/block
null
SELECT log_title FROM logging WHERE log_type = 'block' AND log_timestamp < 20220515002400 #AND log_title IN ('Cyron_Choi') ORDER BY log_timestamp DESC LIMIT 20
{"resultsets": [{"headers": ["page_title", "page_len", "cat_pages", "rev_timestamp", "actor_name"], "rowcount": 227}], "runningtime": "10.50"}
zhwiki_p
Healthy Environment Week 2022 on UkWP
null
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name, COUNT(1) AS created, SUM(article.page_len) as...
{"resultsets": [{"headers": ["page_title", "last_touched", "link"], "rowcount": 35584}], "runningtime": "32.11"}
ukwiki_p
Vandalismebestrijding (vandal fighting/IP-patrolling)
IP-controle, 19 mei 2022, 12:50 (CEST) 272
# 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": ["date", "edits"], "rowcount": 365}], "runningtime": "46.26"}
nlwiki_p
Most protected pages
5000 pages in Vietnamese Wikipedia that had been protected the most.
SELECT log_namespace AS namespace, log_title AS protected_page, COUNT(log_title) AS occurrences, MAX(log_timestamp) AS latest_occurence FROM logging WHERE log_type = "protect" GROUP BY protected_page ORDER BY occurrences DESC LIMIT 50;
{"resultsets": [{"headers": ["lang", "articles", "percent_of_en"], "rowcount": 264}], "runningtime": "0.34"}
eswiki_p
Users with more than 2M edits
null
SELECT COUNT(*) FROM user WHERE user_editcount > 1000000
{"resultsets": [{"headers": ["lang", "articles", "percent_of_en"], "rowcount": 294}], "runningtime": "0.42"}
enwiki_p
Users with more than 2M edits
null
SELECT * FROM user WHERE user_editcount > 1000000
{"resultsets": [{"headers": ["page_title", "linter_params"], "rowcount": 1000}], "runningtime": "9.76"}
eswiki_p
Users with more than 2M edits
null
SELECT COUNT(*) FROM user WHERE user_editcount > 1000000
{"resultsets": [{"headers": ["cat1", "cat2"], "rowcount": 0}], "runningtime": "0.05"}
eswiki_p
Orphaned talk pages on plwiktionary
https://pl.wiktionary.org/w/index.php?title=Wikis%C5%82ownik:Bar/Dyskusje_og%C3%B3lne&oldid=7930498#Propozycja_zmiany_sposobu_post%C4%99powania_z_dyskusjami_usuni%C4%99tych_stron
select talk_page.page_title, talk_page.page_namespace from page as talk_page where talk_page.page_namespace % 2 = 1 and talk_page.page_namespace != 3 and talk_page.page_title not in ( select content_page.page_title from page as content_page where content_page.page_nam...
{"resultsets": [{"headers": ["cat1", "cat2"], "rowcount": 40}], "runningtime": "0.08"}
plwiktionary_p
Empty and no-internal categories on ptwiki
null
SELECT page_title FROM page WHERE page_namespace = 14 AND page_title NOT LIKE "!%" AND NOT EXISTS (SELECT * FROM categorylinks WHERE page.page_title = categorylinks.cl_to) AND NOT EXISTS (SELECT * FROM templatelinks WHERE page.page_id = templatelinks.tl_from AND (templatelinks.tl_title = "Redirecionam...
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 35}], "runningtime": "3.37"}
ptwiki
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"headers": ["iyear", "actor_name", "Edits"], "rowcount": 51}], "runningtime": "0.51"}
eswiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["cat"], "rowcount": 0}], "runningtime": "0.56"}
enwiki_p
Pages in the Main namespace using the Graph extension (enwiki)
null
SELECT page_id, page_title FROM categorylinks JOIN page ON page_id = cl_from WHERE cl_to = 'Pages_using_the_Graph_extension' and page_namespace = 0
{"resultsets": [{"headers": ["rev_timestamp"], "rowcount": 100000}], "runningtime": "91.65"}
enwiki
Vandalismebestrijding (vandalfighting, nlwiki)
IP-controle, vandalismebestrijding, 132x 13:03 (CEST) 20-5-2022
# 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": ["page_title", "rd_namespace", "rd_title"], "rowcount": 446}], "runningtime": "28.72"}
nlwiki_p