title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
enwiki:Pages in WikiProject COVID-19 without trwiki interwikis
null
SELECT DISTINCT article.page_id, REPLACE(article.page_title,'_',' '), article.page_len, (CASE WHEN cl_to="Top-importance_COVID-19_articles" THEN "En" WHEN cl_to="High-importance_COVID-19_articles" THEN "Çok" WHEN cl_to="Mid-importance_COVID-19_articles" THE...
{"runningtime": "0.08", "resultsets": [{"rowcount": 0, "headers": ["actor_name", "count"]}]}
null
enwiki:Pages in WikiProject Skepticism and WikiProject History of Science without trwiki interwikis
null
SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:en:",REPLACE(article.page_title,"_"," "),"|en]])"), (CASE WHEN cl_to="Top-importance_history_of_science_articles" THEN "En" WHEN cl_to="High-importance_history_of_science_articles" THEN "Çok" ...
{"runningtime": "0.07", "resultsets": [{"rowcount": 0, "headers": ["MID", "P1259", "coordinates", "P7787", "heading", "/* extracted from {{location}} template */"]}]}
null
enwiki:Pages in WikiProject Skepticism and WikiProject History of Science with trwiki interwikis
null
SELECT DISTINCT CONCAT("# [[",REPLACE(ll_title,"_"," "),"]] ([[:en:",REPLACE(article.page_title,"_"," "),"|en]])"), (CASE WHEN cl_to="Top-importance_history_of_science_articles" THEN "En" WHEN cl_to="High-importance_history_of_science_articles" THEN "Çok" WH...
{"runningtime": "0.35", "resultsets": [{"rowcount": 31, "headers": ["actor_name", "count"]}]}
null
enwiki:Pages in WikiProject Skepticism with trwiki interwikis
null
SELECT DISTINCT CONCAT("# [[",REPLACE(ll_title,"_"," "),"]] ([[:en:",REPLACE(article.page_title,"_"," "),"|en]])"), (CASE WHEN cl_to="Top-importance_Skepticism_articles" THEN "En" WHEN cl_to="High-importance_Skepticism_articles" THEN "Çok" WHEN cl_to="Mid-im...
{"runningtime": "3.44", "resultsets": [{"rowcount": 1000, "headers": ["MID", "P1259", "coordinates", "P7787", "heading", "/* extracted from {{location}} template */"]}]}
null
enwiki:Pages in WikiProject Skepticism without trwiki interwikis
null
SELECT DISTINCT article.page_id, REPLACE(article.page_title,'_',' '), article.page_len, (CASE WHEN cl_to="Top-importance_Skepticism_articles" THEN "En" WHEN cl_to="High-importance_Skepticism_articles" THEN "Çok" WHEN cl_to="Mid-importance_Skepticism_article...
{"runningtime": "0.39", "resultsets": [{"rowcount": 20, "headers": ["MID", "P1259", "Q63348040"]}]}
null
AC/DC edits by day
Edits made
USE commonswiki_p; SELECT DATE_FORMAT(rev_timestamp, "%Y-%m-%d") AS day, COUNT(rev_id) as count FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id JOIN page ON page_id = rev_page JOIN actor_revision ON actor_id = rev_actor JOIN comment_revision ON comment_id = rev_comment_id W...
{"runningtime": "38.95", "resultsets": [{"rowcount": 1262, "headers": ["reviews", "rc_title", "accepted", "accept %", "declined", "decline %"]}]}
null
VFC edits (not deletion requests): minor vs not minor
Edits on Wikimedia Commons using VisualFileChange
USE commonswiki_p; SELECT rev_minor_edit, COUNT(rev_id) FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id JOIN comment_revision ON comment_id = rev_comment_id WHERE ( ctd_name = 'VisualFileChange' AND comment_text NOT LIKE '%Nominating%' ) GROUP BY rev_minor_edit
{"connection_id": 499329796}
null
Count of VFC edits post September 2019
null
USE commonswiki_p; SELECT COUNT(rev_id) FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id WHERE ( ctd_name = 'VisualFileChange' AND rev_timestamp > 20190901000000 );
{"runningtime": "1104.88", "resultsets": [{"rowcount": 15, "headers": ["File name", "Date", "Size", "Uploader's name"]}]}
null
Count of (non-DR) VFC edits post September 2019
null
USE commonswiki_p; SELECT COUNT(rev_id) FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id JOIN comment_revision ON comment_id = rev_comment_id WHERE ( ctd_name = 'VisualFileChange' AND comment_text NOT LIKE '%Nominating%' AND rev_timestamp > 20190901000000 );
{"runningtime": "228.16", "resultsets": [{"rowcount": 133, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]}
null
VFC edits: minor vs not minor
Edits on Wikimedia Commons using VisualFileChange
USE commonswiki_p; SELECT rev_minor_edit, COUNT(rev_id) FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id JOIN comment_revision ON comment_id = rev_comment_id WHERE ( ctd_name = 'VisualFileChange' ) GROUP BY rev_minor_edit
{"runningtime": "1384.26", "resultsets": [{"rowcount": 436, "headers": ["page_title", "cl_to"]}]}
null
VFC edits (non DR) post September 2019: minor vs not minor
Edits on Wikimedia Commons using VisualFileChange
USE commonswiki_p; SELECT rev_minor_edit, COUNT(rev_id) FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id JOIN comment_revision ON comment_id = rev_comment_id WHERE ( ctd_name = 'VisualFileChange' AND rev_timestamp > 20190901000000 ) GROUP BY rev_minor_edit
{"runningtime": "14.71", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 0, "headers": ["wpage"]}]}
null
VFC edits per year
Edits on Wikimedia Commons using VisualFileChange
USE commonswiki_p; SELECT DATE_FORMAT(rev_timestamp, "%Y") as year, COUNT(rev_id) FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id WHERE ( ctd_name = 'VisualFileChange' ) GROUP BY year
{"runningtime": "56.75", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 0, "headers": ["wpage"]}]}
null
Jawiki Japan map files by upload date in cat
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 JOIN categorylinks ON cl_from = page_id AND cl_type = "file" AND cl_to = "草花写真館画像" #"...
{"connection_id": 393440051}
null
Blank Comments talk subpages needing human attention
null
USE enwiki_p; SELECT CONCAT("Talk:", com.page_title) as title, CONCAT("Talk:", REPLACE(com.page_title, "/Comments", "")) as target, target.page_is_redirect FROM page com LEFT JOIN page target ON target.page_title = REPLACE(com.page_title, "/Comments", "") AND target.page_namespace = 1 WHERE com.page_namespace = 1 ...
{"runningtime": "0.65", "resultsets": [{"rowcount": 158, "headers": ["ar_title"]}, {"rowcount": 21, "headers": ["page_title"]}]}
null
Reply Tool usage/user (ca.wiki)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from cawiki_p.change_tag ct inner join cawiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join cawiki_p.actor act on rat.revactor_actor = act.actor_id inner join cawiki_p.change_tag_def on ct_tag_i...
{"runningtime": "4.41", "resultsets": [{"rowcount": 1253, "headers": ["tl_from", "page_namespace", "page_title"]}]}
null
Reply Tool usage/user (ckb.wiki)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from ckbwiki_p.change_tag ct inner join ckbwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join ckbwiki_p.actor act on rat.revactor_actor = act.actor_id inner join ckbwiki_p.change_tag_def on ct_t...
{"runningtime": "3.23", "resultsets": [{"rowcount": 1212, "headers": ["tl_from", "page_namespace", "page_title"]}]}
null
Reply Tool usage/user (ka.wiki)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from kawiki_p.change_tag ct inner join kawiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join kawiki_p.actor act on rat.revactor_actor = act.actor_id inner join kawiki_p.change_tag_def on ct_tag_i...
{"runningtime": "0.84", "resultsets": [{"rowcount": 295, "headers": ["tl_from", "page_namespace", "page_title"]}]}
null
Reply Tool usage/user (sr.wiki)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from srwiki_p.change_tag ct inner join srwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join srwiki_p.actor act on rat.revactor_actor = act.actor_id inner join srwiki_p.change_tag_def on ct_tag_i...
{"runningtime": "1.32", "resultsets": [{"rowcount": 287, "headers": ["tl_from", "page_namespace", "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": "4.64", "resultsets": [{"rowcount": 0, "headers": ["pywiki"]}]}
null
Blocks per day on euwiki
null
USE euwiki_p; -- select the wiki here SELECT SUBSTRING(log_timestamp FROM 1 FOR 8) AS day, COUNT(*) AS count FROM logging WHERE log_type = 'block' AND log_action = 'block' AND log_timestamp >= '20200101000000' -- select the start date here (YYYYMMDDHHMMSS) -- optionally, add AND log_timestamp < 'YYYYMMDDHHMMSS' to set...
{"runningtime": "4.03", "resultsets": [{"rowcount": 47, "headers": ["date", "images"]}]}
null
Blocks per day on ptwiki
null
USE ptwiki_p; -- select the wiki here SELECT SUBSTRING(log_timestamp FROM 1 FOR 8) AS day, COUNT(*) AS count FROM logging WHERE log_type = 'block' AND log_action = 'block' AND log_timestamp >= '20200101000000' -- select the start date here (YYYYMMDDHHMMSS) -- optionally, add AND log_timestamp < 'YYYYMMDDHHMMSS' to set...
{"runningtime": "0.75", "resultsets": [{"rowcount": 2, "headers": ["CONCAT(\"File:\", page_title)", "pr_level", "pr_expiry"]}]}
null
Wikidata - list of properties (ml labels)
http://quarry.wmflabs.org/query/1248
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 = 'ml' and term_type = 'label' ORDER bY term_entity_id desc;
{"runningtime": "0.12", "resultsets": [{"rowcount": 5, "headers": ["page_restrictions"]}]}
null
Blocks per day on euwiki
null
USE euwiki_p; -- select the wiki here SELECT day, SUM(count) AS count FROM ( -- the real data, blocks per day SELECT SUBSTRING(log_timestamp FROM 1 FOR 8) AS day, COUNT(*) AS count FROM logging WHERE log_type = 'block' AND log_action = 'block' AND log_timestamp >= '20200101000000' -- select the start date ...
{"runningtime": "0.09", "resultsets": [{"rowcount": 5, "headers": ["page_restrictions"]}]}
null
kk wiki editors 2020-10
null
use kkwiki_p; select actor_user, count(revactor_rev) from revision_actor_temp, actor, page where revactor_timestamp like '202010%' and revactor_page = page_id and page_namespace = 0 and revactor_actor = actor_id group by actor_user order by actor_user desc;
{"runningtime": "195.77", "resultsets": [{"rowcount": 36, "headers": ["page_title"]}]}
null
স্কুল_এন্ড_কলেজ
null
USE bnwiki_p; SELECT CONCAT("*[[",page_title,"]]") FROM page WHERE page_namespace = 0 AND page_title LIKE "%স্কুল_এন্ড_কলেজ" # AND page_title LIKE "%প্রাথমিক_বিদ্যালয়" AND page_is_redirect = 1 # AND (page_title LIKE "%peopel%" OR page_title LIKE "%Peopel%") LIMIT 100;
{"connection_id": 399397884}
null
Empty article talks on plwiki
null
USE plwiki_p; SELECT concat("# [[Dyskusja:",page_title,"]]") AS page_title FROM plwiki_p.page WHERE page_namespace = 1 AND page_len = 0 ORDER BY page_title;
{"runningtime": "1.34", "resultsets": [{"rowcount": 235, "headers": ["actor_name", "date", "pagename"]}]}
null
বাংলা উইকিপিডিয়ায় বেশি ব্যবহৃত ইউআরএল
null
USE bnwiki_p; SELECT Q.Title, count(Q.Title) FROM ( SELECT SUBSTRING_INDEX(REGEXP_REPLACE(el_to,'https?:\/\/',''), '/', 1) as Title FROM externallinks ) as Q GROUP BY Q.Title HAVING count(Q.Title)>5 order by count(Q.Title) DESC
{"runningtime": "2.00", "resultsets": [{"rowcount": 49, "headers": ["actor_name", "date", "pagename"]}]}
null
trwiki: distribution of article size
null
USE trwiki_p; -- articles and disambiguation pages -- SELECT ROUND(page_len, -2) AS bucket, COUNT(page_id) AS cnt FROM page WHERE page_is_redirect!=1 AND page_namespace=0 GROUP BY bucket; -- articles only -- SELECT ROUND(page_len, -2) AS bucket, COUNT(page_id) AS cnt FROM page WHERE page_namespace=0 AND page_is_redir...
{"runningtime": "107.99", "resultsets": [{"rowcount": 11, "headers": ["page_title", "rev_timestamp"]}]}
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.24", "resultsets": [{"rowcount": 1, "headers": ["wbit_item_id", "wbx_text"]}]}
null
Duplicates of Commons files (fr)
null
USE frwiki_p; SELECT a.img_name 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 = "Wikipédia:Exceptions_au_droit_d'auteur" #join commonswiki_p.image b on b.img_name != a.img_name and b.img_sha1 = a.img_sha1 join commons...
{"runningtime": "44.35", "resultsets": [{"rowcount": 1000, "headers": ["rank", "user_name", "\u09ae\u09cb\u099f_\u09a8\u09bf\u09ac\u09a8\u09cd\u09a7"]}]}
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.19", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]}
null
enwiki:Pages in WikiProject Museums and WikiProject History of Science without trwiki interwikis
null
SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:en:",REPLACE(article.page_title,"_"," "),"|en]])"), (CASE WHEN cl_to="Top-importance_history_of_science_articles" THEN "En" WHEN cl_to="High-importance_history_of_science_articles" THEN "Çok" ...
{"runningtime": "0.18", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]}
null
enwiki:Pages in WikiProject Philosophy and WikiProject History of Science without trwiki interwikis (Phil. ordered)
null
SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:en:",REPLACE(article.page_title,"_"," "),"|en]])"), (CASE WHEN cl_to="Top-importance_Philosophy_articles" THEN "En" WHEN cl_to="High-importance_Philosophy_articles" THEN "Çok" WHEN cl_...
{"runningtime": "0.37", "resultsets": [{"rowcount": 114, "headers": ["page_title"]}]}
null
frwiki:Projets
null
select * from frwiki_p.page_assessments_projects; select * from frwiki_p.page_assessments limit 10;
{"runningtime": "312.10", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_title", "rd_namespace", "rd_title"]}]}
null
frwiki:Pages in projet Histoire des sciences in enwiki with trwiki interwiki but not in VikiProje Bilim Tarihi (page and page_assessments tables)
null
USE frwiki_p; SELECT DISTINCT CONCAT("# [[",ll_title,"]] ([[:fr:",REPLACE(article.page_title,"_"," "),"|fr]])") #, trtalk.page_title FROM page talk INNER JOIN page article ON talk.page_title = article.page_title INNER JOIN categorylinks cl ON cl.cl_from = talk.page_id INNER JOIN langlinks ON article.page_id = ll_fr...
{"runningtime": "666.48", "resultsets": [{"rowcount": 1, "headers": ["File name", "Date", "Size", "Uploader's name"]}]}
null
frwiki:Pages in projet Histoire des sciences in frwiki with trwiki interwiki but not in VikiProje Bilim Tarihi (page table)
null
USE frwiki_p; SELECT DISTINCT CONCAT("# [[",ll_title,"]] ([[:fr:",REPLACE(article.page_title,"_"," "),"|fr]])") #, trtalk.page_title FROM page talk INNER JOIN page article ON talk.page_title = article.page_title INNER JOIN categorylinks cl ON cl.cl_from = talk.page_id INNER JOIN langlinks ON article.page_id = ll_f...
{"runningtime": "0.66", "resultsets": [{"rowcount": 34, "headers": ["page_title"]}]}
null
enwiki:Templates in WikiProject History of Science
null
SELECT DISTINCT article.page_id, article.page_title, ll_title FROM page talk INNER JOIN page article ON talk.page_title = article.page_title INNER JOIN categorylinks ON cl_from = talk.page_id LEFT JOIN langlinks ON article.page_id = ll_from AND ll_lang='tr' WHERE talk.page_namespace = 11 AND article.page_namesp...
{"runningtime": "0.19", "resultsets": [{"rowcount": 6, "headers": ["concat(\"* {{configuration list entry|\",replace(page_title,\"$\",\"\"),\"}}\")"]}]}
null
enwiki inactive special users
null
use cswiki_p; SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', GROUP_CONCAT(ug1.ug_group) AS 'user_groups' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('sysop', 'abusefilter', 'abusefilter-helper', 'rollbacker', 'accountcreator', 'bureaucrat', 'c...
{"runningtime": "0.14", "resultsets": [{"rowcount": 5, "headers": ["concat(\"* {{configuration list entry|\",replace(page_title,\"$\",\"\"),\"}}\")"]}]}
null
cswiki autoconfirmed users in the confirmed group
null
use skwiki_p; SELECT user_name, user_editcount, user_registration, ug1.ug_group, ug1.ug_expiry FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('confirmed') WHERE ug1.ug_group IS NOT NULL AND user.user_editcount > 9 AND user.user_registration < (DATE_FORMAT((NOW() - INTERVAL ...
{"runningtime": "6.79", "resultsets": [{"rowcount": 300, "headers": ["pl_from_namespace", "concat(\"Special:Redirect/page/\",pl_from)", "pl_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": "64.33", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_title", "rd_namespace", "rd_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.16", "resultsets": [{"rowcount": 26, "headers": ["user_id", "user_name", "user_editcount"]}]}
null
Reply Tool usage/user [before Nov-2020]
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from enwiki_p.change_tag ct inner join enwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join enwiki_p.actor act on rat.revactor_actor = act.actor_id inner join enwiki_p.change_tag_def on ct_tag_i...
{"runningtime": "0.38", "resultsets": [{"rowcount": 84, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"]}]}
null
trwiki:Pages in Vikiproje Bilim Tarihi in draft categories
null
USE trwiki_p; SELECT DISTINCT article.page_id, article.page_title,article.page_len, (CASE WHEN articlecat.cl_to="Bilim_tarihi_taslakları" THEN "True" WHEN articlecat.cl_to LIKE "%taslak%" THEN "False" END) FROM page talk INNER JOIN page article ON talk.page_title = article.page_title INNER JOIN categorylinks talkcat ...
{"runningtime": "0.10", "resultsets": [{"rowcount": 1, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]}
null
VFC custom replacements
Edits on Wikimedia Commons using VisualFileChange
USE commonswiki_p; SELECT ct_id, ctd_name, comment_text, rev_id, rev_minor_edit, page_namespace, page_title, rev_timestamp, actor_name FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id JOIN page ON page_id = rev_page JOIN actor_revision ON actor_id = rev_actor JOIN comment_re...
{"runningtime": "14.79", "resultsets": [{"rowcount": 946, "headers": ["user"]}]}
null
VFC 'replacements' edits post September 2019
null
USE commonswiki_p; SELECT rev_id, rev_minor_edit, comment_text FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id JOIN comment_revision ON comment_id = rev_comment_id WHERE ( ctd_name = 'VisualFileChange' AND comment_text LIKE '%replacements.' AND rev_timestamp > 2019090...
{"runningtime": "431.34", "resultsets": [{"rowcount": 528, "headers": ["page_title", "cl_to"]}]}
null
VFC 'replacements' edits post September 2019 per day
VisualFileChange 'custom replacements' since Septembers 2019, per day, and how many were minor edits.
USE commonswiki_p; SELECT DATE_FORMAT(rev_timestamp, "%Y-%m-%d") AS day, COUNT(rev_id) as revision_count, SUM(rev_minor_edit) as minor_edits FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id JOIN comment_revision ON comment_id = rev_comment_id WHERE ( ctd_name = 'VisualFile...
{"runningtime": "98.85", "resultsets": [{"rowcount": 67, "headers": ["CONCAT('# [[',page_title,']]')"]}]}
null
Blank Comments talk subpages
null
USE enwiki_p; SELECT CONCAT("Talk:", com.page_title) as title, CONCAT("Talk:", target.page_title) as target FROM page com JOIN page target ON target.page_title = REPLACE(com.page_title, "/Comments", "") WHERE com.page_namespace = 1 AND target.page_namespace = 1 AND com.page_title LIKE "%/Comments" AND com...
{"runningtime": "26.27", "resultsets": [{"rowcount": 0, "headers": ["log_id", "log_type", "log_action", "user_name", "user_editcount", "user_registration", "log_params"]}, {"rowcount": 4, "headers": ["log_id", "log_type", "log_action", "user_name", "user_editcount", "user_registration", "log_params"]}, {"rowcount": 47,...
null
Comments talk subpages
null
USE enwiki_p; SELECT CONCAT("Talk:", page_title), page_len FROM page WHERE page_namespace = 1 AND page_title LIKE "%/Comments" AND page_is_redirect = 0 ORDER BY page_len DESC
{"runningtime": "10.12", "resultsets": [{"rowcount": 232, "headers": ["actor_name", "user_editcount", "user_registration", "30/500", "RedWarn edits", "RedWarn %", "ipb_sitewide"]}]}
null
trwiki:Long article talk pages
null
USE trwiki_p; SELECT page_id, page_title, page_len FROM page WHERE page_namespace=1 AND page_len>100000 AND page_title NOT LIKE '%/%' ORDER BY page_len DESC;
{"runningtime": "59.96", "resultsets": [{"rowcount": 11, "headers": ["page_title"]}]}
null
Reply Tool usage/user (cs.wiki)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from arwiki_p.change_tag ct inner join arwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join arwiki_p.actor act on rat.revactor_actor = act.actor_id inner join arwiki_p.change_tag_def on ct_tag_i...
{"runningtime": "0.12", "resultsets": [{"rowcount": 7, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]}
null
Files uploaded with the UploadWizard
null
USE commonswiki_p; SELECT COUNT(comment_text) AS ucount FROM comment JOIN logging ON comment_id = comment.comment_id WHERE comment.comment_text = "User created page with UploadWizard" AND logging.log_type = "upload" ;
{"runningtime": "0.29", "resultsets": [{"rowcount": 32, "headers": ["page_title"]}]}
null
Uploaders using the UploadWizard
null
USE commonswiki_p; SELECT COUNT(DISTINCT log_actor) as uploaders FROM comment JOIN logging ON comment_id = comment.comment_id WHERE comment.comment_text = "User created page with UploadWizard" AND logging.log_type = "upload";
{"runningtime": "0.76", "resultsets": [{"rowcount": 17, "headers": ["page_title"]}]}
null
Spam Blacklist log
null
use ptwiki_p; select * from logging where log_type = 'spamblacklist'
{"runningtime": "25.43", "resultsets": [{"rowcount": 2, "headers": ["img_name"]}]}
null
Distinct log types
null
use ptwiki_p; select log_type, count(*) from logging group by log_type
{"runningtime": "463.00", "resultsets": [{"rowcount": 0, "headers": ["page_title", "rev_timestamp"]}]}
null
frwiki:Pages in projet Fem% and projet Histoire des sciences without trwiki interwikis (page table)
null
USE frwiki_p; SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:fr:",REPLACE(article.page_title,"_"," "),"|fr]])"), (CASE WHEN cl_to="Article_du_projet_Histoire_des_sciences_d'importance_maximum" THEN "En" WHEN cl_to="Article_du_projet_Histoire_des_scien...
{"runningtime": "945.32", "resultsets": [{"rowcount": 311, "headers": ["CONCAT('# [[',REPLACE(page_title,'_',' '),']]')"]}]}
null
frwiki:Pages in projet Fem% and projet Histoire des sciences without trwiki interwikis (page table)
null
USE frwiki_p; SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:fr:",REPLACE(article.page_title,"_"," "),"|fr]])"), (CASE WHEN cl_to="Article_du_projet_Histoire_des_sciences_d'importance_maximum" THEN "En" WHEN cl_to="Article_du_projet_Histoire_des_scien...
{"runningtime": "0.81", "resultsets": [{"rowcount": 1, "headers": ["SUM(1)"]}]}
null
frwiki:Pages in projet Fem% and projet Philosophie without trwiki interwikis (page table)
null
USE frwiki_p; SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:fr:",REPLACE(article.page_title,"_"," "),"|fr]])"), (CASE WHEN cl_to="Article_du_projet_Philosophie_d'importance_maximum" THEN "En" WHEN cl_to="Article_du_projet_Philosophie_d'importance_éle...
{"runningtime": "19.17", "resultsets": [{"rowcount": 237, "headers": ["c", "actor_name", "log_action", "log_type"]}]}
null
All Good/Featured articles in enwiki matching Good articles in frwiki
null
SELECT enpage.page_title, fritems.ips_site_page,fritems.ips_item_id FROM enwiki_p.page enpage JOIN enwiki_p.categorylinks encat JOIN wikidatawiki_p.wb_items_per_site fritems JOIN wikidatawiki_p.wb_items_per_site enitems JOIN frwiki_p.page frpage JOIN frwiki_p.categorylinks frcat ON fritems.ips_item_id =enitems.ips_ite...
{"runningtime": "148.00", "resultsets": [{"rowcount": 10000, "headers": ["count", "page_title"]}]}
null
All Good/Featured articles in enwiki matching Good articles in frwiki
null
SELECT enpage.page_title, fritems.ips_site_page,fritems.ips_item_id FROM enwiki_p.page enpage JOIN enwiki_p.categorylinks encat JOIN wikidatawiki_p.wb_items_per_site fritems JOIN wikidatawiki_p.wb_items_per_site enitems JOIN elwiki_p.page frpage JOIN elwiki_p.categorylinks frcat ON fritems.ips_item_id =enitems.ips_ite...
{"runningtime": "388.12", "resultsets": [{"rowcount": 39, "headers": ["username", "Global block", "Global lock", "Global rename", "Global rights", "Rights", "Af edits", "SR edits", "Total"]}]}
null
Count template transclusions
null
use ruwiki_p; select tl_title, count(tl_from) as transclusions from templatelinks where tl_namespace = 10 and -- Template namespace tl_title in ('Книга', 'Другое_значение', 'Stub-meta') group by tl_title order by transclusions desc;
{"runningtime": "0.03", "resultsets": []}
null
most thanked users in bnwiki
বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী
USE bnwiki_p; SELECT log_title, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_title ORDER BY COUNT(*) DESC LIMIT 500;
{"runningtime": "0.85", "resultsets": [{"rowcount": 250, "headers": ["tl_namespace", "tl_title", "page_id"]}]}
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": "73.46", "resultsets": [{"rowcount": 100, "headers": ["page_title", "page_count"]}]}
null
Wikilinks mit fehlendem Pipe-Zeichen
gesucht werden Rotlinks nach dem Schema "Blubb (Klammerteil)Blah" wobei "Blubb (Klammerteil)" als Blaulink existiert
USE ndswiki_p; SELECT Artikel.page_title AS "Artikel", pl_title AS "eventuell kaputten Link", CONCAT(SUBSTRING_INDEX(pl_title, ')', 1), ')|', SUBSTRING_INDEX(pl_title, ')', -1)) AS "Vörslag" from pagelinks, page AS Artikel, page AS Blaulink WHERE Artikel.page_id = pl_from AND pl_namespace = 0 AND...
{"runningtime": "81.96", "resultsets": [{"rowcount": 50, "headers": ["page_title", "page_count"]}]}
null
most thanked users in bnwiki
বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী
USE bnwiki_p; SELECT log_title, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_title ORDER BY COUNT(*) DESC LIMIT 500;
{"connection_id": 422437226}
null
Loser LTA Tracking
null
SELECT page_namespace, page_title, rc_timestamp, rc_this_oldid, comment_text FROM comment_recentchanges JOIN recentchanges ON rc_comment_id = comment_id JOIN page ON page_id = rc_cur_id WHERE ( Lower(comment_text) regexp '\\b(los(er|ing|ers|erlose...
{"runningtime": "231.13", "resultsets": [{"rowcount": 39, "headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"]}]}
null
Luhansk2020-week-new
null
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(user_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT('[[Користувач:', actor_name, '|', ']]') as user_name, COUNT(1) AS created, SUM(article.page_len) as total_len, ...
{"runningtime": "2.33", "resultsets": [{"rowcount": 498, "headers": ["files"]}]}
null
Luhansk2020-week-improve
null
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(article, 'Всього'), user_number, size_increase, users FROM ( SELECT CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') as article, COUNT(1) AS user_number, SUM(user_size_increase) as si...
{"runningtime": "2.73", "resultsets": [{"rowcount": 496, "headers": ["files"]}]}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
USE bnwiki_p; SELECT CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম, COUNT(rev_id) AS মোট_নিবন্ধ FROM actor INNER JOIN revision ON revision.rev_actor = actor.actor_id JOIN page ON page.page_id = revision.rev_page WHERE page_is_redirect = 0 AND rev_parent_id = 0 AND page_namespace = 0 AND rev...
{"runningtime": "73.90", "resultsets": [{"rowcount": 0, "headers": ["Page", "Transclusions", "Over", "Counter"]}]}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
USE bnwiki_p; SELECT CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম, COUNT(rev_id) AS মোট_নিবন্ধ FROM actor INNER JOIN revision ON revision.rev_actor = actor.actor_id JOIN page ON page.page_id = revision.rev_page WHERE page_is_redirect = 0 AND rev_parent_id = 0 AND page_namespace = 0 AND rev...
{"runningtime": "3.12", "resultsets": [{"rowcount": 236, "headers": ["wbit_item_id", "wbx_text"]}]}
null
ORES test
null
SELECT * FROM ores_classification WHERE oresc_rev = 982883941 AND oresc_model = 57;
{"runningtime": "0.29", "resultsets": [{"rowcount": 13, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 2, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 8, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
enwiki: WikiProject Archaeology articles
Lists all articles that are tagged as of interest to WikiProject Archaeology, excluding redirects, along with associated WikiData item and information on project quality/importance assessment.
USE enwiki_p; /* -- project_id for WikiProject Archaeology: SELECT pap_project_id FROM page_assessments_projects WHERE pap_project_title = "Archaeology"); -- 406 -- oresm_id for article quality (latest version): SELECT oresm_id FROM ores_model WHERE oresm_name = "articlequality" AND oresm_is_current = 1; -- 57 */ S...
{"runningtime": "1.10", "resultsets": [{"rowcount": 7, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 2, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 5, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
enwiki: Revisions to WikiProject Archaeology articles
Lists all revisions to articles tagged as of interest to WikiProject Archaeology (excluding redirects).
USE enwiki_p; /* -- pa_project_id for WikiProject Archaeology: SELECT pap_project_id FROM page_assessments_projects WHERE pap_project_title = "Archaeology"); -- 406 */ SELECT rev_id, rev_page, rev_actor, rev_timestamp, rev_minor_edit, rev_len, rev_parent_id FROM revision WHERE rev_page IN ( SELECT ...
{"runningtime": "47.77", "resultsets": [{"rowcount": 1, "headers": ["main_title"]}]}
null
Pages with ArbCom Ds/talk_notice
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]") FROM page JOIN templatelinks ON tl_from = page_id WHERE tl_title = "Ds/talk_notice" AND tl_namespace = 10 AND page_namespace = 1
{"runningtime": "0.66", "resultsets": [{"rowcount": 207, "headers": ["from_page", "to_page"]}]}
null
Pages with ArbCom Ds/talk_notice by case
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]") as page, REGEXP_REPLACE(pl_title, "Arbitration/Requests/Case/|Requests_for_arbitration/", "") as `case` FROM page JOIN templatelinks ON tl_from = page_id JOIN pagelinks ON pl_from = page_id WHERE tl_title = "Ds/talk_notice" AND tl_namespace = 10 AND page_namespace...
{"runningtime": "0.69", "resultsets": [{"rowcount": 207, "headers": ["from_page", "to_page"]}]}
null
Statistics of editing MediaWiki JS/CSS in ruwiki
null
/*USE ruwiki_p; SELECT rev_user_text, COUNT(rev_user_text), rev_comment, -- если правка одна, видно, что page_title, -- и где, rev_timestamp -- и когда, -- если много - отображается случайная FROM revision JOIN page ON page_id = rev_page WHERE rev_timestamp >= "20170701" AND page_namespace...
{"runningtime": "2.57", "resultsets": [{"rowcount": 919, "headers": ["Database"]}]}
null
zhwp: GA articles
null
USE zhwiki_p; SELECT page_title, page_len FROM categorylinks LEFT JOIN page ON cl_from = page_id WHERE cl_to = '優良條目'; SELECT SUM(page_len) FROM categorylinks LEFT JOIN page ON cl_from = page_id WHERE cl_to = '優良條目';
{"runningtime": "0.67", "resultsets": [{"rowcount": 197, "headers": ["from_page", "target_namespace", "to_page"]}]}
null
zhwp: article length sum
null
USE zhwiki_p; SELECT SUM(page_len) FROM page WHERE page_namespace = 0;
{"runningtime": "37.05", "resultsets": [{"rowcount": 23, "headers": ["page_title"]}]}
null
enwiki: Editors of WikiProject Archaeology articles
Lists unique actors (registered users and IPs) that have made edits to articles tagged as of interest to WikiProject Archaeology (excluding redirects).
USE enwiki_p; /* -- pa_project_id for WikiProject Archaeology: SELECT pap_project_id FROM page_assessments_projects WHERE pap_project_title = "Archaeology"); -- 406 */ SELECT actor.actor_id, actor.actor_name, user.user_id, user.user_name, user.user_real_name, user.user_touched, user.user_editcount FROM...
{"runningtime": "65.32", "resultsets": [{"rowcount": 1, "headers": ["page_title"]}]}
null
Count of VFC 'replacements' edits post September 2019
VisualFileChange 'custom replacements' since Septembers 2019, and how many were minor edits.
USE commonswiki_p; SELECT COUNT(rev_id) as revision_count, SUM(rev_minor_edit) as minor_edits FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id JOIN revision ON rev_id = ct_rev_id JOIN comment_revision ON comment_id = rev_comment_id WHERE ( ctd_name = 'VisualFileChange' AND comment_text LIKE '%replacements....
{"runningtime": "2.78", "resultsets": [{"rowcount": 78, "headers": ["number", "actor_name"]}]}
null
Wikilinks mit fehlendem Pipe-Zeichen
gesucht werden Rotlinks nach dem Schema "Blubb (Klammerteil)Blah" wobei "Blubb (Klammerteil)" als Blaulink existiert
USE dewiki_p; SELECT CONCAT('[[', Artikel.page_title, ']]') AS "Artikelchen", pl_title AS "eventüll karpotter Link", CONCAT(SUBSTRING_INDEX(pl_title, ')', 1), ')|', SUBSTRING_INDEX(pl_title, ')', -1)) AS "Vorschlag" from pagelinks, page AS Artikel, page AS Blaulink WHERE Artikel.page_id = pl_from AN...
{"connection_id": 430339685}
null
Reply Tool usage/user (Phase 0-3 wikis)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from enwiki_p.change_tag ct inner join enwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join enwiki_p.actor act on rat.revactor_actor = act.actor_id inner join enwiki_p.change_tag_def on ct_tag_i...
{"runningtime": "405.10", "resultsets": [{"rowcount": 0, "headers": ["wikitext"]}]}
null
Placeholder query for getting actor IDs
null
USE hrwiki_p; SELECT actor_id FROM actor WHERE actor_name = "Zeljko"
{"runningtime": "0.62", "resultsets": [{"rowcount": 50, "headers": ["concat (\"\u0645\u0644\u0641:\",page_title)"]}]}
null
enwiki:Minor planets without trwiki interwikis
null
USE enwiki_p; SELECT CONCAT("#[[",REPLACE(page_title,"_"," "),"]]"), CONCAT("[https://tr.wikipedia.org/wiki/Special:ContentTranslation?to=tr&page=",REPLACE(page_title,"_","+"),"&from=en]") as translatorlink, page_len, page_props.pp_value, COUNT(ll_lang) FROM page INNER JOIN categorylinks ON cl_from = page_id INNER ...
{"runningtime": "959.81", "resultsets": [{"rowcount": 34, "headers": ["File name", "Date", "Size", "Uploader's name"]}]}
null
Blocks of registered users by select hrwiki admins
Specifically, this is the subset of admins that are mentioned in GregorB's proposal on the hrwiki RFC at Meta Caveats: I haven't quite figured out the best way to deal with unblocks here, so it... doesn't.
USE hrwiki_p; SELECT logging.log_title, comment.comment_text, user.user_editcount FROM logging INNER JOIN comment ON comment.comment_id = logging.log_comment_id INNER JOIN user ON logging.log_title = user.user_name WHERE log_type = "block" AND (log_actor = 1044 OR log_actor = 4688 OR log_actor = 12)
{"runningtime": "1.13", "resultsets": [{"rowcount": 0, "headers": ["concat (\"\u0645\u0644\u0641:\",page_title)"]}]}
null
All edits made by participants in the 2020 Sum of all Indian Paintings datathon
(Ripped from wdvd's code and modified a bit.) Thanks, Adam, for further modifications!
USE wikidatawiki_p; select now(); SELECT rev_id, rc_timestamp, actor_name, rc_title, comment_text FROM recentchanges LEFT JOIN comment ON comment.comment_id = recentchanges.rc_comment_id LEFT JOIN actor on actor.actor_id = recentchanges.rc_actor LEFT JOIN revision on revision.rev_id = recentchanges.rc_this_oldid # re...
{"runningtime": "0.09", "resultsets": [{"rowcount": 7, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]}
null
All edits made by participants in the 2020 Sum of all Indian Paintings datathon
(Ripped from wdvd's code and modified a bit.) Thanks, Adam, for further modifications!
USE wikidatawiki_p; select now(); SELECT rev_id, rc_timestamp, actor_name, rc_title, comment_text FROM recentchanges LEFT JOIN comment ON comment.comment_id = recentchanges.rc_comment_id LEFT JOIN actor on actor.actor_id = recentchanges.rc_actor LEFT JOIN revision on revision.rev_id = recentchanges.rc_this_oldid # re...
{"runningtime": "1.13", "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
Articles by lint errors except for Obsolete HTML tags
Based on query: https://quarry.wmflabs.org/query/31876
USE trwiki_p; select page_title , count(*) as page_count , sum(case when linter_params like '%"name":"center"%' then 1 end) as tag_center , sum(case when linter_params like '%"name":"small"%' then 1 end) as tag_small , sum(case when linter_params like '%"name":"span"%' then 1 end) as tag_span , sum(case when linter_pa...
{"connection_id": 432679050}
null
WikiPT - Usuários registrados com mais de 10 edições (mensal)
null
USE ptwiki_p; SET @cont = 0; SELECT mês, (@cont := @cont + c) usuários FROM (SELECT SUBSTR(user_registration, 1, 6) mês, COUNT(*) c FROM user WHERE user_editcount > 10 GROUP BY mês order by mês ) u;
{"connection_id": 432679074}
null
List of articles a user created
null
USE scowiki_p; SELECT DISTINCT page_title, page_len, rev_len FROM revision_userindex JOIN actor ON actor_id = rev_actor JOIN page ON page_id = rev_page WHERE actor_name = 'AmaryllisGardener' AND rev_parent_id = 0 AND page_is_redirect = 0 AND rev_len != page_len AND page_namespace = 0;
{"runningtime": "0.69", "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
List of talk pages created by a bot with no edits since
null
USE scowiki_p; SELECT page_title, rev_timestamp FROM revision_userindex JOIN page ON page_id = rev_page WHERE page_latest IN ( select distinct rev_id from revision_userindex where rev_actor = 294 and rev_parent_id = 0 and page_is_redirect = 0 ...
{"runningtime": "167.26", "resultsets": [{"rowcount": 60165, "headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_log_action"]}]}
null
List of articles with 6 edits and only a set of editors
null
USE scowiki_p; SELECT DISTINCT p.page_title AS "page_title", u.rev_timestamp AS "rev_timestamp" FROM revision_userindex u JOIN page p ON p.page_id = u.rev_page WHERE p.page_latest in ( select distinct v.rev_id from revision_userindex v join page e ON e.page_id = v.rev_page w...
{"runningtime": "0.67", "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
List of articles with 6 edits and only a set of editors or bots
null
/* Users: 40 - AG 4114 - Fixer88 54357 - Mock wurzel soup 95806 - Lee Vilenski 12135 - Vanished 89955 - Minorax Bots: 6383 - タチコマ robot 2905 - TohaomgBot 132129 - NadzikBOT 33439 - KasparBot 42809 - JJMC89 bot 5891 - Escarbot 488 - CommonsDelinker */ USE scowiki_p; SELECT DISTINCT p.page_title AS "page_title", ...
{"runningtime": "1.41", "resultsets": [{"rowcount": 73, "headers": ["user", "img_count"]}]}
null
Users with edits on scowiki
null
Use scowiki_p; SELECT A.actor_id, A.actor_name, count(1) AS edits FROM revision_userindex R JOIN actor A ON A.actor_id = R.rev_actor JOIN user U ON A.actor_user = U.user_id GROUP BY A.actor_user HAVING edits > 100 ORDER BY edits DESC
{"runningtime": "212.58", "resultsets": [{"rowcount": 12, "headers": ["CONCAT(actor_name)", "COUNT(*)"]}]}
null
All edits made by participants in the 2020 Sum of all Indian Paintings datathon
(Ripped from wdvd's code and modified a bit.) Thanks, Adam, for further modifications!
USE wikidatawiki_p; select now(); SELECT rev_id, rc_timestamp, actor_name, rc_title, comment_text FROM recentchanges LEFT JOIN comment ON comment.comment_id = recentchanges.rc_comment_id LEFT JOIN actor on actor.actor_id = recentchanges.rc_actor LEFT JOIN revision on revision.rev_id = recentchanges.rc_this_oldid # re...
{"connection_id": 516753377}
null
Gender of editors to specific page
null
select distinct actor_name as "username", (select up_value from user_properties where up_user=actor_user and up_property="gender") as "gender" from revision join actor on rev_actor=actor_id where rev_page= (select page_id from page where page_namespace=4 and page_title="Articles_for_deletion/Clarice_Phelps")
{"runningtime": "1.02", "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
Files with multiple Panoramio ID categories
supposed to work
USE commonswiki_p; SELECT page_title, COUNT(cl_to) AS panoramiocatcount FROM page JOIN categorylinks ON cl_from = page_id WHERE page_namespace = 6 AND cl_to LIKE 'Photos\_from\_Panoramio\_ID\_%' GROUP BY page_id HAVING panoramiocatcount > 1;
{"runningtime": "0.93", "resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}]}
null
Highest resolution commons images
Limited to files > 50 MB
Use commonswiki_p; select img_name, img_width 'width', img_height 'height', (img_width*img_height)/1000000 'MegaPixels', img_size/(1024*1024) 'MB' from image where img_size > 50000000 order by img_width*img_height desc limit 90;
{"connection_id": 436937569}
null
BC year redirects missing from rcat
h
SELECT page_title FROM page WHERE page_title LIKE "%\_BC" AND page_is_redirect = 1 AND page_title NOT IN (SELECT cl_from FROM categorylinks WHERE cl_to LIKE "Redirects\_to\_a\_%") #decade or century ORDER BY page_title ASC;
{"runningtime": "9.38", "resultsets": [{"rowcount": 58, "headers": ["actor_name", "cnt"]}]}
null
Proofreading active user in mlwikisource Jan-Oct2020
Proofreading active user in mlwikisource Jan-Oct2020
USE mlwikisource_p; SELECT CONCAT("# {{target | user =",actor_name,"| site = ml.wikisource.org }}") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE actor_user IS NOT NULL AND page_namespace IN ('106','104'...
{"runningtime": "10.48", "resultsets": [{"rowcount": 58, "headers": ["actor_name", "cnt"]}]}
null
BC year redirects missing from rcat
h
SELECT page_title FROM page WHERE page_title LIKE "%\_BC" AND page_is_redirect = 1 AND page_id NOT IN (SELECT cl_from FROM categorylinks WHERE cl_to LIKE "Redirects\_to\_a\_%") #decade or century ORDER BY page_title ASC;
{"connection_id": 437820240}
null