title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
GA/FA and GAN/FAC linked from August 21
GA/FA and GAN/FAC linked from [[August 21]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 0, "headers": ["page_title"]}], "runningtime": "5.16"}
null
Template orfani
null
USE itwiki_p; SELECT CONCAT('# [[Template:',REPLACE(page_title,'_',' '),']]') FROM page WHERE page_namespace = 10 AND page_is_redirect = 0 AND page_title NOT IN (SELECT DISTINCT tl_title FROM templatelinks WHERE tl_namespace = 10) AND page_title NOT LIKE '%/%' AND page_id NOT IN (SELECT cl_from FROM categorylinks...
{"connection_id": 63315940}
null
#/mainspace pages in Category:Living people 190816
Number of pages in the enwiki main namespace that are in [[Category:Living people]]. 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';
{"connection_id": 10866059}
null
#/living footballers in main namespace 190816
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';
{"connection_id": 10866060}
null
Monthly New Registered Accounts
null
USE enwiki_p; set @m=10; #month, 1, ...., 11 set @y=2018; #year SELECT COUNT(*) from ( SELECT user_id, user_name, user_registration, user_editcount FROM user WHERE user_registration BETWEEN (@y*10000+@m*100+1)*1000000 and (@y*10000+(@m+1)*100+1)*1000000 AND user_editcount > 0 AND user_id NOT IN (SELECT ug_...
{"resultsets": [{"rowcount": 432, "headers": ["CONCAT('# [[', page_title, ']]')"]}], "runningtime": "2.67"}
null
Generating lists of images from a specific category in Commons
null
USE commonswiki_p; select * from globalimagelinks where gil_to in (select page_title FROM page LEFT JOIN categorylinks ON cl_from = page_id WHERE cl_to LIKE 'Official_United_Kingdom_Parliamentary_photographs_2017' AND page_namespace = 6)
{"resultsets": [{"rowcount": 6, "headers": ["page_title"]}], "runningtime": "1.94"}
null
750000 Bots only!
null
use arwiki_p; SET @rank=0; SELECT CONCAT('{{إحصاءات مساهم في مشروع 750 ألف مقالة|',@rank:=@rank+1,'|') AS rank, s.* FROM ( SELECT rev_user_text, CONCAT('|',COUNT(*),'}}') FROM revision r join page p on p.page_id=r.rev_page WHERE p.page_namespace=0 and p.page_is_redirect=0 and r.rev_timestamp between 2019010100000...
{"resultsets": [{"rowcount": 494, "headers": ["CONCAT('# [[',REPLACE(page_title,'_',' '),']]')"]}], "runningtime": "354.18"}
null
750000 users only!
null
use arwiki_p; SET @rank=0; SELECT CONCAT('{{إحصاءات مساهم في مشروع 750 ألف مقالة|',@rank:=@rank+1,'|') AS rank, s.* FROM ( SELECT rev_user_text, CONCAT('|',COUNT(*),'}}') FROM revision r join page p on p.page_id=r.rev_page WHERE p.page_namespace=0 and p.page_is_redirect=0 and r.rev_timestamp between 2019010100000...
{"resultsets": [{"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}], "runningtime": "0.18"}
null
উইকিভ্রমণ নিবন্ধ অনুসারে
নিবন্ধ তৈরি অনুসারে তালিকা
USE bnwikivoyage_p; SELECT CONCAT("[[ব্যবহারকারী:",user_name,"|",user_name,"]]") AS user_name, COUNT(rev_id) AS মোট_নিবন্ধ FROM user INNER JOIN revision ON revision.rev_user = user.user_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_times...
{"resultsets": [{"rowcount": 49, "headers": ["user_name", "user_registration", "user_editcount"]}], "runningtime": "249.90"}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
১৫-০২-২০১৯ অনুসারে
USE bnwiki_p; SELECT CONCAT("[[ব্যবহারকারী:",user_name,"|",user_name,"]]") AS user_name, COUNT(rev_id) AS মোট_নিবন্ধ FROM user INNER JOIN revision ON revision.rev_user = user.user_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_timestamp <...
{"resultsets": [{"rowcount": 48, "headers": ["user_name", "user_registration", "user_editcount"]}], "runningtime": "198.87"}
null
উইকিঅভিধান সম্পাদক তালিকা
null
USE bnwiktionary_p; SET @counter:=0; SELECT CONCAT("}}{{subst:সসংঅউতা|",@counter:=@counter+1,"") AS rank, CONCAT("|",user_name,"|") AS user_name, user_editcount FROM user WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot') AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)" ORDER BY user_editcoun...
{"resultsets": [{"rowcount": 7, "headers": ["img_media_type", "num"]}], "runningtime": "1396.07"}
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...
{"resultsets": [{"rowcount": 5, "headers": ["totale", "page_count_error", "weight"]}, {"rowcount": 502, "headers": ["page_id", "page_title", "totale", "linter_params", "ptotale"]}], "runningtime": "7.30"}
null
phab:T230548 not main ns title in main ns
null
USE zhwikisource_p; SELECT page_id, page_namespace, page_title FROM page WHERE page_title REGEXP '^([Ww][Ss]|[Cc][Aa][Tt]):' AND page_namespace = 0
{"resultsets": [{"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}], "runningtime": "0.17"}
null
Monthly New Registered Accounts
null
USE urwiki_p; set @m=7; #month, 1, ...., 11 set @y=2019; #year SELECT COUNT(*) from ( SELECT user_id, user_name, user_registration, user_editcount FROM user WHERE user_registration BETWEEN (@y*10000+@m*100+1)*1000000 and (@y*10000+(@m+1)*100+1)*1000000 AND user_editcount > 0 AND user_id NOT IN (SELECT ug_u...
{"resultsets": [{"rowcount": 0, "headers": ["page_id", "page_title", "page_namespace"]}], "runningtime": "0.09"}
null
Authors of featured articles
null
use urwiki_p; select page_title, actor_name from revision join page on page_id=rev_page join actor on rev_actor=actor_id where rev_parent_id=0 and page_namespace=0 and rev_page in ( select cl_from from categorylinks where cl_to="ویکیپیڈیا:منتخب مضامین" );
{"resultsets": [{"rowcount": 43, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 12, "headers": ["linter_cat", "count(*)"]}, {"rowcount": 15, "headers": ["page_namespace", "count(*)"]}], "runningtime": "1.97"}
null
Authors of featured articles
null
use urwiki_p; select page_title, actor_name from revision join page on page_id=rev_page join actor on rev_actor=actor_id where rev_parent_id=0 and page_namespace=0 and rev_page in ( select cl_from from categorylinks where cl_to="ویکیپیڈیا:منتخب مضامین" );
{"resultsets": [{"rowcount": 4, "headers": ["totale", "page_count_error", "weight"]}, {"rowcount": 487, "headers": ["page_id", "page_title", "totale", "linter_params", "ptotale"]}], "runningtime": "2.85"}
null
Unused templates
null
use ruwiki_p; SELECT p_t.page_title FROM page p JOIN pagelinks pl ON pl.pl_from = p.page_id AND pl.pl_namespace = 10 JOIN page p_t ON p_t.page_namespace = 10 AND pl.pl_title = p_t.page_title LEFT JOIN pagelinks pl2 ON pl2.pl_from_namespace IN (0, 6, 10, 14) AND pl2.pl_namespace = 10 AND pl2.pl_title = p_t.page_title W...
{"resultsets": [], "runningtime": "0.03"}
null
Hewiki fair use unused pictures 1
null
use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists (select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as p2 where p2.page_namespace = 14 and p2.pag...
{"resultsets": [{"rowcount": 3, "headers": ["user", "img_count"]}], "runningtime": "0.73"}
null
GA/FA and GAN/FAC linked from August 25
GA/FA and GAN/FAC linked from [[August 25]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 0, "headers": ["user_name", "user_id", "user_editcount", "user_registration"]}], "runningtime": "0.12"}
null
STEM Girls 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...
{"resultsets": [{"rowcount": 4, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}], "runningtime": "0.12"}
null
Validated-DeepaArul-என்தமிழ்ப்பணி
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"connection_id": 11319712}
null
Wikidata edits with wikimedia-commons-app tag (change_tag_def)
null
use wikidatawiki_p; select page_title, GROUP_CONCAT(actor_name), GROUP_CONCAT(rev_timestamp), GROUP_CONCAT(rev_id) from change_tag join revision on rev_id=ct_rev_id join actor on actor_id=rev_actor join page on page_id=rev_page where ct_tag_id=( SELECT ctd_id FROM change_tag_def WHERE ctd_name="wikimedia-commons...
{"resultsets": [{"rowcount": 10, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"]}], "runningtime": "0.14"}
null
Commons users started as mobile app users
null
USE commonswiki_p; SELECT MIN(log_timestamp) AS first_upload, COUNT(log_timestamp) AS uploads, log_user_text AS username, ct_tag = "mobile app edit" AS is_mobile FROM logging LEFT JOIN user ON user_id = log_user JOIN change_tag ON ct_log_id = log_id JOIN page ON log_page = page_id WHERE log_type = "upload" AND (log_ac...
{"resultsets": [{"rowcount": 43, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 11, "headers": ["linter_cat", "count(*)"]}, {"rowcount": 15, "headers": ["page_namespace", "count(*)"]}], "runningtime": "1.05"}
null
Monthly New Registered Accounts
null
USE commonswiki_p; set @m=10; #month, 1, ...., 11 set @y=2018; #year -- SELECT COUNT(*) from -- ( -- SELECT user_id, user_name, user_registration, user_editcount -- FROM user -- WHERE user_registration BETWEEN (@y*10000+@m*100+1)*1000000 and (@y*10000+(@m+1)*100+1)*1000000 -- AND user_editcount > 0 -- AND ...
{"resultsets": [{"rowcount": 3, "headers": ["date", "images"]}], "runningtime": "0.52"}
null
Commons users started as mobile app users
null
USE commonswiki_p; set @m=10; #month, 1, ...., 11 set @y=2018; #year -- SELECT MIN(log_timestamp) AS first_upload, COUNT(log_timestamp) AS uploads, log_user_text AS username, ct_tag = "mobile app edit" AS is_mobile -- FROM logging -- LEFT JOIN user ON user_id = log_user -- JOIN change_tag ON ct_log_id = log_id -- JOI...
{"resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 2000, "headers": ["wpage", "commonscat"]}], "runningtime": "243.35"}
null
All edits made by participants in the 2019 Indian Independence Day 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 WHER...
{"resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 2000, "headers": ["wpage", "commonscat"]}], "runningtime": "48.48"}
null
Teahouse sample size - 5 vs 10 edit threshold
null
#how many potential invitees do we get with a 5 edit threshold? SELECT COUNT(user_id) from (SELECT user_id, user_name, user_registration, user_editcount, NOW(), 4 FROM enwiki_p.user WHERE user_registration > DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 2 DAY),'%Y%m%d%H%i%s') AND user_editcount >=5 AND user_id N...
{"connection_id": 11484704}
null
أكثر مستخدم إضافة للموسوعة:
null
use arwiki_p; SELECT CONCAT("{{ويكيبيديا:إحصاءات العام/بطاقة جدول/عنصر|[[مستخدم:",rev_user_text,"|",rev_user_text,"]]") AS user_name , 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 20180101000000 AND 20190101000000 AND ...
{"connection_id": 11758054}
null
أكثر 50 مستخدم إنشاءً للمقالات في 2017
null
use arwiki_p; SELECT concat('* [[مستخدم:',r.rev_actor,']]'), COUNT(*) AS num_articles FROM revision r join page p on p.page_id=r.rev_page WHERE p.page_namespace=0 and p.page_is_redirect=0 and r.rev_timestamp and r.rev_parent_id=0 GROUP BY r.rev_actor ORDER BY COUNT(*) DESC LIMIT 50;
{"resultsets": [{"rowcount": 58, "headers": ["pl_from", "NS", "page_title", "L NS", "L titles", "num_L", "SB", "C", "IU", "R2", "RD1", "WP"]}], "runningtime": "0.79"}
null
Created articles, grouped by month (arwiki)
null
use enwiki_p; SELECT left(t4.rev_timestamp,6) as Menesis, count(left(t4.rev_timestamp,6)) as Raksti FROM revision AS t4 WHERE t4.rev_id IN ( Select min(t45.rev_id) From revision t45 inner join page p on t45.rev_page=p.page_id where p.page_namespace=0 and p.page_is_redirect=0 group by t45.rev_page having min(t45.rev_id...
{"resultsets": [{"rowcount": 315, "headers": ["ll_lang", "num_links"]}], "runningtime": "10.87"}
null
GA/FA and GAN/FAC linked from August 26
GA/FA and GAN/FAC linked from [[August 26]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 44, "headers": ["pl_from", "NS", "page_title", "L_NS", "L_titles", "num_L", "SB", "IU", "WP"]}], "runningtime": "0.53"}
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...
{"resultsets": [{"rowcount": 9, "headers": ["File name", "Date", "Size", "Uploader's name"]}], "runningtime": "807.23"}
null
2019 users with the most edits in first month after registration (commonswiki)
null
USE commonswiki_p; SELECT a.actor_name, COUNT(r.revactor_rev) AS edits_in_first_month FROM actor AS a JOIN revision_actor_temp AS r ON r.revactor_actor = a.actor_id JOIN user AS u ON u.user_id = a.actor_user WHERE r.revactor_timestamp < (u.user_registration + 100000000) /* 1 Month */ AND u.user_registration > 201901...
{"resultsets": [{"rowcount": 2, "headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format", "actor_id", "actor_user", "actor_name"]}], "runningtime": "0.21"}
null
Tool Labs metadata database
Content of the metadata database; see https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Database#Metadata_database for more information.
use meta_p; SELECT * FROM wiki;
{"resultsets": [{"rowcount": 0, "headers": ["page_title", "cat_pages"]}], "runningtime": "0.61"}
null
Infoboxes by number of transclusions in ruwiki
null
USE ruwiki_p; SELECT CONCAT('[[ш:', REPLACE(page_title, '_', ' '), ']]'), ( SELECT COUNT(*) FROM templatelinks WHERE tl_title = page_title AND tl_namespace = page_namespace ) as transclusion_count FROM page JOIN categorylinks ON cl_from = page_id WHERE page_nam...
{"resultsets": [{"rowcount": 500, "headers": ["page_title", "cat_pages"]}], "runningtime": "2.27"}
null
انگریزی کے مختصر منتخب مضامین
null
USE enwiki_p; SELECT page_title, page_len FROM page JOIN categorylinks ON cl_from = page_id WHERE cl_to = "Featured_articles" AND page_len < 50000
{"resultsets": [{"rowcount": 2968, "headers": ["CONVERT(tl_title USING utf8)", "COUNT(DISTINCT tl_from)"]}], "runningtime": "19.20"}
null
Commons images only in hidden cat
null
use commonswiki_p; select CONCAT ('File:',p1.page_title,'') from page p1 left outer join categorylinks on cl_from = p1.page_id left join page p2 on cl_to = p2.page_title and p2.page_namespace = 14 left join page_props on p2.page_id = pp_page and pp_propname = 'hiddencat' where p1.page_namespace = 6 and p1.page_is_redir...
{"resultsets": [{"rowcount": 0, "headers": ["ipb_address", "CONVERT(ipb_by_text USING utf8)", "ipb_timestamp", "ipb_expiry", "CONVERT(ipb_reason USING utf8)"]}], "runningtime": "0.11"}
null
Accounts RLIKE (.*reza.*)|(.*maghsoudi.*)
Accounts RLIKE (.*reza.*)|(.*maghsoudi.*)
USE centralauth_p; SELECT gu_name as Username, gu_registration AS regdate FROM globaluser WHERE gu_name RLIKE "reza|maghsoudi|MAGHSOUDI|REZA" ORDER BY gu_registration DESC;
{"resultsets": [{"rowcount": 4748, "headers": ["CONCAT('# [[', pl.pl_title, ']] (', COUNT(pl.pl_from), ' Links)')"]}], "runningtime": "18.63"}
null
GA/FA and GAN/FAC linked from August 27
GA/FA and GAN/FAC linked from [[August 27]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 45, "headers": ["pl_from", "NS", "page_title", "L_NS", "L_titles", "num_L", "SB", "IU", "WP"]}], "runningtime": "0.65"}
null
Vor kurzem gelöschte Artikel und ihre Ersteller
null
use dewiki_p; select ar_title, actor_name,ar_timestamp from archive, actor where ar_namespace=0 and ar_actor=actor_id and ar_parent_id=0 and ar_timestamp>20190820000000;
{"resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}], "runningtime": "24.05"}
null
Vor kurzem gelöschte Artikel und ihre Ersteller
null
use dewiki_p; select ar_title, count(1) as creations from archive, actor where ar_namespace=0 and ar_actor=actor_id and ar_parent_id=0 and ar_timestamp>20190101000000 group by ar_title order by creations desc;
{"resultsets": [{"rowcount": 3546, "headers": ["page_title"]}], "runningtime": "16.72"}
null
Percent of bot edits in previous month in articles on urwiki
null
USE urwiki_p; SELECT rc_bot AS is_bot, COUNT(*) AS edits, (COUNT(*) / ( SELECT COUNT(*) FROM recentchanges WHERE rc_namespace = 0)) * 100 AS '%' FROM recentchanges WHERE rc_namespace = 0 GROUP BY 1;
{"resultsets": [{"rowcount": 3546, "headers": ["concat('*{{tl|',page_title,'}}')"]}], "runningtime": "13.58"}
null
Commons users started as mobile app users
null
USE commonswiki_p; SELECT MIN(log_timestamp) AS first_upload, COUNT(log_timestamp) AS uploads, actor_name AS username, ct_tag_id = 21 /* mobile app edit */ AS is_mobile FROM logging JOIN actor on actor_id=log_actor LEFT JOIN user ON user_id = actor_user JOIN change_tag ON ct_log_id = log_id JOIN page ON log_page = pag...
{"resultsets": [{"rowcount": 1141, "headers": ["user_name"]}], "runningtime": "3.95"}
null
Images uploaded via android mobile app from Nov 2017 to Aug 2019
null
use commonswiki_p; select log_title from logging where log_type="upload" and log_action="upload" and log_title in (select page_title from categorylinks join page on page_id=cl_from where cl_to="Uploaded_with_Mobile/Android") and (log_timestamp like "201607%" or log_timestamp like "201608%" or log_timestamp like "201609...
{"resultsets": [{"rowcount": 3546, "headers": ["concat('#[[Template:', page_title, ']]')"]}], "runningtime": "15.82"}
null
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"rowcount": 95, "headers": ["page_title", "page_len", "cat_pages", "rev_timestamp", "rev_actor"]}], "runningtime": "1321.25"}
null
revision data
null
SELECT log_id, log_timestamp, actor_user, actor_name, comment_text, log_params FROM logging_logindex JOIN actor_logging ON log_actor = actor_id JOIN comment_logging ON log_comment_id = comment_id WHERE log_page = 4210688 AND log_type = "delete" AND log_action = "delete";
{"resultsets": [{"rowcount": 173, "headers": ["TimedText", "File"]}], "runningtime": "1.26"}
null
Infobox_sportsperson
sportsperson
USE enwiki_p; SELECT /*SLOW OK*/ concat('[[:en:',page_title,']]') FROM page WHERE page_id IN ( SELECT tl_from FROM templatelinks WHERE tl_title = "Infobox_sportsperson" AND tl_namespace = 10 AND tl_from IN ( SELECT ll_from FROM langlinks ...
{"resultsets": [{"rowcount": 100, "headers": ["page_title", "page_touched", "page_len"]}], "runningtime": "0.51"}
null
GA/FA and GAN/FAC linked from August 28
GA/FA and GAN/FAC linked from [[August 28]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 46, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 9, "headers": ["linter_cat", "count(*)"]}, {"rowcount": 16, "headers": ["page_namespace", "count(*)"]}], "runningtime": "2.81"}
null
namespace 2, page_touched, the oldest
null
USE commonswiki_p; SELECT page_title FROM page AS page WHERE page_namespace = 14 AND page_is_redirect = 0 AND page_title LIKE "%Uncategorised%" LIMIT 333;
{"resultsets": [{"rowcount": 45, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 9, "headers": ["linter_cat", "count(*)"]}, {"rowcount": 16, "headers": ["page_namespace", "count(*)"]}], "runningtime": "2.59"}
null
Commons images only in hidden cat
null
use commonswiki_p; select CONCAT ('File:',p1.page_title,'') from page AS p1 left outer join categorylinks on cl_from = p1.page_id WHERE p1.page_namespace = 6 AND p1.page_is_redirect = 0 #AND cl_from IS NULL #ei tööta nii #AND pl_title NOT IN (SELECT page_title FROM page WHERE page_namespace = 0) (3a) nt NS 14 (mis k...
{"resultsets": [{"rowcount": 69, "headers": ["CONCAT(\"Q\",ips_item_id)", "CONCAT(\"Lar\")", "CONCAT('\"',ips_site_page,'\"')"]}], "runningtime": "130.74"}
null
Articles linked from September 15
Articles linked from [[September 15]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [], "runningtime": "0.07"}
null
en DBR Uncategorized categories
null
use commonswiki_p; SELECT page_id, page_title, page_len, cat_pages cl_to FROM category RIGHT JOIN page ON cat_title = page_title LEFT JOIN categorylinks ON page_id = cl_from WHERE cl_from IS NULL AND page_namespace = 14 AND page_is_redirect = 0 ORDER BY cl_to asc LIMIT 9;
{"resultsets": [{"rowcount": 11363, "headers": ["CONCAT('#Template:[[',tl_title,']]')"]}], "runningtime": "50.05"}
null
GA/FA and GAN/FAC linked from August 30
GA/FA and GAN/FAC linked from [[August 30]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 11363, "headers": ["CONCAT('#[[Template:',tl_title,']]')"]}], "runningtime": "69.07"}
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...
{"resultsets": [{"rowcount": 16, "headers": ["size_bucket", "size_from", "size_to", "frequency"]}, {"rowcount": 6, "headers": ["size_bucket", "size_from", "size_to", "frequency"]}, {"rowcount": 229, "headers": ["size_bucket", "size_from", "size_to", "frequency"]}], "runningtime": "3.03"}
null
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"rowcount": 29, "headers": ["page_title"]}], "runningtime": "1.23"}
null
the rate of edits @ zhwiki
null
USE zhwiki_p; SELECT COUNT(rev_timestamp), rev_timestamp FROM revision GROUP BY rev_timestamp ORDER BY COUNT(rev_timestamp) DESC LIMIT 50;
{"connection_id": 85479015}
null
Articles linked from September 16
Articles linked from [[September 16]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 147, "headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"]}], "runningtime": "0.59"}
null
Selects Sites id with page name Category:Botanists
null
use wikidatawiki_p; SELECT ips_site_id AS 'Site ID', ips_site_page AS 'Page Name' FROM wb_items_per_site WHERE ips_site_page = 'Category:Botanists';
{"resultsets": [{"rowcount": 19854, "headers": ["pp_value", "page_title", "tl_namespace", "tl_title"]}], "runningtime": "1097.83"}
null
Schlüssel für Vorlage Treccani.it
null
USE dewiki_p; SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(e.el_to, '(', -1), ')', 1) AS Hintendran, COUNT(*) AS Anzahl, (SELECT CONCAT(ex.el_to, ' ', page_namespace, ' ', page_title) FROM externallinks AS ex, page WHERE (ex.el_to LIKE CONCAT("http://www.treccani.it/enciclopedia/_%(", SUBSTRING_INDEX...
{"resultsets": [{"rowcount": 0, "headers": ["page_title"]}], "runningtime": "0.24"}
null
Potential Main Page Featured Pictures (GA/FA/FAC/Former FA/FARC/GAN)
Used on GA/FA or FAC, former FA, FARC, GAN
SELECT img.il_from AS pageID, img.il_to AS image FROM imagelinks img WHERE img.il_to IN ( # Image hasn't been featured SELECT pg1.page_title FROM page pg1 WHERE pg1.page_namespace = 6 AND pg1.page_id IN ( SELECT c1.cl_from FROM categorylinks c1 WHERE c1.cl_to = 'Featured_pictures_that_have_not_appea...
{"resultsets": [{"rowcount": 3961, "headers": ["pl_title", "COUNT(*)"]}], "runningtime": "37.07"}
null
Wikirocznica 4000 edycji
null
USE plwiki_p; SELECT * FROM ( SELECT COUNT(*) AS n, rev_actor FROM revision GROUP BY rev_actor ) AS a WHERE n>4000;
{"resultsets": [{"rowcount": 1, "headers": ["@t := '2015-11-09 11:08:00'"]}, {"rowcount": 46, "headers": ["user_name", "user_registration", "user_editcount"]}], "runningtime": "60.07"}
null
GA/FA and GAN/FAC linked from September 1
GA/FA and GAN/FAC linked from [[September 1]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 0, "headers": ["actor_name", "last_active"]}], "runningtime": "0.10"}
null
Wikirocznica 4000 edycji+10 lat
null
USE plwiki_p; SELECT start, user_name FROM ( SELECT MIN(rev_timestamp) AS start, rev_actor, user_name FROM revision JOIN actor ON rev_actor = actor_id JOIN user ON actor_user = user_id WHERE rev_actor IN (6, 7, 8, 10, 13, 18, 20, 23, 24, 26, 29, 31, 32, 38, 44, 45, 50, 55, 56, 65, 77, 85, 87, 94, 97, ...
{"resultsets": [{"rowcount": 0, "headers": ["actor_name", "last_active"]}], "runningtime": "0.34"}
null
Wikirocznica 6000 edycji
null
USE plwiki_p; SELECT * FROM ( SELECT COUNT(*) AS n, rev_actor FROM revision GROUP BY rev_actor ) AS a WHERE n>6000;
{"resultsets": [{"rowcount": 1, "headers": ["count(*)"]}], "runningtime": "0.25"}
null
Hewiki multiwiki missing articles
null
use ruwiki_p; select (select count(ll_lang) from langlinks where ll_from = page_id) + 1 as "number", (select ll_title from langlinks where ll_from = page_id and ll_lang = "en") as "name" from page where page_namespace = 0 and (select count(ll_lang) from langlinks where ll_from = page_id) > 10 and exists (select...
{"resultsets": [{"rowcount": 33, "headers": ["wikitext"]}], "runningtime": "279.28"}
null
Wikirocznica 4000 edycji
null
USE plwiki_p; explain SELECT * FROM ( SELECT COUNT(*) AS n, rev_actor FROM revision GROUP BY rev_actor ) AS a WHERE n>4000;
{"resultsets": [{"rowcount": 128, "headers": ["Anzahl", "Artikel"]}], "runningtime": "79.92"}
null
تصنيفات بذور فارغة
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 = 14 AND rev_parent_id = 0 AND cl_to IS NULL AND page_title LIK...
{"resultsets": [{"rowcount": 4822, "headers": ["Anzahl", "Artikel"]}], "runningtime": "85.44"}
null
(The xxx album)
Titles with "(The xxx album)"
select page_title from page where page_namespace=0 and (page_title like '%(The!_%' escape '!') and (page_title like '%album)') and page_is_redirect=0
{"resultsets": [{"rowcount": 1, "headers": ["slot_revision_id", "slot_role_id", "slot_content_id", "slot_origin"]}, {"rowcount": 1, "headers": ["slot_revision_id", "slot_role_id", "slot_content_id", "slot_origin"]}, {"rowcount": 1, "headers": ["slot_revision_id", "slot_role_id", "slot_content_id", "slot_origin"]}], "ru...
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...
{"resultsets": [{"rowcount": 4821, "headers": ["Anzahl", "Artikel", "Kategorie"]}], "runningtime": "183.53"}
null
Hewiki multiwiki missing articles
null
use ruwiki_p; select (select count(ll_lang) from langlinks where ll_from = page_id) + 1 as "number", (select ll_title from langlinks where ll_from = page_id and ll_lang = "en") as "name" from page where page_namespace = 0 and (select count(ll_lang) from langlinks where ll_from = page_id) > 9 and exists (select ...
{"resultsets": [{"rowcount": 443170, "headers": ["rev_id"]}], "runningtime": "1756.60"}
null
Wikirocznica 6000 edycji
null
USE plwiki_p; SELECT COUNT(*) AS n, rev_actor FROM revision GROUP BY rev_actor HAVING n>6000;
{"resultsets": [{"rowcount": 44, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 10, "headers": ["linter_cat", "count(*)"]}, {"rowcount": 15, "headers": ["page_namespace", "count(*)"]}], "runningtime": "1.04"}
null
FSD distribution of page lengths in English Wikipedia
compute the first significant digit distribution of page lengths of the articles in English Wikipedia
use enwiki_p; select substr(page_len, 1,1) as fsd, count(*) as nb from page where page_is_redirect = 0 and page_namespace = 0 and page_len > 0 group by fsd order by fsd;
{"resultsets": [{"rowcount": 15777, "headers": ["page_title"]}], "runningtime": "94.33"}
null
GA/FA and GAN/FAC linked from September 2
GA/FA and GAN/FAC linked from [[September 2]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"connection_id": 13364191}
null
GA/FA and GAN/FAC linked from September 3
GA/FA and GAN/FAC linked from [[September 3]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 11, "headers": ["date", "images"]}], "runningtime": "0.41"}
null
Pages of a main category's direct subcategories with ext link
Find total number of pages in a upper level category, Examples villages in a district, with sub category of mandal
use tewiki_p; SELECT CONCAT("[[",page_title,"]]") as page, cl_to as category FROM page p JOIN categorylinks cl ON p.page_namespace = 0 -- main page AND cl.cl_from = p.page_id AND cl.cl_to in ( SELECT page_title as subcat FROM page p JOIN categorylinks cl ON p.page_namespace = 14 -- Optional namespace ...
{"resultsets": [{"rowcount": 14, "headers": ["page_title", "rev_timestamp"]}], "runningtime": "1.64"}
null
DR - images [lvwiki]
#SET @cats = "Aizsargāti_attēli", "Aizsargāti_logo", "Aizsargātas_pastmarkas","Aizsargāti_filmu_plakāti", "Aizsargāti_grāmatu_vāki","Aizsargāti_skaņas_faili", "Albuma_vāka_attēli", "Pastmarkas"; use lvwiki_p; select now(); #dublicates /* SELECT p.page_title FROM page p INNER JOIN (image e JOIN commonswiki_p.image c O...
#SET @cats = "Aizsargāti_attēli", "Aizsargāti_logo", "Aizsargātas_pastmarkas","Aizsargāti_filmu_plakāti", "Aizsargāti_grāmatu_vāki","Aizsargāti_skaņas_faili", "Albuma_vāka_attēli", "Pastmarkas"; use lvwiki_p; select now(); #dublicates /* SELECT p.page_title FROM page p INNER JOIN (image e JOIN commonswiki_p.image c O...
{"resultsets": [{"rowcount": 141, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}], "runningtime": "77.53"}
null
page titles including brackets @ zhwiki
null
USE zhwiki_p; SELECT SUM(CASE WHEN page_title LIKE "%(%" THEN 1 ELSE 0 END) fullwidth, SUM(CASE WHEN page_title LIKE "%(%" THEN 1 ELSE 0 END) halfwidth FROM page
{"resultsets": [{"rowcount": 1, "headers": ["ss_total_edits"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}, {"rowcount": 797, "headers": ["userid", "name", "editcount", "admin", "bot"]}], "runningtime": "5.07"}
null
enwiki archive.is count
null
USE enwiki_p; SELECT l , count(el_to) as anz FROM ( SELECT el_to, substring(el_to,16,2) as l FROM externallinks as eur INNER JOIN page as pr on eur.el_from=pr.page_id WHERE pr.page_namespace=0 and el_to like 'http://archive.__/%' union all SELECT el_to, substring(el_to,17,2) as l FROM externallinks as eur IN...
{"resultsets": [{"rowcount": 2605, "headers": ["bucket", "cnt"]}], "runningtime": "22.74"}
null
zhwiki: redirect from non-user to user
null
USE zhwiki_p; SELECT CONCAT("[[{{ns:", page_namespace, "}}:", page_title, "]]") AS "from", CONCAT("[[{{ns:", rd_namespace, "}}:", rd_title, "]]") AS "to" FROM ( SELECT * FROM redirect WHERE rd_namespace = 2 OR rd_namespace = 3 ) rd LEFT JOIN page ON rd_from = page_id WHERE page_namespace != 2 AND page_namespace != ...
{"resultsets": [{"rowcount": 1, "headers": ["totalsize"]}], "runningtime": "4.10"}
null
enwiki archive. test
null
USE enwiki_p; select count(el_to)as anz FROM externallinks as eur INNER JOIN page as pr on eur.el_from=pr.page_id WHERE pr.page_namespace=0 and left(el_to,18) in ('http://archive.ec/','http://archive.fo/','http://archive.is/','http://archive.li/' ,'http://archive.md/','http://archive.ph/...
{"resultsets": [{"rowcount": 11, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 1, "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": 11, "headers": ["Field"...
null
enwiki archive.is shortlinks
null
USE enwiki_p; select count(el_to)as anz, l as tld from ( SELECT el_to, substring(el_to,16,2) as l FROM externallinks as eur INNER JOIN page as pr on eur.el_from=pr.page_id WHERE pr.page_namespace=0 and left(el_to,18) in ('http://archive.ec/','http://archive.fo/','http://archive.is/','http://archive.li/' ...
{"resultsets": [{"rowcount": 4, "headers": ["log_action", "cnt"]}], "runningtime": "139.80"}
null
Unprotected pages
null
USE enwikinews_p; SELECT page.* FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT pr_page FROM page_restrictions )
{"resultsets": [{"rowcount": 100, "headers": ["page_title", "(select group_concat(cl2.pl_title) \n from categorylinks cl1\n inner join page p2\n on p2.page_title = cl1.cl_to\n inner join pagelinks cl2\n on cl2.pl_from = p2.pa...
null
Hewiki fair use unused pictures 1
null
use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists (select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as p2 where p2.page_namespace = 14 and p2.pag...
{"resultsets": [{"rowcount": 652, "headers": ["page_title", "GROUP_CONCAT(actor_name)", "GROUP_CONCAT(rev_id)"]}], "runningtime": "2.59"}
null
Hewiki multiwiki missing articles
null
use ruwiki_p; select (select count(ll_lang) from langlinks where ll_from = page_id) + 1 as "number", (select ll_title from langlinks where ll_from = page_id and ll_lang = "en") as "name" from page where page_namespace = 0 and (select count(ll_lang) from langlinks where ll_from = page_id) > 10 and exists (select...
{"connection_id": 86616083}
null
Wikidata items that link to fawiki and don't have claims
null
USE wikidatawiki_p; SELECT CONCAT('* [[', ips_site_page, ']]\t[[Q',ips_item_id,']]') FROM wb_items_per_site JOIN wb_entity_per_page ON ips_item_id=epp_entity_id AND epp_entity_type='item' AND epp_redirect_target IS NULL LEFT JOIN pagelinks ON epp_page_id=pl_from AND pl_from_namespace=0 AND pl_namespace=0 WHERE ips_site...
{"resultsets": [{"rowcount": 100, "headers": ["\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "count(rev_actor)"]}], "runningtime": "5.16"}
null
মোট সম্পাদনার সংখ্যা
০১-০৯-২০১৯
USE bnwiki_p; SET @counter:=0; SELECT CONCAT("}}{{subst:সসংঅউতা|",@counter:=@counter+1,"") AS rank, CONCAT("|",user_name,"|") AS user_name, user_editcount FROM user WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot') AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)" ORDER BY user_editcount DESC...
{"resultsets": [{"rowcount": 100, "headers": ["user_name", "count(rev_actor)"]}], "runningtime": "1.77"}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
১৫-০২-২০১৯ অনুসারে
USE bnwiki_p; SELECT CONCAT("[[ব্যবহারকারী:",user_name,"|",user_name,"]]") AS user_name, COUNT(rev_id) AS মোট_নিবন্ধ FROM user INNER JOIN revision ON revision.rev_user = user.user_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_timestamp <...
{"resultsets": [{"rowcount": 20, "headers": ["user_name", "count(rev_actor)"]}], "runningtime": "0.37"}
null
Legtöbbször hivatkozott lapok
keresett, megíratlan szócikkek
USE huwiki_p; SELECT pl_title AS title, COUNT(pl_from) AS requests FROM page p JOIN pagelinks ON p.page_id = pl_from LEFT JOIN page x ON pl_title = x.page_title AND x.page_namespace=0 WHERE p.page_namespace = 0 AND pl_namespace = 0 AND x.page_title IS NULL GROUP BY title ORDER BY requests DESC LIMIT 5000;
{"resultsets": [{"rowcount": 182, "headers": ["Source page_id", "Source page_title", "ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_reviewed_by"]}], "runningtime": "2.38"}
null
GA/FA and GAN/FAC linked from September 4
GA/FA and GAN/FAC linked from [[September 4]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 182, "headers": ["Source page_id", "Source page_title"]}], "runningtime": "1.30"}
null
GA/FA and GAN/FAC linked from September 5
GA/FA and GAN/FAC linked from [[September 5]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 25, "headers": ["pl_from", "NS", "page_title", "L_titles", "#L", "SB", "IU", "WP", "SR"]}], "runningtime": "0.42"}
null
GA/FA and GAN/FAC linked from September 6
GA/FA and GAN/FAC linked from [[September 6]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 941, "headers": ["wiki", "domain"]}], "runningtime": "3.69"}
null
صفحات المشاريع حسب القالب
null
USE arwiki_p; SELECT CONCAT('{{مدخل دليل مشروع ويكي|المشروع=',page_title,'|عدد الصفحات=') AS "القالب", CONCAT('',COUNT(tl_from),'') , CONCAT('}}') AS uses FROM page LEFT JOIN templatelinks ON tl_title = page_title AND tl_namespace = page_namespace WHERE page_namespace = 10 and page_is_redirect=0 AND page_title REGEXP...
{"resultsets": [{"rowcount": 99, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}], "runningtime": "116.50"}
null
(The xxx song)
Titles with "(The xxx song)"
select page_title from page where page_namespace=0 and ((page_title like '%(The!_%' escape '!') and (page_title like '%song)') or (page_title like '%(The!_%' escape '!') and (page_title like '%album)') or (page_title like '%(The!_%' escape '!') and (page_title like '%EP)')) and page_is_redirect=0
{"resultsets": [{"rowcount": 245, "headers": ["page_title"]}], "runningtime": "7.87"}
null
Swaziland
null
use fawiki_p; select concat ('*[[:رده:',page_title,']]>[[:رده:',replace(page_title, 'سوازیلند', 'اسواتینی'),']]') from page where page_namespace = 14 and page_title like '%سوازیلند%' and page_is_redirect = 0
{"resultsets": [{"rowcount": 0, "headers": ["iwl_from", "iwl_prefix", "iwl_title"]}], "runningtime": "0.11"}
null
Swaziland ns0
null
use fawiki_p; select concat ('*[[Template:',page_title,']]@[[Template:',replace(page_title, 'سوازیلند', 'اسواتینی'),']]') from page where page_namespace = 10 and page_title like '%سوازیلند%' and page_is_redirect = 0
{"resultsets": [{"rowcount": 0, "headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata", "img_bits", "img_media_type", "img_major_mime", "img_minor_mime", "img_description_id", "img_actor", "img_timestamp", "img_sha1"]}], "runningtime": "0.12"}
null
GA/FA and GAN/FAC linked from September 7
GA/FA and GAN/FAC linked from [[September 7]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"rowcount": 6, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}], "runningtime": "0.14"}
null
GA/FA and GAN/FAC linked from September 9
GA/FA and GAN/FAC linked from [[September 9]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"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"]}], "runningtime": "38.64"}
null
Translators at meta with language, number of translations
For a given prefix of translatable pages, take all translators for the latest versions of translation units (otherwise someone fixing their own typos would look a prolific translator) and order them by language and translation volume.
use metawiki_p; SELECT actor_name as user, substring_index(page_title, '/', -1) AS language, count(*) AS no_translations, CONCAT('* {{target | page = User:', actor_name, ' | site = meta.wikimedia.org}}') AS url FROM page LEFT JOIN -- Take only the latest revision of each translation to simplify revision ON ...
{"resultsets": [{"rowcount": 0, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}], "runningtime": "0.24"}
null
PDFs in Commons's Category:Books in Bengali and #s of pages
null
use commonswiki_p; SELECT page_title as চিত্রের_নাম, cast(substr(regexp_substr(img_metadata, '"pages";a:\\d+'), 11) as signed integer) as পাতার_সংখ্যা FROM page JOIN image ON page.page_title=image.img_name JOIN categorylinks ON categorylinks.cl_from = page.page_id WHERE cl_to = "Books_in_Bengali" AND page_namespac...
{"resultsets": [{"rowcount": 3479, "headers": ["il_to"]}], "runningtime": "22.00"}
null
DjVu files in Commons's Category:Books in Bengali and #s of pages
null
use commonswiki_p; SELECT page_title as চিত্রের_নাম, round( ( length(img_metadata) - length(replace(img_metadata, "PAGE", "")) ) / length("PAGE") ) as পাতার_সংখ্যা FROM page JOIN image ON page.page_title=image.img_name JOIN categorylinks ON categorylinks.cl_from = page.page_id WHE...
{"resultsets": [{"rowcount": 1, "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