title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
number of signpost articles by day of month
null
SELECT COUNT(*) AS day_01 FROM page WHERE page_namespace = "4" AND page_title LIKE "Wikipedia_Signpost/%-%-01"; SELECT COUNT(*) AS day_02 FROM page WHERE page_namespace = "4" AND page_title LIKE "Wikipedia_Signpost/%-%-02"; SELECT COUNT(*) AS day_03 FROM page WHERE page_namespace = "4" AND page_title LIKE "Wikipedia_Si...
{"resultsets": [{"headers": ["user_id", "user_name", "EditCount"], "rowcount": 100}], "runningtime": "0.34"}
enwiki_p
Deletions by type
null
SELECT COUNT(log_id) AS deletions,actor_name AS user, SUM(comment_text LIKE "%G1%") AS "G1",/* G */ SUM(comment_text LIKE "%G2%") AS "G2", SUM(comment_text LIKE "%G3%") AS "G3", SUM(comment_text LIKE "%G4%") AS "G4", SUM(comment_text LIKE "%G5%") AS "G5", SUM(comment_text LIKE "%G6%") AS "G6", ...
{"resultsets": [{"headers": ["ug_user"], "rowcount": 33}], "runningtime": "0.13"}
enwiki_p
Number of AfDs
null
SELECT COUNT(*) FROM page WHERE page_namespace='4' #0/1 main 2/3 user 4/5 wp 6/7 file 8/9 mw 10/11 template 12/13 help # 14/15 cat 100/101 portal 118/119 draft 710/711 timedtext 828/829 module # 2300/2301 gadget 2302/2303 g. definition -1 special -2 media AND page_title NOT LIKE 'Articles_for_deletion/Log/%' AND page_t...
{"resultsets": [{"headers": ["File name", "Date", "Size", "Uploader's name"], "rowcount": 3}], "runningtime": "43.04"}
enwiki_p
Infoboxes not using metatemplate by number of transclusions in ruwiki
null
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 AS cl1 ON cl1.cl_from = page_id WHERE page_n...
{"resultsets": [{"headers": ["rc_patrolled", "count"], "rowcount": 4}, {"headers": ["user", "unpatrolled"], "rowcount": 10}, {"headers": ["day", "unpatrolled", "manually patrolled", "autopatrolled", "total"], "rowcount": 31}, {"headers": ["rc_namespace", "unpatrolled"], "rowcount": 2}, {"headers": ["rc_namespace", "rc_...
ruwiki_p
Thanks for 2021 frwiktionary
Most thanked people in 2021 Blame Mz7, SQL, and stwalkerster for this
USE frwiktionary_p; SELECT log_title, COUNT(log_id) FROM logging_logindex WHERE log_type = "thanks" AND log_timestamp >= "20210000000000" AND log_timestamp <= "20220000000000" GROUP BY log_title ORDER BY 2 DESC
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "2.17"}
frwiktionary
Thanks actors for 2021 frwiktionary
People who thanked the most in 2021
USE frwiktionary_p; SELECT actor_name, COUNT(log_id) FROM logging_logindex INNER JOIN actor ON actor_id=log_actor WHERE log_type = "thanks" AND log_timestamp >= "20210000000000" AND log_timestamp <= "20220000000000" GROUP BY log_actor ORDER BY 2 DESC
{"resultsets": [{"headers": ["page_title"], "rowcount": 439}], "runningtime": "2.00"}
frwiktionary
Thanks actors for 2021 frwikisource
People who thanked the most in 2021
USE frwikisource_p; SELECT actor_name, COUNT(log_id) FROM logging_logindex INNER JOIN actor ON actor_id=log_actor WHERE log_type = "thanks" AND log_timestamp >= "20210000000000" AND log_timestamp <= "20220000000000" GROUP BY log_actor ORDER BY 2 DESC
{"resultsets": [{"headers": ["page_title"], "rowcount": 438}], "runningtime": "1.00"}
frwikisource
Thanks for 2021 frwikisource
Most thanked people in 2021 Blame Mz7, SQL, and stwalkerster for this
USE frwikisource_p; SELECT log_title, COUNT(log_id) FROM logging_logindex WHERE log_type = "thanks" AND log_timestamp >= "20210000000000" AND log_timestamp <= "20220000000000" GROUP BY log_title ORDER BY 2 DESC
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.32"}
frwikisource
Thanks actors for 2021 frwiktionary
People who thanked the most in 2021
USE enwiktionary_p; SELECT actor_name, COUNT(log_id) FROM logging_logindex INNER JOIN actor ON actor_id=log_actor WHERE log_type = "thanks" AND log_timestamp >= "20210000000000" AND log_timestamp <= "20220000000000" GROUP BY log_actor ORDER BY 2 DESC
{"resultsets": [{"headers": ["actor_name", "COUNT(rev_id)"], "rowcount": 2956}], "runningtime": "5.08"}
wikidata_wiki
Vandalismebestrijding nlwiki
Vandalismebestrijding, IP-controle, 1 feb 2022, 14:47 632 te controleren/markeren
# 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": ["iwl_title", "P1472", "CONCAT(\"\\\"\", REPLACE(page_title, \"_\", \" \"), \"\\\"\")"], "rowcount": 6}], "runningtime": "0.12"}
nlwiki_p
Revert count via rc
null
SELECT COUNT(rc_id) AS reverts,actor_name FROM recentchanges_userindex INNER JOIN comment ON rc_comment_id = comment_id INNER JOIN actor ON rc_actor = actor_id WHERE (comment_text LIKE "Undid%" OR comment_text LIKE "Reverted%") AND (rc_timestamp >= DATE_ADD(NOW(), INTERVAL -90 DAY)) GROUP BY rc_actor ORDER BY reverts d...
{"resultsets": [{"headers": ["page_namespace", "page_title", "trs_key"], "rowcount": 40}], "runningtime": "0.18"}
enwiki_p
المقالات غير الموجودة حسب عدد وصلات اللغات
لتحديث [[ويكيبيديا:إحصاءات/المقالات غير الموجودة حسب عدد وصلات اللغات|هذه الصفحة]]
SELECT CONCAT('[[:en:',page_title,']]||', count(*)) FROM langlinks JOIN page on ll_from = page_id WHERE page_namespace = 0 AND page_is_redirect = 0 AND NOT EXISTS ( SELECT * FROM langlinks as t WHERE t.ll_lang='ar' and t.ll_from = langlinks.ll_from) GROUP BY ll_from ORDER BY count(*) DES...
{"resultsets": [{"headers": ["year", "month", "page_namespace", "count"], "rowcount": 81}], "runningtime": "23.55"}
enwiki
Navboxes in enwiki could be created in arwiki
null
use enwiki_p; select distinct p2.page_title, count(pl_title) from pagelinks inner join page p1 on p1.page_title = pl_title inner join page p2 on p2.page_id = pl_from inner join langlinks on ll_from = p1.page_id where pl_from_namespace = 10 and p1.page_namespace = 0 and pl_namespace = 0 and ll_lang = "ar" ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 81}], "runningtime": "0.42"}
enwiki
Biggest Signpost talk pages about articles
null
SELECT page_title AS title, page_len AS size FROM page WHERE page_namespace = "5" AND page_title LIKE "Wikipedia_Signpost/%-%-%/%" ORDER BY page_len DESC;
{"resultsets": [{"headers": ["page_title"], "rowcount": 79}], "runningtime": "0.92"}
enwiki_p
Undone - pages that user edited much
null
SELECT page.page_title, revision.rev_len, parent_revision.rev_len FROM revision LEFT JOIN revision AS parent_revision ON parent_revision.rev_id = revision.rev_parent_id LEFT JOIN page ON page.page_id = revision.rev_page WHERE revision.rev_actor = (SELECT actor_id FROM actor WHERE actor_user = ( SELECT user_id FRO...
{"resultsets": [{"headers": ["log_type", "log_action", "count(log_action)"], "rowcount": 20}], "runningtime": "0.19"}
ruwiki
zhwiki: Patrollers and administrators who were autoreviewers
null
SELECT user_name, user_id, user_registration, user_editcount, ug_group FROM user JOIN user_groups ON ug_user = user_id JOIN user_former_groups ON ufg_user = user_id WHERE (ug_group = 'patroller' OR ug_group = 'sysop') AND (ufg_group = 'autoreviewer' OR ufg_group = 'autopatroller') ORDER by user_id
{"resultsets": [{"headers": ["page_title", "comment_text"], "rowcount": 1020}], "runningtime": "18.92"}
zhwiki_p
Vandalismebestrijding (IP-patrolling) nlwiki
Vandalismebestrijding - 769 - loopt op...
# 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": ["rc_patrolled", "count"], "rowcount": 4}, {"headers": ["user", "unpatrolled"], "rowcount": 10}, {"headers": ["day", "unpatrolled", "manually patrolled", "autopatrolled", "total"], "rowcount": 31}, {"headers": ["rc_namespace", "unpatrolled"], "rowcount": 3}, {"headers": ["rc_namespace", "rc_...
nlwiki_p
Non-free files with non-free-use rationales for pages no longer using that file
null
select -- count(*) file_page.page_title, rationale_link.pl_namespace, rationale_link.pl_title, using_page.page_id, il.il_from from categorylinks cl join page file_page on cl.cl_from = file_page.page_id join pagelinks rationale_link on ( rationale_link.pl_from = file_page.page_id and rationale_link.pl_...
{"resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 10}], "runningtime": "0.09"}
enwiki
WMSE users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMSE)%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "comment_text"], "rowcount": 3815}], "runningtime": "6.36"}
metawiki_p
WMFr users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%WMFr%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "comment_text"], "rowcount": 3811}], "runningtime": "6.14"}
metawiki_p
WMAM users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMAM)%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["rc_timestamp", "oldid", "diff_len", "actor_name", "rc_title", "comment_text"], "rowcount": 300}], "runningtime": "2.88"}
metawiki_p
WMUA users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMUA)%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["rc_timestamp", "oldid", "diff_len", "actor_name", "rc_title", "comment_text"], "rowcount": 300}], "runningtime": "1.42"}
metawiki_p
WMCZ users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMCZ)%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["rc_timestamp", "oldid", "diff_len", "actor_name", "rc_title", "comment_text"], "rowcount": 300}], "runningtime": "1.35"}
metawiki_p
WMB users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMB)%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["rc_timestamp", "oldid", "diff_len", "actor_name", "rc_title", "comment_text"], "rowcount": 300}], "runningtime": "1.93"}
metawiki_p
WMCL users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMCL)%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["rc_timestamp", "oldid", "diff_len", "actor_name", "rc_title", "comment_text"], "rowcount": 500}], "runningtime": "2.60"}
metawiki_p
WMMX users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMMX)%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["month", "COUNT(*)"], "rowcount": 99}], "runningtime": "0.40"}
metawiki_p
WMCO users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMCO)%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "user_password_e...
metawiki_p
All "in popular culture" AfDs
This query tries to find all the "in popular culture"-related articles that were sent to AfD over the years.
SELECT page_id, page_title, page_len FROM page WHERE page_namespace='0' AND page_title LIKE '%in_popular_culture%'
{"resultsets": [{"headers": ["page_title"], "rowcount": 1561}], "runningtime": "64.54"}
enwiki_p
WMCA users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%WMCA%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.30"}
metawiki_p
Links to redirecting image in frwiki
null
SELECT Redir.page_title AS "Redirect Image", Image.page_title as "Image", gil_page_namespace as "Namespace", gil_page_title as "Article" FROM page as Redir, redirect, page as Image, globalimagelinks WHERE Redir.page_is_redirect = 1 AND Redir.page_namespace = 6 AND rd_from = Redir.page_id AND Image.page_titl...
{"resultsets": [{"headers": ["user", "cnt"], "rowcount": 148}], "runningtime": "3.38"}
commonswiki_p
WMUK users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMUK)%" ORDER BY user_name ASC
{"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": 2}], "runningtime": "49.09"}
metawiki_p
WMKR users on Meta
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%WMKR%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["template", "counting", "pr_type", "pr_level"], "rowcount": 100}], "runningtime": "16.76"}
metawiki_p
List of articles of Crimean Tatar Wikipedia, which were created in the translation tool
null
SELECT P.page_title, T.ct_params, C.comment_text FROM crhwiki_p.revision R JOIN crhwiki_p.change_tag T ON R.rev_id=T.ct_rev_id JOIN crhwiki_p.page P ON R.rev_page=P.page_id JOIN crhwiki_p.comment C ON R.rev_comment_id=C.comment_id WHERE R.rev_parent_id=0 AND P.page_namespace=0 AND T.ct_tag_id=7 OR T.ct_tag_id=26
{"resultsets": [{"headers": ["ss_total_edits"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_editcount", "user_admin", "user_bot"], "rowcount": 802}], "runningtime": "6.45"}
crhwiki_p
metawiki: WMTW users
Example for finding organizational accounts. See https://quarry.wmcloud.org/query/51523 for a more general example (not specific to a single wiki) that also indicates whether account still active or not.
SELECT user_name, user_registration, user_editcount FROM user WHERE user_name LIKE "%(WMTW)%" ORDER BY user_name ASC
{"resultsets": [{"headers": ["rev_actor", "actor_name", "edit_count"], "rowcount": 57}], "runningtime": "5.79"}
metawiki_p
zhwiki: Administrators without RfA pages
null
SELECT user_name FROM user JOIN user_groups ON ug_user = user_id AND ug_group = "sysop" WHERE NOT EXISTS (SELECT * FROM page WHERE page_namespace=4 AND page_title=concat("申请成为管理员/", replace(user_name," ","_"))) AND NOT EXISTS (SELECT * FROM user_groups ug2 WHERE ug2.ug_user = user_id AND ug2.ug_group = "bot")
{"connection_id": 1515104}
zhwiki_p
Articles created during Wikimarathon 2022 w/o Wikimarathon template
null
SELECT P1.page_title, A.actor_name FROM ukwiki_p.revision R JOIN ukwiki_p.page P1 ON R.rev_page = P1.page_id JOIN ukwiki_p.actor A ON R.rev_actor = A.actor_id WHERE R.rev_parent_id = 0 AND P1.page_namespace = 0 AND P1.page_is_redirect = 0 AND R.rev_timestamp >= 20220127000000 AND R.rev_timestamp < 20220201000000...
{"resultsets": [{"headers": ["page_title"], "rowcount": 387}], "runningtime": "0.99"}
ukwiki_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": ["page_title"], "rowcount": 369}], "runningtime": "0.64"}
enwiki
Thanks actors for 2021 nlwiki
People who thanked the most in 2021
USE nlwiki_p; SELECT actor_name, COUNT(log_id) FROM logging_logindex INNER JOIN actor ON actor_id=log_actor WHERE log_type = "thanks" AND log_timestamp >= "20210000000000" AND log_timestamp <= "20220000000000" GROUP BY log_actor ORDER BY 2 DESC
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "19.49"}
nlwiki
Thanks for 2021 nlwiki
Most thanked people in 2021 Blame Mz7, SQL, and stwalkerster for this
USE nlwiki_p; SELECT log_title, COUNT(log_id) FROM logging_logindex WHERE log_type = "thanks" AND log_timestamp >= "20210000000000" AND log_timestamp <= "20220000000000" GROUP BY log_title ORDER BY 2 DESC
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "30.59"}
nlwiki
Signpost smallest articles
null
SELECT page_title AS title, page_len AS length FROM page WHERE page_namespace = "4" AND page_title LIKE "Wikipedia_Signpost/%-%-%/%" ORDER BY page_len ASC;
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "26.13"}
enwiki_p
R3 speedies on enwiki, YTD
null
SELECT log_title FROM logging JOIN comment ON comment_id = log_comment_id WHERE log_type = "delete" AND log_action = "delete" AND comment_text LIKE "%R3%" AND log_timestamp > 20220000000000
{"resultsets": [{"headers": ["revisions", "editors", "first_timestamp", "rev_actor", "rev_id"], "rowcount": 1}], "runningtime": "0.07"}
enwiki_p
Scrape OTRS from files in Files_with_PermissionTicket_ID_different_from_SDCut_without_P6305_SDC_statement
Scrape OTRS without relying on "Category:Files_with_PermissionTicket_ID_different_from_SDC"
use commonswiki_p; SELECT count(page_id) AS num, concat('"',REPLACE(el_to,'https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=',''),'"') AS OTRS, min(concat("File:",page_title)) FROM page JOIN categorylinks c1 ON page_id=c1.cl_from AND c1.cl_to='Files_with_PermissionTicket_ID_different...
{"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 10}], "runningtime": "4.10"}
commonswiki
enwiki hat collectors, bot edition
null
SELECT user_name, COUNT(*) as $hats, GROUP_CONCAT(DISTINCT ug_group SEPARATOR ", ") AS $groups FROM user RIGHT JOIN user_groups ug1 on ug1.ug_user = user_id WHERE EXISTS (SELECT 1 FROM user_groups ug2 WHERE ug2.ug_user = user_id AND ug2.ug_group = 'bot') AND ug1.u...
{"resultsets": [{"headers": ["page_title"], "rowcount": 4177}], "runningtime": "13.77"}
enwiki_p
nlwiki External links that contain an asterisk in the host part
these cannot easily be found using Special:LinkSearch
SELECT page_namespace AS ns, page_title, el_to FROM externallinks, page WHERE el_to REGEXP '^([A-Za-z]+:)?//[^/\\?]*\\*' AND el_from=page_id
{"resultsets": [{"headers": ["actor_name", "COUNT(rev_id)"], "rowcount": 196911}], "runningtime": "390.06"}
nlwiki
Vandalismebestrijding (IP-patrolling) nlwiki
Vandalismebestrijding, -500 (485) 4 februari 2022
# 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": ["ns", "page_title", "el_to"], "rowcount": 1}], "runningtime": "5.00"}
nlwiki_p
Unreviewed articles in WikiProject Anime and manga
null
SELECT DISTINCT article.page_title AS Title #, templatelinks.tl_title AS Project FROM page article JOIN page talkpage ON article.page_title = talkpage.page_title JOIN templatelinks ON talkpage.page_id=templatelinks.tl_from WHERE article.page_id IN ( SELECT page.page_id FROM revision JOIN pagetriage_page ON rev_page ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 62}], "runningtime": "0.39"}
enwiki
Indefinitely fully protected enwiki pages with most distinct editors
null
SELECT page_title, page_namespace, COUNT(DISTINCT rev_actor) AS cnt FROM page_restrictions JOIN page ON pr_page = page_id JOIN revision_userindex ON rev_page = page_id WHERE pr_type = 'edit' AND pr_level = 'sysop' AND pr_expiry = 'infinity' GROUP BY rev_page ORDER BY cnt DESC LIMIT 1000
{"resultsets": [{"headers": ["Tables_in_huwiki_p"], "rowcount": 103}], "runningtime": "0.27"}
enwiki_p
Recent changes in time
null
select * from (select rc_title, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex where rc_timestamp >= 20220101000000 and rc_timestamp <= 20220131000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') group by rc_title) a where tdif > 30000 order by tdif de...
{"resultsets": [{"headers": ["il_from", "il_to", "il_from_namespace"], "rowcount": 5}], "runningtime": "0.10"}
idwiki
AfC review counts, last 90 days
** NOT including deleted articles **
select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / c...
{"resultsets": [{"headers": ["ug_user", "ug_group", "ug_expiry"], "rowcount": 10}], "runningtime": "0.08"}
enwiki_p
COI ER by users revision
Number of edit requests engaged with by user extended time
SELECT COUNT(*) AS RequestsAnswered,actor_name FROM revision rv INNER JOIN actor ON rv.rev_actor=actor.actor_id INNER JOIN comment ON rv.rev_comment_id=comment.comment_id WHERE comment_text LIKE "%COI%Request%Tool%" AND (rev_timestamp >= DATE_ADD(NOW(), INTERVAL -365 DAY)) AND rev_page NOT LIKE "%.js" GROUP BY a...
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 10}], "runningtime": "0.09"}
enwiki_p
Normal ER via rev
null
SELECT COUNT(*) AS RequestsAnswered,actor_name FROM revision rv INNER JOIN actor ON rv.rev_actor=actor.actor_id INNER JOIN comment ON rv.rev_comment_id=comment.comment_id WHERE comment_text LIKE "%Responded to edit request" AND (rev_timestamp >= DATE_ADD(NOW(), INTERVAL -365 DAY)) GROUP BY actor_name ORDER BY Reques...
{"resultsets": [{"headers": ["log_type", "log_action", "log_timestamp", "log_actor"], "rowcount": 0}], "runningtime": "3.35"}
enwiki_p
Normal ER count via RC
null
SELECT COUNT(*) AS RequestsAnswered,actor_name FROM recentchanges rc INNER JOIN actor ON rc.rc_actor=actor.actor_id INNER JOIN comment ON rc.rc_comment_id=comment.comment_id WHERE comment_text LIKE "%Responded to edit request" AND rc_namespace IN (1,3,5,7,9,11,13,15) AND (rc_timestamp >= DATE_ADD(NOW(), INTERVAL -9...
{"resultsets": [{"headers": ["log_type", "log_action", "log_timestamp", "log_actor"], "rowcount": 1}], "runningtime": "3.13"}
enwiki_p
Thanks actors for 2021 frwiktionary
People who thanked the most in 2021
USE frwiktionary_p; SELECT actor_name, COUNT(log_id) FROM logging_logindex INNER JOIN actor ON actor_id=log_actor WHERE log_type = "thanks" AND log_timestamp >= "20220000000000" AND log_timestamp <= "20230000000000" GROUP BY log_actor ORDER BY 2 DESC
{"connection_id": 85305498}
frwiktionary
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["count", "page_title"], "rowcount": 5000}], "runningtime": "65.84"}
enwiki_p
Frequent edsum
null
SELECT comment_text, COUNT(*) FROM comment INNER JOIN revision ON comment.comment_id=revision.rev_comment_id WHERE rev_actor=199416600 AND rev_timestamp LIKE "2021%" GROUP BY comment_text ORDER BY 2 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": 1}], "runningtime": "0.08"}
enwiki_p
Links to nli piut from hewiki
Links to jpress.org.il in hewiki
use hewiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%web.nli.org.il/sites/nlis/he/song%' and el_from = page_id limit 500000;
{"resultsets": [{"headers": ["rev_actor", "actor_name"], "rowcount": 7}], "runningtime": "25.50"}
hewiki_p
Links to old piut from hewiki
Links to jpress.org.il in hewiki
use hewiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%old.piyut.org.il%' and el_from = page_id limit 500000;
{"resultsets": [{"headers": ["rev_actor", "actor_name"], "rowcount": 64}], "runningtime": "26.85"}
hewiki_p
Links to Rashut HaTeva reserve-park from hewiki
Links to www.parks.org.il in hewiki
use hewiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%www.parks.org.il/reserve-park%' and el_from = page_id limit 500000;
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "0.09"}
hewiki_p
Links to Rashut HaTeva reserve-park from hewiki
Links to www.parks.org.il in hewiki
use hewiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%www.parks.org.il%' and el_from = page_id limit 500000;
{"resultsets": [{"headers": ["PT", "link"], "rowcount": 35}], "runningtime": "14.43"}
hewiki_p
All pages including non-free media
null
select -- count(*) using_page.page_title article, file_page.page_title file from imagelinks il join page file_page on ( file_page.page_title = il.il_to and file_page.page_namespace = 6 ) join categorylinks cl on ( cl.cl_from = file_page.page_id ) join page using_page on ( using_page.page...
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 10}], "runningtime": "0.09"}
enwiki
Articles created by CX in siwiki in 2021
null
SELECT rev_timestamp, actor_name, page_title, page_namespace, page_id, MAX(ct_rev_id) FROM `change_tag`, `revision`, `actor`, `page` WHERE page_namespace = 0 AND rev_id = ct_rev_id AND rev_page = page_id AND rev_actor = actor_id GROUP BY page_id, rev_timestamp O...
{"resultsets": [{"headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"], "rowcount": 152}], "runningtime": "1.63"}
ptwiki_p
Longest enWiki user: pages
null
use enwiki_p; SELECT pl_title, count(pl_from) FROM pagelinks WHERE pl_namespace = 0 AND pl_from_namespace = 0 AND pl_title NOT LIKE '%/%' -- not Subpages GROUP BY pl_title ORDER BY count(pl_from) DESC LIMIT 10
{"resultsets": [], "runningtime": "0.03"}
enwiki_p
Vandalismebestrijding Nlwiki
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": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 8}], "runningtime": "0.16"}
nlwiki_p
مقاله‌های بدون رده
null
USE fawiki_p; SELECT page_title FROM page LEFT JOIN categorylinks ON cl_from = page_id WHERE page_namespace = 0 AND page_is_redirect = 0 AND ISNULL(cl_from);
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "1.07"}
fawiki_p
External link - uhftelevision
null
Select page_title, page_namespace, el_to from externallinks left join page on externallinks.el_from = page.page_id where externallinks.el_to LIKE '%uhftelevision.com%' and page.page_namespace = 0 LIMIT 0, 100;
{"resultsets": [{"headers": ["noAction", "log_actor", "user_name"], "rowcount": 10}], "runningtime": "1.79"}
enwiki
WD test
null
select * from page limit 1
{"resultsets": [{"headers": ["noAction", "log_actor", "user_name"], "rowcount": 1}], "runningtime": "0.97"}
wikidata
Reverted edits by IP
null
/* SELECT COUNT(*) AS cnt FROM ( SELECT ct_tag_id FROM change_tag RIGHT JOIN recentchanges ON rc_id = ct_rc_id AND ct_tag_id = 29 JOIN actor ON actor_id = rc_actor WHERE actor_user IS NULL AND rc_source = "mw.edit" ORDER BY rc_id DESC LIMIT 500) t WHERE t.ct_tag_id IS N...
{"resultsets": [{"headers": ["S\u1ed1 h\u00e0nh \u0111\u1ed9ng", "user_name", "Ch\u1ee9c v\u1ee5"], "rowcount": 32}], "runningtime": "1.74"}
zhwikibooks_p
Reverted edits by IP
null
SELECT COUNT(*) AS cnt FROM ( SELECT ct_tag_id FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id RIGHT JOIN recentchanges ON rc_id = ct_rc_id AND ctd_name = "mw-reverted" JOIN actor ON actor_id = rc_actor WHERE actor_user IS NULL AND rc_source = "mw.edit" OR...
{"resultsets": [{"headers": ["S\u1ed1 h\u00e0nh \u0111\u1ed9ng", "T\u00ean th\u00e0nh vi\u00ean", "Ch\u1ee9c v\u1ee5"], "rowcount": 32}], "runningtime": "1.73"}
commonswiki_p
( Fawiki Page Title
null
USE fawiki_p; SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_title LIKE "%_(_%";
{"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": 10}], "runningtime": "0.08"}
fawiki_p
، Fawiki Page Title
null
USE fawiki_p; SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_title LIKE "%_،_%";
{"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.08"}
fawiki_p
Wikimarathon 2022 Ukraine [with newbies]
List of articles created for the Investigative Journalism Week on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), newbie FROM ( SELECT CONCAT(actor_name) as actor_name, COUNT(1) AS created, SUM(article.page_len) as total_len, GROUP_CONCAT( DISTINCT -- [[Н...
{"resultsets": [{"headers": ["NoWlove", "user_name", "user_editcount"], "rowcount": 10}], "runningtime": "0.16"}
ukwiki_p
Père-Lachaise
null
USE commonswiki_p; select concat("Category:",cat.page_title) as catp, concat("File:",file.page_title) as filep from page cat JOIN categorylinks c1 ON c1.cl_to='Graves_in_the_Père-Lachaise_Cemetery' AND cat.page_id=c1.cl_from JOIN categorylinks c2 ON c2.cl_to=cat.page_title JOIN page file ON file.page_id=c2.cl_from wher...
{"resultsets": [{"headers": ["actor_name", "rc_this_oldid", "comment_text"], "rowcount": 10}], "runningtime": "44.74"}
commonswiki_p
Kashmiri pages not edited by ks-N editors
null
set @category_name := 'Kashmiri_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 ('Imranqazi90', 'Sinonqu...
{"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": 10}], "runningtime": "61.83"}
enwiktionary
সংশোধিত ও খালি
null
use commonswiki_p; SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line FROM revision r_prev join categorylinks on rev_page = cl_from join actor on rev_actor = actor_id and actor_user is not null WHERE rev_parent_id = 0 and cl_to IN ( "Images_from_Wiki_Loves_Monuments_2021_in_Indi...
{"resultsets": [{"headers": ["K\u00edch th\u01b0\u1edbc thay \u0111\u1ed5i", "page_namespace", "page_title", "page_len"], "rowcount": 10}], "runningtime": "323.64"}
commonswiki_p
Dead-end articles in Indonesian Wikipedia
null
use idwiki_p; SELECT concat('# [[',page_title,']]') FROM page LEFT JOIN pagelinks ON pl_from=page_id WHERE page_namespace=0 AND page_is_redirect=0 AND pl_from IS NULL ;
{"resultsets": [{"headers": ["Title", "Project"], "rowcount": 75}], "runningtime": "3.28"}
idwiki_p
reFill edits in RecentChanges on enwiki
null
SELECT rc_timestamp, rc_title, comment_text FROM recentchanges INNER JOIN comment ON rc_comment_id = comment_id WHERE (rc_namespace = 0 OR rc_namespace = 118) AND comment_text LIKE "%with reFill 2"
{"resultsets": [], "runningtime": "0.04"}
enwiki_p
মোট সম্পাদনার সংখ্যা
১ এপ্রিল ২০২০। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে HTML ক্লিক করুন।
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": ["output"], "rowcount": 3783}], "runningtime": "474.65"}
bnwiki_p
Vandalismebestrijding nlwiki
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_namespace", "page_title", "edits"], "rowcount": 81}], "runningtime": "0.59"}
nlwiki_p
engvar redirs to create
null
select page_title from page where page_namespace=0 and page_is_redirect=0 and page_title rlike "behavior" and replace(page_title,"behavior","behaviour") not in (select page_title from page where page_namespace=0); select page_title from page where page_namespace=0 and page_is_redirect=0 and page_title rlike "behaviour"...
{"resultsets": [{"headers": ["CONVERT(p1.page_title USING utf8)", "COUNT(*)"], "rowcount": 1844}], "runningtime": "5.14"}
enwiki_p
Users by blocks
null
SELECT COUNT(log_id) AS blocks,actor_name AS user FROM logging JOIN actor ON logging.log_actor=actor.actor_id WHERE log_timestamp>'20180000000000' AND log_type='block' GROUP BY log_actor ORDER BY blocks DESC;
{"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 10}], "runningtime": "0.09"}
enwiki_p
Dead-end articles in Indonesian Wikipedia (test)
null
use idwiki_p; SELECT concat('# [[',page_title,']]') AS 'judul', pagelinks.pl_title FROM page LEFT JOIN pagelinks ON pl_from=page_id WHERE page_namespace=0 AND page_is_redirect=0 LIMIT 100;
{"resultsets": [{"headers": ["concat(\"[[\",p1.page_title,\"]]\")"], "rowcount": 20}], "runningtime": "0.26"}
idwiki_p
enwiki recent patrollers
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 ('patroller') JOIN actor ON actor_user = user_id JOIN revision_userindex ON rev_id = (SELECT rev_id FROM re...
{"resultsets": [{"headers": ["page_title", "Toter Link"], "rowcount": 3731}], "runningtime": "6.40"}
enwiki_p
files with no license
null
SELECT CONCAT("File:", page_title) FROM page JOIN image ON page_title = img_name JOIN categorylinks nol ON nol.cl_from = page_id AND nol.cl_to = "Files_with_no_machine-readable_license" LEFT JOIN categorylinks flickr ON flickr.cl_from = page_id AND flickr.cl_to = "Flickr_public_domain_images_needing_specific_copyright_...
{"resultsets": [{"headers": ["Artikel", "Link im Artikel", "Toter Link"], "rowcount": 3659}], "runningtime": "5.97"}
commonswiki_p
All tables in the enwiki_p database
All of the queriable tables in the public English Wikipedia database.
SHOW TABLES FROM plwiki_p;
{"resultsets": [{"headers": ["title"], "rowcount": 7}], "runningtime": "32.92"}
plwiki_p
B by +sysop
null
SELECT COUNT(*),actor_name FROM logging INNER JOIN actor ON log_actor=actor_id WHERE log_type='rights' AND log_params RLIKE '"4::oldgroups".*"sysop".*"5::newgroups"(?!.*sysop)' GROUP BY actor_name ORDER BY 1 DESC
{"resultsets": [{"headers": ["Artikel", "Link im Artikel", "Toter Link"], "rowcount": 2741}], "runningtime": "4.78"}
enwiki_p
Arbcom desysops
null
SELECT log_timestamp, actor_name AS bureaucrat, log_title AS target, comment_text FROM logging INNER JOIN comment ON log_comment_id=comment_id INNER JOIN actor ON log_actor=actor_id WHERE log_type='rights' AND comment_text LIKE '%Arbitration%' AND log_params RLIKE '"4::oldgroups".*"sysop".*"5::n...
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 13}], "runningtime": "0.12"}
enwiki_p
مقالات قصيرة
null
use arwiki_p; select page_title from page where page_namespace = 0 and page_is_redirect = 0 and page_id not in (select cl_from from categorylinks where cl_to like "%صفحات_توضيح%" and cl_from = page_id) order by page_len asc limit 100;
{"resultsets": [{"headers": ["page_id", "page_title"], "rowcount": 10}], "runningtime": "0.11"}
arwiki
تصنيفات بحاجة الى تصنيف
null
use arwiki_p; select page_title, page_namespace from page where page_len = 0 and page_namespace = 14 limit 500;
{"resultsets": [{"headers": ["page_id", "page_title"], "rowcount": 4}], "runningtime": "2.73"}
arwiki
Vandalismebestrijding nlwiki
IP-patrolling
# 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": ["COUNT(*)"], "rowcount": 1}], "runningtime": "6.95"}
nlwiki_p
Most blocked users
null
SELECT COUNT(log_id) AS blocks, log_title AS user FROM logging INNER JOIN comment ON comment.comment_id=logging.log_comment_id WHERE log_timestamp>'20030000000000' AND log_action='block' AND comment_text NOT LIKE '%proxy%' AND log_title NOT LIKE '%.%' GROUP BY log_title ORDER BY blocks DESC LIMIT 1000
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "3.79"}
enwiki_p
Enwiki eC query
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 ('extendedconfirmed') JOIN actor ON actor_user = user_id JOIN revision_userindex ON rev_id = (SELECT rev_id...
{"resultsets": [{"headers": ["COUNT(page_id)"], "rowcount": 1}], "runningtime": "6.68"}
enwiki_p
enwiki inactive special users minimal
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 ('abusefilter', 'abusefilter-helper', 'templateeditor', 'accountcreator', 'eventcoordinator', 'import', ...
{"resultsets": [{"headers": ["user_id", "user_name", "group_concat(distinct categorylinks.cl_to separator ';')"], "rowcount": 1}], "runningtime": "14.06"}
enwiki_p
Log testing
null
SELECT * FROM change_tag_def
{"resultsets": [{"headers": ["item", "link"], "rowcount": 1}], "runningtime": "0.09"}
enwiki_p
Active perm admins
null
SELECT actor_name AS user, COUNT(*) AS changes FROM logging INNER JOIN actor on log_actor = actor_id WHERE log_type = 'rights' # AND log_timestamp>'20200000000000' AND log_params NOT RLIKE '"5::newgroups".*confirmed' GROUP BY actor_name ORDER BY 2 DESC
{"resultsets": [{"headers": ["Tables_in_commonswiki_p"], "rowcount": 110}, {"headers": ["View", "Create View", "character_set_client", "collation_connection"], "rowcount": 1}], "runningtime": "0.28"}
enwiki
Thematic Weeks on UkWP
List of articles created for the Investigative Journalism Week on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name, COUNT(1) AS created, SUM(article.page_len) as...
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "Last edit", "user_groups"], "rowcount": 11}], "runningtime": "0.22"}
ukwiki_p
Wiki4School 2021-2022 [with newbies]
List of articles created for the Investigative Journalism Week on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), newbie FROM ( SELECT CONCAT(actor_name) as actor_name, COUNT(1) AS created, SUM(article.page_len) as total_len, GROUP_CONCAT( DISTINCT -- [[Н...
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "Last edit", "user_groups"], "rowcount": 3}], "runningtime": "0.17"}
ukwiki_p
avg weekly edits by edit bucket
null
SELECT edit_bucket, ROUND(AVG(group_edits_count)) FROM ( SELECT COUNT(DISTINCT rev_id) as group_edits_count, WEEKOFYEAR(rev_timestamp) as week_n, CASE WHEN user_editcount <= 4 THEN '1 to 4 edits' WHEN user_editcount >= 5 AND user_editcount <= 99 THEN '5 to 99 edits' WHEN...
{"resultsets": [{"headers": ["rev_actor", "actor_name", "edit_count"], "rowcount": 163}], "runningtime": "19.57"}
cawiki_p
contributors to a category
null
SELECT DISTINCT actor_name, user_id, CONCAT_WS('-', MONTH(user_registration), YEAR(user_registration)) as reg_time, 2020 as participation_year FROM revision INNER JOIN categorylinks ON rev_page = cl_from JOIN actor on rev_actor = actor_id JOIN user on actor_user = user_id AND actor_user IS NOT NULL WHER...
{"resultsets": [{"headers": ["pages_with_disambig_but_not_redir"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_articles", "user_latestcreation"], "rowcount": 1002}], "runningtime": "116.08"}
commonswiki_p
اكثر 10 مقالات تعديلا
null
select page_title, count(*) from page inner join revision on rev_page = page_id where page_namespace = 0 and page_is_redirect = 0 group by page_title order by count(*) desc limit 10;
{"resultsets": [{"headers": ["output"], "rowcount": 8}], "runningtime": "0.08"}
arwiki
مقالات جديدة حسب الشهور
null
use arwiki_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": [{"headers": ["output"], "rowcount": 14651}], "runningtime": "22.44"}
arwiki