title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"runningtime": "0.72", "resultsets": [{"rowcount": 4, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 2, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 3, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
Indef-blocked users with links on their talk page
null
SELECT ipb_address, comment_text AS reason FROM ipblocks JOIN comment_ipblocks ON(ipb_reason_id=comment_id) JOIN page ON(page_namespace=3 AND page_title=REPLACE(ipb_address, ' ', '_') AND page_id=rev_id) WHERE -- Indef-blocked user (not IP) ipb_expiry = 'infinity' AND ipb_user != 0 and pagetext like "%uw-bo...
{"runningtime": "0.14", "resultsets": [{"rowcount": 11, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]}
null
Articles possibly about a human without birth/date/alive categories
null
use fawiki_p; select distinct page_title from page join categorylinks c1 on page_id = c1.cl_from and c1.cl_to like '%_اهل_%' left join categorylinks c2 on page_id = c2.cl_from and ( c2.cl_to = 'افراد_زنده' or c2.cl_to like 'زادگان_%' or c2.cl_to like 'درگذشتگان_%' or c2.cl_to like 'گروه%_اهل_%' ...
{"runningtime": "23.58", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 1000, "headers": ["wikipage"]}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"runningtime": "0.14", "resultsets": [{"rowcount": 1, "headers": ["nlwiki_p", "replag"]}]}
null
Ruwiki IWRM.js usage → wikitable
null
USE ruwiki_p; SELECT CONCAT('[[User:', actor_name, '|]]') AS User, COUNT(rev_id) AS Edits FROM revision JOIN actor ON rev_actor = actor_id JOIN change_tag ON ct_rev_id = rev_id JOIN change_tag_def ON ct_tag_id = ctd_id WHERE ctd_name = 'iwrm' GROUP BY rev_actor ORDER BY edits DESC;
{"runningtime": "0.11", "resultsets": [{"rowcount": 10, "headers": ["page_id", "page_title"]}]}
null
Ruwiki IWRM.js usage → wikitable
null
USE ruwiki_p; SELECT CONCAT('[[User:', actor_name, '|]]') AS User, COUNT(rev_id) AS Edits FROM revision JOIN actor ON rev_actor = actor_id JOIN change_tag ON ct_rev_id = rev_id JOIN change_tag_def ON ct_tag_id = ctd_id WHERE ctd_name = 'iwrm' GROUP BY rev_actor ORDER BY edits DESC;
{"runningtime": "0.12", "resultsets": [{"rowcount": 20, "headers": ["page_id", "page_namespace", "page_title"]}]}
null
Ruwiki IWRM.js usage → wikitable
null
USE ruwiki_p; SELECT CONCAT('[[User:', actor_name, '|]]') AS User, COUNT(rev_id) AS Edits FROM revision JOIN actor ON rev_actor = actor_id JOIN change_tag ON ct_rev_id = rev_id JOIN change_tag_def ON ct_tag_id = ctd_id WHERE ctd_name = 'iwrm' GROUP BY rev_actor ORDER BY edits DESC;
{"connection_id": 308142000}
null
WLE UK 2020 participants
WSC-UK previous years' participants not active this year
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_2020_in_Ukraine"...
{"connection_id": 28395660}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"runningtime": "21.05", "resultsets": [{"rowcount": 41, "headers": ["Benutzerseite", "ist in Kategorie"]}]}
null
Tool Labs metadata database
Content of the metadata database; see https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Database#Metadata_database for more information.
use meta_p; SELECT * FROM wiki where lang = 'lij';
{"connection_id": 28650225}
null
Wikidata - list of properties (English labels)
null
use wikidatawiki_p; SELECT CURRENT_DATE; SELECT CONCAT('P', term_entity_id), term_text from wb_terms WHERE term_entity_type = 'property' AND term_language = 'en' and term_type = 'label' ORDER bY term_entity_id desc;
{"runningtime": "57.09", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 2000, "headers": ["wikipage"]}]}
null
Files on ja also on Commons with filenames and log
null
USE jawiki_p; SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki, CONCAT("[[:File:", b.img_name, "]]") AS Commons, b.img_timestamp, d.log_timestamp, d.log_type FROM image a INNER JOIN page p ON p.page_title = a.img_name AND p.page_namespace = 6 INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = "コモンズ...
{"runningtime": "5.26", "resultsets": [{"rowcount": 912, "headers": ["\u0639\u062f\u062f \u0627\u0644\u0635\u0641\u062d\u0627\u062a", "\u0627\u0644\u0639\u0646\u0648\u0627\u0646"]}]}
null
Label/description/alias stats for 8th Schedule tongues
(Had to split the query since it kept getting killed lately. The rest of the languages are tracked in query #31655.) Thanks, Pasleim, for the original query!
use wikidatawiki_p; SELECT CURRENT_DATE; SELECT term_entity_type, term_language, count(if(term_type = 'label',1,null)) as labels, count(if(term_type = 'description',1,null)) as descriptions, count(if(term_type = 'alias',1,null)) as aliases FROM wb_terms WHERE term_language IN ( 'as', 'bn', 'gom', 'gom-...
{"runningtime": "0.38", "resultsets": [{"rowcount": 2, "headers": ["page_title"]}]}
null
Regex title search against existing and deleted pages
Searches for both currently-existing and previously-deleted pages with a title matching a given regular expression. Some warnings: The expression is case-sensitive. Prefix it with (?i) to make it insensitive. It must double backslashes (so '\\b', not '\b', to match a word break, and '\\\\' to match a literal backsla...
SET @rx = '(?i)abdullah.*mehmood'; SELECT CONCAT(CASE 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:' WH...
{"runningtime": "0.25", "resultsets": [{"rowcount": 8, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
تخصيص البذور حسب المقالات المشابهة حسب التصنيف
null
use arwiki_p; select concat("#[[", p1.page_title,"]]--->", group_concat(DISTINCT concat("<div class = \"stub-value ",cl4.cl_to,"\">", cl4.cl_to, "</div>") SEPARATOR ' '),"</br>") from page p1 inner join categorylinks cl1 on cl1.cl_from = p1.page_id inner join categorylinks cl2 on p1.page_id = cl2.cl_from inn...
{"runningtime": "0.29", "resultsets": [{"rowcount": 8, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
zhwp: recent revision on talk
null
USE zhwiki_p; SELECT rc_actor, actor_name, actor_user, up_value AS `nickname` FROM ( SELECT rc_actor, actor_name, actor_user, up_value AS `fancysig` FROM ( SELECT rc_actor, actor_name, actor_user FROM ( SELECT DISTINCT rc_actor FROM recentchanges WHERE rc_namespace = 4 OR rc_name...
{"runningtime": "15.87", "resultsets": [{"rowcount": 0, "headers": ["el_id", "page_title", "el_to"]}]}
null
fix M. title
null
select CONCAT('* [[:',ll_title, ']]>') AS cat1 , CONCAT("", p1.page_title) AS title from page AS p1, langlinks #where p1.page_title like "%M.%" AND ll_title like "%محمد%" where p1.page_title like "%jan%" AND ll_title like "%يناير%" AND p1.page_id = ll_from AND ll_lang = "ar" AND p1.page_namespace = 0 ;
{"runningtime": "0.52", "resultsets": [{"rowcount": 10, "headers": ["page_title"]}]}
null
catSuggest: Most active users
null
use hywiki_p; select actor_name, count(actor_name) c from revision join page on page_id = rev_page join comment on rev_comment_id = comment_id join actor on rev_actor = actor_id where comment_text like "catSuggest-ով%" and rev_timestamp > 20200701000000 group by actor_name order by c desc
{"runningtime": "187.93", "resultsets": [{"rowcount": 10, "headers": ["time", "user", "namespace", "page", "comment"]}]}
null
longest pages in ukwiki
null
use ukwiki_p; select page_namespace, page_title, page_len from page order by page_len desc limit 100;
{"runningtime": "8.48", "resultsets": [{"rowcount": 5, "headers": ["CONCAT('# [[:File:', page_title, ']]')"]}]}
null
catSuggest: Most active users
null
use hywiki_p; select actor_name, count(actor_name) c from revision join page on page_id = rev_page join comment on rev_comment_id = comment_id join actor on rev_actor = actor_id where comment_text like "catSuggest-ով%" and rev_timestamp > 20200701000000 group by actor_name order by c desc
{"runningtime": "0.10", "resultsets": [{"rowcount": 10, "headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", ...
null
Upload page creation after WMF blank
Limited to last 30 days.
USE commonswiki_p; SELECT LEFT(rev_timestamp,10) AS Date, comment_text AS Comment, page_title AS Page FROM page JOIN revision_userindex ON page_id=rev_page AND DATEDIFF(CURRENT_TIMESTAMP, rev_timestamp) < 8 JOIN comment_revision ON comment_id = rev_comment_id JOIN actor_revision ON rev_actor = actor_id WHERE a...
{"connection_id": 36232501}
null
Wikidata properties without talk page
Wikidata properties are documented on their talk pages using the {{Property documentation}} template. Several properties, however, don’t have talk pages at all.
USE wikidatawiki_p; SELECT page_title, CONCAT("Property talk:", page_title) AS page_name FROM (page AS page1) WHERE page_namespace = 120 AND NOT EXISTS (SELECT page_id FROM page WHERE page.page_title = page1.page_title AND page_namespace = 121);
{"runningtime": "5.29", "resultsets": [{"rowcount": 109, "headers": ["Title", "user", "comment"]}]}
null
Who edits in SBL talk page
null
use ptwiki_p; select user_name, page_title, count(*) from revision r inner join page p on r.rev_page = p.page_id inner join actor a on rev_actor = a.actor_id inner join user u on actor_user = u.user_id where p.page_namespace = 9 and page_title = 'Spam-blacklist' group by page_id, user_name order by 3 desc
{"runningtime": "0.43", "resultsets": [{"rowcount": 52, "headers": ["page_title", "replace (p1.page_title, \"Municipalities_in_\", \"\")"]}]}
null
User with only 1edit in SBL talk page
null
use ptwiki_p; select * from ( select user_name, page_title, count(*) as edits from revision r inner join page p on r.rev_page = p.page_id inner join actor a on rev_actor = a.actor_id inner join user u on actor_user = u.user_id where p.page_namespace = 9 and page_title = 'Spam-blacklist' # and page_title = 'Spam-whi...
{"runningtime": "3.86", "resultsets": [{"rowcount": 0, "headers": ["page_title", "replace (p1.page_title, \"Populated_places_\", \"\")"]}]}
null
تخصيص البذور حسب المقالات المشابهة حسب التصنيف
null
use arwiki_p; select concat("#[[", p1.page_title,"]]--->", group_concat(DISTINCT concat("<div class = \"stub-value ",cl4.cl_to,"\">", cl4.cl_to, "</div>") SEPARATOR ' '),"</br>") from page p1 inner join categorylinks cl1 on cl1.cl_from = p1.page_id inner join categorylinks cl2 on p1.page_id = cl2.cl_from inn...
{"runningtime": "12.29", "resultsets": [{"rowcount": 592, "headers": ["page_title"]}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"runningtime": "11.48", "resultsets": [{"rowcount": 35, "headers": ["page_title"]}]}
null
Wikidata labels with parenthesis (arwiki)
null
USE wikidatawiki_p; SELECT CONCAT('Q', Lwbit.wbit_item_id), CONCAT('"',Lx.wbx_text,'"') AS label, ( SELECT Dx.wbx_text FROM wbt_item_terms AS Dwbit JOIN wbt_term_in_lang AS Dwbtl ON Dwbtl.wbtl_id = Dwbit.wbit_term_in_lang_id JOIN wbt_type AS Dy ON Dy.wby_id = Dwbtl.wbtl_type_id JOIN wbt_text_in_lang ...
{"runningtime": "1647.46", "resultsets": [{"rowcount": 8341, "headers": ["actor_name", "articles_count", "articles_edited"]}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"runningtime": "0.21", "resultsets": [{"rowcount": 2, "headers": ["page_title"]}]}
null
All orphan non-free files on lv.wiki
null
USE lvwiki_p; SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ON p.page_title = i.il_to #AND (i.il_from_namespace = 0) #LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c2...
{"runningtime": "0.66", "resultsets": [{"rowcount": 1, "headers": ["actor_id", "actor_user", "actor_name"]}]}
null
Armenian articles with a Russian but not an English interwiki
null
use hywiki_p; select page_title from page join langlinks l1 on page_id = l1.ll_from and l1.ll_lang = 'ru' where page_namespace = 0 and not exists ( select ll_from from langlinks l2 where l2.ll_lang in ( 'en', 'fr', 'de' ) and l2.ll_from = page_id )
{"runningtime": "5.67", "resultsets": [{"rowcount": 1821, "headers": ["page_title", "page_len"]}]}
null
List of all categories
List of all pages in the category namespace (NS=14). Includes dab pages, and hard redirects and soft redirects
SELECT page_title FROM page WHERE page_namespace = 14;
{"runningtime": "31.10", "resultsets": [{"rowcount": 31, "headers": ["date", "reviews", "accepts", "declines", "rejects"]}]}
null
Cats matching '\\b[Oo]rgani[sz]ations?\\b', not redirect or dab
Non-redirect category pages whose title matches the regex /\b[Oo]rgani[sz]ations?\b/ and don't transclude [[Template:Category redirect]] or [[Template:Category disambiguation]]. For [[WP:VPT#Can anyone help me build an SQL query?]] circa 25 July 2020.
SELECT page_title FROM page WHERE page_namespace = 14 AND page_is_redirect = 0 -- page_title stores spaces as underscores, which aren't recognized as word boundaries by the regex engine; so change them back first AND REPLACE(page_title, '_', ' ') RLIKE '\\b[Oo]rgani[sz]ations?\\b' AND NOT EXISTS (SELECT 1 FROM ...
{"runningtime": "34.24", "resultsets": [{"rowcount": 171, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
null
Edit-Warring Wikidata Bots
Edit-Warring Wikidata Bots
USE wikidatawiki_p; SELECT * from recentchanges as first_edit join recentchanges as third_edit ON first_edit.rc_actor = 7 AND first_edit.rc_timestamp > 20200806090830 AND third_edit.rc_actor = first_edit.rc_actor AND third_edit.rc_timestamp > first_edit.rc_timestamp AND first_edit.rc_title = third_edit.rc_title JOIN r...
{"runningtime": "34.46", "resultsets": [{"rowcount": 6679, "headers": ["page_title"]}]}
null
Former bots
null
USE enwiki_p; SELECT *, count(*) from actor_recentchanges GROUP BY actor_id order by count(*) DESC limit 1000;
{"runningtime": "0.19", "resultsets": [{"rowcount": 10, "headers": ["rev_timestamp", "actor_name"]}]}
null
All article namespace pages
Every page in article namespace (NS=0). Includes disambiguation pages and hard redirects
SELECT page_title FROM page WHERE page_namespace = 0 -- main namespace ;
{"runningtime": "0.18", "resultsets": [{"rowcount": 7, "headers": ["rev_timestamp", "actor_name"]}]}
null
nlwiki_p Articles without interwiki, starting from Z
null
USE nlwiki_p; SELECT CONVERT(REPLACE(page_title,'_',' ') USING UTF8MB4) AS title FROM page WHERE page_namespace=0 AND page_is_redirect=0 AND page_title REGEXP '^Z' AND NOT EXISTS (SELECT * FROM page_props WHERE pp_page=page_id AND pp_propname='disambiguation') AND NOT EXISTS (SELECT * FROM langlinks WHERE l...
{"runningtime": "0.17", "resultsets": [{"rowcount": 27, "headers": ["MID", "P6305", "OTRS", "CONCAT(\"File:\",page_title)"]}]}
null
wikidata: edit rates by given user
null
USE wikidatawiki_p; #SELECT * FROM actor WHERE actor_name='MisterSynergy'; SELECT #SUBSTR(revision.rev_timestamp, 1, 6) AS bucket, # 4 year, 6 month, 8 day, 10 hour, 12 minute FLOOR(revision.rev_timestamp / 100000000) AS bucket, # 4 year, 6 month, 8 day, 10 hour, 12 minute COUNT(revision.rev_id) AS cnt FROM ...
{"runningtime": "84.59", "resultsets": [{"rowcount": 1, "headers": ["comment_id", "comment_hash", "comment_text", "comment_data", "rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "page_id", "page_namespace", "page_title", "pag...
null
Current inclusions of unexpectable current templates on enwiki
null
USE enwiki_p; SELECT page_id, page_title, tl_title FROM templatelinks JOIN page ON tl_from = page_id WHERE tl_from_namespace = 0 AND tl_namespace = 10 AND tl_title IN ('Current', 'Current_disaster', 'Current_person', 'Recent_death', 'Recent_death_presumed', 'Current_weather_event');
{"runningtime": "3.45", "resultsets": [{"rowcount": 1005, "headers": ["actor_name", "log_timestamp", "log_title", "log_params", "log_page", "comment_text"]}]}
null
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)');
{"runningtime": "5.02", "resultsets": [{"rowcount": 32, "headers": ["CONCAT('* [[Special:Contributions/', user_name, '|', user_name, ']]')"]}]}
null
edits by JarektBot in a month per hour
null
use commonswiki_p; SELECT HOUR(rev_timestamp) AS hour, COUNT(*) AS edits FROM revision WHERE rev_actor=695 and rev_timestamp>20200803000000 and rev_timestamp<20200804000000 GROUP BY hour ORDER BY hour
{"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["page_title", "page_len"]}]}
null
Nepali Wikipedia test
null
USE newiki_p; SELECT YEAR(rf.rev_timestamp), COUNT(*) FROM page p, revision rf WHERE rf.rev_page = p.page_id and rf.rev_parent_id = 0 and p.page_namespace = 0 and p.page_is_redirect = 0 GROUP BY YEAR(rf.rev_timestamp) ORDER BY YEAR(rf.rev_timestamp) ; SELECT YEAR(rf.rev_tim...
{"runningtime": "5.42", "resultsets": [{"rowcount": 1, "headers": ["page_title", "rd_title"]}]}
null
Example log type names
An example list of log types, linked from https://www.mediawiki.org/wiki/Manual:Logging_table#log_type
SELECT log_type FROM ( SELECT DISTINCT log_type FROM itwiki_p.logging UNION SELECT DISTINCT log_type FROM mediawikiwiki_p.logging UNION SELECT DISTINCT log_type FROM commonswiki_p.logging ) logging ORDER BY log_type ASC ;
{"runningtime": "0.05", "resultsets": []}
null
Non-redir, non-dab main namespace pages
For [[WP:VPT#Want a list of all categories, and a list of all articles]] circa 17 Jun 2020. Forked to remove limit and see what happens
SELECT page_title FROM page WHERE page_namespace = 0 -- main namespace AND page_is_redirect = 0 -- exclude redirects AND NOT EXISTS (SELECT 1 FROM categorylinks WHERE cl_from = page_id AND cl_to = 'All_article_disambiguation_pages') -- not in this category; ch...
{"runningtime": "2.45", "resultsets": [{"rowcount": 2, "headers": ["page_title"]}]}
null
Deleted items created by a user
null
USE wikidatawiki_p; SELECT ar_id, ar_title, ar_namespace, ar_timestamp FROM archive_userindex WHERE ar_user_text = 'Adam Hauner' AND ar_parent_id = 0;
{"runningtime": "86.68", "resultsets": [{"rowcount": 103, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]}
null
New jawiki GFDL file revisions by user
null
USE jawiki_p; SELECT CONCAT("File:", page_title) as File, img_timestamp, actor_name FROM templatelinks JOIN page ON tl_from = page_id JOIN image ON img_name = page_title AND page_namespace = 6 JOIN actor_image ON img_actor = actor_id WHERE tl_title = "GFDL" AND tl_namespace = 10 AND img_timestamp > 2009080000...
{"runningtime": "76.77", "resultsets": [{"rowcount": 21, "headers": ["user_name", "user_editcount", "ug_group", "recent_user_editcount"]}]}
null
catSuggest: Most active users
null
use hywiki_p; select actor_name, count(actor_name) c from revision join page on page_id = rev_page join comment on rev_comment_id = comment_id join actor on rev_actor = actor_id where comment_text like "catSuggest-ով%" and rev_timestamp > 20200701000000 group by actor_name order by c desc
{"runningtime": "0.12", "resultsets": [{"rowcount": 1, "headers": ["page_title"]}]}
null
Templates with protection [move=sysop] but [edit!=sysop]
Candidates for lowering move protection to templateeditor or less.
USE enwiki_p; SELECT page_id, page_namespace, page_title FROM page INNER JOIN page_restrictions on pr_page = page_id WHERE page_namespace = 10 AND pr_type = 'move' AND pr_level = 'sysop' AND page_id in ( SELECT page_id FROM page INNER JOIN page_restrictions on pr_page = page_id ...
{"runningtime": "12.14", "resultsets": [{"rowcount": 10, "headers": ["rev_actor", "\u0938\u0926\u0938\u094d\u092f", "\u092a\u093e\u0928\u0947"]}]}
null
Userpages with old CoI notices
null
USE enwiki_p; SELECT page_title, page_namespace, page_id FROM page INNER JOIN categorylinks ON page_id = cl_from WHERE cl_to = "User_talk_pages_with_conflict_of_interest_notices" AND page_touched IS NOT NULL AND page_touched <= 20200501000000;
{"runningtime": "8.30", "resultsets": [{"rowcount": 2, "headers": ["rev_actor", "actor_name", "edit_count"]}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"runningtime": "4.40", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 4, "headers": ["wikipage"]}]}
null
Wikidata items with identical label and description
null
USE wikidatawiki_p; SELECT CONCAT('Q', Lwbit.wbit_item_id) AS item_id, wbxl_language, (SELECT wbx_text FROM wbt_text WHERE wbx_id = wbxl_text_id) AS text FROM wbt_item_terms AS Lwbit JOIN wbt_term_in_lang AS Lwbtl ON Lwbtl.wbtl_id = Lwbit.wbit_term_in_lang_id JOIN wbt_type AS Ly ON Ly.wby_id = Lwbtl.wbtl_t...
{"runningtime": "0.07", "resultsets": [{"rowcount": 0, "headers": ["MID", "P6243", "QID"]}]}
null
Deleted items created by a user
null
USE wikidatawiki_p; SELECT ar_id, ar_title, ar_namespace, ar_timestamp FROM archive_userindex JOIN actor_archive ON actor_id = ar_actor WHERE actor_name = '-xfi-' AND ar_parent_id = 0;
{"runningtime": "110.75", "resultsets": [{"rowcount": 0, "headers": ["MID", "P6243", "el_to"]}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"runningtime": "0.27", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "actor_id", "actor_user", "actor_name"]}]}
null
Drafts with / in title
Pages in the draft namespace with / in their title. Non-redirects are shown first. For [[WP:VPR#Remove the Draft namespace from $wgNamespacesWithSubpages]] circa 10 Aug 2020.
SELECT page_is_redirect, CONCAT('Draft:',page_title) AS pagename FROM page WHERE page_namespace = 118 -- Draft: AND page_title LIKE '%/%' ORDER BY page_is_redirect, pagename;
{"runningtime": "37.90", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "actor_id", "actor_user", "actor_name"]}]}
null
Most hit filters
null
use ptwiki_p; select af_id, af_public_comments, af_hit_count from abuse_filter order by af_hit_count desc
{"runningtime": "12.72", "resultsets": [{"rowcount": 25, "headers": ["page_title"]}]}
null
Warn and disallow filter actions
null
use ptwiki_p; select 'warn', sum(af_hit_count) as total from abuse_filter where af_actions like '%warn%' union select 'dissalow', sum(af_hit_count) as total from abuse_filter where af_actions like '%disallow%'
{"runningtime": "0.15", "resultsets": [{"rowcount": 0, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]}
null
Warn and disallow filter actions by visibility
null
use ptwiki_p; select 'warn', af_hidden, sum(af_hit_count) as total from abuse_filter where af_actions like '%warn%' group by af_hidden union select 'dissalow', af_hidden, sum(af_hit_count) as total from abuse_filter where af_actions like '%disallow%' group by af_hidden
{"runningtime": "3.94", "resultsets": [{"rowcount": 10, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]}
null
catSuggest: Most active users
null
use hywiki_p; select actor_name, count(actor_name) c from revision join page on page_id = rev_page join comment on rev_comment_id = comment_id join actor on rev_actor = actor_id where comment_text like "catSuggest-ով%" and rev_timestamp > 20200701000000 group by actor_name order by c desc
{"runningtime": "242.86", "resultsets": [{"rowcount": 3, "headers": ["target", "sources"]}]}
null
All deletions in Mediawiki: namespace
Every deleted page in the Mediawiki: namespace, with any matching deletion logs. For [[WT:CSD#Add criteria for MediaWiki namespaces]] circa 11 Aug 2020.
SELECT DISTINCT ar_title, log_timestamp, actor_name, comment_text FROM archive LEFT JOIN logging_logindex ON log_title = ar_title AND log_namespace = 8 -- Mediawiki: AND log_type = 'delete' AND log_action = 'delete' LEFT JOIN actor_logging ON actor_id = log_actor LEFT JOIN comment_logging ON comment_id...
{"runningtime": "709.97", "resultsets": [{"rowcount": 100, "headers": ["CONCAT(\"Q\",ips_item_id)", "CONCAT(\"Lar\")", "CONCAT('\"',ips_site_page,'\"')"]}]}
null
Number of tool aided editing by tags
null
use commonswiki_p; select replace( replace( replace( replace(ctd_name, "OAuth CID: 1702", "Wikidata Image Positions"), "OAuth CID: 1776", "quickstatements 2"), "OAuth CID: 1857", "Locator tool"), "OAuth CID: 544", "Wikimaps Warper") as ctd_title, ...
{"connection_id": 52712003}
null
AfC review counts, last month
null
use enwiki_p; select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accep...
{"runningtime": "405.80", "resultsets": [{"rowcount": 802, "headers": ["page_title", "cl_to"]}]}
null
Articles created by CX in tewiki
null
use tewiki_p; SELECT page_id, page_namespace, page_title, MAX(ct_rev_id), ct_params, actor_name, rev_timestamp FROM `change_tag`, `revision`, `user`, `page`, `change_tag_def`, `actor` WHERE ctd_id=ct_tag_id AND rev_actor=actor_id AND ctd_name = 'contentt...
{"runningtime": "0.03", "resultsets": []}
null
Content translation effectiveness on tewiki
Example data for task https://phabricator.wikimedia.org/T215397 . Shows ratio of main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted.
use tewiki_p; set @dbname = 'tewiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); set @created_total = ( select count(rev_id) from page, revision where page_id = rev_page and page_namespace = 0 and rev_timestamp like '...
{"runningtime": "0.06", "resultsets": []}
null
Content translation creation statistics on tewiki
Example data for task https://phabricator.wikimedia.org/T215397 . Shows ratio of main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted.
use tewiki_p; set @dbname = 'tewiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); select LEFT(rev_timestamp,6) as month, count(rev_id) from change_tag, page, revision where page_id = rev_page and page_namespace =...
{"runningtime": "0.04", "resultsets": []}
null
Content translation deletion statistics on tewiki
month wise numbers
use tewiki_p; set @dbname = 'tewiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); select LEFT(ar_timestamp,6) as month, count(ar_id) as del_cxt from change_tag, archive where ar_namespace = 0 and ar_parent_id = 0 and ...
{"runningtime": "0.03", "resultsets": []}
null
Content translation creation statistics, translator wise on tewiki
Example data for task https://phabricator.wikimedia.org/T215397 . Shows ratio of main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted.
use tewiki_p; set @dbname = 'tewiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); select LEFT(rev_timestamp,6) as month, rev_actor, count(rev_actor) from change_tag, page, revision where page_id = rev_page and ...
{"runningtime": "0.12", "resultsets": [{"rowcount": 10, "headers": ["log_timestamp", "log_id", "log_title", "comment_text"]}]}
null
Content translation creation statistics, translator name wise on tewiki
Example data for task https://phabricator.wikimedia.org/T215397 . Shows ratio of main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted.
use tewiki_p; set @dbname = 'tewiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); select LEFT(rev_timestamp,6) as month, actor_name, count(rev_actor) from change_tag, page, revision, actor where page_id = rev...
{"runningtime": "3.18", "resultsets": [{"rowcount": 1000, "headers": ["log_timestamp", "log_id", "log_title", "comment_text"]}]}
null
Activity in a page
null
use ptwiki_p; select * from revision inner join page on rev_page = page_id inner join actor on actor_id = rev_actor inner join user on user_id = actor_user where page_namespace = 4 and page_title = 'Coordenação_robótica' and rev_timestamp > 20180000000000 and rev_timestamp < 20200000000000 ;
{"runningtime": "0.68", "resultsets": [{"rowcount": 17, "headers": ["comment_text", "COUNT(*)"]}]}
null
XCF images on Commons
null
USE commonswiki_p; SELECT img_timestamp, img_name FROM image WHERE img_media_type = "BITMAP" AND img_major_mime = "image" AND img_minor_mime = "x-xcf" ORDER BY img_timestamp DESC
{"runningtime": "1.81", "resultsets": [{"rowcount": 1, "headers": ["count(user_id)"]}]}
null
XCF archived images on Commons
null
USE commonswiki_p; SELECT fa_timestamp, fa_name FROM filearchive WHERE fa_media_type = "BITMAP" AND fa_major_mime = "image" AND fa_minor_mime = "x-xcf" ORDER BY fa_timestamp DESC
{"runningtime": "5.90", "resultsets": [{"rowcount": 1, "headers": ["count(user_id)"]}]}
null
XCF overwrites on Commons
null
USE commonswiki_p; SELECT log_timestamp, CONCAT("File:", img_name), actor_name, comment_text FROM image JOIN page ON page_namespace= 6 AND page_title=img_name JOIN logging_logindex ON log_page = page_id AND log_type = "upload" AND log_action = "overwrite" JOIN comment_logging ON log_comment_id = comment_id JOIN actor_l...
{"runningtime": "2.14", "resultsets": [{"rowcount": 196, "headers": ["user_name"]}]}
null
XCF images on Commons by usage
null
USE commonswiki_p; SELECT CONCAT("File:", img_name), COUNT(*) FROM image JOIN globalimagelinks ON gil_to = img_name WHERE img_media_type = "BITMAP" AND img_major_mime = "image" AND img_minor_mime = "x-xcf" GROUP BY gil_to ORDER BY COUNT(*) DESC
{"runningtime": "5.31", "resultsets": [{"rowcount": 183, "headers": ["user_name", "user_editcount"]}]}
null
Proofread-DeepaArulKaniyam-வேங்கடம்முதல்குமரிவரை4
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"runningtime": "8.03", "resultsets": [{"rowcount": 404, "headers": ["rev_actor", "total", "rev_timestamp"]}]}
null
Validated-Rabiyathul_kaniyam-வேங்கடம்முதல்குமரிவரை5
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"runningtime": "4.70", "resultsets": [{"rowcount": 404, "headers": ["actor_name", "total", "rev_timestamp"]}]}
null
Validated-Rabiyathul_kaniyam-எதுவியாபாரம்,எவர்வியாபாரி
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"runningtime": "7.23", "resultsets": [{"rowcount": 404, "headers": ["actor_name", "total", "rev_timestamp"]}]}
null
Validated-Deepa_arul_kaniyam-மணிபல்லவம்2
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"runningtime": "9.14", "resultsets": [{"rowcount": 516, "headers": ["actor_name", "total", "rev_timestamp"]}]}
null
Content translation deletion statistics on tewiki
month wise numbers
use tewiki_p; set @dbname = 'tewiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); select LEFT(ar_timestamp,6) as month, ar_title from change_tag, archive where ar_namespace = 0 and ar_parent_id = 0 and ct_tag_id = @c...
{"runningtime": "4.01", "resultsets": [{"rowcount": 404, "headers": ["actor_name", "total", "rev_timestamp"]}]}
null
Most active users on pl.wikisource 2019
null
use plwikisource_p; select CONCAT('# [[:pl:s:wikiskryba:', user_name, '|', user_name, ']]') as skryba, count(*) c from revision as edycje join user on rev_user=user_id join page on rev_page=page_id where page_namespace in (0,100,102,104) and rev_timestamp BETWEEN "20190101" AND "20191231" group by rev_user order by c...
{"runningtime": "8.67", "resultsets": [{"rowcount": 10, "headers": ["template", "count"]}]}
null
RedWarn users
null
USE enwiki_p; SELECT actor_name, user_editcount, user_registration, (user_editcount > 500 AND user_registration < 20200627000000) as `30/500`, COUNT(*) as `RedWarn edits`, COUNT(*)/user_editcount*100 as `RedWarn %`, ipb_sitewide FROM revision_userindex JOIN change_tag ON ct_rev_id = rev_id JOIN actor_revision ON rev_ac...
{"runningtime": "5.12", "resultsets": [{"rowcount": 43, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
null
RedWarn users
null
USE enwiki_p; SELECT actor_name as `Username`, user_editcount as `Edit count`, user_registration as `Registration date`, NOT(ug_group IS NULL) as `30/500`, COUNT(*) as `RedWarn edits`, COUNT(*)/user_editcount*100 as `RedWarn %`, ipb_sitewide as `Currently blocked` FROM revision_userindex ...
{"runningtime": "10.61", "resultsets": [{"rowcount": 404, "headers": ["actor_name", "COUNT(actor_name)"]}]}
null
specieswiki_p: AND page_title LIKE "%et_al.,2%"
null
USE specieswiki_p; #SELECT CONCAT(page_title) SELECT page_title #SELECT CONCAT("Template:",page_title,"") FROM page AS page WHERE page_namespace = 0 AND page_title LIKE "%†%" #AND page_is_redirect = 1 #AND (page_title LIKE "%peopel%" OR page_title LIKE "%Peopel%") LIMIT 99;
{"connection_id": 325918150}
null
When a user got autoconfirmed?
null
use ptwiki_p; select user_name, user_registration, rev_timestamp from user inner join actor on user_id = actor_user inner join revision on rev_actor = actor_id where user_id = 1026091 ;
{"runningtime": "0.51", "resultsets": [{"rowcount": 47, "headers": ["category_name", "fawiki_counterparts"]}]}
null
4th Parliament Wikidata Edit Count in Time Frame
This query was used to determine participants with the highest Wikidata edit count in the 4th Parliament of Ghana Challenge that run from 1 August 2020 UTC to 12 August 2020 UTC. See: https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Ghana/Parliament_of_Ghana/Members_of_the_4th_Parliament_of_the_4th_Republic_of_Gh...
select actor_name, count(*) as edits from wikidatawiki_p.revision_userindex r join wikidatawiki_p.actor a on r.rev_actor = a.actor_id join wikidatawiki_p.page p on r.rev_page = p.page_id where actor_name in ( "Masssly", "Shahadusadik", "Celestinesucess", "Nana yaa series", "Sunkanmi12", "Kinvidia", "Abdul2274", "Mwinti...
{"runningtime": "15.80", "resultsets": [{"rowcount": 3414, "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_cont...
null
All tables in the enwiki_p database
All of the queriable tables in the public English Wikipedia database.
SHOW TABLES FROM metawiki_p;
{"runningtime": "2.62", "resultsets": [{"rowcount": 0, "headers": ["page_title", "rd_title"]}]}
null
All articles I created
null
use cswiki_p; select page_title from revision join page on rev_page=page_id where page_namespace=0 and rev_parent_id=0 and rev_user in (select user_id from user where user_name="M MrJaroslavik") and page_is_redirect=0;
{"runningtime": "21.73", "resultsets": [{"rowcount": 0, "headers": ["page_title", "GROUP_CONCAT(cl_to SEPARATOR ',')"]}, {"rowcount": 0, "headers": ["page_title", "GROUP_CONCAT(cl_to SEPARATOR ',')"]}]}
null
fix football mangers categories
null
use arwiki_p; select CONCAT('* [[:تصنيف:',page_title, ']]>') AS cat1 , REPLACE(CONCAT( '[[:تصنيف:' , page_title , ']]' ) , 'مدراء' , 'مدربو' ) AS cat2 from page Where page_title like "%مدراء_كرة_قدم%" AND page_namespace = 14 ;
{"runningtime": "0.90", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_title", "page_len"]}]}
null
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)');
{"runningtime": "71.07", "resultsets": [{"rowcount": 0, "headers": ["user_name", "user_editcount", "ug_group", "recent_user_editcount"]}]}
null
Total block count on enwp
null
use metawiki_p;select count(*) as `allBlocks` from globalauth;
{"runningtime": "0.68", "resultsets": [{"rowcount": 1, "headers": ["page_title", "rd_title"]}]}
null
Global blockings per performer
null
use metawiki_p; select actor_name, count(*) as `block count` from logging join actor on actor_id = log_actor where log_type = 'gblblock' and log_action in ('gblock', 'gblock2') group by log_actor order by `block count` desc;
{"runningtime": "76.21", "resultsets": [{"rowcount": 92, "headers": ["user_name", "user_editcount", "ug_group", "recent_user_editcount"]}]}
null
Global blockings per performer
null
use metawiki_p; select actor_name, count(*) as `lock count` from logging join actor on actor_id = log_actor where log_type = 'globalauth' and log_action in ('setstatus') group by log_actor order by `lock count` desc;
{"runningtime": "49.41", "resultsets": [{"rowcount": 1000, "headers": ["\u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0\u0995\u09be\u09b0\u09c0_\u09a8\u09be\u09ae", "\u09ae\u09cb\u099f_\u09a8\u09bf\u09ac\u09a8\u09cd\u09a7"]}]}
null
Stubs with no transclusion of Şablon:Web sitesi bilgi kutusu
null
USE trwiki_p; SELECT p.page_title FROM page p INNER JOIN categorylinks cl ON p.page_id = cl.cl_from AND cl.cl_to = 'Web_sitesi_taslakları' WHERE p.page_namespace = 0 AND NOT EXISTS (SELECT 1 FROM templatelinks WHERE tl_from = p.page_id AND tl_from_namespace = 0 AND tl_namespace = ...
{"runningtime": "12.17", "resultsets": [{"rowcount": 1, "headers": ["CONCAT('[[', page_title, ']]')"]}]}
null
Example log type names
An example list of log types, linked from https://www.mediawiki.org/wiki/Manual:Logging_table#log_type
SELECT log_type FROM ( SELECT DISTINCT log_type FROM metawiki_p.logging ) logging ORDER BY log_type ASC ;
{"runningtime": "239.85", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('[[', page_title, ']]')"]}]}
null
Global locks in last year by user
null
SELECT log_type FROM ( SELECT DISTINCT log_type FROM metawiki_p.logging ) logging ORDER BY log_type ASC ;
{"runningtime": "0.19", "resultsets": [{"rowcount": 32, "headers": ["page_title"]}]}
null
Content translation creation statistics, translator name in a month
Main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted. Edit month as needed
use tewiki_p; set @dbname = 'tewiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); select actor_name, CONCAT("[[",page_title,"]]") as pagename from change_tag, page, revision, actor where page_id = rev_page and ...
{"runningtime": "0.37", "resultsets": [{"rowcount": 32, "headers": ["page_title"]}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"runningtime": "0.21", "resultsets": [{"rowcount": 3, "headers": ["page_title", "rd_title"]}]}
null
longest talk pages on fiwiki
null
use fiwiki_p; select page_id, concat("Talk:", page_title) as page_full_title, page_len from page where page_namespace = 1 and page_title not like '%/%' and page_len > 5000 and not exists ( select 1 from templatelinks where tl_from = page_id and (tl_title = "4s...
{"runningtime": "64.45", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('[[', page_title, ']]')"]}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"runningtime": "0.07", "resultsets": [{"rowcount": 0, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"]}]}
null
zhwp: Interfaces using templates
null
USE zhwiki_p; SELECT tl_from, page_namespace, page_title FROM ( SELECT DISTINCT tl_from FROM templatelinks WHERE tl_from_namespace = 8 AND tl_namespace != 8 ) tl LEFT JOIN page ON tl_from = page_id WHERE page_title NOT REGEXP "\/(zh|zh-hans|zh-hant|zh-cn|zh-sg|zh-my|zh-hk|zh-mo|zh-tw)$"
{"runningtime": "3.61", "resultsets": [{"rowcount": 713, "headers": ["page_title"]}]}
null
wikidata: deleted items that were created by User:Vojtěch Dostál
null
USE wikidatawiki_p; SELECT archive.ar_title AS item, archive.ar_timestamp AS item_creation_timestamp FROM archive JOIN actor_archive ON archive.ar_actor=actor_archive.actor_id WHERE archive.ar_namespace=0 AND archive.ar_parent_id=0 AND actor_archive.actor_name='Vojtěch Dostál' ORDER BY archive.ar_time...
{"runningtime": "39.04", "resultsets": [{"rowcount": 1, "headers": ["active"]}]}
null
ja.wiki protected files
null
USE jawiki_p; 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 AND pr_type = "edit" GROUP BY page_id
{"runningtime": "0.11", "resultsets": [{"rowcount": 2, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]}
null
Which fawiki eliminators have extendedconfirmed access?
null
use fawiki_p; select user_name, case when ug2.ug_group is null then 'no' else 'yes' end as extendedconfirmed from user join user_groups ug1 on ug1.ug_user = user_id and ug1.ug_group = 'eliminator' left join user_groups ug2 on ug2.ug_user = user_id and ug2.ug_group = 'extendedconfirmed' order by ...
{"runningtime": "0.12", "resultsets": [{"rowcount": 3, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]}
null