title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
contiguous page_random sample
null
SELECT page_id, page_title, page_random, pp_propname FROM page LEFT JOIN page_props ON page_id=pp_page AND pp_propname='disambiguation' WHERE page_namespace=0 AND page_random >= 0.5 AND page_random <= 0.505 AND page_is_redirect=0 ORDER BY page_random;
{"resultsets": [{"headers": ["actor_name", "COUNT(rev_id)"], "rowcount": 119896}], "runningtime": "838.52"}
enwiki_p
page_random gaps
null
SELECT page_id, page_title, page_random, page_random - (LAG(page_random) OVER (ORDER BY page_random)) AS gap FROM page WHERE page_namespace=0 AND page_is_redirect=0 AND -- page_random >= 0.5 AND page_random <= 0.51 AND -- limit to an arbitrary small subset of pages for query testing -- exclude dab pages NOT EXIST...
{"resultsets": [{"headers": ["1"], "rowcount": 0}], "runningtime": "0.05"}
enwiki_p
BboberBot P269
null
SELECT page_title, comment_text FROM page, revision, actor, comment WHERE comment_text LIKE '%P269%' AND comment_id = rev_comment_id AND page_namespace = 0 # AND page_title IN ('Q7769', 'Q3557662', 'Q87116', 'Q25908291', 'Q271371', 'Q276503', 'Q276503', 'Q211940', 'Q148837', 'Q202001', 'Q99321238', 'Q258911...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 31}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 36}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
wikidatawiki_p
Nuke actions
null
SELECT actor_name AS Name, comment_text AS Comment, ar_title AS Title, log_namespace AS Namespace FROM logging JOIN actor ON log_actor = actor_id JOIN comment ON log_comment_id = comment_id JOIN archive ON log_page = ar_page_id WHERE log_type = "delete" AND (comment_text LIKE "%Массовое удаление%" OR comment_text LIKE ...
{"resultsets": [{"headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 13}], "runningtime": "0.06"}
ruwiki_p
Nuke actions
null
SELECT actor_name, COUNT(*) AS cnt FROM logging JOIN actor ON log_actor = actor_id JOIN comment ON log_comment_id = comment_id WHERE log_type = "delete" AND (comment_text LIKE "%ножественное%" or comment_text like "%ассовое%") # AND log_timestamp > DATE_SUB(NOW(), INTERVAL 12 MONTH) GROUP BY actor_name ORDER BY cnt DES...
{"resultsets": [{"headers": ["page_title"], "rowcount": 10}], "runningtime": "0.28"}
ruwiki_p
Locked since January 1 with blocking account
null
select log_title as account, DATE_FORMAT(log_timestamp, "%Y-%m-%d") as date_locked, actor_name as blocking_user from logging, actor where log_type = "globalauth" and (log_title like "%(WMF)@global" or log_title like "%WMF@global") and log_params like '%s:5:"added";a:1:%' and log_timestamp > "20230101" and actor_name <>...
{"resultsets": [{"headers": ["CONCAT('# [[:File:', page_title, ']]')"], "rowcount": 6}], "runningtime": "1.03"}
metawiki
List of contributors for the past 30 days in tawiki
List of contributors for the past 30 days in tawiki which are not bots
SET @rev = (SELECT MIN(rev_id) FROM revision WHERE rev_timestamp > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -30 DAY), "%Y%m%d%H%i%s")); SELECT COUNT(*) AS 'Edits', actor_name AS `User`, ug_group AS `Rights` FROM revision_userindex JOIN actor_revision ON rev_actor = actor_id LEFT JOIN user_gr...
{"resultsets": [{"headers": ["user_name"], "rowcount": 14103}], "runningtime": "44.11"}
tawiki_p
Image Lint
null
select CONCAT('*[//en.wikipedia.org/w/index.php?title=', page_title, '&action=edit&lintedit=true ', page_title, ']') as page_title from linter join page on page.page_id = linter.linter_page where page.page_namespace=0 and linter_cat=3 group by page.page_id order by count(*) desc,page_title asc;
{"resultsets": [{"headers": ["CONCAT(\"Category:\",page_title,\"\")"], "rowcount": 3}], "runningtime": "0.48"}
enwiki
Transclusions of missing templates
Code from https://github.com/fastily/fastilybot-toolforge/blob/master/scripts/report14.sql
SELECT lt.lt_title FROM templatelinks t INNER JOIN linktarget lt ON lt.lt_id = t.tl_target_id LEFT JOIN page p ON p.page_namespace = lt.lt_namespace AND p.page_title = lt.lt_title INNER JOIN page p2 ON t.tl_from = p2.page_id WHERE p.page_title IS NULL AND lt.lt_namespace = 10 GROUP BY 1 LIMIT 300;
{"resultsets": [{"headers": ["lokaal", "commons"], "rowcount": 659}], "runningtime": "3.09"}
enwikisource_p
Unpatrolled commonswiki edits
null
SELECT count(rc_id) AS raw FROM recentchanges WHERE rc_patrolled = 0;
{"resultsets": [{"headers": ["title", "count"], "rowcount": 7}], "runningtime": "0.06"}
commonswiki
Top idwikipedia User by Bytecounts This Month
null
select * /*sum(tdif)*/ from ( select actor_name, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex left join actor on rc_actor = actor_id where rc_timestamp >= 20230201000000 and rc_timestamp <= 20230301000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source = 'mw.edit')...
{"resultsets": [{"headers": ["rc_title", "number_of_edits"], "rowcount": 1}], "runningtime": "2.57"}
idwiki_p
Top Wikipedia User by Bytecounts (This day) (full list)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
select count(*) /*sum(tdif)*/ from (select actor_name, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex left join actor on rc_actor = actor_id where rc_timestamp >= 20210604000000 and rc_timestamp <= 20210605000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edi...
{"resultsets": [{"headers": ["page_namespace", "page_title", "cl_to"], "rowcount": 161}], "runningtime": "5.63"}
idwiki
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["cl_to"], "rowcount": 8808}], "runningtime": "290.97"}
enwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["tl_from", "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", "lt_id", "lt_namespace", "lt_title"], "rowcount": ...
enwiki_p
Orphaned talk pages
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE talk.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' ...
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 32}], "runningtime": "3.35"}
enwiki_p
Most prolific template maintainers 2023
null
-- Choose the wiki! -- English Wikipedia can take several minutes per day. -- Smaller wikis take a few seconds per day. select actor.actor_id, count(revision.rev_actor) as edit_count, actor.actor_name from page, actor, revision where -- Adjust the date revision.rev_timestamp > 20010000000000 and -- Te...
{"resultsets": [{"headers": ["babel_user", "babel_lang", "babel_level"], "rowcount": 20}], "runningtime": "0.07"}
tawiki_p
Reviewer stats by time interval (huwiki)
FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days.
use huwiki_p; SELECT CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#', user_name as 'Szerkesztő', count(*) as 'Ellenőrzések száma az időszakban' FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'review' AND log_action IN ('approve', 'a...
{"resultsets": [{"headers": ["babel_lang"], "rowcount": 567}], "runningtime": "0.59"}
huwiki_p
Mainspace pages without short descriptions
Excluding redirects and disambiguation pages. Warning: long run time and large result set (>1 million records)
SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT cl_from FROM categorylinks WHERE cl_to IN ('All_disambiguation_pages', 'Articles_with_short_description') ) AND page_title != 'Main_Page'
{"resultsets": [{"headers": ["pt_namespace", "pt_title", "pt_user", "pt_reason_id", "pt_timestamp", "pt_expiry", "pt_create_perm"], "rowcount": 19}], "runningtime": "0.07"}
enwiki_p
List {{港鐵顏色}}
null
SELECT COUNT(DISTINCT pl_from) AS cnt FROM pagelinks WHERE pl_namespace = 10 AND pl_title LIKE '港鐵顏色/count/%'; SELECT pl_title, COUNT(*) AS cnt FROM ( SELECT LOWER(CONVERT(pl_title USING UTF8)) AS pl_title FROM pagelinks WHERE pl_namespace = 10 AND pl_title LIKE '港鐵顏色/count/%' ) t GROUP BY pl_title ORDER BY cnt ...
{"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": 19}], "runningtime": "0.06"}
zhwiki_p
List {{港鐵顏色}}
null
SELECT COUNT(DISTINCT pl_from) AS cnt FROM pagelinks WHERE pl_namespace = 10 AND pl_title LIKE '港鐵顏色/count/%'; SELECT pl_title, COUNT(*) AS cnt FROM ( SELECT LOWER(CONVERT(pl_title USING UTF8)) AS pl_title FROM pagelinks WHERE pl_namespace = 10 AND pl_title LIKE '港鐵顏色/count/%' ) t GROUP BY pl_title ORDER BY cnt ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 100}], "runningtime": "2.06"}
zhwiki_p
long stub
null
SELECT page_title, page_len FROM page JOIN categorylinks ON cl_from = page_id WHERE cl_to LIKE '%토막글' AND page_namespace = 0 AND page_len > 5000 GROUP BY page_title ORDER BY page_len DESC LIMIT 500;
{"resultsets": [{"headers": ["title", "count"], "rowcount": 5}], "runningtime": "0.07"}
kowiki_p
Wikipedia IS a database
null
SELECT * FROM page WHERE page_namespace = 4 AND page_title LIKE "What Wikipedia is not not";
{"resultsets": [{"headers": ["page_namespace", "page_title", "page_len"], "rowcount": 10}], "runningtime": "0.92"}
enwiki_p
Edit counts by time of +sysop, per year
See original query for further explanation. This is a draft version in order to run and download results from subqueries.
WITH admins (a_timestamp, a_name, a_actor) AS ( SELECT log_timestamp, actor_name, actor_id FROM logging JOIN actor_logging ON actor_name = REPLACE(log_title, '_', ' ') JOIN comment on log_comment_id = comment_id WHERE log_type = 'rights' AND log_action = 'rights' AND ( -- pre-Nov-2012 format ...
{"resultsets": [{"headers": ["pl_from", "page_title"], "rowcount": 100}], "runningtime": "28.99"}
enwiki_p
mr.wiki templates on images
null
#USE mrwiki_p; #SELECT CONCAT("File:", page_title), GROUP_CONCAT(lt_title ORDER BY lt_title SEPARATOR ', ')#GROUP_CONCAT(tl_title ORDER BY tl_title SEPARATOR ', ') #SELECT lt_title, CONCAT("File:", page_title)#, GROUP_CONCAT(lt_title ORDER BY lt_title SEPARATOR ', ') #SELECT # CONCAT("# [[:File:", img_name, "]]") AS fi...
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 175}], "runningtime": "19.33"}
mrwiki_p
enwikiversity.wiki templates on images
null
#USE mrwiki_p; #Works!!! SELECT CONCAT("File:", page_title), GROUP_CONCAT(lt_title ORDER BY lt_title SEPARATOR ', ') #SELECT lt_title, CONCAT("File:", page_title)#, GROUP_CONCAT(lt_title ORDER BY lt_title SEPARATOR ', ') #SELECT lt_title, GROUP_CONCAT(page_title ORDER BY page_title SEPARATOR ', ') SELECT lt_title, page...
{"resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 22}], "runningtime": "0.08"}
enwikiversity_p
Vandalismebestrijding nlwiki
Backlog (achterstand) 250 2 mei 2023 21:12 (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": ["rev_id", "actor_name"], "rowcount": 19009}], "runningtime": "17.86"}
nlwiki_p
Categorical Hierarchy
Retrieves all category relations between categories, by name. To download visit https://quarry.wmcloud.org/run/730104/output/0/tsv
SELECT page_title, cl_to, cl_type FROM categorylinks LEFT JOIN page ON (cl_from = page_id) WHERE page_namespace = 14 # OR page_namespace = 0
{"connection_id": 154548290}
enwiki
Edits of Project and its talk pages on enwp
for a year
SELECT p.page_namespace as namespace, page_title as project_page, -- page_title as project_page, -- rev_timestamp LEFT(rev_timestamp,4) as edityear, COUNT(*) as Edits FROM page p INNER JOIN revision ON revision.rev_page = p.page_id WHERE p.page_title REGEXP "^WikiProject_...
{"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 111}], "runningtime": "5.33"}
enwiki_p
Category Page Headliner Articles
For every category, get a page that matches the
SELECT page_title, page_namespace, cl_to, cl_type FROM categorylinks LEFT JOIN page ON (cl_from = page_id) WHERE page_title = "Geography" AND page_title = cl_to ORDER BY page_title DESC
{"resultsets": [{"headers": ["page_title"], "rowcount": 164}], "runningtime": "0.18"}
enwiki
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_namespace", "page_title", "page_is_redirect"], "rowcount": 2}], "runningtime": "9.58"}
enwiki_p
Top human editors,pagewise based on talk page category
With atleast 5 edits per article per month
# Unique human editors and their total edits for a list of articles specified by category, excluding few as may be SET @pmonthbegin=DATE_FORMAT(CURDATE() - INTERVAL 1 MONTH,'%Y-%m-01'), @nmonthbegin=DATE_FORMAT(CURDATE() , '%Y-%m-01'); SELECT page_title, user_name, COUNT(*) as Edits from page JOIN revis...
{"resultsets": [{"headers": ["page_title", "pl_title"], "rowcount": 640}], "runningtime": "20.78"}
enwiki_p
Top human editors of pages for previous year based on talk page category
With atleast 30 edits per year
# Unique human editors and their total edits for a list of articles specified by category, excluding few as may be SET @pyearbegin=DATE_FORMAT(CURDATE() - INTERVAL 1 YEAR,'%Y-01-01'), @nyearbegin=DATE_FORMAT(CURDATE() , '%Y-01-01'); SELECT subqres.user_name, COUNT(DISTINCT subqres.page_title) as pages_edite...
{"resultsets": [{"headers": ["title", "count"], "rowcount": 10}], "runningtime": "0.06"}
enwiki_p
Show all queriable public databases
Displays a list of the public WMFLabs databases that can be queried through Quarry. There is one database per language and project.
SELECT * FROM wiki;
{"resultsets": [{"headers": ["file", "uploader"], "rowcount": 39}], "runningtime": "0.12"}
meta_p
Navigationsleisten fehlen eventuell
null
WITH RECURSIVE Cat AS (SELECT page_title, page_id FROM page WHERE page_title = 'Vorlage:Navigationsleiste_Verwaltungsgliederung_(Vereinigte_Staaten)' AND page_namespace = 14 UNION SELECT SubCat.page...
{"resultsets": [{"headers": ["#", "Szerkeszt\u0151", "Ellen\u0151rz\u00e9sek sz\u00e1ma az id\u0151szakban"], "rowcount": 104}], "runningtime": "0.13"}
dewiki_p
elwiki kategorisiz maddeler
null
SELECT CONCAT(page_title) AS page_title_formatted FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT p.page_id FROM page p INNER JOIN categorylinks cl ON cl.cl_from = p.page_id INNER JOIN page p2 ON cl.cl_to = p2.page_title AND p2.page_namespace = 14 -- 14 = Category LEFT J...
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 68}], "runningtime": "0.22"}
elwiki_p
Articles with most langlinks on enwiki, missing from trwiki
null
USE enwiki_p; -- articles from EN with most langlinks... SELECT count(*) ll_count, page_title title_en, (select ll_title from langlinks where ll_from = page_id and ll_lang = 'cs') title_cs, (select ll_title from langlinks where ll_from = page_id and ll_lang = 'de') title_de, (select ll_title fro...
{"resultsets": [{"headers": ["page_title"], "rowcount": 33}], "runningtime": "0.09"}
enwiki
Edit summary search
Fork for standing queries
SELECT actor_name AS user, count(actor_name) AS hits FROM recentchanges INNER JOIN comment on rc_id = comment_id LEFT JOIN actor on rc_actor = actor_id WHERE comment_text rlike "%תומר אשור%" GROUP BY actor_name ORDER BY 2 DESC LIMIT 1
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title"], "rowcount": 15}], "runningtime": "0.12"}
hewiki_p
category amount by first char
null
SELECT SUBSTR(cat_title, 1, 1) as First_char, COUNT(cat_id) as Amount FROM category GROUP BY First_char;
{"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 1500}], "runningtime": "1.65"}
hewiki
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_title", "page_len", "page_id"], "rowcount": 0}], "runningtime": "0.18"}
enwiki_p
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["CONCAT('# [[', page_title, ']]')", "page_len"], "rowcount": 12}], "runningtime": "0.37"}
enwiki_p
Orphaned talk pages
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE talk.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' ...
{"resultsets": [{"headers": ["1"], "rowcount": 0}], "runningtime": "0.04"}
enwiki_p
Articles with categories that don't exist
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', p.page_title) AS 'Article', GROUP_CONCAT(cl.cl_to SEPARATOR ', ') AS 'Non-existent categories' FROM categorylinks cl INNER JOIN page p ON p.page_namespace = 0 AND p.page_id = cl.cl_from LEFT JOIN page p2 ON p2.page_namespace = 14 AND p2.page_title = cl.cl_to WHERE p2.page...
{"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 1500}], "runningtime": "1.87"}
enwiki_p
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৯ জানু ২০২২
SET @ct:=0; SELECT CONCAT("{{subst:formatnum:",@ct:=@ct+1,"}}") AS নং, CONCAT("{{u|",user,"}}") AS ব্যবহারকারী_নাম, CONCAT("{{subst:formatnum:",cnt,"}}") AS মোট_নিবন্ধ FROM ( SELECT actor_name AS user, COUNT(rev_id) AS cnt FROM actor JOIN revision ON rev_actor = actor_id JOIN page ON page_id = rev_page WH...
{"connection_id": 155285269}
bnwiki
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": ["concat('User_talk:',user_name)"], "rowcount": 0}], "runningtime": "0.14"}
enwiki
All category names containing a certain string
null
SELECT cat_title FROM category WHERE cat_title LIKE '%Cup_finals%' ORDER BY cat_title ASC
{"resultsets": [{"headers": ["Title", "Size"], "rowcount": 1000}], "runningtime": "1.15"}
enwiki
fbmd test if this shows up my bad
Executed on 28.08.2016: 25.329 rows
USE commonswiki_p; SELECT CONCAT('[[:File:', img_name, ']]') AS Name, img_timestamp, img_metadata FROM image WHERE img_timestamp > 20230000000000 AND img_timestamp < 20240000000000 AND img_metadata REGEXP 'FBMD*'
{"resultsets": [{"headers": ["page_title", "page_count", "tag_center", "tag_small", "tag_span", "tag_div", "tag_b", "tag_i", "tag_s"], "rowcount": 1000}], "runningtime": "45.06"}
commonswiki
Orphaned talk pages
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE talk.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' ...
{"resultsets": [{"headers": ["concat('[[:en:',page_title,']]')"], "rowcount": 98}], "runningtime": "20.69"}
enwiki_p
Category Test
null
SELECT page_title, cl_to FROM categorylinks LEFT JOIN page ON (cl_from = page_id) WHERE exists ( select distinct cl_to from categorylinks where cl_to IN ("Geography", "Science") ) AND page_namespace = 0 -- union select distinct cl_to from categorylinks where cl_to IN ("Mathematics", "Technology")
{"resultsets": [{"headers": ["Title", "Size", "Links count"], "rowcount": 1000}], "runningtime": "21.17"}
enwiki
AP districts update 2023 - current month page wise edit details
AP districts pages excluding list articles improvement activity of current month group by each article, with editor while showing count of edits.
SELECT page_title, user_name, COUNT(*) as Edits FROM page JOIN categorylinks ON cl_from = page_id AND cl_to="Districts_of_Andhra_Pradesh" AND cl_type="page" JOIN revision ON page_id = rev_page JOIN actor ON rev_actor = actor_id JOIN user ON user_id =actor_user where rev_actor != 0 AND page_names...
{"resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 0}], "runningtime": "142.61"}
enwiki_p
nlwiki Children's books
null
SELECT DISTINCT CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS page_title, IFNULL(RIGHT(yc.cl_to, 4),'') AS year, CASE WHEN cc.cl_to='Amerikaans_kinderboek' THEN 'US' WHEN cc.cl_to='Nederlands_kinderboek' THEN 'NL' ELSE '' END AS 'country' FROM categorylinks cl, page LEFT JOIN (SELECT cl...
{"resultsets": [{"headers": ["file", "uploader"], "rowcount": 14}], "runningtime": "4.26"}
nlwiki
Polluted categories
null
SELECT p1.page_title FROM page AS p1 WHERE p1.page_namespace = 14 AND NOT EXISTS ( SELECT 1 FROM templatelinks JOIN linktarget ON tl_target_id = lt_id WHERE tl_from = p1.page_id AND lt_namespace = 10 AND lt_title = 'Polluted_category' ) AND EXISTS ( SELE...
{"resultsets": [{"headers": ["fa_name"], "rowcount": 1}], "runningtime": "95.88"}
kowiki_p
tewiki main space edits list
null
SELECT DISTINCT page_title FROM revision_userindex JOIN page ON page_id = rev_page WHERE rev_actor = ( SELECT actor_id FROM actor WHERE actor_name = 'రుద్రుడు' ) AND page_namespace = 0
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 2169}], "runningtime": "3.58"}
tewiki
World Group stuff
null
select page_title from page where page_namespace=0 and page_title like '%_World_Group%' and page_is_redirect=0
{"resultsets": [{"headers": ["text", "item ID"], "rowcount": 5000}], "runningtime": "253.48"}
enwiki
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["LEFT(log_timestamp,6)", "COUNT(*)"], "rowcount": 80}], "runningtime": "49.67"}
enwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["LEFT(log_timestamp,6)", "COUNT(*)"], "rowcount": 86}], "runningtime": "14.48"}
enwiki_p
Cup Round stuff
null
select page_title from page where page_namespace=0 and page_title like '%_Cup_Round%' and page_is_redirect=0
{"resultsets": [{"headers": ["log_timestamp", "comment_text"], "rowcount": 1000}], "runningtime": "83.14"}
enwiki
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 namespace, protected_page ORDER BY occurrences DESC LIMIT 5000;
{"resultsets": [{"headers": ["text", "item ID"], "rowcount": 5000}], "runningtime": "310.30"}
hewiki_p
Most thanked users
Users with the most thanks
USE hewiki_p; SELECT log_title, COUNT(DISTINCT log_actor) AS people_thanking, COUNT(DISTINCT log_id) AS number_thanked FROM logging WHERE log_type = "thanks" GROUP BY log_title ORDER BY people_thanking DESC -- Hạn chế số lượng kết quả. -- Điều chỉnh số này để thêm hoặc bớt số bài. LIMIT 20; SELECT logging.log_...
{"connection_id": 156738359}
hewiki_p
Self redirects
null
SELECT CONCAT( CASE p.page_namespace WHEN 0 THEN '' WHEN 1 THEN 'Talk' WHEN 2 THEN 'User' WHEN 3 THEN 'User talk' WHEN 4 THEN 'Wikipedia' WHEN 5 THEN 'Wikipedia talk' WHEN 6 THEN 'File' WHEN 7 THEN 'File talk' WHEN 8 THEN 'MediaWiki' WHEN 9 THEN 'MediaWi...
{"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": 834}], "runningtime": "6.54"}
hewiki_p
ויקיפדיה stuff
null
select page_title from page where page_namespace=0 and page_title like '%ויקיפדיה%' and page_is_redirect=0
{"resultsets": [{"headers": ["p"], "rowcount": 171414}], "runningtime": "138.83"}
hewiki
Redlink start
null
SELECT CONCAT('#[[:{{subst:ns:',pl_namespace,'}}:',pl_title, ']] – [[Special:WhatLinksHere/{{subst:ns:',pl_namespace,'}}:',pl_title,'|', COUNT(*),']]') FROM pagelinks WHERE pl_namespace<>0 AND pl_from_namespace=0 AND NOT EXISTS (SELECT 1 FROM page WHERE page.page_namespace=pagelinks.pl_namespace AND page.page_title=pag...
{"resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 10}], "runningtime": "0.06"}
hewiki_p
template subpage deletion
null
select concat("Template:",replace(log_title,"_"," ")) 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 q join comment_logging on comment_id=log_comment_id where log_type="delete" and log_act...
{"resultsets": [{"headers": ["page_title"], "rowcount": 3}], "runningtime": "0.18"}
zhwiki_p
Blocked editors on Vivek articles
List of blocked editors who have edited the articles on Vivek Ramaswamy, Axovant Sciences, Roivant Sciences, and Vivek Ramaswamy 2024 presidential campaign. The last article has no blocked editors (as of May 7, 2023). Editors who have a "block reason" involving "socking" or "checkuser block" for my purposes may be assu...
# Simplified query to focus on blocked editors. # The page_id list can be manually compiled by looking at page id under "page information" in the Wiki web interface, # or by running Quarry query #62940 with a list of titles. select page_title as 'page title', user_name, comment_text as 'block reason' from page,...
{"resultsets": [{"headers": ["page_title"], "rowcount": 502}], "runningtime": "0.58"}
enwiki
Gaps in Geograph uploads
This query looks for gaps in uploads from Geograph, where there's a contiguous run of files that GeographBot has missed.
select substr(cl_sortkey, 1, 6) as block, count(distinct cl_sortkey_prefix) as ngeographs from categorylinks where cl_to = 'Images_from_Geograph_Britain_and_Ireland' and cl_type = 'file' AND cl_sortkey <' 04700000' group by block having ngeographs < 800;
{"resultsets": [{"headers": ["Year", "Total", "G13", "Pages"], "rowcount": 1}], "runningtime": "0.10"}
commonswiki_p
Wiki Loves Africa Unique Participants 2023
null
SELECT DISTINCT actor_name, rev_actor FROM commonswiki_p.page p INNER JOIN commonswiki_p.categorylinks cl ON p.page_id = cl.cl_from INNER JOIN commonswiki_p.revision r ON p.page_id = r.rev_page join actor on rev_actor = actor_id and actor_user is not null WHERE cl.cl_to IN ( "Images_from_Wiki_Loves_Africa_2023" ) ...
{"connection_id": 96838511}
commonswiki
Indeksy w plwikisource przepisane, ale nie opracowane w main
null
SELECT page_id, page_title, pl_title FROM categorylinks JOIN page ON cl_from=page_id LEFT JOIN pagelinks ON (pl_from=page_id AND pl_namespace=0) WHERE (cl_to='Projekty_proofread_do_skorygowania' OR cl_to='Projekty proofread do uwierzytelnienia') AND cl_type='page' AND pl_namespace IS NULL ; SELECT idx.page_id, idx....
{"connection_id": 106743148}
plwikisource_p
Commons upload list
It will retrieve the 100 most recent newly created files on Wikimedia Commons between the dates '20230101000000' and '20230508000000'. The page_namespace = 6 condition filters by files, and the rev_parent_id = 0 condition filters by revisions that do not have a parent revision, which indicates that they are the first r...
USE commonswiki_p; SELECT page_title, rev_timestamp, rev_len FROM page JOIN revision ON page_id = rev_page WHERE page_namespace = 6 AND rev_parent_id = 0 AND rev_timestamp >= '20230101000000' AND rev_timestamp <= '20230508000000' AND rev_deleted = 0 ORDER BY rev_timestamp DESC LIMIT 100;
{"resultsets": [{"headers": ["actor_user", "ym"], "rowcount": 100}], "runningtime": "0.14"}
commonswiki_p
Commons upload list
It will retrieve the 300 most recent newly created files on Wikimedia Commons between the dates '20230326100000' and '20230326120000'. The page_namespace = 6 condition filters by files, and the rev_parent_id = 0 condition filters by revisions that do not have a parent revision, which indicates that they are the first r...
USE commonswiki_p; SELECT page_title, rev_timestamp, rev_len FROM page JOIN revision ON page_id = rev_page WHERE page_namespace = 6 AND rev_parent_id = 0 AND rev_timestamp >= '20230326103000' AND rev_timestamp <= '20230326110000' AND rev_deleted = 0 ORDER BY rev_timestamp DESC LIMIT 1000;
{"connection_id": 157272838}
commonswiki_p
Marathi Wikipedia top editors sorted by total number of edits
null
selectselectselectselect rev_actor, actor_name, count(rev_id) as edit_count from revision, actor where rev_timestamp > 20230100000000 and rev_actor = actor_id group by rev_actor having count(rev_id) between 1 and 50000 order by edit_count desc;
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 33}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 29}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 0}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou...
mrwiki_p
Marathi Wikipedia top editors sorted by total number of edits
null
selectselectselectselect rev_actor, actor_name, count(rev_id) as edit_count from revision, actor where rev_timestamp > 20230100000000 and rev_actor = actor_id group by rev_actor having count(rev_id) between 1 and 50000 order by edit_count desc;
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 35}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
mrwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["rev_page", "date", "count_rev"], "rowcount": 1130}], "runningtime": "1.57"}
enwiki_p
merkittyjen versioiden viive
null
SELECT floor(frs_timestamp/100000000) as vuosi_kuukausi, floor(avg(frs_stat_val)/60/60/24) as keskiarvoviive_päivinä FROM flaggedrevs_statistics WHERE frs_stat_key='pendingLag-average' group by vuosi_kuukausi order by vuosi_kuukausi DESC;
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 15}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 30}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
fiwiki_p
Average Commons file deletions per day
null
SELECT LEFT(t.day, 4) as `year`, AVG(t.dels) FROM ( SELECT LEFT(log_timestamp, 8) AS `day`, COUNT(*) as `dels` FROM logging_logindex WHERE log_type = "delete" AND log_action = "delete" AND log_namespace = 6 GROUP BY `day` ) AS `t` GROUP BY `year`
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
commonswiki_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 2020 SET @end_time = '20230331'; -- 1 Jan 2021 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": ["count(*)"], "rowcount": 1}], "runningtime": "0.06"}
iuwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["\u09a8\u0982", "\u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0\u0995\u09be\u09b0\u09c0_\u09a8\u09be\u09ae", "\u09ae\u09cb\u099f_\u09a8\u09bf\u09ac\u09a8\u09cd\u09a7"], "rowcount": 43}], "runningtime": "0.13"}
enwiki_p
sandbox
null
null
{"resultsets": [{"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_reviewed_by", "page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len...
enwiki
wikiversity protected files
null
#USE ; SELECT CONCAT("File:", page_title), pr_level, pr_expiry FROM categorylinks JOIN page ON cl_from = page_id JOIN page_restrictions ON pr_page = page_id WHERE # cl_to = "GFDL画像" # AND page_namespace = 6 page_namespace = 6 AND pr_type = "edit" GROUP BY page_id
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 1}], "runningtime": "0.05"}
enwikiversity_p
CSD R8 (dab)pages
null
SELECT page_title, rd_title, page_len FROM page JOIN redirect ON rd_from = page_id WHERE page_namespace = 0 AND page_is_redirect = 1 AND page_title LIKE '%(消歧%)' AND rd_title LIKE '%(消歧%)' ORDER BY page_len DESC
{"resultsets": [{"headers": ["item-id", "nl", "en", "fr"], "rowcount": 1}], "runningtime": "0.08"}
zhwiki_p
Diskussionsseiten ohne Hauptseite
null
SELECT CONCAT(CASE D.page_namespace WHEN 1 THEN '' WHEN 3 THEN 'Benutzer ' WHEN 5 THEN 'Wikipedia ' WHEN 7 THEN 'Datei ' WHEN 9 THEN 'MediaWiki ' ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 18270}], "runningtime": "15.29"}
dewiki_p
Articles using template X
All articles in namespace 0 that are using a template X
SELECT * FROM linktarget lt INNER JOIN templatelinks tl on tl.tl_target_id = lt.lt_id INNER JOIN page pg on pg.page_id = tl.tl_from WHERE (lt.lt_namespace = 10 AND lt.lt_title = 'Current' AND pg.page_namespace = 0) ;
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki
Páginas en Wikcionario: o Apéndice: sin categorizar
null
select page_title, page_namespace from page left join categorylinks on cl_from = page_id where cl_from is null and page_is_redirect = 0 and page_namespace in (4, 100) # 4: Wikcionario, 100: Apéndice
{"resultsets": [{"headers": ["CONCAT(\"https://en.wikipedia.org/wiki/Special:Contributions/\", ipb_address)"], "rowcount": 302}], "runningtime": "0.57"}
eswiktionary_p
صفحات المساهمين في المشاريع
null
/* SELECT CONCAT('[[ويكيبيديا:', page_title, ']]') AS page_title, CONCAT('[[ويكيبيديا:', replace(page_title,"المساهمون","قائمة المساهمين"), ']]') as page_list FROM page WHERE page_namespace = 4 and page_is_redirect = 0 AND page_title REGEXP '^مشروع_ويكي_(.*)/المساهمون$' and page_title not in ( select CONCAT(p0.page_t...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 500}], "runningtime": "72.67"}
arwiki_p
Pages with coordinates and no image
null
SELECT p.page_title FROM page p JOIN templatelinks ON tl_from = p.page_id JOIN linktarget ON lt_id = tl_target_id WHERE lt_namespace = 828 AND lt_title = "Współrzędne" AND p.page_namespace = 0 AND NOT EXISTS ( SELECT * FROM categorylinks c1 JOIN page cp ON c1.cl_to = c...
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 7}], "runningtime": "0.04"}
plwiki_p
Enwiktionary list of tables
null
#select * from content limit 10 #content_address refers to tt:ID, which needs table text show tables #does not show any table named text
{"resultsets": [{"headers": ["page_title"], "rowcount": 100}], "runningtime": "11.21"}
enwiktionary
Catalan labels
null
SELECT COUNT(*) FROM wb_terms WHERE term_type = 'description' AND term_language = "pl";
{"resultsets": [{"headers": ["Count", "Size_B"], "rowcount": 1}], "runningtime": "0.81"}
wikidatawiki_p
missingtopics
null
/* SELECT p0.page_id FROM categorylinks INNER JOIN page p0 ON p0.page_id = categorylinks.cl_from WHERE categorylinks.cl_type = 'page' AND p0.page_namespace IN (0) AND ( categorylinks.cl_to LIKE 'كيمياء' OR categorylinks.cl_to IN ( SELECT p0.page_title FROM categorylinks INNER JOIN page p...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 0}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 32}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou...
arwiki_p
muokkausten määrä artikkeleissa joissa on auktoriteettitunnisteet
- arvo on muokkauksia/muokkaajia päivässä kuukausittain - rev_id > 19061900 (kuukausi 2020-07 ) on raja-arvona, koska tämän jälkeen oli mahdollista suodattaa pois kumoukset ja kumotut muokkaukset - Käyttäjätunnukset ipr1Bot ja ipr1, Fiwiki-tools-bot, Zache on suodatettu pois, jotta mallineiden lisäykset eivät tule mu...
SELECT tt.*, ttt.added_templates FROM (SELECT floor(d/100) as yearmonth, floor(avg(c)) as avg_edits, floor(avg(pc)) as avg_edited_pages, floor(avg(uc)) as avg_registered_users, floor(avg(ac)) as avg_all_users FROM ( SELECT floor(rev_timestamp/1000000) as d, sum(1) as c, count(disti...
{"resultsets": [{"headers": ["Table", "Non_unique", "Key_name", "Seq_in_index", "Column_name", "Collation", "Cardinality", "Sub_part", "Packed", "Null", "Index_type", "Comment", "Index_comment"], "rowcount": 0}], "runningtime": "0.04"}
fiwiki_p
Most prolific bugwiki editors of all time
null
select rev_actor, count(rev_id) as edit_count, actor_name from revision, actor where rev_actor = actor_id group by rev_actor order by edit_count desc limit 200;
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 5}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou...
bugwiki
BeautyQueen accounts
Find thanks
select user_name, user_registration, TIME_FORMAT(user_registration, "%H%i") as time, user_editcount from user where user_registration > "20230101" and (user_name like "%BeautyQueen" or user_name like "%Waltz" or user_name like "%Glamour" or user_name like "%Glam") order by user_registration desc limit 250
{"resultsets": [{"headers": ["il_from", "il_to", "il_from_namespace"], "rowcount": 0}], "runningtime": "0.07"}
enwiki
Find redirects with diacritics
null
SELECT p.page_title, target.page_title FROM page AS p, page AS target, redirect as r WHERE p.page_id = r.rd_from AND target.page_namespace = r.rd_namespace AND target.page_title = r.rd_title AND target.page_namespace = 0 AND p.page_namespace = 0 AND p.page_is_redirect = 1 AND p.page_title REGE...
{"resultsets": [{"headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 412}], "runningtime": "94.40"}
enwiki
Files on enwikisource NOT in spec categories (no license)
null
#USE viwiki_p; SELECT CONCAT("# [[:File:", img_name, "]]") AS file, actor_name #, GROUP_CONCAT(c.cl_from SEPARATOR ' ¤¤¤ ') FROM image JOIN page ON page_namespace = 6 AND page_title = img_name JOIN actor_image ON img_actor = actor_id JOIN categorylinks ON cl_from = page_id AND cl_type = "file" #AND cl_to = "No_lice...
{"connection_id": 161297750}
enwikisource_p
Images in the fair use category that aren't used in NS-0 (articles)
null
/* Fair use category name: ויקיפדיה_-_תמונות_שימוש_הוגן Output format template: משתמש:מקף/תב/מחיקת קובץ */ use hewiki_p; select concat('{{ס:משתמש:מקף/תב/מחיקת קובץ|page_id_=',page_id,'|page_title_=',page_title,'}}') from page as p1 join image on exists (select * from categorylinks as cl1 where cl_from = page_id ...
{"resultsets": [{"headers": ["page_title", "page_id", "talk_id"], "rowcount": 69895}], "runningtime": "924.39"}
hewiki_p
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 29}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 10}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 29}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 37}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Query
null
SELECT page_title FROM page, redirect WHERE page_id = rd_from AND rd_interwiki = '' AND page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM page WHERE page_title = rd_title AND page_namespace = rd_namespace )
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 29}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Orphaned talk pages
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE talk.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
All orphan enwikiversity files
null
SELECT CONCAT('File:', REPLACE(page_title, '_', ' ')) FROM page AS p LEFT JOIN imagelinks AS i ON p.page_title = i.il_to LEFT JOIN pagelinks AS pl ON p.page_title = pl.pl_title AND p.page_namespace = pl.pl_namespace WHERE p.page_namespace = 6 AND i.il_to IS NULL AND pl.pl_title IS NULL;
{"resultsets": [{"headers": ["page_title", "page_count", "tag_center", "tag_small", "tag_span", "tag_div", "tag_b", "tag_i", "tag_s"], "rowcount": 1000}], "runningtime": "13.99"}
enwikiversity_p
Articles by lint errors except for Obsolete HTML tags (thwiki)
Mainspace pages with most lint errors except for Obsolete HTML tags for Thai wikipedia
select page_namespace, page_title, count(*) as page_count from linter join page on page.page_id = linter.linter_page group by page.page_id order by count(*) desc, page_title asc limit 1000;
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "92.50"}
thwiki_p
Blocks of admins on enwiki
null
SELECT user_name, log_id, comment_text, log_params FROM logging LEFT JOIN user ON user_name = REPLACE(log_title, "_", " ") INNER JOIN user_groups ON ug_user = user_id INNER JOIN actor ON actor_user = user_id INNER JOIN comment ON comment_id = log_comment_id WHERE log_type = "block" AND log_action = "block...
{"resultsets": [{"headers": ["page_title"], "rowcount": 3}], "runningtime": "0.41"}
enwiki_p
مستخدمون غير نشطين
null
use arwiki_p; select concat("{{مس|",user_name,"}}") as "اسم المستخدم", user_editcount as "عدد التعديلات", ug_group as "الصلاحية" from user inner join user_groups on ug_user = user_id where (ug_group like "editor" or ug_group like "autoreview" or ug_group like "bot" or ug_group like "uploader") and user_id not in (sel...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 11}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 13}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
arwiki_p