title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Links to http://jnul.huji.ac.il/heb in hewiki
Links to http://jnul.huji.ac.il/heb in hewiki
use hewiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%http://jnul.huji.ac.il%' and el_from = page_id limit 500000;
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 10}], "runningtime": "0.07"}
hewiki_p
Συχνότητα επεξεργασιών σελίδων js/css στον ονοματοχώρο Mediawiki
Επεξεργασίες site js/css τα τελευταία 15 χρόνια.
USE elwiki_p; SELECT YEARWEEK(rev_timestamp) AS week, 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 15 YEAR) GROUP BY week ORDER BY week DESC
{"resultsets": [{"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"], "rowcount": 10}], "runningtime": "0.07"}
elwiki
Most edit users on Mrwp
null
select rev_actor, actor_name, count(rev_id) as edit_count from revision, actor where rev_timestamp > 20050300000000 and rev_actor = actor_id group by rev_actor having count(rev_id) between 1000 and 1000000 order by edit_count desc;
{"connection_id": 18808230}
mrwiki_p
सदस्य ज्यांनी सर्वाधिक पृष्ठे तयार केली आहेत
Test
SELECT Count(*) number, actor_name FROM revision JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id WHERE rev_parent_id = 0 AND page_namespace = 0 AND page_is_redirect = 0 AND rev_timestamp > 20010000000000 AND rev_timestamp ...
{"resultsets": [{"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", "cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_co...
mrwiki_p
Talk Pages with deleted pages mrwp
Just change namespace
SELECT CONCAT("# [[वर्ग चर्चा:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 15 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 14 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["page_title", "cl_to", "cl_sortkey_prefix"], "rowcount": 26}], "runningtime": "1.26"}
mrwiki_p
enwiki hat collectors
(A phrase I use lovingly, being tied for 33rd)
SELECT RANK() OVER (ORDER BY $hats DESC) AS $rank, user_name, user_editcount, COUNT(*) as $hats, GROUP_CONCAT(DISTINCT ug_group SEPARATOR ", ") AS $collection FROM user INNER JOIN user_groups ON ug_user = user_id WHERE ug_group != 'autoconfirmed' AND ug_group != 'extendedconfirmed' AND ug_gr...
{"resultsets": [{"headers": ["ns", "page_title", "rd", "name", "cat", "commas"], "rowcount": 820}], "runningtime": "48.20"}
enwiki_p
Pages that don't have Malayalam label at Wikidata
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Lml", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='tewiki' AND NOT EXISTS ( SELECT wbit_item_id FROM wbt_item_terms INNER JOIN wbt_term_in_lang ON wbtl_id = wbit_term_in_lang_id INNER JOIN wbt_text_in_lang ON wbxl_id = wbtl_...
{"connection_id": 31579666}
wikidatawiki_p
uncategorized Visual arts articles
null
SELECT DISTINCT article.page_title #SELECT DISTINCT article.page_title AS PT, CONCAT("https://en.wikipedia.org/wiki/", article.page_title) AS link FROM page article JOIN page talkpage ON article.page_title = talkpage.page_title JOIN templatelinks ON talkpage.page_id=templatelinks.tl_from LEFT JOIN categorylinks ON ar...
{"resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 107}], "runningtime": "0.19"}
enwiki
percent mobile edits for user
null
SET @`name` = "A. C. Santacruz"; SELECT ( SELECT COUNT(*) FROM revision_userindex JOIN change_tag ON ct_rev_id = rev_id JOIN change_tag_def ON ctd_id = ct_tag_id WHERE rev_actor = (SELECT actor_id FROM actor_revision WHERE actor_name = @`name`) AND ctd_name = "mobile edit" ) / ( SELECT user_edit...
{"connection_id": 31612543}
enwiki_p
number of edits by tag
null
SET @`name` = "A. C. Santacruz"; SELECT ctd_name, COUNT(*) FROM revision_userindex JOIN change_tag ON ct_rev_id = rev_id JOIN change_tag_def ON ctd_id = ct_tag_id WHERE rev_actor = (SELECT actor_id FROM actor_revision WHERE actor_name = @`name`) GROUP BY 1 ORDER BY 2 DESC ;
{"connection_id": 31612749}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_title", "page_touched"], "rowcount": 14}], "runningtime": "0.46"}
enwiki_p
Vandalismebestrijding trwiki (IP-patrolling)
Vandalismebestrijding, 1493 te markeren/controleren, 21 maart 2022, 15:10 (CET)
# anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION SELECT 'total...
{"resultsets": [{"headers": ["page_title", "page_touched"], "rowcount": 14}], "runningtime": "0.45"}
trwiki_p
Fiwiki good diffs
log_action 'approve', 'approve2' is Flagged revs manually approved edits
SET @datelimit = DATE_FORMAT(NOW() - INTERVAL 30 day,'%Y%m%d%H%i%s'); SELECT log_title, r1.rev_page, r1.rev_id, r2.rev_id, concat("https://fi.wikipedia.org/w/index.php?diff=", r1.rev_id , "&oldid=", r2.rev_id ) AS diff FROM logging_userindex, revision AS r1, revision AS r2 WHERE log_action ...
{"resultsets": [{"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", "comment_id", "comment_hash", "comment_text", "comment_data", "page_id", "page_namespace", "pa...
fiwiki_p
Duplicated images
null
SELECT i.img_name n1, c.img_name n2, CASE WHEN i.img_name = c.img_name THEN 'بله' ELSE '-' END AS ourcase FROM image AS i JOIN commonswiki_p.image AS c ON i.img_sha1 = c.img_sha1 LIMIT 5000
{"resultsets": [{"headers": ["ct", "tl_namespace", "tl_title"], "rowcount": 270}], "runningtime": "105.44"}
fawiki_p
Articles in both a mother and a daughter category
null
SELECT p1.page_title, cl1.cl_to, cl2.cl_to FROM page p1 -- article JOIN categorylinks cl1 -- daughter ON p1.page_id = cl1.cl_from JOIN categorylinks cl2 -- mother ON p1.page_id = cl2.cl_from JOIN page p2 -- daughter cat page ON cl1.cl_to = p2.page_title AND p2.page_namespace = 14 JOIN categorylinks cl3 ...
{"resultsets": [{"headers": ["page_title", "tl_title"], "rowcount": 6}], "runningtime": "0.13"}
fawiki_p
Articles in both a mother and a daughter category
null
SELECT p1.page_title, cl1.cl_to, cl2.cl_to as cl2 FROM page p1 -- article JOIN categorylinks cl1 -- daughter ON p1.page_id = cl1.cl_from JOIN categorylinks cl2 -- mother ON p1.page_id = cl2.cl_from JOIN page p2 -- daughter cat page ON cl1.cl_to = p2.page_title AND p2.page_namespace = 14 JOIN categorylinks...
{"resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["tl_title"], "rowcount": 0}, {"headers": ["page_title", "rev_timestamp"], "rowcount": 0}, {"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title", "pp_propname"], "r...
fawiki_p
direct fork test
null
SELECT subcat.page_title, catlink2.cl_from, pg_img.page_title FROM page AS subcat INNER JOIN categorylinks AS catlink1 ON subcat.page_id = catlink1.cl_from INNER JOIN categorylinks AS catlink2 ON subcat.page_title = catlink2.cl_to INNER JOIN page AS pg_img ON pg_img.page_id = catlink2.cl_from WHERE catlink1....
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 15}], "runningtime": "128.81"}
commonswiki_p
Meta inactivity fork test
To be used in the upcoming October 2020 inactivity check.
-- Modify startdate and enddate to change dates SET @startdate = '20200401000000'; SET @enddate = '20201001000000'; -- regex for exempt users SET @exempt_username_pattern = ' \\(WMF\\)$|-WMF$|WMFOffice'; -- Define for what is a sysop action SET @sysoplogtype = CAST( "( 'abusefilter', 'block', 'contentmo...
{"resultsets": [{"headers": ["base_id", "id", "page_title"], "rowcount": 5174}], "runningtime": "5.90"}
metawiki_p
collect all images for WLM per year with country
null
SELECT subcat.page_title AS cat_title, catlink2.cl_from, pg_img.page_title AS image_title FROM page AS subcat INNER JOIN categorylinks AS catlink1 ON subcat.page_id = catlink1.cl_from INNER JOIN categorylinks AS catlink2 ON subcat.page_title = catlink2.cl_to INNER JOIN page AS pg_img ON pg_img.page_id = catli...
{"resultsets": [{"headers": ["cnt", "title"], "rowcount": 0}], "runningtime": "19.91"}
commonswiki_p
Articles in both a mother and a daughter category
null
SELECT DISTINCT p1.page_title, cl1.cl_to, cl2.cl_to as cl2 FROM page p1 -- article JOIN categorylinks cl1 -- daughter ON p1.page_id = cl1.cl_from AND cl1.cl_to NOT LIKE '%صفحه‌های_ابهام‌زدایی%' JOIN categorylinks cl2 -- mother ON p1.page_id = cl2.cl_from AND cl2.cl_to NOT LIKE '%صفحه‌های_ابهام‌زدایی%' JOI...
{"resultsets": [{"headers": ["afl_user_text"], "rowcount": 20}], "runningtime": "2.07"}
fawiki_p
enwiki inactive EVC
null
SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', GROUP_CONCAT(ug1.ug_group) AS 'user_groups' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('eventcoordinator') JOIN actor ON actor_user = user_id JOIN revision_userindex ON rev_id = (SELECT re...
{"resultsets": [{"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", "slot_revision_id", "slot_role_id", "slot_content_id", "slot_origin"], "rowco...
enwiki_p
ger archives by actor id
null
SELECT ar_timestamp AS timestamp FROM archive WHERE ar_actor = 118799 ORDER BY ar_timestamp DESC LIMIT 500
{"resultsets": [{"headers": ["concat ('[[',page_title,']]')+char(13)+concat ('[[',REPLACE (page_title,\"\u0627\u06cc\u0646\u062a\u0631\u062a\u06cc\u0646\u0645\u0646\u062a\",\"\u0627\u0646\u062a\u0631\u062a\u06cc\u0646\u0645\u0646\u062a\"),']]')"], "rowcount": 83}], "runningtime": "1.56"}
zhwiki_p
revision merge archive
null
SELECT * FROM (( SELECT rev_timestamp AS timestamp, 'r' FROM revision_userindex WHERE rev_actor = 220 ORDER BY rev_id DESC LIMIT 500 ) UNION ALL ( SELECT ar_timestamp AS timestamp, 'a' FROM archive WHERE ar_actor = 220 ORDER BY ar_timestamp DESC LIMIT 500 )) t ORDER BY timestamp DESC LIMIT 500
{"resultsets": [{"headers": ["pl_from", "page_title"], "rowcount": 368}], "runningtime": "1.94"}
zhwiki_p
ger logging by actor id
null
SELECT * FROM logging_userindex WHERE log_actor = 118799 AND log_type IN ('block', 'delete', 'protect') ORDER BY log_id DESC LIMIT 1
{"resultsets": [{"headers": ["count(*)"], "rowcount": 1}], "runningtime": "1.20"}
zhwiki_p
Select all pages created by actor with id
null
select page_title from page join revision on page_id=rev_page join revision_actor_temp on revision_actor_temp.revactor_rev=revision.rev_id join actor on actor.actor_id=revision_actor_temp.revactor_actor where revactor_actor=16 and rev_parent_id=0 and page....
{"resultsets": [{"headers": ["Page", "Deleting admin", "Edit summary", "Timestamp"], "rowcount": 18}], "runningtime": "0.93"}
dewiki
get page_id user contribution
null
select distinct p.page_id ,p.page_title , a.actor_name ,p.page_namespace , i.il_to from revision r ,page p ,actor a ,imagelinks i where r.rev_page = p.page_id and r.rev_actor = a.actor_id and p.page_id = i.il_from limit 500
{"resultsets": [{"headers": ["page_title", "page_touched"], "rowcount": 1}], "runningtime": "6.32"}
mediawikiwiki
Special:UncategorizedPages
null
select page_namespace, page_title from page left join categorylinks on cl_from = page_id where cl_from IS NULL and page_namespace = 110 and page_is_redirect = 0 and page_content_model not in ('css', 'javascript', 'json', 'sanitized-css')
{"resultsets": [{"headers": ["maincat_title", "subcat_title", "file_id", "file_title"], "rowcount": 0}], "runningtime": "0.06"}
itwikisource_p
Links to http://jnul.huji.ac.il/ in wiki
Links to http://jnul.huji.ac.il/ in wiki
use hewiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%jnul.huji.ac.il%' and el_from = page_id limit 500000;
{"resultsets": [{"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"], "rowcount": 10}], "runningtime": "0.11"}
hewiki_p
APPERbot: Abstand am Artikelanfang
Angezeigt wird der Artikel und jeweils von der Änderung davor der Difflink, der User (kann auch der Diff davor sein, wie z.B. bei 'Aka') und der Zeitpunkt (in UTC)
SELECT CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') AS Artikel, CONCAT('[[Spezial:Diff/', Other.rev_id, ']]') AS "Diff vor APPERbot", Mensch.actor_name AS "User vor APPERbot", CONCAT(SUBSTR(Other.rev_timestamp, 1, 4), ' ', SUBSTR(Other.rev_timestamp, 5, 2), ' ', SUBSTR(Other.rev_timestamp, 7, ...
{"resultsets": [{"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"], "rowcount": 10}], "runningtime": "0.07"}
dewiki_p
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["tl_title"], "rowcount": 87}], "runningtime": "1490.37"}
enwiki
Most pending changes accepts (all time)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' GROUP BY log_actor ORDER BY manual_accept_count DESC LIMIT 1000
{"resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 30}], "runningtime": "19.23"}
enwiki
timestamp query
null
SELECT rev_timestamp FROM revision WHERE rev_id=928889296
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 84}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 11}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 23}], "runningtime": "6.45"}
enwiki_p
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["#", "Usuario", "Total 202101"], "rowcount": 100}], "runningtime": "1.88"}
enwiki
Edits by mobile web editors
null
SELECT actor_name, COUNT(*) FROM revision INNER JOIN actor on revision.rev_actor = actor.actor_id INNER JOIN change_tag on revision.rev_id = change_tag.ct_rev_id INNER JOIN change_tag_def on change_tag.ct_tag_id = change_tag_def.ctd_id WHERE ctd_name = 'advanced mobile edit' AND actor_name IN (SELECT actor_name FROM ch...
{"resultsets": [{"headers": ["pl_namespace", "pl_title"], "rowcount": 561}], "runningtime": "0.70"}
dewiki_p
Mobile web editors
null
SELECT actor_name, count(*) FROM change_tag LEFT JOIN revision on change_tag.ct_rev_id = revision.rev_id LEFT JOIN change_tag_def on change_tag.ct_tag_id = change_tag_def.ctd_id LEFT JOIN actor on revision.rev_actor = actor.actor_id WHERE ctd_name = 'mobile web edit' AND rev_timestamp BETWEEN 20210901000000 AND 2022030...
{"resultsets": [{"headers": ["pl_namespace", "pl_title"], "rowcount": 561}], "runningtime": "0.75"}
dewiki_p
Links to http://jnul.huji.ac.il/heb in hewiki
Links to http://jnul.huji.ac.il/heb in hewiki
use hewiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%jnul.huji.ac.il%' and el_from = page_id limit 500000;
{"connection_id": 35006569}
hewiki_p
Meta inactivity 2020-10
To be used in the upcoming October 2020 inactivity check.
-- Modify startdate and enddate to change dates SET @startdate = '20200401000000'; SET @enddate = '20201001000000'; -- regex for exempt users SET @exempt_username_pattern = ' \\(WMF\\)$|-WMF$|WMFOffice'; -- Define for what is a sysop action SET @sysoplogtype = CAST( "( 'abusefilter', 'block', 'contentmo...
{"resultsets": [{"headers": ["CX new articles", "CX deletion rate", "non-CX new articles", "non-CX deletion rate", "CX deletion rate, vs. non-CX"], "rowcount": 1}], "runningtime": "3.68"}
metawiki_p
Czech Wikipedians by total bytes added
null
SELECT actor_name, SUM(GREATEST(0, CAST(r1.rev_len AS SIGNED)-COALESCE(CAST(r2.rev_len AS SIGNED), 0))) AS bytes FROM revision AS r1 JOIN page ON rev_page = page_id AND page_namespace = 0 LEFT JOIN revision AS r2 ON r1.rev_parent_id = r2.rev_id JOIN actor ON r1.rev_actor = actor_id GROUP BY actor_name ORDER BY bytes DE...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 3}], "runningtime": "58.95"}
cswiki_p
Redlinked redirects in category "Sidnamn med arabiska alfabetet"
Find redirects with red links in a specific category
SELECT pl_title AS "Page", count(*) AS "Count" FROM page JOIN pagelinks ON pl_from = page_id AND pl_namespace = 0 AND pl_from_namespace = 0 AND (NOT EXISTS( SELECT * FROM page WHERE page_title = pl_title AND page_namespace = 0)) AND page_namespace = 0 group by pl_title order by 2 desc;
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 80}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 11}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 23}], "runningtime": "2.41"}
svwiki
154.160.0.0/12
null
SELECT ipb_address FROM ipblocks_ipindex WHERE ipb_range_start LIKE "9AA0%" AND ipb_range_start <= "9AA00000" AND ipb_range_end >= "9AAFFFFF" AND ipb_sitewide = 1 AND ipb_auto = 0
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 10}], "runningtime": "0.06"}
enwiki_p
Infobox sportsperson
Infobox sportsperson
SELECT /*SLOW OK*/ 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 WHERE ll_from ...
{"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "17.91"}
enwiki
Czech Wikipedians by number of article edits
null
SELECT actor_name, COUNT(*) AS edits FROM revision JOIN page ON rev_page = page_id AND page_namespace = 0 JOIN actor ON rev_actor = actor_id GROUP BY actor_name ORDER BY edits DESC
{"resultsets": [{"headers": ["CONVERT(p1.page_title USING utf8)", "COUNT(*)"], "rowcount": 551}], "runningtime": "5.05"}
cswiki_p
Czech Wikipedians by number of article creations
null
SELECT actor_name, COUNT(*) AS edits FROM revision JOIN page ON rev_page = page_id AND page_namespace = 0 AND page_is_redirect = 0 JOIN actor ON rev_actor = actor_id WHERE rev_parent_id = 0 GROUP BY actor_name ORDER BY edits DESC
{"resultsets": [{"headers": ["Page", "Deleting admin", "Edit summary", "Timestamp"], "rowcount": 954}], "runningtime": "3.94"}
cswiki_p
Czech Wikipedians by number of articles edited
null
SELECT actor_name, COUNT(DISTINCT rev_page) AS pages FROM revision JOIN page ON rev_page = page_id AND page_namespace = 0 AND page_is_redirect = 0 JOIN actor ON rev_actor = actor_id GROUP BY actor_name ORDER BY pages DESC
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 2}], "runningtime": "115.16"}
cswiki_p
CSD category counts, again
The problem this time seems to be rows in categorylinks persisting after the page was deleted. [[WP:VPT#Speedy deletion category counts]] circa 15 Apr 2022.
SELECT * FROM categorylinks LEFT JOIN page ON page_id = cl_from WHERE cl_to IN ('Candidates_for_speedy_deletion_as_blatant_NOTWEBHOST_violations', 'Candidates_for_speedy_deletion_as_copyright_violations', 'Candidates_for_speedy_deletion_as_vandalism');
{"resultsets": [{"headers": ["up_property", "count(up_property)"], "rowcount": 4}], "runningtime": "0.20"}
enwiki_p
page_links_updated by date, mainspace
null
select left(page_links_updated,8) as date,count(*),avg(page_len),sum(page_len) from page where page_random between 0.001 and 0.002 group by date;
{"resultsets": [{"headers": ["No_of_articles"], "rowcount": 1}], "runningtime": "0.15"}
enwiki
Maltese lemmas not edited by Fenakhay
null
set @category_name := 'Maltese_lemmas'; select page_namespace, page_title from categorylinks left join page on page_id = cl_from where cl_to = @category_name and NOT EXISTS( select 1 from revision as rev left join actor on actor_id = rev_actor where rev_page = cl_from and actor_name in ('Fenakhay')) group by cl...
{"resultsets": [{"headers": ["No_of_articles"], "rowcount": 1}], "runningtime": "0.29"}
enwiktionary
Maltese lemmas not edited by Fenakhay (by date)
null
set @category_name := 'Maltese_lemmas'; select date, page_namespace, page_title from categorylinks left join page on page_id = cl_from where cl_to = @category_name and NOT EXISTS( select 1 from revision as rev left join actor on actor_id = rev_actor where rev_page = cl_from and actor_name in ('Fenakhay')) group...
{"resultsets": [{"headers": ["No_of_articles"], "rowcount": 1}], "runningtime": "0.77"}
enwiktionary
Maltese lemmas not edited by Fenakhay
null
set @category_name := 'Maltese_lemmas'; select page_namespace, page_title, date_format(rev_timestamp, '%Y-%m-%d %H:%i:%s') as last_edit_timestamp from categorylinks left join page on page_id = cl_from where cl_to = @category_name and NOT EXISTS( select 1 from revision as rev left join actor on actor_id = rev...
{"resultsets": [{"headers": ["concat(\"Category:\",page_title)", "page_len", "cat_pages", "cat_subcats"], "rowcount": 8382}], "runningtime": "20.66"}
enwiktionary
Maltese lemmas not edited by Fenakhay
null
set @category_name = 'Maltese_lemmas'; select page_namespace as namespace, replace(page_title, '_', ' ') as title, date_format(rev_timestamp, '%Y-%m-%d %H:%i:%s') as last_edit_timestamp from categorylinks join page on page_id = cl_from join revision_userindex on rev_id = page_latest where cl_to = @category_na...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 2122}], "runningtime": "6.86"}
enwiktionary_p
Test
null
# anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION SELECT 'total...
{"resultsets": [{"headers": ["page_title", "$link"], "rowcount": 5693}], "runningtime": "98.17"}
nlwiki_p
Double redirects from *.js or *.css
For [[WP:RAQ#List of fully-protected or interface protected double redirects]] circa 15 Apr 2022.
SELECT CONCAT(CASE src.page_namespace WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' WHEN 5 THEN 'Wikipedia talk:' ELSE CONCAT('{{ns:', src.page_namespace, '}}:') END, src.page_title) AS pagename FROM page AS src JOIN redirect ON rd_from = src....
{"resultsets": [{"headers": ["page_title", "Anzahl"], "rowcount": 204979}], "runningtime": "298.90"}
enwiki_p
Protected double redirects
For [[WP:RAQ#List of fully-protected or interface protected double redirects]] circa 15 Apr 2022.
SELECT CONCAT(CASE src.page_namespace WHEN 0 THEN '' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' WHEN 4 THEN 'Wikipedia:' ELSE CONCAT('{{ns:', src.page_namespace, '}}:') END, src.page_title) AS pagename, pr_level, pr_expiry, ...
{"resultsets": [{"headers": ["page_title", "Anzahl", "5 Beispiel-BKS"], "rowcount": 204979}], "runningtime": "272.37"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["Begriffskl\u00e4rung", "Anzahl Artikel", "5 verlinkte Artikel mit Koordinaten"], "rowcount": 104849}], "runningtime": "150.59"}
enwiki_p
異名前空間へのリダイレクトの一覧
null
SELECT redirect.rd_namespace AS "名前空間1", LEFT(redirect.rd_title,60) AS "リダイレクト先", redirect.rd_from AS 元のPID, page.page_namespace AS "名前空間0", page.page_title AS "リダイレクト元", CONCAT('https://ja.wikipedia.org/?curid=',page.page_id) AS 元のURL FROM redirect, page WHERE redirect.rd_namespace != page.page_namespace AND redirect....
{"resultsets": [{"headers": ["category_name", "fawiki_counterparts"], "rowcount": 0}], "runningtime": "0.06"}
jawiki
new users
null
SELECT * FROM logging WHERE log_type = "newusers" AND log_title LIKE "Ken%" AND log_timestamp > 20220315000000 ORDER BY log_id DESC
{"resultsets": [{"headers": ["Nome de usu\u00e1rio", "N\u00famero de edi\u00e7\u00f5es"], "rowcount": 0}], "runningtime": "0.84"}
zhwiki_p
non-EC users in other groups
null
select user.user_name, sq.* from (select ug_user, GROUP_CONCAT(ug_group) as groups from user_groups group by ug_user) sq inner join user on user.user_id=ug_user where sq.groups not like '%sysop%' AND sq.groups not like '%extendedconfirmed%'
{"resultsets": [{"headers": ["ug_group", "user_name"], "rowcount": 716}], "runningtime": "0.85"}
enwiki_p
non-EC users in other groups
null
select user.user_name, sq.* from (select ug_user, GROUP_CONCAT(ug_group) as groups from user_groups group by ug_user) sq inner join user on user.user_id=ug_user where sq.groups not like '%sysop%' AND sq.groups not like '%confirmed%'
{"resultsets": [{"headers": ["user_name"], "rowcount": 2}], "runningtime": "0.07"}
enwiki_p
non-XC users with nonredundant, nontrival perms [enwiki]
null
SELECT user_name, groups FROM ( SELECT user_name, user_id, GROUP_CONCAT(ug_group SEPARATOR ", ") AS groups FROM ( SELECT log_title FROM logging INNER JOIN actor ON logging.log_actor=actor.actor_id INNER JOIN comment on logging.log_comment_id = comment.comment_id WHERE logging.log_type="rights" ...
{"connection_id": 52482338}
enwiki_p
stubs
null
select CONCAT('#{{قا|',page_title,'}}') as "الصفحة" , cl_sortkey_prefix AS "عدد الاستخدامات" from categorylinks join page on cl_from = page_id where cl_to = "قوالب_بذرة_تعتمد_على_قالب:بذرة" group by cl_sortkey_prefix ORDER BY cl_sortkey_prefix DESC limit 5000;
{"resultsets": [{"headers": ["pages_with_disambig_but_not_redir"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_articles", "user_latestcreation"], "rowcount": 1005}], "runningtime": "118.79"}
arwiki
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_update...
enwiki
Most pending changes accepts (all time)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' GROUP BY log_actor ORDER BY manual_accept_count DESC LIMIT 1000
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 1}], "runningtime": "0.06"}
enwiki
Articles in both a mother and a daughter category (en)
null
SELECT DISTINCT p1.page_title, cl1.cl_to, cl2.cl_to as cl2 FROM page p1 -- article JOIN categorylinks cl1 -- daughter ON p1.page_id = cl1.cl_from AND cl1.cl_to NOT LIKE '%صفحه‌های_ابهام‌زدایی%' JOIN categorylinks cl2 -- mother ON p1.page_id = cl2.cl_from AND cl2.cl_to NOT LIKE '%صفحه‌های_ابهام‌زدایی%' JOI...
{"resultsets": [{"headers": ["count"], "rowcount": 1}], "runningtime": "1.69"}
enwiki_p
Articles in both a mother and a daughter category (de)
null
SELECT DISTINCT p1.page_title, cl1.cl_to, cl2.cl_to as cl2 FROM page p1 -- article JOIN categorylinks cl1 -- daughter ON p1.page_id = cl1.cl_from AND cl1.cl_to NOT LIKE '%صفحه‌های_ابهام‌زدایی%' JOIN categorylinks cl2 -- mother ON p1.page_id = cl2.cl_from AND cl2.cl_to NOT LIKE '%صفحه‌های_ابهام‌زدایی%' JOI...
{"resultsets": [{"headers": ["count"], "rowcount": 1}], "runningtime": "1.23"}
dewiki_p
Articles in both a mother and a daughter category (ar)
null
SELECT DISTINCT p1.page_title, cl1.cl_to, cl2.cl_to as cl2 FROM page p1 -- article JOIN categorylinks cl1 -- daughter ON p1.page_id = cl1.cl_from AND cl1.cl_to NOT LIKE '%صفحه‌های_ابهام‌زدایی%' JOIN categorylinks cl2 -- mother ON p1.page_id = cl2.cl_from AND cl2.cl_to NOT LIKE '%صفحه‌های_ابهام‌زدایی%' JOI...
{"resultsets": [{"headers": ["count"], "rowcount": 1}], "runningtime": "0.50"}
arwiki_p
Test top-patrol nlwiki
null
SELECT ROW_NUMBER() OVER (ORDER BY `count` DESC) AS '#', actor_user AS `user ID`, actor_name AS `user name`, COUNT(actor_id) AS `count` FROM logging, actor WHERE log_timestamp REGEXP '^2009 - 2022' AND log_type='patrol' AND log_action='patrol' AND log_actor=actor_id GROUP BY actor_id ORDER BY `count` DESC LIMIT 25
{"resultsets": [{"headers": ["CONCAT(\"[[:File:\", page_title, \"|thumb]]\")"], "rowcount": 78}], "runningtime": "13.14"}
nlwiki_p
nlwiki Top 200 manual patrollers of all time
excluding autopatrol
SELECT ROW_NUMBER() OVER (ORDER BY `count` DESC) AS '#', actor_user AS `user ID`, actor_name AS `user name`, COUNT(actor_id) AS `count` FROM logging, actor WHERE log_type='patrol' AND log_action='patrol' AND log_actor=actor_id GROUP BY actor_id ORDER BY `count` DESC LIMIT 200
{"resultsets": [{"headers": ["deletions", "user", "G2"], "rowcount": 1113}], "runningtime": "2.08"}
nlwiki
Draft gaming
null
SET STATEMENT max_statement_time = 120 FOR SELECT DISTINCT main_q.actor_id, main_q.actor_name, recentchanges.rc_title FROM ( SELECT actor_id, actor_name, COUNT(*) AS edit_count, SUM( LENGTH( TRIM( REGEXP_REPLACE(comment_text, '/\\* .* \\*/ *', '') ...
{"resultsets": [{"headers": ["CONCAT(\"File:\", page_title)"], "rowcount": 2334601}], "runningtime": "2690.14"}
enwiki
Campaigns Retention Metrics Dashboard
null
/* list of new uploaders after a particular campaign */ CREATE TABLE newuser_list( newuser_id varchar(20) primary key not null, newuser_name varchar(20) not null, newuser_real_name varchar(20) not null, newuser_registration binary(14) not null, uploded_content BOOLEAN not null ); DESC newuser_list; DESC user; /...
{"resultsets": [{"headers": ["\u5178\u7bc4\u689d\u76ee\uff08FA\uff09"], "rowcount": 14}, {"headers": ["\u64a4\u92b7\u5178\u7bc4\u689d\u76ee\uff08FFA\uff09"], "rowcount": 7}, {"headers": ["\u7279\u8272\u5217\u8868\uff08FL\uff09"], "rowcount": 9}, {"headers": ["\u64a4\u92b7\u7279\u8272\u5217\u8868\uff08FFL\uff09"], "rowc...
newiki_p
Users with more than 2M edits
null
SELECT COUNT(*) FROM user WHERE user_editcount > 2000000
{"resultsets": [{"headers": ["page_title", "pl_title"], "rowcount": 658}], "runningtime": "81.21"}
enwiki_p
images uploaded by an user
null
SELECT page_title FROM revision_userindex JOIN actor_revision ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace=6 AND rev_parent_id = 0 AND actor_name = 'Martin Urbanec'
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 2137}, {"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 1}], "runningtime"...
commonswiki
Users with more than 2M edits
null
SELECT * FROM globaluser LIMIT 5
{"resultsets": [{"headers": ["page_namespace", "page_title", "tl_title"], "rowcount": 877}], "runningtime": "53.85"}
centralauth_p
Users with more than 2M edits
null
SELECT COUNT(*) FROM user WHERE user_editcount > 2000000
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 43}], "runningtime": "12.70"}
enwikipedi
articles by number of contributors
null
SELECT page_title, rev_page AS page_id, count(*) AS revisions, count(distinct rev_actor) AS editors, sum(rev_len) AS size, rev_timestamp AS created FROM revision INNER JOIN page ON page_id = rev_page INNER JOIN actor ON actor_id = rev_actor WHERE ...
{"resultsets": [{"headers": ["Dateiname"], "rowcount": 44}], "runningtime": "1493.13"}
enwiki
Find files in a category used on a particular wiki
This is an example for https://commons.wikimedia.org/wiki/Commons:Village_pump/Technical#Advanced_searching_for_files
select distinct page_title from categorylinks, page, globalimagelinks where cl_to = 'SVG_images_with_poorly_traced_elements' and cl_type = 'file' and page_id = cl_from and page_title = gil_to and gil_wiki = 'ruwiki'
{"resultsets": [{"headers": ["Usuario", "Total 2021"], "rowcount": 100}], "runningtime": "0.27"}
commonswiki_p
Count English Wikipedia autoconfirmed users
null
SELECT COUNT(*) FROM `user` WHERE user.user_editcount >= 10000000 AND user.user_registration <= (DATE_FORMAT((NOW() - INTERVAL 4 DAY), '%Y%m%d%H%i%S')) ;
{"resultsets": [{"headers": ["log_actor", "Total 2021"], "rowcount": 1}], "runningtime": "0.13"}
wikidatawiki_p
nlwiki Top patrollers all time sorted by ipMarkeringen
null
# https://www.mediawiki.org/wiki/Manual:Logging_table#log_params WITH raw_list as( SELECT loguser.actor_name as loguser, edituser.actor_name as edituser, edituser.actor_user as edituser_actor, log_params, log_timestamp, CONCAT(SUBSTRING(log_timestamp, 1, 8), ' ', SUBSTRING(log_timestamp, 9, 2), ':', SUBS...
{"connection_id": 39652772}
nlwiki
ukwiki change_tag_def
null
select * from change_tag_def limit 200;
{"resultsets": [{"headers": ["log_actor", "COUNT(*)"], "rowcount": 100}], "runningtime": "0.24"}
ukwiki_p
Average Commons uploads by day
Number of currently existing files per month of newest file revision
SELECT AVG(i.dc) FROM ( SELECT COUNT(*) as dc FROM image WHERE img_timestamp > 20210418000000 GROUP BY LEFT(img_timestamp, 8) ) i
{"resultsets": [{"headers": ["TOTAL"], "rowcount": 2}], "runningtime": "0.19"}
commonswiki_p
Commons uploads by day
Number of currently existing files per month of newest file revision
SELECT AVG(i.dc), MIN(i.dc), MAX(i.dc) FROM ( SELECT COUNT(*) as dc FROM image WHERE img_timestamp > DATE_SUB(CURDATE(), INTERVAL 1 YEAR) AND img_timestamp < CURDATE() GROUP BY LEFT(img_timestamp, 8) ) i; SELECT LEFT(img_timestamp, 8) as `date`, COUNT(*) FROM image WHERE img_timestamp > DATE_SUB(CURDATE(), I...
{"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 168}], "runningtime": "7.79"}
commonswiki_p
Exploring revisions to the Critical Race Theory page
null
select * from old_text where old_id in ( select rev_text_id from revision inner join comment on rev_comment_id = comment.comment_id where rev_page = 2002497 ) limit 100 ;
{"resultsets": [{"headers": ["concat(\"Category:\",page_title)", "page_len", "cat_pages", "cat_subcats"], "rowcount": 8381}], "runningtime": "20.42"}
enwiki
Most linked articles on cswiki
null
SELECT pl_title, COUNT(pl_from) AS links FROM pagelinks WHERE pl_namespace = 0 AND pl_from_namespace = 0 GROUP BY pl_title ORDER BY links DESC, pl_title ASC
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration"], "rowcount": 27}], "runningtime": "0.09"}
cswiki_p
NPP and notability tags
Unreviewed pages with notability tags.
SELECT page_id, page_title FROM categorylinks INNER JOIN pagetriage_page ON categorylinks.cl_from = pagetriage_page.ptrp_page_id INNER JOIN page ON pagetriage_page.ptrp_page_id = page.page_id WHERE TRUE AND cl_to = 'All_articles_with_topics_of_unclear_notability' AND ptrp_reviewed = 0 ORDER BY cl_time...
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "ug_group"], "rowcount": 27}], "runningtime": "0.09"}
enwiki
NPP and merge tags
null
SELECT page_id, page_title FROM categorylinks INNER JOIN pagetriage_page ON categorylinks.cl_from = pagetriage_page.ptrp_page_id INNER JOIN page ON pagetriage_page.ptrp_page_id = page.page_id WHERE TRUE AND cl_to = 'All_articles_to_be_merged' AND ptrp_reviewed = 0 ORDER BY cl_timestamp ASC
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "ug_group"], "rowcount": 27}], "runningtime": "0.10"}
enwiki
NPP stats
null
SELECT WEEKOFYEAR(rc_timestamp), COUNT(*) FROM recentchanges_userindex AS recentchanges INNER JOIN pagetriage_page ON pagetriage_page.ptrp_page_id = recentchanges.rc_cur_id WHERE TRUE AND rc_source = 'mw.new' AND rc_namespace = 0 AND ptrp_reviewed != 3 GROUP BY WEEKOFYEAR(rc_timestamp)
{"resultsets": [{"headers": ["Dateiname"], "rowcount": 0}], "runningtime": "13.12"}
enwiki
ProofreadPage quality tags
Total's of a user's proofreading status changes, based on Wikisource change tags from the ProofreadPage extension.
SELECT actor_name, ctd_name, COUNT(*) AS rev_count, MIN(rev_timestamp) AS min_rev_time, MAX(rev_timestamp) AS max_rev_time FROM change_tag_def JOIN change_tag ON ( ctd_id = ct_tag_id ) JOIN revision ON ( ct_rev_id=rev_id ) JOIN actor ON ( rev_actor = actor_id ) WHERE ctd_name LIKE 'proofreadpage-quality%' ...
{"resultsets": [{"headers": ["rev_id", "rev_timestamp", "ct_params"], "rowcount": 5}], "runningtime": "1.01"}
enwikisource_p
Wikisource quality totals (by year and month)
Total counts of ProofreadPage change tags, by year and month.
SELECT YEAR(rev_timestamp) AS year, MONTHNAME(rev_timestamp) AS month, COUNT(*) AS total_rev_count, SUM( IF ( ctd_name = 'proofreadpage-quality0', 1, null ) ) AS quality_0, SUM( IF ( ctd_name = 'proofreadpage-quality1', 1, null ) ) AS quality_1, SUM( IF ( ctd_name = 'proofreadpage-quality2', 1, null ...
{"resultsets": [{"headers": ["log_type", "AAAAMM", "Total"], "rowcount": 102}], "runningtime": "6.85"}
enwikisource_p
Hindi creators Wiktionary (naive)
null
set @language = 'Gujarati'; select actor_name as `user`, count(*) as `entries created` from categorylinks join revision on rev_page = cl_from join actor on actor_id = rev_actor where cl_to in (concat(@language, '_lemmas'), concat(@language, '_non-lemma_forms')) and cl_type = 'page' and rev_parent_id = 0 group by actor...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 4}], "runningtime": "120.35"}
enwiktionary_p
dagwiki visual/all edits since 2021
Based on queries #50040 and #50065.
set @visual_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'visualeditor' ); select substring(rev_timestamp, 1, 6) as month, sum(ct_rev_id is not null) as visual_revisions, count(rev_id) as revisions, concat( if( count(rev_id) = 0, 0, format( sum...
{"resultsets": [{"headers": ["rev_id", "ct_tag_id", "comment_text"], "rowcount": 3185}], "runningtime": "34.19"}
dagwiki_p
Recent unpatrolled changes
null
SELECT * FROM recentchanges WHERE rc_patrolled=0 # changes not yet checked AND rc_bot=0 # not a bot # AND actor_name REGEXP '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)' LIMIT 25
{"resultsets": [{"headers": ["log_timestamp", "log_title", "log_params", "actor_name"], "rowcount": 15}], "runningtime": "1.78"}
nlwiki
Wiki Loves Africa Unique Participants 2022
null
SELECT DISTINCT actor_name, rev_actor FROM commonswiki_p.page p INNER JOIN commonswiki_p.categorylinks cl ON p.page_id = cl.cl_from INNER JOIN commonswiki_p.revision r ON p.page_id = r.rev_page join actor on rev_actor = actor_id and actor_user is not null WHERE cl.cl_to IN ( "Images_from_Wiki_Loves_Africa_2022" ) ...
{"resultsets": [{"headers": ["$collection"], "rowcount": 1}], "runningtime": "0.08"}
commonswiki
Schweizer Artikel mit BKL
null
WITH RECURSIVE Cat AS (SELECT page_title, page_id FROM page WHERE page_title = 'Schweizer_Gemeinde' AND page_namespace = 14 UNION SELECT SubCat.page_title, SubCat.page_id FROM pag...
{"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 169}], "runningtime": "14.02"}
dewiki_p
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["concat(\"\u09aa\u09be\u09a4\u09be:\", page_title)", "page_len"], "rowcount": 9961}], "runningtime": "12.97"}
enwiki
Most pending changes accepts (all time)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' GROUP BY log_actor ORDER BY manual_accept_count DESC LIMIT 1000
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.08"}
enwiki
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept_count DESC LIMIT 1000
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.07"}
enwiki
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.06"}
enwiki
Most protected pages
50 pages in En Wikipedia that had been protected the most.
SELECT log_title AS protected_page, COUNT(log_title) AS occurrences, MAX(log_timestamp) AS latest_occurence FROM logging WHERE log_type = "protect" GROUP BY protected_page ORDER BY occurrences DESC LIMIT 50;
{"resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["tl_title"], "rowcount": 0}, {"headers": ["page_title", "rev_timestamp"], "rowcount": 10}, {"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title", "pp_propname"], "...
enwiki_p
Pages translated using Google Translate-mlwiki
Includes annonymous upload by project members and experimental translation by others(?)
use mlwiki_p; SELECT page_id, rev_parent_id, rev_len, rev_id, user_id, user_name, rev_timestamp, page_title FROM revision LEFT JOIN page ON revision.rev_page=page.page_id LEFT JOIN user ON rev_user = user_id WHERE page.page_namespace = 0 AND page_is_redirect =0 AND rev_comment LIKE "%toolkit%" G...
{"resultsets": [{"headers": ["cl_to", "count_cl_to"], "rowcount": 20}, {"headers": ["page_title"], "rowcount": 53}, {"headers": ["tl_title", "count_tl_title"], "rowcount": 2}, {"headers": ["page_title", "pl_title"], "rowcount": 3}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, ...
mlwiki_p
signpost pages count
null
SELECT COUNT(*) FROM page WHERE page_namespace = "4" AND page_title LIKE "Wikipedia_Signpost%";
{"resultsets": [{"headers": ["page_id", "page_is_redirect", "page_title"], "rowcount": 51774}], "runningtime": "109.06"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_title", "cmd"], "rowcount": 2}], "runningtime": "0.08"}
enwiki_p