title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Uploaders of images in certain category by images count
null
SELECT A.actor_name, COUNT(1) as files FROM commonswiki_p.image I JOIN commonswiki_p.page P ON I.img_name = P.page_title JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from JOIN commonswiki_p.actor A ON I.img_actor = A.actor_id WHERE P.page_namespace = 6 AND CL.cl_to = "Images_from_Wiki_Loves_Monuments_20...
{"runningtime": "0.30", "resultsets": [{"rowcount": 100, "headers": ["rev_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_parent_id", "page_namespace", "page_title"]}]}
null
نشاط المضيفين + التعديلات في طلبات المضيفين آخر شهر
null
use metawiki_p; select concat ("{{u|",user_name,"}}") as "username", (select count(*) from logging inner join actor on actor_id = log_actor where actor_user = user_id and log_type = "gblblock" and log_timestamp > DATE_SUB(NOW(), INTERVAL 1 MONTH)) as ...
{"runningtime": "0.11", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_actor", "rev_timestamp", "rev_parent_id", "page_title", "pl_from", "pl_from_namespace", "pl_namespace", "pl_title"]}]}
null
#/mainspace pages in Category:Living people 200901
Number of pages in the enwiki main namespace that are in [[Category:Living people]] and transclude {{Infobox football biography}}. For [[w:en:User:Levivich/Footy AfDs]].
SELECT COUNT(*) FROM categorylinks JOIN page ON page_id = cl_from WHERE page_namespace = 0 AND cl_to = 'Living_people';
{"runningtime": "34.08", "resultsets": [{"rowcount": 12865, "headers": ["CONCAT(\"User talk:\",page_title,\"\")"]}]}
null
#/living footballers in main namespace 200901
Number of pages in the enwiki main namespace that are in [[Category:Living people]] and transclude {{Infobox football biography}}. For [[w:en:User:Levivich/Footy AfDs]].
SELECT COUNT(*) FROM page JOIN templatelinks ON page_id = tl_from JOIN categorylinks ON page_id = cl_from WHERE page_namespace = 0 AND cl_to = 'Living_people' AND tl_namespace = 10 AND tl_title = 'Infobox_football_biography';
{"runningtime": "2193.17", "resultsets": [{"rowcount": 376731, "headers": ["rev_id", "rev_actor", "rev_timestamp", "rev_parent_id", "page_title"]}]}
null
Recent changes in Wikidata for some users
This query is used to list the label changes by some users in wikidata
USE wikidatawiki_p; SELECT 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 WHERE comment_text REGEXP '\/\* wbsetlabel-add:1\|ml\*\/' AND actor_name IN ('Gnoeee', 'Ranjithsiji', '...
{"runningtime": "41.78", "resultsets": [{"rowcount": 2309, "headers": ["page_title"]}]}
null
Featured article title,size,revisions of tewiki
null
use hiwiki_p; SELECT page_title, page_len, count(*) AS num_of_revisions FROM revision LEFT JOIN page ON revision.rev_page=page.page_id WHERE page.page_namespace = 0 AND page_title in (SELECT page_title FROM page LEFT JOIN categorylinks ON categorylinks.cl_from = page.page_id WHERE (page_...
{"runningtime": "18.97", "resultsets": [{"rowcount": 539, "headers": ["page_title"]}]}
null
List of stub articles in Telugu Wikipedia
null
use tewiki_p; select page_title, page_len from page where page_len < '2048' and page_namespace = 0 and page_is_redirect = 0;
{"runningtime": "8.28", "resultsets": [{"rowcount": 2040, "headers": ["\u0627\u0644\u0635\u0641\u062d\u0629", "\u0639\u062f\u062f \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u062a"]}]}
null
List of stub articles in Hindi Wikipedia
null
use hiwiki_p; select page_title, page_len from page where page_len < '2048' and page_namespace = 0 and page_is_redirect = 0;
{"runningtime": "12.99", "resultsets": [{"rowcount": 2040, "headers": ["\u0627\u0644\u0635\u0641\u062d\u0629", "\u0639\u062f\u062f \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u062a"]}]}
null
Articles by year (all, bot-created) onTelugu Wiki
null
USE tewiki_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": "0.02", "resultsets": []}
null
List of articles in Telugu Wikipedia with Less than 5048 and more than Atub 2028
null
use hiwiki_p; select page_title, page_len from page where page_len > '2028' and page_len < '5048' and page_namespace = 0 and page_is_redirect = 0;
{"runningtime": "116.49", "resultsets": [{"rowcount": 145, "headers": ["tl_title", "number"]}]}
null
Featured and good articles, not yet promoted from homepage (skwiki)
null
USE tewiki_p; SELECT page_title AS title, page_len, GROUP_CONCAT(cl_to) AS categories FROM page, categorylinks WHERE page_namespace = 0 AND cl_from = page_id AND cl_to IN ('వికీపీడియా:విశేష_వ్యాసాలు', 'వికీపీడియా:ఈ_వారపు_వ్యాసం')
{"runningtime": "289.19", "resultsets": [{"rowcount": 10, "headers": ["wikitext"]}]}
null
List of articles in Telugu Wikipedia more than 5048
null
use hiwiki_p; select page_title, page_len from page where page_len > '5048' and page_namespace = 0 and page_is_redirect = 0;
{"runningtime": "34.13", "resultsets": [{"rowcount": 1381, "headers": ["reviews", "rc_title", "accepted", "accept %", "declined", "decline %"]}]}
null
Te Wikipedia Articles with Images
null
use hiwiki_p; SELECT page_title FROM page LEFT JOIN imagelinks ON il_from=page_id WHERE page_namespace=0 AND page_is_redirect=0 AND il_from IS NOT NULL;
{"runningtime": "3.77", "resultsets": [{"rowcount": 34, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
null
Wikidata - tables - wb_property_info - describe table, sample data
null
SHOW TABLES FROM wikidatawiki_p;
{"runningtime": "0.17", "resultsets": [{"rowcount": 1, "headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"]}]}
null
Recent addition of labels by a User
(Forked code from Mahir)
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 WHER...
{"runningtime": "10.09", "resultsets": [{"rowcount": 36, "headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"]}]}
null
Pages that don't have Malayalam label at Wikidata
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), CONCAT("Lml"), CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='mlwiki' AND NOT EXISTS ( SELECT 1 FROM wb_terms WHERE CONCAT("Q", ips_item_id) = term_full_entity_id AND term_type = "label" AND term_language='ml' LIMIT 1 ) #LIMIT 500 ;
{"runningtime": "18.94", "resultsets": [{"rowcount": 200, "headers": ["name", "edit count", "block date"]}]}
null
ONAM Label-a-thon - 1st - 2nd September 2020
(forked code from Mahir. Modified as per requirement a little bit.)
USE wikidatawiki_p; SELECT current_date; SELECT actor_name as Username, COUNT(*) as Number_of_labels_added FROM ( SELECT 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 WHERE (co...
{"runningtime": "6.67", "resultsets": [{"rowcount": 657, "headers": ["user_name"]}]}
null
Bad links from wikis to Commons: redirects
null
#USE dewiki_p; #USE dewikiquote_p; #USE dewikisource_p; #USE dewikivoyage_p; #USE enwiki_p; #USE frwiki_p; #USE itwiki_p; USE nlwiki_p; #USE svwiki_p; #USE metawiki_p; #USE specieswiki_p; SET @w = LEFT (DATABASE(), LENGTH(DATABASE()) - 2); SET @l = (SELECT lang FROM meta_p.wiki WHERE dbname = @w); SET @lenc = LENGTH('h...
{"runningtime": "0.54", "resultsets": [{"rowcount": 7, "headers": ["date", "images"]}]}
null
Dyskusje użytkowników to przekierowania do dyskusji artykułów
Redirects from user talk to discussions
use plwiki_p; select CONCAT('# [[Dyskusja wikipedysty:',REPLACE(p.page_title,'_',' '),']]') AS from_page, CONCAT('# [[Dyskusja:',REPLACE(r.rd_title,'_',' '),']]') AS to_page from redirect r, page p where p.page_id = r.rd_from AND p.page_namespace = 3 AND r.rd_namespace = 1 AND p.page_title NOT LIKE "%/%";
{"runningtime": "115.77", "resultsets": [{"rowcount": 1982, "headers": ["MID", "P6243", "QID", "CONCAT(\"File:\",page_title)"]}]}
null
New talk pages without article on enwiki
null
SET @ns = 1; # Talk namespace number to search SET @prefix = ''; # Namespace prefix for links (prepended to 'talk:') USE enwiki_p; SELECT CONCAT( '# [[', @prefix, 'talk:', pg.page_title, ']]') AS 'Title' FROM page pg WHERE pg.page_is_redirect = 0 AND pg.page_namespace = @ns AND pg.page_title NOT IN (SELECT pg2.page_ti...
{"runningtime": "6.12", "resultsets": [{"rowcount": 41, "headers": ["page_title", "cat_pages", "cat_subcats"]}]}
null
правки с заданным тегом
null
USE ruwiki_p; select page_title, rev_timestamp, actor_name, comment_text from change_tag join revision on rev_id=ct_rev_id join page on rev_page=page_id join actor on actor_id=rev_actor join comment on comment_id=rev_comment_id where ct_tag_id=66 and rev_timestamp > 20200101000000 limit 100;
{"runningtime": "415.17", "resultsets": [{"rowcount": 100, "headers": ["log_id", "actor_name", "log_namespace", "log_title", "log_timestamp", "comment", "deleted revision count"]}]}
null
MW.org orphaned talk pages
null
use mediawikiwiki_p; select * from page where page_namespace=2 and not exists (select 1 from actor where actor_name=replace(page_title,"_"," ")) and page_title not like "%/%" and page_title not regexp "\\d*\\.\\d*\\.\\d*\\.\\d*" and page_title not regexp "((\\d|[A-F])*:){6}" and page_is_redirect=0 and exists (select 1...
{"runningtime": "0.72", "resultsets": [{"rowcount": 219, "headers": ["cl_to"]}]}
null
Pages in Data talk namespace in Wikimedia Commons
null
SELECT TALK.page_title FROM commonswiki_p.page TALK WHERE TALK.page_namespace = 487
{"runningtime": "6.59", "resultsets": [{"rowcount": 10, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new"...
null
Links to redirecting file pages - global
null
USE dewiki_p; #USE enwiki_p; #USE eswiki_p; #USE frwiki_p; #USE nlwiki_p; #USE svwiki_p; SET @w = LEFT (DATABASE(), LENGTH(DATABASE()) - 2); SELECT now() AS timestamp; #globalimagelinks SELECT CONCAT('# [[c:File:', REPLACE (gil_to, '_', ' '), ']]') AS flink FROM commonswiki_p.globalimagelinks INNER JOIN page wp ON wp.p...
{"runningtime": "0.17", "resultsets": [{"rowcount": 6, "headers": ["concat(\"* [[{{subst:ns:\", tl_namespace, \"}}:\", tl_title, \"]]\")"]}]}
null
R2 candidates
Pages potentially eligible for speedy deletion as [[WP:R2]] - redirects from the main namespace to any other namespace except Category:, Template:, Wikipedia:, Help:, or Portal:.
SELECT page_id, page_title, rd_namespace, rd_title FROM page JOIN redirect ON rd_from = page_id WHERE page_namespace = 0 AND rd_namespace NOT IN (0, -- : 14, -- Category: 10, -- Template: 4, -- Wikipedia: ...
{"runningtime": "0.32", "resultsets": [{"rowcount": 16, "headers": ["date", "images"]}]}
null
Aiwokusai's RfB history
Aiwokusai氏による投稿ブロック依頼提出記録 (完全版)
use jawiki_p; select CONCAT("https://ja.wikipedia.org/wiki/Wikipedia:", P.page_title) as url, R.rev_timestamp from page as P, revision as R, actor as A where 1 = 1 -- Wikipedia 名前空間 and P.page_namespace = 4 and A.actor_name = "Aiwokusai" -- リダイレクトでない and P.page_is_redirect = 0 -- 新規作成 and R.rev_parent_id = 0 and P.page...
{"runningtime": "0.54", "resultsets": [{"rowcount": 21, "headers": ["date", "images"]}]}
null
RfB ranking on jawp
null
use jawiki_p; select A.actor_name, count(*) as `count` from page as P, revision as R, actor as A where 1 = 1 -- Wikipedia 名前空間 and P.page_namespace = 4 -- 新規作成 and R.rev_parent_id = 0 and P.page_title like "投稿ブロック依頼/%" and P.page_id = R.rev_page and R.rev_actor = A.actor_id group by R.rev_actor having count(*) >= 1 ord...
{"runningtime": "0.11", "resultsets": [{"rowcount": 3, "headers": ["CONCAT(\"Category:\",page_title,\"\")"]}]}
null
enwiki-ruwiki
null
USE ruwiki_p; SELECT count(*) AS count, p.page_title FROM page p, langlinks l1 where p.page_namespace = 0 and p.page_id = l1.ll_from and not exists (select 1 from langlinks l2 where l1.ll_from=l2.ll_from and l2.ll_lang='en') group by p.page_id, p.page_title order by count(*) desc...
{"runningtime": "0.11", "resultsets": [{"rowcount": 10, "headers": ["page_id", "page_len", "pp_propname", "pp_value", "revid"]}]}
null
All orphan files on vi.wiki
null
USE viwiki_p; SELECT CONCAT('# [[:File:', p.page_title, ']]') 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) AND page_is_redirect=0 JOIN image ON img_name = page_title AND page_namespace = 6 AND page_title = img_name #LE...
{"runningtime": "513.26", "resultsets": [{"rowcount": 647, "headers": ["page_title", "cl_to"]}]}
null
Files without a file information page in the last week
Due to [[phab:T179884]] and other reasons, a file might not always have a file information page.
USE commonswiki_p; SELECT i.img_name FROM image i LEFT JOIN page p ON p.page_title = i.img_name AND p.page_namespace = 6 WHERE p.page_id IS NULL AND DATEDIFF(CURRENT_TIMESTAMP, i.img_timestamp) < 7
{"runningtime": "452.92", "resultsets": [{"rowcount": 426, "headers": ["CONCAT('# [[',REPLACE(page_title,'_',' '),']]')"]}]}
null
Images in certain category by the time of their upload_WLM
null
SELECT I.img_name, A.actor_name, I.img_timestamp FROM commonswiki_p.image I JOIN commonswiki_p.page P ON I.img_name = P.page_title JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from JOIN commonswiki_p.actor A ON I.img_actor = A.actor_id WHERE P.page_namespace = 6 AND CL.cl_to = "Images_from_Wiki_Loves_Mo...
{"runningtime": "0.84", "resultsets": [{"rowcount": 0, "headers": ["log_id", "log_timestamp", "log_actor", "log_title"]}]}
null
Global lock status of bnwiki special users
null
use enwiki_p; SELECT user_name, gu_locked FROM user JOIN user_groups ON user_id = ug_user LEFT JOIN centralauth_p.globaluser ON user_name = gu_name WHERE ug_group = 'sysop' AND ug_group = 'bureaucrat' AND ug_group = 'checkuser' AND ug_group = 'oversight' AND ug_group = 'interface-admin' AND ug_group = 'autopatr...
{"runningtime": "0.78", "resultsets": [{"rowcount": 2, "headers": ["user", "img_count", "user_registration"]}, {"rowcount": 1, "headers": ["Overall image count for above users"]}, {"rowcount": 2, "headers": ["user", "img_name"]}]}
null
Rights in last year by user (cswiki)
null
use cswiki_p; select actor_name, count(*) as count from logging join actor on actor_id = log_actor where log_type = 'create' and (log_timestamp like '2020%' or log_timestamp like '201909%' or log_timestamp like '20191%') group by log_actor order by count desc;
{"runningtime": "0.26", "resultsets": [{"rowcount": 1, "headers": ["actor_id", "actor_user", "actor_name"]}]}
null
WLE 2020 media uploaded not in competition time
null
USE commonswiki_p; SELECT /* SLOW_OK */ DATE_FORMAT(DATE_ADD(img_timestamp, INTERVAL 2 Hour),'%Y-%m-%d') AS date, img_name FROM image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND image.img_name = page.page_title AND categorylinks.cl_to = "Images_from_Wiki_Loves_Earth_2020_...
{"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["cl_from", "cl_to", "cl_type"]}]}
null
Stewards statistics
null
use metawiki_p; select concat ("{{u|",user_name,"}}") as "username", (select count(*) from logging inner join actor on actor_id = log_actor where actor_user = user_id and log_type = "gblblock") as "+Global block", (select count(*) from logging ...
{"runningtime": "0.25", "resultsets": [{"rowcount": 25, "headers": ["log_type"]}]}
null
Talk pages Redirects without any link to (arwiki)
null
USE arwiki_p; SELECT distinct CONCAT('# [[:نقاش:',page_title,']]') AS page_title, str_to_date(rev_timestamp, '%Y%m%d%H%i%s') AS rev_timestamp FROM categorylinks RIGHT JOIN page ON cl_to = page_title JOIN revision ON rev_page = page_id WHERE page_namespace = 1 AND page_is_redirect = 1 AND rev_parent_id = 0 AND cl_to IS ...
{"runningtime": "1.56", "resultsets": [{"rowcount": 50, "headers": ["user", "img_count"]}]}
null
WLM_UA Uploaders of images in certain category by images count
null
SELECT A.actor_name, COUNT(1) as files FROM commonswiki_p.image I JOIN commonswiki_p.page P ON I.img_name = P.page_title JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from JOIN commonswiki_p.actor A ON I.img_actor = A.actor_id WHERE P.page_namespace = 6 AND CL.cl_to = "Images_from_Wiki_Loves_Monuments_20...
{"runningtime": "0.12", "resultsets": [{"rowcount": 10, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]}
null
ruwiki: Convenient Discussions script usage: number of edits by month
null
use ruwiki_p; select substring(rev_timestamp, 1, 6) date_, count(*) c from revision join comment on rev_comment_id = comment_id where rev_timestamp > "20180220000000" and comment_text like "%JWBTH/CD%" group by date_ order by date_ asc
{"runningtime": "0.02", "resultsets": []}
null
Meta inactivity 2020-10
To be used in the upcoming October 2020 inactivity check.
USE metawiki_p; -- Modify startdate and enddate to change dates SET @startdate = '20200401000000'; SET @enddate = '20201001000000'; -- regex for exempt users SET @exempt_username_pattern = ' \\(WMF\\)$|-WMF$|WMFOffice'; -- Define for what is a sysop action SET @sysoplogtype = CAST( "( 'abusefilter', 'block',...
{"runningtime": "1.36", "resultsets": [{"rowcount": 0, "headers": ["rank", "IFNULL(actor_name, '\u0412\u0441\u044c\u043e\u0433\u043e')", "newbie"]}]}
null
WikiDaheim users 2020 (by first revision, by uploader)
null
USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count FROM actor, revision, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND actor.actor_id = revision.rev_actor AND image.img_name = page.page_title and revision.r...
{"connection_id": 333740935}
null
Files on ja also on Commons with filenames by usercat
null
USE jawiki_p; SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki, CONCAT("[[:File:", b.img_name, "]]") AS Commons, b.img_timestamp 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 = "コモンズへの移動により即時削除対象となったファイル" #"Fil...
{"runningtime": "0.09", "resultsets": [{"rowcount": 5, "headers": ["pages", "redirect count"]}]}
null
WikiDaheim 2020 media by date
null
USE commonswiki_p; SELECT /* SLOW_OK */ DATE_FORMAT(DATE_ADD(img_timestamp, INTERVAL 2 Hour),'%Y-%m-%d') AS date, COUNT(image.img_name) as images FROM image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND image.img_name = page.page_title AND categorylinks.cl_to = "Media_from_...
{"runningtime": "4.35", "resultsets": [{"rowcount": 2, "headers": ["CONCAT('| [[:{{ns:', i.il_from_namespace, '}}:', p.page_title, ']] ||[[:\u0391\u03c1\u03c7\u03b5\u03af\u03bf:', i_p.page_title, ']]')"]}]}
null
صفحات مستخدمين منشأة لحسابات غير مسجلة
null
use arwiki_p; select page_title from page where page_namespace = 2 and page_is_redirect = 0 and page_title not like "%/%" and page_title not in (select replace(user_name, " ", "_") from user where replace(user_name, " ", "_") = page_title) limit 5;
{"runningtime": "2.12", "resultsets": [{"rowcount": 16, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 6, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 7, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
صفحات فارغة في ويكيبيديا العربية - حجمها يساوي صفر
null
use arwiki_p; select page_title, page_namespace from page where page_len = 0 limit 500;
{"runningtime": "0.12", "resultsets": [{"rowcount": 0, "headers": ["from_ns", "from_title", "to_title"]}]}
null
WikiDaheim 2020 media by date
null
USE commonswiki_p; SELECT /* SLOW_OK */ DATE_FORMAT(DATE_ADD(img_timestamp, INTERVAL 2 Hour),'%Y-%m-%d') AS date, COUNT(image.img_name) as images FROM image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND image.img_name = page.page_title AND categorylinks.cl_to = "Media_from_...
{"runningtime": "33.88", "resultsets": [{"rowcount": 105, "headers": ["actor_name", "c"]}]}
null
List of all categories without a hard redirect
List of all categories which are not hard redirected
SELECT page_title FROM page WHERE page_namespace = 14 AND page_is_redirect = 0;
{"runningtime": "21.01", "resultsets": [{"rowcount": 5588, "headers": ["log_title", "log_timestamp", "actor_name", "comment_text"]}]}
null
trwiki:Parenthesis mistakes in article links
null
USE trwiki_p; SELECT pl_title, COUNT(pl_title) AS counting FROM pagelinks, page WHERE pl_from = page_id AND pl_from_namespace = 0 AND pl_namespace = 0 AND NOT EXISTS (SELECT * FROM page AS p1 WHERE p1.page_title = pl_title AND pl_namespace = 0 AND p1.page_namespace = 0) AND pl_title NOT LIKE '%(%)%' AND pl_title NOT LI...
{"runningtime": "0.11", "resultsets": [{"rowcount": 0, "headers": ["MID", "P1259", "coordinates", "P7787", "heading", "/* extracted from {{location}} template */"]}]}
null
Logging stuff
null
use ptwiki_p; #show tables; # select log_type, log_action from logging group by log_type,log_action select * from logging where # log_title = 'JMagalhães' and # log_namespace = 2 and log_type = 'spamblacklist' #log_type = 'rights' and # select * from user where user_id = 1025313 # 102 #select * from actor wh...
{"runningtime": "5952.48", "resultsets": [{"rowcount": 2095334, "headers": ["page_title", "pp_value"]}]}
null
specieswiki_p: list of pages with a period as their second character
null
USE specieswiki_p; SELECT page_title #SELECT CONCAT("Template:",page_title,"") FROM page WHERE page_namespace = 0 AND page_title RLIKE "^[A-Za-z]{1}[\.]{1}.*" #'^[0-9]{3}$' [A-Za-z] AND page_is_redirect = 0 #AND (page_title LIKE "%peopel%" OR page_title LIKE "%Peopel%") LIMIT 999;
{"runningtime": "2844.96", "resultsets": [{"rowcount": 1000000, "headers": ["actor_name"]}]}
null
Linkings to unexisting categories on plwiki
null
/*Forked from ThePolish */ USE plwiki_p; SELECT CONCAT('[[',page_title,']]') AS page_title FROM page, pagelinks WHERE page_id = pl_from AND pl_from_namespace = 0 AND pl_namespace = 14 AND NOT EXISTS (SELECT * FROM page AS p1 WHERE pl_title = p1.page_title AND p1.page_namespace = 14) /*AND EXISTS (SELECT * FROM page AS ...
{"runningtime": "163.67", "resultsets": [{"rowcount": 23, "headers": ["page_title", "rev_timestamp"]}]}
null
Last 100 anonymous users to revise English Wikipedia
null
use enwiki_p; SELECT actor.actor_name, revision.rev_timestamp, page.page_title, categorylinks.cl_to FROM `actor` INNER JOIN `revision` ON actor.actor_id=revision.rev_actor INNER JOIN `page` ON revision.rev_page=page.page_id INNER JOIN `categorylinks` ON categorylinks.cl_from=page.page_id ORDER BY rev_timestamp DESC LIM...
{"runningtime": "57.78", "resultsets": [{"rowcount": 20676, "headers": ["page_title"]}]}
null
longest talk pages on sqwiki
null
use sqwiki_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 = "Ma...
{"runningtime": "47.53", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]}
null
Uploaders of images in certain category by images count
null
SELECT A.actor_name, COUNT(1) as files FROM commonswiki_p.image I JOIN commonswiki_p.page P ON I.img_name = P.page_title JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from JOIN commonswiki_p.actor A ON I.img_actor = A.actor_id WHERE P.page_namespace = 6 AND CL.cl_to = "Images_from_Wiki_Loves_Earth_2020_i...
{"runningtime": "5.94", "resultsets": [{"rowcount": 1255, "headers": ["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", "page_restrictions", "page_is_redirect", "page_is_new", "page_ra...
null
Jawiki GFDL 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 = "草花写真館画像" #"...
{"runningtime": "0.14", "resultsets": [{"rowcount": 1, "headers": ["afl_id", "afl_filter", "afl_user", "afl_user_text", "afl_ip", "afl_action", "afl_actions", "afl_var_dump", "afl_timestamp", "afl_namespace", "afl_title", "afl_wiki", "afl_deleted", "afl_patrolled_by", "afl_rev_id"]}]}
null
أكثر المستخدمين إنشاءً للمقالات في مشروع ويكي طب
null
use arwiki_p; select concat('[[مستخدم:',actor_name,'|',actor_name,']]') AS "المستخدم", COUNT(rev_id) AS "عدد المقالات" from revision r inner join actor on actor_id = rev_actor inner join page p1 on p1.page_id = rev_page where (select p2.page_id from page p2 where p2.page_title = p1.page_title and p2.pag...
{"runningtime": "17.30", "resultsets": [{"rowcount": 6272, "headers": ["img_name", "img_width", "img_height", "img_size"]}]}
null
أكثر المستخدمين إنشاءً للمقالات ضمن مشروع ويكي طب
null
use arwiki_p; SELECT rev_user_text, count(rev_user_text) FROM revision INNER JOIN page ON rev_page = page_id WHERE page_namespace = 0 AND rev_parent_id = 0 and rev_timestamp BETWEEN 20170101000000 AND 20181231235959 AND page.page_is_redirect = 0 AND page.page_id in (select cl_from from categorylinks where cl_from = pag...
{"runningtime": "0.36", "resultsets": [{"rowcount": 1, "headers": ["CURRENT_DATE"]}, {"rowcount": 4, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 60, "headers": ["ips_row_id", "ips_item_id", "ips_site_id", "ips_site_page"]}]}
null
أكثر المستخدمين تعديلًا في مشروع ويكي طب
null
use arwiki_p; select actor_name, count(rev_id) from revision inner join actor on actor_id = rev_actor inner join page p1 on p1.page_id = rev_page where (select p2.page_id from page p2 where p2.page_title = p1.page_title and p2.page_namespace = (p1.page_namespace+1) and p2.page_is_redirect = 0) ...
{"runningtime": "0.93", "resultsets": [{"rowcount": 36, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 10, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 10, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
indef-blocked users with special rights (cswiki)
null
USE cswiki_p; SELECT user_name, GROUP_CONCAT(ug_group) as user_rights, user_editcount, ipb_timestamp, ipb_expiry, comment_text FROM user JOIN ipblocks ON ipb_user = user_id JOIN user_groups ON user_id = ug_user JOIN comment ON ipb_reason_id = comment_id where ipb_expiry = 'infinity' GROUP BY user_id ORDER BY user_edit...
{"runningtime": "1.34", "resultsets": [{"rowcount": 168, "headers": ["author", "page", "page_id"]}]}
null
indef-blocked users with special rights (cswiki)
null
USE cswiki_p; SELECT user_name, GROUP_CONCAT(ug_group) as user_rights, user_editcount, ipb_timestamp, ipb_expiry, comment_text FROM user JOIN ipblocks ON ipb_user = user_id JOIN user_groups ON user_id = ug_user JOIN comment ON ipb_reason_id = comment_id where ipb_expiry = 'infinity' GROUP BY user_id ORDER BY user_edit...
{"runningtime": "0.59", "resultsets": [{"rowcount": 168, "headers": ["author", "page", "page_id"]}]}
null
Unneeded confirmed rights
null
SET @days = 4; SET @edits = 50; use cswiki_p; SELECT ug.ug_user, ug.ug_expiry, u.user_id, u.user_name, u.user_registration, u.user_editcount FROM user_groups ug JOIN user u ON ug.ug_user = u.user_id WHERE ug.ug_group = 'confirmed' AND u.user_registration < (DATE_FORMAT((NOW() - INTERVAL @days DAY),'%Y%m%d%H%i%S')) ...
{"runningtime": "165.61", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]}
null
Temp
null
use fawiki_p; select concat("{{کاربر:Ahmad252/پالایه/الگو|", ipb_address, "}}") as کاربر, replace(comment_text, "به طور خودکار توسط پالایهٔ ویرایش بسته شد. توضیح قانون مطابقت‌یافته:","") as دلیل from ipblocks join comment on ipb_reason_id = comment_id join actor on ipb_by_actor = actor_id where actor_name = "پالایهٔ وی...
{"runningtime": "135.73", "resultsets": [{"rowcount": 597, "headers": ["page_title"]}]}
null
Show unlocked * is my homeboy accounts
null
USE centralauth_p; SELECT gu_name as Username, gu_registration AS regdate FROM globaluser WHERE gu_locked = 0 AND gu_name like "MrJaroslavik %" ORDER BY gu_registration DESC;
{"runningtime": "0.10", "resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}]}
null
Quora in hewiki
null
use hewiki_p; select page_title, el_to from externallinks, page where page_title not in ( '12_כללים_לחיים', 'Duolingo', 'תנין_הים', 'חחח', 'תשבצאי', 'לורן_סאותרן', 'אינסטגרם', 'קוורה' ) and el_to like '%.quora.com%' and el_from = page_id and page_...
{"runningtime": "5.27", "resultsets": [{"rowcount": 1, "headers": ["revert_count"]}]}
null
Article count ("link" method)
null
USE trwiki_p; SELECT COUNT(DISTINCT page_id) FROM page JOIN pagelinks ON pl_from=page_id WHERE page_namespace=0 AND page_is_redirect=0;
{"runningtime": "0.86", "resultsets": [{"rowcount": 291, "headers": ["page_title"]}]}
null
Mission 66,666 user
null
USE mrwiki_p; SELECT Count(*) number, actor_name FROM revision JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id WHERE rev_parent_id = 0 AND page_namespace = 0 AND page_is_redirect = 0 AND rev_timestamp > 20200619000000 AN...
{"runningtime": "26.51", "resultsets": [{"rowcount": 2244, "headers": ["page_title", "rev_timestamp"]}]}
null
ruwiki: Convenient Discussions script usage: number of edits by month (edits with tag + edits with summary) (2)
null
use ruwiki_p; select substring(rev_timestamp, 1, 6) date_, count(*) c from revision join comment on rev_comment_id = comment_id left join change_tag on rev_id = ct_rev_id where ct_tag_id = 79 or # convenient-discussions ( rev_timestamp > "20180220000000" and comment_text like "%JWBTH/CD%" ) group by d...
{"runningtime": "0.09", "resultsets": [{"rowcount": 4, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
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": "1316.24", "resultsets": [{"rowcount": 118, "headers": ["wbit_item_id", "wbx_text"]}]}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী /V2
null
USE bnwiki_p; SET @counter:=0; SELECT CONCAT("}}{{subst:সসংঅউতা|",@counter:=@counter+1,"") AS rank, CONCAT("|",actor_name,"|") AS user_name, 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...
{"runningtime": "29.20", "resultsets": [{"rowcount": 18, "headers": ["Username", "Edit Count", "Registration Date", "30/500?", "RedWarn Edits", "RedWarn %", "Currently Blocked"]}]}
null
People_murdered_abroad_by_nationality
null
use enwiki_p; select CONCAT('Category:', cl_to) as category_name, count(*) as fawiki_counterparts from ( select cl_to from categorylinks join page on page_id = cl_from join langlinks on ll_from = cl_from and ll_lang = 'fa' where cl_to in ( select page_title from categorylinks join ...
{"runningtime": "4.09", "resultsets": [{"rowcount": 1093, "headers": ["page_title", "eu_entity_id"]}, {"rowcount": 269, "headers": ["Page not connected to Wikidata"]}]}
null
searching images
null
USE ptwiki_p; select img_name AS "img name", img_height AS "img height", oi_name AS "file name", oi_archive_name AS "version name" from image, oldimage WHERE img_name = oi_name AND img_height < 501 AND img_height != 0 ORDER BY img_name ASC
{"resultsets": [{"rowcount": 8, "headers": ["pl_title", "COUNT(*)"]}], "runningtime": "2.25"}
null
English Wikipedia Spore:_ Pages
null
null
{"resultsets": [{"rowcount": 10, "headers": ["page_title", "COUNT(*)"]}], "runningtime": "81.67"}
null
Inaccessible disambiguation pages
null
SELECT mainpage.page_title FROM page mainpage INNER JOIN page disambigpage ON CONCAT(mainpage.page_title, "_(disambiguation)") = disambigpage.page_title LIMIT 5
{"resultsets": [{"rowcount": 265, "headers": ["concat('* [[:\u0646\u0642\u0627\u0634_\u0627\u0644\u062a\u0635\u0646\u064a\u0641:',page_title,']]')"]}], "runningtime": "9.10"}
null
zhwp: Templates used in interface and pr_level
null
USE zhwiki_p; SELECT tl_namespace, tl_title, tl_from, #page_id, #, pr_level FROM ( SELECT tl_namespace, tl_title, tl_from FROM templatelinks WHERE tl_from_namespace = 8 AND tl_namespace != 8 # AND tl_namespace % 2 = 0 #AND tl_from NOT IN (6709868, 6743456, 5545686, 5733059, 6486575, 3073030) ) t1 #LEFT JOIN page ON t...
{"resultsets": [{"rowcount": 50, "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"]}], "runningtime": "0.21"}
null
CEE Spring in Ukraine [with newbies for metrics]
List of articles created for the Investigative Journalism Week on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), newbie FROM ( SELECT CONCAT(actor_name) as actor_name, COUNT(1) AS created, SUM(article.page_len) as total_len, GROUP_CONCAT( DISTINCT -- [[Н...
{"resultsets": [{"rowcount": 112, "headers": ["user_name", "byte_count", "edit_count"]}], "runningtime": "93.49"}
null
PoC: Harvest affiliate members
null
# avoid duplicate user names SELECT DISTINCT pl_title AS "Affiliate Members", page_title AS "Affiliates" FROM metawiki_p.pagelinks AS pl JOIN metawiki_p.page AS p ON pl.pl_from = p.page_id # harvest from the a list of affiliates subpage WHERE p.page_title IN ( "Wikimedians_of_Cameroon_User_Group" ) # exclude anythi...
{"resultsets": [{"rowcount": 500, "headers": ["page_title", "page_len", "actor_name"]}], "runningtime": "1.49"}
null
New discussion tool users at cswiki
null
use cswiki_p; select actor_name, count(*) from change_tag join revision on ct_rev_id=rev_id join actor on actor_id=rev_actor where ct_tag_id=(select ctd_id from change_tag_def where ctd_name="discussiontools-newtopic") group by actor_id order by count(*)
{"resultsets": [{"rowcount": 10, "headers": ["page_id", "page_title"]}], "runningtime": "0.10"}
null
Bot like editing blocks
null
select log_title, log_timestamp, comment_text, CONCAT('https://en.wikipedia.org/wiki/User:', log_title) as link from logging, comment_logging where log_type = 'block' and log_action = 'block' and log_timestamp > '20201201000000' and log_timestamp < '20210501000000' and log_comment_id = comment_id and comment_...
{"connection_id": 305823677}
null
Files on id.wiki NOT in spec categories
null
USE idwiki_p; SELECT CONCAT("# [[:File:", img_name, "]]") AS file FROM image JOIN page ON page_namespace=6 AND page_title = img_name AND page_is_redirect=0 AND NOT EXISTS( SELECT * FROM categorylinks WHERE page_id=cl_from AND (cl_to="Semua_media_nonbebas" OR cl_to= "Semua_media_bebas" OR cl_to= "Files_with_no_l...
{"resultsets": [{"rowcount": 3, "headers": ["actor_name", "rc_title", "rc_new_len", "rc_old_len", "rc_type", "rc_namespace"]}], "runningtime": "13.49"}
null
Chicdat's deleted contributions
The publically-visible data from [[User:Chicdat]]'s deleted contributions to enwiki. For [[WP:VPI#Allow all users to view only their own deleted contributions]] circa 5 March 2021.
SELECT actor_name, archive_userindex.* FROM archive_userindex JOIN actor_archive ON actor_id = ar_actor WHERE actor_name = 'Chicdat' ORDER BY ar_timestamp DESC;
{"resultsets": [{"rowcount": 64, "headers": ["rev_timestamp", "page_title", "page_namespace"]}], "runningtime": "0.50"}
null
Files_with_PermissionOTRS_template_but_without_P6305_SDC_statement
null
use commonswiki_p; select concat("File:",page_title) FROM page JOIN categorylinks c1 ON page_id=c1.cl_from AND c1.cl_to='Items_with_OTRS_permission_confirmed' WHERE page_namespace = 6 AND NOT page_id IN ( SELECT c2.cl_from FROM categorylinks c2 WHERE c2.cl_to in ( "P6305_SDC", 'Files_with_PermissionO...
{"runningtime": "202.34", "resultsets": [{"headers": ["page_namespace", "page_title", "rd_title"], "rowcount": 24421}, {"headers": ["page_namespace", "page_title", "rd_title"], "rowcount": 3531}, {"headers": ["page_namespace", "page_title", "rd_title"], "rowcount": 1885}, {"headers": ["page_namespace", "page_title", "r...
null
WLM-IN Photo Competition participants 2012-2020 and not active in 2021
WLE-UA Photo Competition participants 2013-2017 not active in 2018
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_Monuments_2012_in_Indi...
{"resultsets": [{"rowcount": 360, "headers": ["subject_ns", "talk_ns", "title", "disambig"]}], "runningtime": "1.06"}
null
WhatLinksHere with no subquery limit
null
USE wikidatawiki_p; SELECT COUNT(*) FROM ( SELECT * FROM `pagelinks` LEFT JOIN `redirect` ON ((rd_from = pl_from) AND rd_title = 'P248' AND (rd_interwiki = '' OR rd_interwiki IS NULL) AND rd_namespace = 120 ) WHERE pl_namespace = 120 AND pl_title = 'P248' ) `temp_...
{"resultsets": [{"rowcount": 46, "headers": ["ipc_hex", "count(*)"]}], "runningtime": "0.75"}
null
Total number of subpages moved and deleted
null
select * from actor where actor_user = 12338485; select * from actor where actor_user = 24812038; select count(*) from recentchanges where rc_namespace = 2 and rc_title like "Starzoner%" and rc_log_type = 'move' and rc_actor = 13533950; select count(*) from recentchanges where rc_namespace = 3 and rc_title like "Starzo...
{"connection_id": 939829515}
enwiki_p
Files on ja also on Commons with filenames + diff + in use
null
#USE jawiki_p; #SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki, CONCAT("[[:File:", b.img_name, "]]") AS Commons #, b.img_timestamp SELECT CONCAT("pwb.py image.py -lang:ja -family:wikipedia -putthrottle:0 -loose ¤", a.img_name, "¤ ¤", b.img_name, "¤") AS pywiki FROM image a INNER JOIN page p ON p.page_title = a...
{"resultsets": [{"rowcount": 0, "headers": ["actor_name", "count(rev_actor)"]}], "runningtime": "0.07"}
jawiki_p
dewiki: Wikiprojekt_Österreich subpages with Wikidata item
Topic:Vrmmvidefxwuwq2v
SELECT p.page_title, pp.pp_value FROM page p JOIN page_props pp ON p.page_id=pp.pp_page WHERE p.page_namespace=4 AND p.page_title LIKE 'WikiProjekt_Österreich/%' AND pp.pp_propname='wikibase_item'; #SELECT actor_name, COUNT(rev_id) #FROM revision JOIN actor_revision ON rev_actor=actor_id #W...
{"runningtime": "16.79", "resultsets": [{"headers": ["concat (\"\u0646\u0642\u0627\u0634:\",page_title)"], "rowcount": 4}]}
dewiki_p
wikidata: number of edits per user on WD:RfD
null
SELECT actor_name, COUNT(rev_id) AS edits FROM revision JOIN actor_revision ON rev_actor=actor_id WHERE rev_page=454 GROUP BY actor_name ORDER BY edits DESC;
{"runningtime": "20.16", "resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 20}]}
wikidatawiki_p
wikidata: deleted items that were created by User:MisterSynergy
null
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='MisterSynergy' ORDER BY archive.ar_timestamp ASC;
{"connection_id": 432246465}
wikidatawiki_p
French description
null
SELECT wbit_item_id, wbx_text FROM wbt_item_terms JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id JOIN wbt_type ON wbtl_type_id = wby_id JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id JOIN wbt_text ON wbxl_text_id = wbx_id LEFT JOIN enwiki_p.wbc_entity_usage ON eu_entity_id = CONCAT('Q'...
{"resultsets": [{"rowcount": 6, "headers": ["user_name", "user_editcount", "user_registration", "ug_group", "ug_expiry"]}], "runningtime": "0.17"}
wikidatawiki_p
nds_nlwiki Empty categories
null
SELECT CONCAT('Kategorie:', CONVERT(REPLACE(cat_title,'_',' ') USING utf8mb4)) AS Kategory FROM category, page WHERE cat_pages=0 AND cat_subcats=0 AND cat_files=0 AND page_is_redirect=0 AND page_namespace=14 AND cat_title=page_title AND NOT EXISTS (SELECT * FROM page_props WHERE pp_page=page_id AND pp_propname='exp...
{"runningtime": "10.76", "resultsets": [{"rowcount": 5138, "headers": ["page_title"]}]}
nds_nlwiki
nlwiki Pages with the same content
null
SELECT p2.page_namespace, p2.page_title, r2.rev_len, r2.rev_timestamp, s2.rev_sha1 FROM `page` p2, `revision` r2, ( SELECT rev_sha1, COUNT(rev_sha1) FROM ( SELECT rev_sha1 FROM `page` p1,`revision` r1 WHERE page_namespace!=2 AND NOT (page_namespace=4 AND page_title REGEXP '^Snelcu...
{"resultsets": [{"headers": ["year", "month", "page_namespace", "count"], "rowcount": 738}], "runningtime": "1305.27"}
nlwiki
Voci con due infobox che ricavano immagini da P18
null
SELECT DISTINCT CONCAT( '# [[', page_title, ']]') FROM (SELECT page_title, page_id FROM page WHERE page_is_redirect = 0) p JOIN (SELECT tl_from AS page_id, tl_title AS template1 FROM templatelinks WHERE tl_from_namespace = 0 AND tl_namespace = 10 AND tl_title IN ("Archivio_documentale","Artista_musicale","Astronauta","...
{"resultsets": [{"rowcount": 2, "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"]}], "runningtime": "0.08"}
itwiki_p
Te Wikipedia Articles with File /Images /Links
null
use tewiki_p; SELECT page_title FROM page LEFT JOIN imagelinks ON il_from=page_id WHERE page_namespace=0 AND page_is_redirect=0 AND page_len > 10 AND il_from IS NOT NULL;
{"resultsets": [{"rowcount": 7177, "headers": ["page_title", "comment_text"]}], "runningtime": "36.27"}
tewiki_p
Commons non-machine-readable license templates
Find Commons license templates in which need to be updated so they do not place files in "Files_with_no_machine-readable_license" category
SELECT /* SLOW_OK */ concat("Template:",tmpl.tl_title) FROM page file1 INNER JOIN categorylinks cl1 -- file in Files_with_no_machine-readable_license category ON cl1.cl_from = file1.page_id and cl1.cl_to ="Files_with_no_machine-readable_license" INNER JOIN templatelinks tmpl ON tmpl.tl_from = fil...
{"runningtime": "1.48", "resultsets": [{"rowcount": 1000, "headers": ["tl_title"]}]}
commonswiki_p
Marathi Wikipedia top editors sorted by total number of edits
null
select rev_actor, actor_name, count(rev_id) as edit_count from revision, actor where rev_timestamp > 20050300000000 and rev_actor = actor_id group by rev_actor having count(rev_id) between 1000 and 1000000 order by edit_count desc;
{"resultsets": [{"rowcount": 1, "headers": ["Count", "Size_GB"]}], "runningtime": "2.44"}
mrwiki_p
Links to unsupported titles on English Wiktionary
null
select pl_title as title, count(*) as links from pagelinks where pl_namespace = 0 and pl_title like "Unsupported_titles/%" group by pl_title;
{"runningtime": "0.08", "resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 10}]}
enwiktionary_p
Links to nonexistent "Wiktionary:Word of the day/Archive" pages
null
select concat("Wiktionary:", pl_title) as target, group_concat(source_page.page_title separator ", ") as sources from pagelinks left join page source_page on source_page.page_id = pl_from left join page target_page on target_page.page_namespace = pl_namespace and target_page.page_title = pl_title where (pl_from_namespa...
{"runningtime": "14.56", "resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "pl_title"], "rowcount": 0}]}
enwiktionary_p
Count of mainspace titles that have a given number of redirects
English Wikipedia; doesn't include pages with zero redirects.
select count(*) as pages, redirect_counts.count as `redirect count` from ( select count(rd_from) as count from redirect where rd_namespace = 0 group by rd_namespace, rd_title ) redirect_counts group by redirect_counts.count order by pages desc;
{"runningtime": "13.65", "resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "pl_title_space", "pl_title_underscore"], "rowcount": 23}]}
enwiki_p
WikiDaheim correctors 2020 (after first revision)
Count the number of edits on WikiDaheim images after upload done by users other than the uploader.
#USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(revision.rev_parent_id) as edit_count FROM actor, /*user_groups,*/ revision, revision as revision0, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND actor.actor_id = revision.rev_actor AND image...
{"runningtime": "297.81", "resultsets": [{"headers": ["term_type", "term_language", "terms"], "rowcount": 3}]}
commonswiki
ruwiki: Convenient Discussions script usage: total number of edits
null
select ( select count(*) from revision join change_tag on rev_id = ct_rev_id where # marked by tag "convenient-discussions" ct_tag_id = 79 ) + ( select count(*) from comment join revision on comment_id = rev_comment_id where rev_timestamp > "20180220000000" and # having CD link i...
{"runningtime": "0.67", "resultsets": [{"headers": ["page_title", "AnzahlPersonenLinks"], "rowcount": 10}]}
ruwiki_p
ContentTranslation
Tartalomfordítással létrehozott cikkek
SELECT page.page_title FROM page as page #, user_groups INNER JOIN logging ON page.page_id = logging.log_page INNER JOIN comment ON logging.log_comment_id = comment.comment_id WHERE page.page_namespace = 0 AND log_action = "create" -- only list new pages AND comment_text LIKE "Készült a(z) % oldal lefordításával";
{"runningtime": "0.07", "resultsets": [{"rowcount": 10, "headers": ["page_id"]}]}
huwiki_p