title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Monument Week New
List of articles created for the She Did It Challenge on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT(actor_name) as actor_name, COUNT(1) AS created, SUM(article.page_len) as total_len, GROUP_CONCAT( DI...
{"runningtime": "18.81", "resultsets": [{"headers": ["CONCAT('[[Kullan\u0131c\u0131:',user_name,'|',user_name,']]')", "COUNT(*)"], "rowcount": 50}]}
null
Monument Week Improved
List of articles created for the She Did It Challenge on UkWiki
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...
{"connection_id": 18229229}
null
Number of distinct blue links on huwiki
Mainspace-to-mainspace only.
use huwiki_p; SELECT COUNT(DISTINCT pl_title) FROM pagelinks LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title WHERE pl_from_namespace = 0 AND pl_namespace = 0 AND page_title IS NOT NULL ;
{"resultsets": [{"rowcount": 53, "headers": ["page_title"]}], "runningtime": "0.41"}
null
Number of (non-distinct) blue links on huwiki
Mainspace-to-mainspace only.
use huwiki_p; SELECT COUNT(pl_title) FROM pagelinks LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title WHERE pl_from_namespace = 0 AND pl_namespace = 0 AND page_title IS NOT NULL ;
{"resultsets": [{"rowcount": 33, "headers": ["page_namespace", "page_title"]}], "runningtime": "11.29"}
null
Number of (non-distinct) red links on huwiki
Mainspace-to-mainspace only.
use huwiki_p; SELECT COUNT(pl_title) FROM pagelinks LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title WHERE pl_from_namespace = 0 AND pl_namespace = 0 AND page_title IS NULL ;
{"resultsets": [{"rowcount": 790, "headers": ["touchlist"]}], "runningtime": "196.60"}
null
Categories I've created (commons)
Part of researching unnecessary race/genetics/eugenics related categories.
USE commonswiki_p; SELECT LEFT(rev_timestamp,8) AS Date, CONCAT("[[:Category:", page_title, "]]") AS Cat FROM revision_userindex JOIN page ON rev_page = page_id JOIN actor_revision on rev_actor = actor_id JOIN comment_revision ON comment_id = rev_comment_id WHERE page_namespace = 14 AND actor_name = "ZI_Jony" AND com...
{"resultsets": [{"rowcount": 39, "headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_typ...
null
Items I created that were deleted
null
USE wikidatawiki_p; SELECT ar_id, ar_title, ar_namespace, ar_timestamp FROM archive_userindex WHERE ar_user_text = 'ZI_Jony' AND ar_parent_id = 0;
{"resultsets": [{"rowcount": 50, "headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_typ...
null
LRN year counts
null
USE commonswiki_p; SELECT LEFT( ifnull( ( SELECT MIN(oi_timestamp) from oldimage where oi_name = page_title ), img_timestamp ), 4 ) AS `year`, COUNT(*) FROM `page` JOIN `image` on `page_title` = `img_name` WHERE `page_id` IN...
{"runningtime": "0.29", "resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_...
null
Admins/interface editors who edited site JS/CSS in the past year
null
use bnwiki_p; SELECT rev_user_text AS user, COUNT(rev_id) AS num_edits FROM revision_userindex JOIN page ON page_id = rev_page WHERE page_namespace = 8 AND page_title RLIKE '^.*\.(css|js)$' AND rev_timestamp > DATE_SUB(NOW(), INTERVAL 1 YEAR) AND page_id != 22320022 # MediaWiki:Gadget-geonotice-list.js GROUP BY user OR...
{"runningtime": "0.38", "resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_...
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...
{"resultsets": [{"rowcount": 1000, "headers": ["\u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0\u0995\u09be\u09b0\u09c0_\u09a8\u09be\u09ae", "\u09ae\u09cb\u099f_\u09a8\u09bf\u09ac\u09a8\u09cd\u09a7"]}], "runningtime": "21.06"}
null
List the unreferenced article
null
SELECT page_title FROM revision_userindex JOIN page ON rev_page = page_id JOIN templatelinks ON tl_from = rev_page AND tl_title = "Unreferenced" AND page_namespace = 0;
{"runningtime": "32.90", "resultsets": [{"headers": ["number", "actor_name", "review_count", "review_count_i"], "rowcount": 1480}]}
null
incomplete peer review
null
USE enwiki_p; SELECT page_title FROM templatelinks JOIN page on tl_from = page_id WHERE tl_namespace = 10 AND tl_title = "Peer_review" AND tl_from_namespace = 1 AND page_title NOT IN (SELECT REGEXP_SUBSTR(page_title, "(?<=Peer_review/).*(?=/archive)") FROM page ...
{"resultsets": [{"rowcount": 4, "headers": ["CONCAT('File:', p.page_title)"]}], "runningtime": "19.88"}
null
Transclusions of deleted templates
করতে হবে
USE bnwiki_p; SELECT CONVERT(tl_title USING utf8), COUNT(DISTINCT tl_from) FROM templatelinks LEFT JOIN page AS p1 ON p1.page_namespace = tl_namespace AND p1.page_title = tl_title JOIN logging ON tl_namespace = log_namespace AND tl_title = log_title AND log_type = 'delete' JOIN page AS p2 ON tl_from = p2.page_id W...
{"resultsets": [{"rowcount": 10, "headers": ["comment_id", "comment_hash", "comment_text", "comment_data"]}], "runningtime": "0.11"}
null
most interwikis
null
USE frwiki_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='uk') group by p.page_id, p.page_title order by count(*) desc...
{"connection_id": 22102550}
null
Wikisource edits
null
Use knwikisource_p; SELECT A.actor_name, count(1) AS edits FROM revision R JOIN actor A ON R.rev_actor = A.actor_id WHERE R.rev_timestamp >= 20200101000000 AND R.rev_timestamp <= 20200131235959 GROUP BY R.rev_actor HAVING edits > 50 ORDER BY edits DESC
{"runningtime": "5.68", "resultsets": [{"headers": ["page_title", "pr_level", "pr_expiry"], "rowcount": 93}]}
null
total edit count by user
null
use wuuwiki_p; select user_id, user_name, user_editcount from user where user_editcount >50 order by user_editcount desc;
{"runningtime": "0.10", "resultsets": [{"headers": ["id", "name", "registration"], "rowcount": 1}]}
null
Most missing.
Thanks for the coding. it works
USE enwiki_p; -- articles from EN with most langlinks... SELECT count(*) ll_count, page_title title_en, (select ll_title from langlinks where ll_from = page_id and ll_lang = 'zh') title_zh, (select ll_title from langlinks where ll_from = page_id and ll_lang = 'de') title_de, (select ll_title fro...
{"resultsets": [{"rowcount": 12, "headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"]}], "runningtime": "0.14"}
null
With category history
null
use enwiki_p; SELECT page_title, cl_to FROM page JOIN (SELECT DISTINCT cl_to , cl_from FROM categorylinks LEFT JOIN page ON cl_to = page_title WHERE page_len between 8000 and 10000 AND cl_to <> "History" ) AS cattmp ON cattmp.cl_from = page_id;
{"connection_id": 16391420}
null
KSA new articles by day test 0
null
use arwiki_p; SELECT left(t4.rev_timestamp,8) as Menesis, count(left(t4.rev_timestamp,8)) as Raksti FROM revision AS t4 JOIN page article ON article.page_id = rev_page AND article.page_namespace = 0 INNER JOIN page talk ON talk.page_title = article.page_title AND talk.page_namespace = 1 INNER JOIN category...
{"connection_id": 27833391}
null
Get all protected pages
null
use bnwiki_p; SELECT page_id, page_namespace, page_title, pr_level FROM page INNER JOIN page_restrictions ON pr_page = page_id WHERE pr_type = "edit";
{"runningtime": "0.40", "resultsets": [{"headers": ["page_title"], "rowcount": 11}]}
null
Errors in French labels
null
USE wikidatawiki_p; SELECT term_full_entity_id, term_text FROM wb_terms WHERE term_type='description' AND term_language='en' AND term_text LIKE 'A River %' LIMIT 10
{"resultsets": [{"rowcount": 236, "headers": ["page_title", "page_latest", "tl_title", "tl_namespace"]}], "runningtime": "2.38"}
null
Commons: filtered empty categories
Based on SQL by https://quarry.wmflabs.org/Achim55.
USE commonswiki_p; SELECT CONCAT('# [[:Category:', REPLACE(c.page_title,'_',' '), ']]', IF (c.page_len < 5," → '''blank'''",'')) FROM (SELECT * FROM categorylinks RIGHT JOIN page ON cl_to = page_title WHERE cl_to IS NULL AND page_namespace = 14 AND page_is_redirect = 0 ...
{"runningtime": "0.46", "resultsets": [{"headers": ["Page title", "Date", "Edit count"], "rowcount": 1}]}
null
Errors in Bangla labels
null
USE wikidatawiki_p; SELECT term_full_entity_id, term_text FROM wb_terms WHERE term_type='description' AND term_language='bn' AND term_text LIKE '%বাংলাদেশি %' LIMIT 100
{"runningtime": "0.10", "resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 1}]}
null
A magyar Wikipédia mérete
https://hu.wikipedia.org/wiki/Szerkesztő:Samat/A_magyar_Wikipédia_mérete
USE huwiki_p; /* Real data */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page_id) AS articles, AVG(page_len) AS 'average (B)' FROM page WHERE page_namespace = 0 AND page_is_redirect = 0; /* With redirects */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page...
{"resultsets": [{"rowcount": 9, "headers": ["cl_to", "antal"]}], "runningtime": "0.14"}
null
telugu users ordered based on edit count
null
use tewiki_p; select user_name,user_editcount,user_email from user order by user_editcount DESC;
{"runningtime": "262.67", "resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title", "pp_propname"], "rowcount": 0}, {"headers": ["page_title", "cl_to"], "rowcount": 0}, {"headers": ["page_title", "cl_to"], "rowcount": 0}, {"headers": ["cat_title", "cat_pages"], "rowcount": 0}, {"...
null
Elenco utenti per numero di edit in NS0
null
USE itwiki_p; SET @counter = 0; SELECT @counter := @counter +1, pages_created, actor_name FROM (SELECT COUNT(*) as pages_created, actor_name FROM page, revision, actor WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_page = page_id AND rev_parent_id = 0 AND actor_id = rev_actor AND actor_user NOT IN ( SELECT u...
{"resultsets": [{"rowcount": 1, "headers": ["c"]}], "runningtime": "277.18"}
null
Category with no items (bnwiki)
null
use bnwiki_p; select CONCAT('# [[:বিষয়শ্রেণী:',cat_title,']]') AS cat_title from category LEFT JOIN page p2 ON cat_title = p2.page_title AND p2.page_namespace = 14 LEFT JOIN page_props ON p2.page_id = pp_page WHERE pp_propname not like 'hiddencat' and cat_pages = 0 and page_is_redirect = 0 order by cat_title
{"resultsets": [{"rowcount": 3, "headers": ["CONCAT('File:', p.page_title)"]}], "runningtime": "20.34"}
null
Empty Wikipedia talks (bnwiki)
null
USE bnwiki_p; SELECT CONCAT("আলাপ:",page_title) AS page_title FROM page WHERE page_namespace = 1 AND page_len = 0;
{"resultsets": [{"rowcount": 47, "headers": ["en_baslik", "tr_baslik", "tr_kategori"]}], "runningtime": "1.27"}
null
IP edits to module namespace
null
select * from revision_compat join page on page_id=rev_page where rev_user=0 and page_namespace=828 and page_title not like "Location map/data%" and page_title not like "%detailed map" order by rev_timestamp desc;
{"runningtime": "0.19", "resultsets": [{"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"], "rowcount": 10}]}
null
Παλιές σελίδες που δεν συνδέονται από Wikidata
null
use elwiki_p; SELECT page_namespace, page_title FROM page LEFT JOIN page_props ON page_id=pp_page AND pp_propname="wikibase_item" WHERE page_namespace=0 AND page_is_redirect=0 AND pp_propname IS NULL AND page_id < (SELECT rc_cur_id FROM recentchanges WHERE rc_new=1 ORDER BY rc_cur_id ASC LIMIT 1) LIM...
{"resultsets": [{"headers": ["wikitext"], "rowcount": 10}], "runningtime": "438.60"}
null
find pagelinks title LIKE '%ttp%'
null
USE commonswiki_p; SELECT CONCAT ("Talk:",page_title,"") #LEFT JOIN page as page ON page_id=cat_id FROM page AS page WHERE page_namespace =1 #AND page_title LIKE "K%" #cat_title LIKE '%by_quantity%' AND page_len >0 AND page_is_redirect =0 #AND cat_title NOT LIKE "Images_from_the_Geograph_British_Isles_project_needin...
{"resultsets": [], "runningtime": "0.05"}
null
List problem page created by Trymybestwikipedia
Copy from https://wikitech.wikimedia.org/wiki/Help:MySQL_queries#Pages_in_a_specific_category_using_a_specific_template
USE zhwiki_p; /*SELECT page_title FROM revision_userindex JOIN page ON rev_page = page_id JOIN templatelinks ON tl_from = rev_page WHERE rev_actor = 86950 AND rev_parent_id = 0 AND tl_namespace = 10 AND tl_title = "Onesource" AND page_namespace = 0; (751 rows) */ SELECT page_title FROM revision_userindex JOIN page...
{"resultsets": [{"headers": ["p"], "rowcount": 0}], "runningtime": "0.35"}
null
Number of distinct red links on huwiki
Mainspace-to-mainspace only.
use huwiki_p; EXPLAIN SELECT COUNT(DISTINCT pl_title) FROM pagelinks LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title WHERE pl_from_namespace = 0 AND pl_namespace = 0 AND page_title IS NULL ;
{"runningtime": "4.21", "resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 27}]}
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) ...
{"connection_id": 80442895}
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...
{"resultsets": [{"rowcount": 31, "headers": ["page_title", "antal"]}], "runningtime": "0.22"}
null
Articles without wikidata item
null
use kowiki_p; select CONCAT ("#[[",page_title,"]]") from page where page_id not in (select pp_page from page_props where pp_propname = "wikibase_item" and pp_page = page_id) and page_namespace = 1...
{"resultsets": [{"rowcount": 482, "headers": ["page_id", "page_title"]}], "runningtime": "1.86"}
null
Ruwiki inactive users
null
USE ruwiki_p; SELECT actor_name AS username FROM ( SELECT actor_name, MAX(rev_timestamp) last_edit FROM revision_userindex JOIN actor ON rev_actor = actor_id # WHERE actor_user != NULL GROUP BY rev_actor ) users WHERE last_edit <= "20170101000000";
{"resultsets": [{"headers": ["page_title"], "rowcount": 877}], "runningtime": "2.78"}
null
AfC months stats (review, accept, decline) totals *
null
use enwiki_p; select DATE(rc_timestamp) AS date,count(rc_id) as reviews, SUM(comment_text like "%Publishing accepted%") as accepts, SUM(comment_text like "Declining submission:%") as declines, SUM(comm...
{"connection_id": 95416249}
null
URLs in citations with redundant publisher links
null
USE enwiki_p; SELECT CONCAT("https://en.wikipedia.org/?curid=", el_from) AS page, el_to FROM page JOIN externallinks ON el_from = page_id AND page_namespace = 0 WHERE el_to LIKE 'http://www.tandfonline.com/doi/%' OR el_to LIKE 'https://www.tandfonline.com/doi/%' OR el_to LIKE 'http://www...
{"resultsets": [{"rowcount": 105, "headers": ["Tables_in_metawiki_p"]}], "runningtime": "0.43"}
null
Articles without links
null
USE wuuwiki_p; SELECT CONCAT('# [[', page_title, ']]') AS page_title FROM page LEFT JOIN pagelinks ON pl_from = page_id WHERE pl_namespace IS NULL AND page_is_redirect = 0 AND page_namespace = 0;
{"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 1}], "runningtime": "0.10"}
null
Most active users on WP:KSA pages test
null
USE arwiki_p; SELECT actor_name, count(rev_actor) FROM revision JOIN actor ON actor_id = rev_actor INNER JOIN page article ON article.page_id = rev_page AND article.page_namespace = 0 INNER JOIN page talk ON talk.page_title = article.page_title AND talk.page_namespace = 1 INNER JOIN categorylinks ON cl_fr...
{"runningtime": "3.14", "resultsets": [{"rowcount": 180, "headers": ["CONCAT('Q',wbit_item_id)", "page_title", "wbxl_language"]}]}
null
Errors in French labels
null
USE wikidatawiki_p; SELECT term_full_entity_id, term_text FROM wb_terms WHERE term_type='description' AND term_language='fr' AND term_text LIKE '%a' LIMIT 5
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 13}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 6}], "runningtime": "13.05"}
null
Errors in French labels
null
USE wikidatawiki_p; SELECT term_full_entity_id, term_text FROM wb_terms WHERE term_type='description' AND term_language='en' AND term_text LIKE 'British peer or relation' LIMIT 1000
{"runningtime": "3.13", "resultsets": [{"rowcount": 9, "headers": ["totale", "page_count_error", "weight"]}, {"rowcount": 67, "headers": ["page_id", "page_title", "page_len", "totale", "linter_params", "ptotale"]}]}
null
প্রতিবেদন − খালি নিবন্ধ
Empty Articles (bnwiki)
USE bnwiki_p; SELECT CONCAT("# [[",page_title,"]]") AS page_title FROM page WHERE page_namespace = 0 AND page_len = 0;
{"connection_id": 350383085}
null
প্রতিবেদন − লিংক ছাড়া নিবন্ধ
Articles without links (bnwiki)
USE bnwiki_p; SELECT CONCAT('[[', page_title, ']]') AS page_title FROM page LEFT JOIN pagelinks ON pl_from = page_id WHERE pl_namespace IS NULL AND page_is_redirect = 0 AND page_namespace = 0;
{"resultsets": [{"headers": ["cl_to"], "rowcount": 10}], "runningtime": "0.55"}
null
প্রতিবেদন − শুধু লুকানো বিষয়শ্রেণী সহ নিবন্ধ
Articles only in hidden categories (bnwiki)
USE bnwiki_p; SELECT CONCAT('[[',p1.page_title,']]') AS 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 = 0 AND p1.page_i...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 9}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 5}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 4}], "runningtime": "8.71"}
null
প্রতিবেদন − ভুল লিংক সহ নিবন্ধ
Wrong links in articles on bnwiki
USE bnwiki_p; SELECT CONCAT("[[",page_title,"]]") AS page_title, CONCAT("[[",pl_title,"]]") AS pl_title FROM pagelinks, page WHERE pl_title NOT LIKE '%(%)%' AND pl_title NOT LIKE '%:)%' AND pl_title NOT LIKE '%:-)%' AND pl_title NOT LIKE '%)))%' AND pl_title NOT LIKE '%Pre)Thing%' AND pl_from = page_id AND pl_from_name...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 8}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 4}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 4}], "runningtime": "2.98"}
null
প্রতিবেদন − স্ব লিংক থাকা নিবন্ধ
Selflinks (bnwiki)
USE bnwiki_p; SELECT CONCAT("# [[",page_title,"]]") AS page_title FROM page, pagelinks WHERE pl_from=page_id AND pl_title=page_title AND pl_from_namespace =0
{"resultsets": [{"headers": ["page_title"], "rowcount": 18}], "runningtime": "0.19"}
null
প্রতিবেদন − লাল বিষয়শ্রেণী লিংক যুক্ত বিষয়শ্রেণী
Categories categorized in red-linked categories (bnwiki)
use bnwiki_p; SELECT distinct CONCAT('[[:বিষয়শ্রেণী:',page_title,']]') AS মূল_বিষয়শ্রেণী, CONCAT('[[:বিষয়শ্রেণী:',cl_to,']]') as লাল_বিষয়শ্রেণী FROM page JOIN (SELECT cl_to, cl_from FROM categorylinks LEFT JOIN page ON cl_to = page_title AND page_namespace = 14 WHERE page_title IS NULL) AS cattmp ON catt...
{"connection_id": 350520204}
null
প্রতিবেদন − নিবন্ধ ছাড়া আলাপ পাতা
Talk pages without article (bnwiki)
SET @ns = 1; # Talk namespace number to search SET @prefix = ''; # Namespace prefix for links (prepended to 'talk:') USE bnwiki_p; SELECT CONCAT( '[[', @prefix, 'আলাপ:', pg.page_title, ']]') AS 'নিবন্ধ_ছাড়া_আলাপ_পাতার_তালিকা' FROM page pg WHERE pg.page_is_redirect = 0 AND pg.page_namespace = @ns AND pg.page_title NOT...
{"resultsets": [{"headers": ["iwl_title", "P1612", "CONCAT(\"\\\"\", REPLACE(page_title, \"_\", \" \"), \"\\\"\")"], "rowcount": 6}], "runningtime": "0.26"}
null
প্রতিবেদন − পিতৃহীন চিত্র
Orphaned fair use images (bnwiki) Returns the list of fair use images that are not presently used in any articles
USE bnwiki_p; SELECT CONCAT('{{lf|', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), '}}') as পিতৃহীন_চিত্রের_তালিকা FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ON p.page_title = i.il_to AND (i.il_from_namespace = 0) LEFT JOIN categorylinks c2 ON p.page_id ...
{"resultsets": [{"headers": ["iwl_title", "P1612", "CONCAT(\"\\\"\", REPLACE(page_title, \"_\", \" \"), \"\\\"\")"], "rowcount": 6}], "runningtime": "0.27"}
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": [{"headers": ["page_namespace", "page_title", "page_len", "page_is_redirect", "page_is_new"], "rowcount": 120}], "runningtime": "0.57"}
null
প্রতিবেদন − নিবন্ধনের বাইরে ব্যবহার করা মুক্ত নয় চিত্র
Non-free files used outside articles (bnwiki)
USE bnwiki_p; SELECT DISTINCT CONCAT('{{lf|', p.page_title, '}}') AS নিবন্ধনের_বাইরে_ব্যবহার_করা_মুক্ত_নয়_চিত্রের_তালিকা FROM page p INNER JOIN categorylinks c ON p.page_id = c.cl_from INNER JOIN (imagelinks i LEFT JOIN redirect r ON i.il_from = r.rd_from) ON p.page_title = i.il_to WHERE c.cl_to = "সকল_মুক্ত_নয়_মিডিয...
{"resultsets": [{"headers": ["MAX(rev_timestamp)"], "rowcount": 1}], "runningtime": "0.09"}
null
bnwiki inactive admin users
null
use bnwiki_p; SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', log_timestamp AS 'Last log', ug1.ug_group AS 'user_group' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('sysop', 'bureaucrat', 'checkuser') JOIN actor ON actor_user = user_id JOIN r...
{"runningtime": "0.95", "resultsets": [{"rowcount": 8, "headers": ["cl_to"]}, {"rowcount": 2, "headers": ["cl_to"]}, {"rowcount": 5, "headers": ["cl_to"]}, {"rowcount": 8, "headers": ["cl_to"]}, {"rowcount": 4, "headers": ["cl_to"]}, {"rowcount": 17, "headers": ["cl_to"]}]}
null
Structured data creator
null
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P170', 'Q4939834', CONCAT("File:",page_title) #'/* extracted from {{PermissionOTRS}} template */' FROM page JOIN categorylinks ON page_id=cl_from AND cl_to='Files_from_Bollywood_Hungama' WHERE page_namespace = 6 limit 15000
{"runningtime": "0.12", "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"]}]}
null
articles name
null
USE fawiki_p; SELECT CONCAT ('* [[',REPLACE(page_title,'_',' '),']]') FROM page WHERE page_namespace=0 AND page_is_redirect=0 #AND page_title LIKE "%-%" # hyphen 22412 pages #AND page_title LIKE "%–%" # n dash 1655 pages #AND page_title LIKE "%—%" # m dash 2 pages AND ( page_title LIKE "مجله\_%" OR page_title LIKE ...
{"runningtime": "0.29", "resultsets": [{"rowcount": 0, "headers": ["cl_to"]}, {"rowcount": 0, "headers": ["cl_to"]}, {"rowcount": 16, "headers": ["cl_to"]}]}
null
Articoli per numero di errori Lint
Mainspace pages with most lint errors
USE itwiki_p; SELECT REPLACE(page_title,'_',' '), COUNT(*) FROM linter JOIN page ON page.page_id = linter.linter_page WHERE page.page_namespace=2 /*AND page_id IN (SELECT tl_from FROM templatelinks WHERE tl_namespace = 10 AND tl_title IN ('Tennis_riepilogo_anno'))*/ AND linter_cat = 4 GROUP BY page.page_id ORDER ...
{"runningtime": "0.32", "resultsets": [{"rowcount": 2, "headers": ["cl_to"]}, {"rowcount": 5, "headers": ["cl_to"]}, {"rowcount": 10, "headers": ["cl_to"]}]}
null
Structured data source
null
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P7482', 'Q74228490', 'P973', el_to, CONCAT("File:",page_title) #'/* extracted from {{PermissionOTRS}} template */' FROM page JOIN externallinks ON page_id=el_from AND el_to LIKE 'https://www.flickr.com/photos%' JOIN categorylinks ON page_id=cl_from AND cl...
{"resultsets": [{"headers": ["cl_to"], "rowcount": 16}, {"headers": ["cl_to"], "rowcount": 198}, {"headers": ["cl_to"], "rowcount": 7}, {"headers": ["cl_to"], "rowcount": 2}, {"headers": ["cl_to"], "rowcount": 2}, {"headers": ["cl_to"], "rowcount": 9}, {"headers": ["cl_to"], "rowcount": 6}], "runningtime": "2.06"}
null
Latest properties
null
# For convenience, regex for Wikibase-SortedProperties # (\d+)\t(.*) # -> # * P$1 ($2) set @lastPropertyId = 8206; set @language = 'en'; USE wikidatawiki_p; SELECT wbpt_property_id as id, wbx_text as text FROM wbt_property_terms LEFT JOIN wbt_term_in_lang ON wbpt_term_in_lang_id = wbtl_id LEFT JOIN wbt_type ON wb...
{"resultsets": [{"headers": ["cl_to"], "rowcount": 3}, {"headers": ["cl_to"], "rowcount": 11}, {"headers": ["cl_to"], "rowcount": 28}], "runningtime": "0.45"}
null
Scrape OTRS
null
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P6305', concat('"',REPLACE(el_to,'https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=',''),'"') AS OTRS, CONCAT("File:",page_title) #'/* extracted from {{PermissionOTRS}} template */' FROM page JOIN externallinks ON page_id=el...
{"connection_id": 364804099}
null
page_assessments_projects
null
null
{"resultsets": [{"headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats"], "rowcount": 22}], "runningtime": "0.31"}
null
Most active Lexeme editors
null
USE wikidatawiki_p; SELECT actor.actor_name as Username, COUNT(actor.actor_name) AS cnt FROM page JOIN revision ON page.page_id=revision.rev_page JOIN actor ON revision.rev_actor=actor.actor_id WHERE page.page_namespace=146 GROUP BY actor.actor_name ORDER BY cnt DESC LIMIT 50;
{"runningtime": "0.32", "resultsets": [{"rowcount": 14, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Wszyscy
null
USE plwiki_p; SELECT CONCAT("[[User:",user_name,"]]") AS user_name, ug_group, user_editcount, COUNT(actor_id) AS recent_user_editcount FROM user LEFT OUTER JOIN actor ON actor_user = user_id LEFT OUTER JOIN revision_actor_temp ON revactor_actor = actor_id LEFT OUTER JOIN user_groups ON ug_user = actor_user WHERE revact...
{"runningtime": "0.47", "resultsets": [{"rowcount": 48, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
User's first edit
null
use enwiktionary_p; select actor_name as 'user', date_format(min(rev_timestamp), '%Y-%m-%d %T') as 'first edit' from revision_userindex join actor on actor_id = rev_actor group by rev_actor order by min(rev_timestamp) desc limit 10;
{"runningtime": "0.16", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Flickr images at :en
null
USE enwiki_p; SELECT DISTINCT CONCAT('File:', p.page_title) FROM page p INNER JOIN externallinks ON el_from = p.page_id /*LEFT JOIN imagelinks i ON p.page_title = i.il_to -- AND (i.il_from_namespace = 0) */ LEFT JOIN categorylinks c1 ON p.page_id = c1.cl_from AND c1.cl_to = "All_non-free_media" LEFT JOIN redirect on r...
{"runningtime": "0.54", "resultsets": [{"rowcount": 41, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Bez uprawnień
null
USE plwiki_p; SELECT CONCAT("[[User:",user_name,"]]") AS user_name, ug_group, user_editcount, COUNT(actor_id) AS recent_user_editcount FROM user LEFT OUTER JOIN actor ON actor_user = user_id LEFT OUTER JOIN revision_actor_temp ON revactor_actor = actor_id LEFT OUTER JOIN user_groups ON ug_user = actor_user WHERE actor_...
{"runningtime": "0.57", "resultsets": [{"rowcount": 43, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Commons Categorys with no Wikidata sitelink but with bn-interwiki with sitelink
করতে হবে
USE commonswiki_p; SELECT p.page_title AS cat_name, ll.ll_title AS bn_interwiki, pp1.pp_value AS item, wbt.term_text AS en_label, p2.page_namespace AS ns, p2.page_title AS page #SELECT p.page_title AS cat_name, ll.ll_title AS bn_interwiki, pp1.pp_value AS item, p2.page_namespace AS ns, p2.page_title AS page FROM page A...
{"runningtime": "0.29", "resultsets": [{"rowcount": 11, "headers": ["cl_to"]}]}
null
مقالات محذوفة بتاريخ 2001
null
use arwiki_p; select ar_title, ar_timestamp from archive where ar_parent_id = 0 and ar_namespace = 0 and ar_timestamp like "2001%" limit 1000;
{"runningtime": "3.48", "resultsets": [{"rowcount": 520, "headers": ["page_title", "pl_title"]}]}
null
מדד ת"א 35
null
set @template = 'מדד_תל_אביב_35'; use hewiki_p; select pl_title as 'article without template' from page join pagelinks on page_id = pl_from where page_namespace = 10 and page_title = @template and pl_namespace = 0 and exists (select * from page where page_namespace = pl_namespace and page_title = pl_title and not ex...
{"runningtime": "0.31", "resultsets": [{"rowcount": 17, "headers": ["cl_to"]}]}
null
מדד ת"א 35
null
set @template = 'מדד_תל_אביב_35'; use hewiki_p; select pl_title as 'article without template' from page join pagelinks on page_id = pl_from where page_namespace = 10 and page_title = @template and pl_namespace = 0 and exists (select * from page where page_namespace = pl_namespace and page_title = pl_title and not ex...
{"runningtime": "0.23", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
مقالات بوابة السعودية غير المقيمة
null
USE arwiki_p; select DISTINCT concat("",p1.page_title, '') as pagename from page p1 , categorylinks , page p2 where p1.page_id = cl_from AND p1.page_is_redirect = 0 -- no redirects #AND p1.page_namespace = 0 AND cl_to = "بوابة_السعودية/مقالات_متعلقة" #and not exists (select pp.page_title from page pp where pp.p...
{"runningtime": "0.19", "resultsets": [{"rowcount": 11, "headers": ["cl_to"]}]}
null
page_title LIKE ".opus"
null
USE commonswiki_p; SELECT CONCAT("File:",page_title,"") FROM page AS page WHERE page_namespace = 6 AND (page_title LIKE "%.opus" OR page_title LIKE "%.Opus" OR page_title LIKE "%.OPUS") LIMIT 999;
{"runningtime": "168.89", "resultsets": [{"rowcount": 12, "headers": ["Benutzerseite", "ist in Kategorie"]}]}
null
Rotlinks auf Fußballer nach Anzahl Verlinkungen
null
USE dewiki_p; SELECT COUNT(*) as cnt, CONCAT('[[', REPLACE(pl_title, '_', ' '), ']]') as title FROM pagelinks LEFT JOIN page ON pl_title = page_title AND pl_namespace = page_namespace WHERE page_id IS NULL AND pl_namespace = 0 AND pl_from_namespace = 0 AND (pl_title LIKE "%(Fußballer%" OR "%(Fussballer%" OR...
{"runningtime": "1613.67", "resultsets": [{"rowcount": 152, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
null
Number of articles created by a list of user after a timestamp
null
USE hywiki_p; SELECT actor_name Username, count(*) "Number of articles" FROM actor JOIN revision ON rev_actor = actor_id JOIN page ON rev_page = page_id WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_parent_id = 0 AND actor_name IN ("Մանե Մկրտչյան", "TheBabushka", ...
{"runningtime": "0.98", "resultsets": [{"rowcount": 4, "headers": ["user", "user_name", "user_editcount", "ug_group"]}]}
null
أكثر المستخدمين امتلاكًا للصلاحيات في ويكيبيديا العربية
null
use arwiki_p; select user_name, count(ug_group), group_concat(ug_group) from user inner join user_groups on ug_user = user_id group by user_id order by count(ug_group) desc limit 100;
{"runningtime": "56.58", "resultsets": [{"rowcount": 20, "headers": ["Benutzerseite", "ist in Kategorie"]}]}
null
User rights missing expirations
null
/* SELECT log_id, log_timestamp FROM logging WHERE log_id IN (108911235, 108911240, 108911259, 108911266, 108911272, 108911276, 108912128); /**/ SET @u = 'DannyS712'; SELECT ug.* FROM user_groups ug JOIN user ON user_id = ug_user WHERE user_name = REPLACE(@u, '_', ' '); SELECT log_id, log_timestamp, log_params FROM l...
{"runningtime": "2336.88", "resultsets": [{"rowcount": 650372, "headers": ["page_title"]}]}
null
Faebot trimmer activity by platform
Limited to last 30 days.
USE commonswiki_p; SELECT page_title, SUBSTR( comment_text, INSTR(comment_text,'(') + 1, LENGTH(comment_text) - INSTR(comment_text,'(') - 1 ) AS Comment, LEFT(rev_timestamp,10) AS Date FROM page JOIN revision_userindex ON page_id=rev_page AND DATEDIFF(CURRENT_TIMESTAMP, rev_timestamp) < 8 JOIN comment_revision ON com...
{"connection_id": 196908830}
null
مقالات بوابة السعودية غير المقيمة (بدون نقاش)
null
USE arwiki_p; select DISTINCT concat('[[',p1.page_title,']]') as pagename from page p1 , categorylinks where p1.page_id = cl_from AND p1.page_is_redirect = 0 -- no redirects # page_namespace : 0 , 4 , 10 , 14 , 101 , 829 AND p1.page_namespace = 0 AND cl_to = "بوابة_السعودية/مقالات_متعلقة" and not exists (selec...
{"runningtime": "195.06", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 4, "headers": ["wpage"]}]}
null
وپ:دار، بر پایه > اقتباس، با استفاده از میان‌ویکی
532 446 33
SELECT concat('* [[:رده:',REPLACE(page_title,'_',' '),']] > [[:رده:',REPLACE(REPLACE(page_title,'_',' '),'بر پایه','اقتباس شده از'),']]') FROM fawiki_p.page JOIN fawiki_p.langlinks ON page_id = ll_from WHERE page_namespace = 14 AND page_is_redirect = 0 AND ll_lang = "en" #AND ll_title LIKE "Paradise%" AND ll_title LI...
{"connection_id": 222721051}
null
KSA Protected pages
null
use arwiki_p; select page_title, pr_level, pr_expiry from page_restrictions, page INNER JOIN categorylinks c ON page_id = cl_from AND cl_to = "بوابة_السعودية/مقالات_متعلقة" where pr_page = page_id and page_namespace = 0 and pr_type = 'edit' and page_title not like '%/%' ;
{"runningtime": "25.14", "resultsets": [{"rowcount": 2, "headers": ["page_title", "rev_timestamp"]}]}
null
Top edited articles covered by WikiProject KSA test
null
USE arwiki_p; SELECT article.page_title, COUNT(*) AS edits FROM revision INNER JOIN page article ON article.page_id = rev_page AND article.page_namespace = 0 INNER JOIN page talk ON talk.page_title = article.page_title AND talk.page_namespace = 1 INNER JOIN categorylinks ON cl_from = talk.page_id WHER...
{"runningtime": "47.83", "resultsets": [{"rowcount": 1, "headers": ["page_title"]}]}
null
Commons file by category
null
USE commonswiki_p; SELECT concat("File:",page_title) AS File_Name FROM page JOIN categorylinks cl1 ON cl1.cl_from = page_id AND cl1.cl_to='Files_from_Bollywood_Hungama' JOIN categorylinks cl2 ON cl2.cl_from = page_id AND cl2.cl_to='Files_uploaded_by_ZI_Jony' WHERE page_namespace = 6 limit 500
{"connection_id": 231777585}
null
~Bad links from dewiki to other wikis' articles: broken
null
USE dewiki_p; SET @lenm = LENGTH('https://meta.wikimedia.org/wiki/'); SET @lenmw = LENGTH('https://www.mediawiki.org/wiki/'); SET @lenspec = LENGTH('https://species.wikimedia.org/wiki/'); SET @lenb = LENGTH('https://de.wikibooks.org/wiki/'); SET @lenn = LENGTH('https://de.wikinews.org/wiki/'); SET @lenq = LENGTH('https...
{"runningtime": "146.60", "resultsets": [{"rowcount": 12931, "headers": ["CONCAT('[[',page_title,']]')", "CONCAT('[[',rd_title,']]')", "counting"]}]}
null
بيانات مقالات مسابقة ويكيبيديا السعودية
null
USE arwiki_p; SELECT article.page_title as "المقالة", MIN(revision.rev_id) as "النسخة", actor.actor_name as "المستخدم", revision.rev_actor as "معرف المستخدم", revision.rev_timestamp as "تاريخ الإنشاء", article.page_len as "حجم المقالة" FROM revision inner join actor on actor_id = rev_actor INNER JOIN page article ...
{"runningtime": "0.10", "resultsets": [{"rowcount": 10, "headers": ["page_id"]}]}
null
Number of itwiki articles with page images
Number of enwiki pages with page images
USE itwiki_p; select count(distinct pp_page) as countpager FROM page_props WHERE pp_propname='page_image_free' or pp_propname='page_image'
{"runningtime": "0.37", "resultsets": [{"rowcount": 100, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]}
null
رتب بصب
null
use fawiki_p; select distinct concat("[[Special:Contribs/", actor_name, "]]") as User, concat("[[بحث:", page_title, "]]") as Example, count(comment_text) as Counter from actor join revision on rev_actor = actor_id join comment on rev_comment_id = comment_id join page on page_id = rev_page where page_namespace = 1 and c...
{"runningtime": "0.03", "resultsets": []}
null
Wikimarathon 2020
List of articles created for the She Did It Challenge on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT(actor_name) as actor_name, COUNT(1) AS created, SUM(article.page_len) as total_len, GROUP_CONCAT( DI...
{"runningtime": "2.66", "resultsets": [{"rowcount": 145, "headers": ["rc_title", "concat('https://cs.wikipedia.org/w/index.php?title=', rc_title, '&diff=', rc_this_oldid, '&oldid=', rc_last_oldid)"]}]}
null
вандальные учётки
null
use ruwiki_p; select log_timestamp, log_title, log_params from logging where log_type="renameuser" and log_timestamp > 20080101000000 and log_timestamp < 20090101000000;
{"runningtime": "2.65", "resultsets": [{"rowcount": 38, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
null
edits by JarektBot in a month per day
null
use commonswiki_p; SELECT FLOOR(rev_timestamp/1000000) AS Day, COUNT(*) AS edits FROM revision WHERE rev_actor=695 and rev_timestamp>20200706000000 and rev_timestamp<20200806000000 GROUP BY Day ORDER BY Day
{"runningtime": "5.04", "resultsets": [{"rowcount": 1, "headers": ["count(1)", "count(distinct cl_from)"]}]}
null
Scrape coordinates
query which strips coordinates and camera heading from geohack URL, for files in [[Category:Pages_with_local_coordinates_and_missing_SDC_coordinates]], and formats the output in format of QuickStatements https://quarry.wmflabs.org/query/41693
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P1259', REGEXP_REPLACE(el_to,'[^&]*&params=([^_]+)_N_([^_]*).*','@\\1/\\2') AS coordinates, 'P7787', concat(replace(REGEXP_SUBSTR(el_to, '_heading:([^_&]*)'),'_heading:',''),'U28390') as heading, '/* extracted from {{Location}} template */' #e...
{"runningtime": "6.33", "resultsets": [{"rowcount": 1215, "headers": ["category_name", "fawiki_counterparts"]}]}
null
Valued images missing SDC assessment
null
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P6731', 'Q63348040' FROM page JOIN categorylinks cl1 ON cl1.cl_from = page_id AND cl1.cl_to='Valued_images_missing_SDC_Commons_quality_assessment' WHERE page_namespace = 6 limit 1000
{"runningtime": "0.16", "resultsets": [{"rowcount": 17, "headers": ["page_title"]}]}
null
Quality images missing SDC assessment
null
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P6731', 'Q63348069' FROM page JOIN categorylinks cl1 ON cl1.cl_from = page_id AND cl1.cl_to='Quality_images_missing_SDC_Commons_quality_assessment' WHERE page_namespace = 6 limit 10000
{"runningtime": "2.79", "resultsets": [{"rowcount": 724, "headers": ["page_title"]}]}
null
Thanks for 2020
Most thanked people in 2020 Blame Mz7, SQL, and stwalkerster for this
USE enwiki_p; SELECT log_title, COUNT(log_id) as "thank_count" FROM logging_logindex WHERE log_type = "thanks" AND log_timestamp >= "20200000000000" GROUP BY log_title ORDER BY 2 DESC
{"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"]}]}
null
Aliases تحتوي كلمة زواوي
null
use wikidatawiki_p; select * from wb_terms where term_type = "alias" and term_language = "ar" and term_text like "%زواوي%";
{"runningtime": "1.01", "resultsets": [{"rowcount": 100, "headers": ["page_title", "redir"]}]}
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": "1.67", "resultsets": [{"rowcount": 100, "headers": ["page_title", "redir"]}]}
null
Most missing.
https://quarry.wmflabs.org/query/41536 https://quarry.wmflabs.org/query/6263
USE simplewiki_p; -- articles from EN with most langlinks... #USE enwiki_p; -- articles from EN with most langlinks... SELECT count(*) ll_count, page_title title_en, (select ll_title from langlinks where ll_from = page_id and ll_lang = 'en') title_en, (select ll_title from langlinks where ll_from = ...
{"runningtime": "20.71", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 1235, "headers": ["wikipage"]}]}
null
InternetArchiveBot edits to add links to archive.org books
Query
USE enwiki_p; SELECT rev_id FROM revision_userindex WHERE rev_actor = 177 AND rev_id > 900000000 AND rev_comment_id IN ( SELECT comment_id FROM comment_revision -- WHERE comment_id > 284004931 WHERE comment_text LIKE "Bluelink%" );
{"runningtime": "21.62", "resultsets": [{"rowcount": 1000, "headers": ["ll_count", "title_en", "title_zh", "title", "wb_item"]}]}
null
Consultas varias de SeroBOT <3
Consultas varias de estadísticas curiosas de SeroBOT
use eswiki_p; -- select * from actor where actor_name = 'SeroBOT'; -- 21 select rev_page, page_title, count(1) counted from revision inner join page on rev_page = page_id where rev_actor = 21 and rev_timestamp between '20200101000000' and '20201231235959' and page_namespace = 0 group by 1, 2 -- having counted >...
{"runningtime": "29.31", "resultsets": [{"rowcount": 100, "headers": ["concat(\"File:\",page_title)", "page_links_updated", "page_touched"]}]}
null
Number of files uploaded with UploadWizard
null
USE commonswiki_p; SELECT COUNT(log_comment_id) FROM logging WHERE log_comment_id = 44 AND log_type = "upload" ;
{"runningtime": "204.00", "resultsets": [{"rowcount": 0, "headers": ["ipb_address", "page_touched", "reason"]}]}
null
Testing new accounts
null
SELECT rc_log.rc_id, rc_log.rc_timestamp, rc_log.rc_title AS 'Created user name', rc_log.rc_actor AS 'Creator actor', a.*, block.ipb_expiry, blockreason.comment_text, CASE WHEN block.ipb_sitewide = 1 THEN 'sitewide' ELSE ( SELECT GROUP_CONCAT( CASE WHEN restriction.ir_type = 1 THEN ( ...
{"runningtime": "0.81", "resultsets": [{"rowcount": 44, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 13, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 12, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null