title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 7}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 34}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou...
enwiki_p
Orphaned talk pages
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE talk.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' ...
{"resultsets": [{"headers": ["page_title", "pp_value"], "rowcount": 100}], "runningtime": "0.82"}
enwiki_p
Wikidata item creations from Steam IDs
Users who create items using https://github.com/Facenapalm/WikidataBot/blob/main/steam_parser.py
select page_title from `comment` com -- comment table, escaped with ` since it is a reserved word JOIN revision ON rev_comment_id = com.comment_id JOIN page ON rev_page = page_id WHERE rev_timestamp >= '20230412000000' AND rev_parent_id = 0 -- only page creations AND rev_actor != 13710 -- exclude my edits AND com...
{"resultsets": [{"headers": ["log_title", "log_timestamp", "user_registration", "page_id"], "rowcount": 1017}], "runningtime": "1.57"}
wikidatawiki_p
Wikidata item creations from Steam IDs
Users who create items using https://github.com/Facenapalm/WikidataBot/blob/main/steam_parser.py
select page_title from `comment` com -- comment table, escaped with ` since it is a reserved word JOIN revision ON rev_comment_id = com.comment_id JOIN page ON rev_page = page_id WHERE rev_timestamp >= '20230412000000' AND rev_parent_id = 0 -- only page creations AND rev_actor != 13710 -- exclude my edits AND com...
{"resultsets": [{"headers": ["log_title", "log_timestamp", "user_registration", "page_id"], "rowcount": 1017}], "runningtime": "1.36"}
wikidatawiki_p
Bot and non-bot entry creations on mg.wiktionary.org
Count of edits that created a page in the mainspace by users who are currently in the bot usergroup and users who are not.
select if(rev_actor in (select actor_id from actor join user_groups on ug_user = actor_user where ug_group = 'bot'), 'bot', 'not') as botness, count(*) as count from revision join page on page_id = rev_page where rev_parent_id = 0 and page_namespace = 0 group by botness;
{"resultsets": [{"headers": ["lt_title"], "rowcount": 68}], "runningtime": "9.15"}
dewiktionary_p
AP districts improvement in enwiki - current month
AP districts pages excluding list articles improvement activity of current month group by each article, with editor while showing count of edits.
SELECT subq.user_name, COUNT(DISTINCT subq.page_title) as pages_edited, SUM(subq.Edits) as tot_edits FROM (SELECT page_title, user_name, COUNT(*) as Edits FROM page JOIN categorylinks ON cl_from = page_id AND cl_to="Districts_of_Andhra_Pradesh" AND cl_type="page" JOIN revision ON page_id = rev_page JOI...
{"resultsets": [{"headers": ["Articles with talk page redirects"], "rowcount": 1572}], "runningtime": "87.54"}
enwiki_p
xxx Rounds
null
select page_title from page where page_namespace=0 and page_title like '%_UEFA_%_round' and page_is_redirect=0
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 35}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 3}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 3}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 29}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcoun...
enwiki
Olabot Lili edits 2022
On pl:wikt, User:Olafbot Lingualibre edits.
select rev_id, rev_timestamp, comment_text from revision inner join comment on rev_comment_id = comment_id inner join actor on rev_actor = actor_id where comment_text like "%audio|LL-Q%" and actor_user = 10144# Olafbot and rev_timestamp like "2022%" # in 2022 ;
{"resultsets": [{"headers": ["el_id"], "rowcount": 0}], "runningtime": "0.05"}
plwiktionary_p
Blocks of admins on enwiki
null
SELECT user_name, log_id, comment_text, log_params FROM logging LEFT JOIN user ON user_name = REPLACE(log_title, "_", " ") INNER JOIN user_groups ON ug_user = user_id INNER JOIN actor ON actor_user = user_id INNER JOIN comment ON comment_id = log_comment_id WHERE log_type = "block" AND log_action = "block...
{"resultsets": [{"headers": ["rev"], "rowcount": 1}], "runningtime": "0.06"}
enwiki_p
wikidata: counts of all en descriptions without uk description
~2100 sec, 100000 rows; ~3000 sec, 500000 rows
# https://doc.wikimedia.org/Wikibase/master/php/docs_storage_terms.html SELECT CONCAT('http://www.wikidata.org/entity/Q', MIN(wbt_item_terms.wbit_item_id)) as Q_id, wbt_text.wbx_text as descr, count(*) as cnt FROM wbt_item_terms JOIN wbt_term_in_lang on wbt_item_terms.wbit_term_in_lang_id = wbt_term_in_lang.wbt...
{"resultsets": [{"headers": ["Page"], "rowcount": 0}], "runningtime": "92.21"}
wikidatawiki_p
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["page title", "user_name", "block reason"], "rowcount": 56}], "runningtime": "0.35"}
enwiki_p
Orphaned talk pages
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE talk.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' ...
{"connection_id": 162034484}
enwiki_p
Top 10 NPP reviewers (all-time) for hall of fame
null
SELECT actor_name AS `reviewer`, COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `Articles`, COUNT(IF(logtemp.page_is_redirect = 1, 1, NULL)) as `Redirects`, COUNT(DISTINCT(logtemp.log_page)) AS `Total` FROM ( SELECT distinct log_actor, log_page, page_is_redirect FROM logging...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 11}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki
NPP pages reviewed daily
null
select review_date as date, COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `Articles`, COUNT(IF(logtemp.page_is_redirect = 1, 1, NULL)) as `Redirects` from ( SELECT distinct page_id, concat(left(log_timestamp, 4), "-", right(left(log_timestamp, 6), 2), "-", right(left(log_timestamp, 8), 2)) as r...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 10}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 32}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki
بوت:تحديث مقالات مطلوبة حسب الاختصاص
null
select replace(pl_title,"مقالات_مطلوبة_حسب_الاختصاص/","") as page_title from pagelinks where pl_from in (676775) and pl_namespace in (4) and pl_from_namespace in (4) and pl_title not like "%وصلة_حمراء%" order by pl_title
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
arwiki_p
Carlossuarez46 Iranian villages
null
WITH RECURSIVE entries (page_title, page_id, page_namespace, inc, parent_title, parent_namespace, page_len) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace, page_len FROM page WHERE page_title IN ("Towns_and_villages_in_Iran_by_county") AND page_namespace = 14 ) ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 30}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 9}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou...
enwiki_p
Carlossuarez46 Azerbaijani villages
null
WITH RECURSIVE entries (page_title, page_id, page_namespace, inc, parent_title, parent_namespace, page_len) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace, page_len FROM page WHERE page_title IN ("Populated_places_in_Azerbaijan_by_district") AND page_namespace = 14 ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 29}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Most prolific Lexeme creators (Dagbani)
null
SELECT actor.actor_name as Username, COUNT(actor.actor_name) AS cnt FROM page JOIN revision ON page.page_id=revision.rev_page JOIN pagelinks ON page.page_id=pagelinks.pl_from JOIN actor ON revision.rev_actor=actor.actor_id WHERE page.page_namespace=146 AND revision.rev_parent_id=0 # No parent rev = page creatio...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 32}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 13}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 15}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
wikidatawiki_p
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 16}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 30}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 2}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou...
enwiki_p
Hewiki broken links to commons categories
null
(select * from commonswiki_p.page where page_title = substr(iwl_title, 10) and page_namespace = 14)
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 30}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
commonswiki_p
Carlossuarez46 Iranian villages external links
null
WITH RECURSIVE entries (page_title, page_id, page_namespace, inc, parent_title, parent_namespace, page_len) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace, page_len FROM page WHERE page_title IN ("Towns_and_villages_in_Iran_by_county") AND page_namespace = 14 ) ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 8}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 31}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou...
enwiki_p
Deletion review editors 2020 through 2023
null
SELECT actor_name, COUNT(*) FROM page JOIN revision ON page_id = rev_page JOIN actor ON actor_id = rev_actor WHERE page_namespace = 4 AND page_is_redirect = 0 AND page_title LIKE "Deletion_review/Log/202%" GROUP BY actor_id
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 12}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Move review editors 2020 through 2023
null
SELECT actor_name, COUNT(*) FROM page JOIN revision ON page_id = rev_page JOIN actor ON actor_id = rev_actor WHERE page_namespace = 4 AND page_is_redirect = 0 AND page_title LIKE "Move_review/Log/202%" GROUP BY actor_id
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 33}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
VPR editors 2020 through 2023
null
SELECT actor_name, COUNT(*) FROM page JOIN revision ON page_id = rev_page JOIN actor ON actor_id = rev_actor WHERE page_namespace = 4 AND page_is_redirect = 0 AND page_title = "Village_pump_(proposals)" AND rev_timestamp > 20200000000000 GROUP BY actor_id
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 32}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
AN editors 2020 through 2023
null
SELECT actor_name, COUNT(*) FROM page JOIN revision ON page_id = rev_page JOIN actor ON actor_id = rev_actor WHERE page_namespace = 4 AND page_is_redirect = 0 AND page_title = "Administrators'_noticeboard" AND rev_timestamp > 20200000000000 GROUP BY actor_id
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Editors selected forums 2020 through 2023
null
WITH dr_edits AS (SELECT actor_name, actor_id, actor_user, COUNT(*) AS dr_edit_count FROM page JOIN revision ON page_id = rev_page JOIN actor ON actor_id = rev_actor WHERE page_namespace = 4 AND page_is_redirect = 0 ...
{"resultsets": [{"headers": ["rank", "IFNULL(actor_name, '\u0412\u0441\u044c\u043e\u0433\u043e')", "created", "total_len", "articles"], "rowcount": 14}], "runningtime": "0.08"}
enwiki_p
WLM-UA Photo Competition participants 2012-2022
WLM-UA Photo Competition participants 2012-2021
SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line FROM revision r_prev join categorylinks on rev_page = cl_from join actor on rev_actor = actor_id and actor_user is not null WHERE rev_parent_id = 0 and cl_to IN ( "Images_from_Wiki_Loves_Monuments_2012_in_Ukraine", "Images_fro...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 8}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 16}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 3}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcoun...
commonswiki_p
Round Redirects
null
select page_title from page where page_namespace=0 and page_title like '%_Round' and page_is_redirect=1
{"resultsets": [{"headers": ["rev_timestamp"], "rowcount": 114}], "runningtime": "0.15"}
enwiki
Edições realizadas em 02/2022 por contas na Wikipédia em português com gênero definido como "female"
null
SELECT `user`.`user_name` AS `Nome`, `revs`.`total` AS `Nº edições`, `user_properties`.`up_value` as `Gênero` FROM `user` LEFT JOIN `user_properties` ON ( `user`.`user_id` = `user_properties`.`up_user` AND `user_properties`.`up_property` = "gender" ) LEFT JOIN `actor` ON `user`.`user_id` = `actor`.`acto...
{"resultsets": [{"headers": ["SD", "Length"], "rowcount": 1000}], "runningtime": "1.33"}
ptwiki_p
Edições realizadas em 02/2022 por contas na Wikipédia em português com gênero definido ou não
null
SELECT `user`.`user_name` AS `Nome`, `revs`.`total` AS `Nº edições`, `user_properties`.`up_value` as `Gênero` FROM `user` LEFT JOIN `user_properties` ON ( `user`.`user_id` = `user_properties`.`up_user` AND `user_properties`.`up_property` = "gender" ) LEFT JOIN `actor` ON `user`.`user_id` = `actor`.`acto...
{"resultsets": [{"headers": ["CONCAT('* [[m:Special:CentralAuth/', REPLACE (user_name,'_',' '), ']]')", "d"], "rowcount": 16}], "runningtime": "0.28"}
ptwiki_p
least rev
null
WITH least_rev AS ( SELECT MIN(rev_id) AS least_rev FROM revision rev JOIN comment cm ON rev.rev_comment_id = cm.comment_id JOIN logging log ON log.log_comment_id = cm.comment_id WHERE NOT lo...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 15}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 15}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki
least rev
null
WITH least_rev AS ( SELECT MIN(rev_id) AS least_rev FROM revision rev JOIN comment cm ON rev.rev_comment_id = cm.comment_id JOIN logging log ON log.log_comment_id = cm.comment_id WHERE NOT lo...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 36}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki
user registration
null
SELECT min(rev_timestamp) FROM revision WHERE rev_id = 1
{"resultsets": [{"headers": ["page_title", "replace(pl_title, '_', ' ')"], "rowcount": 100}], "runningtime": "0.16"}
enwiki
Images_from_Wiki_Loves_Earth_2014-2022_in_Cameroon
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_Earth_2014_in_Cameroon...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 16}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 30}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 31}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
commonswiki
Articles without talk pages
March 2023 execution time: 267 seconds, resultset 79538 rows
SELECT page_title FROM page AS articles LEFT JOIN page_props ON pp_page = articles.page_id AND pp_propname = 'disambiguation' WHERE articles.page_namespace = 0 AND articles.page_is_redirect = 0 AND pp_page IS NULL AND NOT EXISTS ( SELECT 1 FROM page AS talk WHERE talk.page_...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 0}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou...
enwiki_p
Proposed suffrage, May'23 Arbpol amendment
Checks all users who've edited [[Wikipedia:Arbitration/Policy/Proposed amendment (May 2023)]] against arbcom election suffrage requirements, replacing the "November 1" and "October 1" dates as one and two months respectively prior to the edit making the vote live. This check all users who've edited the page, not just ...
SET @ns = 4; -- Wikipedia SET @title = 'Arbitration/Policy/Proposed amendment (May 2023)'; SET @start_time = 20230517110303; SET @title = REPLACE(@title, ' ', '_'); SET @start_time = CAST(@start_time AS DATETIME); SET @one_month_timestamp = DATE_FORMAT(@start_time - INTERVAL 1 MONTH, '%Y%m%d%H%i%s'); SET @one_year_tim...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 32}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 30}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Wiki Loves Folklore 2023 in Ukraine Participants
null
SELECT A.actor_name, COUNT(1) as files FROM commonswiki_p.image I JOIN commonswiki_p.page P ON I.img_name = P.page_title JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from JOIN commonswiki_p.actor A ON I.img_actor = A.actor_id WHERE P.page_namespace = 6 AND CL.cl_to = "Images_from_Wiki_Loves_Folklore_202...
{"resultsets": [{"headers": ["basepage_title"], "rowcount": 665}], "runningtime": "24.30"}
commonswiki_p
Current or former bots on plwiki
null
select user_name, group_concat(distinct ug_group separator ", ") as current_groups, group_concat(distinct ufg_group separator ", ") as former_groups from user left join user_groups as ug1 on ug_user = user_id left join user_former_groups as ufg1 on ufg_user = user_id where ug_user in (select ug_user from us...
{"resultsets": [{"headers": ["page_title"], "rowcount": 77446}], "runningtime": "117.10"}
plwiki_p
Articles count on Thai Wikipedia
null
SELECT COUNT(p.page_title) AS '' FROM page p LEFT JOIN page_props pp ON p.page_id = pp.pp_page AND pp.pp_propname = 'wikibase-shortdesc' WHERE p.page_namespace = 0 AND p.page_title NOT LIKE 'รายชื่อ%' AND p.page_is_redirect = 0
{"resultsets": [{"headers": ["page_title", "page_id", "talk_id"], "rowcount": 1088}], "runningtime": "373.86"}
thwiki_p
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 33}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 11}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৯ জানু ২০২২
SET @ct:=0; SELECT CONCAT("{{subst:formatnum:",@ct:=@ct+1,"}}") AS নং, CONCAT("{{u|",user,"}}") AS ব্যবহারকারী_নাম, CONCAT("{{subst:formatnum:",cnt,"}}") AS মোট_নিবন্ধ FROM ( SELECT actor_name AS user, COUNT(rev_id) AS cnt FROM actor JOIN revision ON rev_actor = actor_id JOIN page ON page_id = rev_page WH...
{"connection_id": 162825550}
bnwiki
Low resolution images in vital articles
null
SELECT img_name AS Image, Pa.page_title AS Article FROM page Pv JOIN pagelinks ON pl_from = Pv.page_id AND pl_namespace=0 JOIN page Pa ON Pa.page_namespace=0 AND Pa.page_title=pl_title JOIN imagelinks ON il_from = Pa.page_id JOIN image ON img_name = il_to AND img_width < 500 AND img_height < 400 AND img_name NOT REGEXP...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 7}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou...
enwiki_p
البحث عن رابط خارجي
null
select concat("[[:",page.page_title,"]]") as "اسم المقال",el_to as "رابط المنتدي" from externallinks join page on page.page_id = externallinks.el_from where el_to like "%/vb/%" and page.page_namespace in (0) and el_to not like "%web.archive.org%"
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 12}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
arwiki_p
Articles with "none" short description on Thai Wikipedia
null
SELECT pp.pp_propname, pp.pp_value FROM page p LEFT JOIN page_props pp ON p.page_id = pp.pp_page AND pp.pp_propname = 'wikibase-shortdesc' WHERE p.page_namespace = 0 -- AND pp.pp_value IS NOT NULL AND p.page_title NOT LIKE 'รายชื่อ%' AND p.page_is_redirect = 0 GROUP BY pp.pp_propname LIMIT 100
{"resultsets": [{"headers": ["count"], "rowcount": 1}], "runningtime": "1.53"}
thwiki_p
البحث عن رابط خارجي
null
select concat("[[:",page.page_title,"]]") as "اسم المقال",el_to as "رابط المنتدي" from externallinks join page on page.page_id = externallinks.el_from where el_to like "%/vb/%" and page.page_namespace in (0) and el_to not like "%web.archive.org%"
{"resultsets": [{"headers": ["lt_title"], "rowcount": 69}], "runningtime": "18.10"}
arwiki_p
Low resolution images in vital articles
null
SELECT img_name AS Image, Pa.page_title AS Article, CASE WHEN tl_from THEN "NonFree" ELSE "" END AS "Licence" FROM page Pv JOIN pagelinks ON pl_from = Pv.page_id AND pl_namespace=0 JOIN page Pa ON Pa.page_namespace=0 AND Pa.page_title=pl_title JOIN imagelinks ON il_from = Pa.page_id JOIN image ON img_name = il_to AND i...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 16}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 29}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Äthiopier und Eritreer
Äthiopier und Eritreer mit einem Komma in der Sortierung bzw. ganz ohne "{{SORTIERUNG:…}}" bzw. {{DEFAULTSORT:}} Siehe https://de.wikipedia.org/wiki/Wikipedia_Diskussion:WikiProjekt_Afrika#Sortierung_%C3%A4thiopischer_und_eritreischer_Namen_mit_Patronymen
SELECT page_title, pp_value AS "Sortierung", cl_to AS "Kategorie" FROM categorylinks, page LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'defaultsort' WHERE page_namespace = 0 AND page_id = cl_from AND cl_to IN ('Äthiopier', 'Eritreer') ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 14}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
dewiki_p
Cup of Nations Group X
null
select page_title from page where page_namespace=0 and page_title like '%_Cup_of_Nations_Group%' and page_is_redirect=0
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 33}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 16}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki
Cup of Nations q Group X
null
select page_title from page where page_namespace=0 and page_title like '%_Cup_of_Nations_qualification_Group%' and page_is_redirect=0
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 35}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki
Blocked users with rights [enwiki]
null
SELECT ipb_address, GROUP_CONCAT(ug_group), ipb_expiry, ipb_sitewide, comment_text FROM user_groups JOIN ipblocks ON ug_user = ipb_user JOIN comment ON ipb_reason_id = comment_id WHERE ug_group NOT IN ('extendedconfirmed') GROUP BY ipb_id ORDER BY ipb_expiry DESC
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 36}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 30}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 29}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Orphaned GA pages
create a list of talk pages that are redirects with non-redirect GA subpages, mainly to find pages that have been moved improperly without their subpages This is basically a repurposing of the "Orphaned archive pages" query but for GA pages
select distinct CONCAT("{{User:Aidan9382//adle|1=Talk:",SUBSTR(page_title,1,LENGTH(page_title)-4),"}}") as basepage_title from page where page_namespace = 1 and page_is_redirect = 0 and page_title rlike "/GA[1-9]$" -- Covers enough cases and exists ( select 1 from page as basepage where basepage.page_namespace = ...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 11}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki
Blocked users with rights, summary mentions "ban" [enwiki]
null
SELECT ipb_address, GROUP_CONCAT(ug_group), ipb_expiry, ipb_sitewide, comment_text FROM user_groups JOIN ipblocks ON ug_user = ipb_user JOIN comment ON ipb_reason_id = comment_id WHERE LOWER(comment_text) LIKE "%ban%" AND ipb_sitewide = 1 GROUP BY ipb_id ORDER BY ipb_expiry DESC
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 31}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
enwiki_p
Blocked users with rights, summary mentions "ban" [enwiki]
null
SELECT ipb_address, GROUP_CONCAT(ug_group), ipb_expiry, ipb_sitewide, comment_text FROM user_groups JOIN ipblocks ON ug_user = ipb_user JOIN comment ON ipb_reason_id = comment_id WHERE ug_group != 'extendedconfirmed' AND LOWER(CONVERT(comment_text USING latin1)) LIKE "%ban%" AND ipb_sitewide = 1 GROUP BY ipb_id OR...
{"resultsets": [{"headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "user_password_expires"], "rowco...
enwiki_p
Low resolution images in vital articles
null
SELECT img_name AS Image, Pa.page_title AS Article, CASE WHEN tl_from THEN "NonFree" ELSE "" END AS "Licence" FROM page Pv JOIN pagelinks ON pl_from = Pv.page_id AND pl_namespace=0 JOIN page Pa ON Pa.page_namespace=0 AND Pa.page_title=pl_title JOIN imagelinks ON il_from = Pa.page_id JOIN image ON img_name = il_to AND i...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 1137}], "runningtime": "1.22"}
enwiki_p
Users with rights who are tagged as banned [enwiki]
null
SELECT ipb_address, GROUP_CONCAT(ug_group), ipb_expiry, ipb_sitewide, cl_to, comment_text FROM user_groups JOIN ipblocks ON ug_user = ipb_user JOIN comment ON ipb_reason_id = comment_id INNER JOIN page ON page_title = REPLACE(ipb_address, ' ', '_') AND page_namespace = 2 INNER JOIN categorylinks ON cl_from = pag...
{"resultsets": [{"headers": ["Count", "Size_B"], "rowcount": 1}], "runningtime": "0.69"}
enwiki_p
Articles with same name in arwiki and arwikiquote but not connected togther to Wikidata
null
SELECT CONCAT('[[',arwikiquote_p.page.page_title,']]') AS arwikiquote, CONCAT('[[',arwiki_p.page.page_title,']]') AS arwiki FROM arwiki_p.page JOIN arwikiquote_p.page ON arwiki_p.page.page_title = arwikiquote_p.page.page_title LEFT JOIN arwikiquote_p.langlinks ON ll_from = arwikiquote_p.page.page_id LEFT JOIN (SELECT *...
{"resultsets": [{"headers": ["rev_id"], "rowcount": 5}], "runningtime": "0.07"}
arwiki_p
x Group X
null
select page_title from page where page_namespace=0 and page_title like '%_Group__' and page_is_redirect=0
{"resultsets": [{"headers": ["page title", "user_name", "block reason"], "rowcount": 25}], "runningtime": "0.17"}
enwiki
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["User", "Registered", "Edit count", "Last edit", "Filter trip count", "Last filter trip"], "rowcount": 72}], "runningtime": "54.12"}
enwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["Page", "Page length", "Re-created at"], "rowcount": 266}], "runningtime": "10.29"}
enwiki_p
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["upa_touched", "up_property", "up_value"], "rowcount": 0}], "runningtime": "479.91"}
enwiki_p
Orphaned talk pages
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 10}], "runningtime": "0.05"}
enwiki_p
Orphaned talk pages
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE talk.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' ...
{"resultsets": [{"headers": ["page_title", "page_namespace", "bot users", "last edit on page", "edits"], "rowcount": 10}], "runningtime": "4.80"}
enwiki_p
pagesperso-orange.fr (http)
null
USE frwiki_p; select * from externallinks where el_index like 'http://fr.pagesperso-orange.%' and el_index like '%'
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 17}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
frwiki_p
pagesperso-orange.fr (https)
null
USE frwiki_p; select * from externallinks where el_index like 'https://fr.pagesperso-orange.%' and el_index like '%'
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 14}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 12}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
frwiki_p
Most linked to pages in the Simple English Wikipedia
null
select count(pl_title) link_count, pl_title link_title from pagelinks #Eliminate links in namespaces outside of (Article) where pl_from_namespace=0 and pl_title!="Stub" group by pl_title order by link_count desc limit 10;
{"resultsets": [{"headers": ["title", "count"], "rowcount": 6}], "runningtime": "0.06"}
simplewiki_p
Users who have made blocks on the Simple English Wikipedia
null
select distinct ipblocks.ipb_by_actor as "actor id", actor.actor_name as "actor name" from ipblocks join actor on actor.actor_id=ipblocks.ipb_by_actor;
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 35}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
simplewiki_p
Uploaded while editing page on fi.wikipedia.org
null
SELECT rc_timestamp, rc_title, rc_user_text, rc_comment FROM recentchanges_compat WHERE rc_comment LIKE "%fi.wikipedia.org%" AND rc_comment NOT LIKE "%FileImporter%" AND rc_source="mw.log" ORDER BY rc_timestamp ;
{"resultsets": [{"headers": ["page_title", "page_len", "rev_len", "Growth", "rev_timestamp"], "rowcount": 5438}], "runningtime": "7.05"}
commonswiki_p
Query
null
SELECT page_title FROM page, redirect WHERE page_id = rd_from AND rd_interwiki = '' AND page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM page WHERE page_title = rd_title AND page_namespace = rd_namespace )
{"resultsets": [{"headers": ["page_title"], "rowcount": 105087}], "runningtime": "86.47"}
enwiki_p
Pages re-created after previous U5 or G11 deletion
Within the past month and only in the main, user, and draft namespaces. To do: -Show when page was last deleted -Include who the creator is (for easy COI/promo detection) -Add last rev date (for re-creations that are harmless but then later have problematic content added) -Also show if page has been G5'd or if a previ...
WITH sock_template AS ( SELECT tl.tl_from FROM enwiki_p.templatelinks tl WHERE tl.tl_target_id IN (32197, 277052, 282063, 115252, 1968835) ) SELECT DISTINCT CONCAT('https://en.wikipedia.org/wiki/', CASE WHEN rc.rc_namespace = 2 THEN 'User:' WHEN rc.rc_namespace = 118 THEN 'Draft:' ELSE '' END, rc.rc_title) AS 'P...
{"resultsets": [{"headers": ["Articles with talk page redirects"], "rowcount": 1489}], "runningtime": "21.12"}
enwiki_p
Carlossuarez46 Azerbaijan villages limited (coordinates)
null
WITH RECURSIVE entries (page_title, page_id, page_namespace, inc, parent_title, parent_namespace, page_len) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace, page_len FROM page WHERE page_title IN ("Populated_places_in_Azerbaijan_by_district") AND page_namespace = 14 ...
{"resultsets": [{"headers": ["G\u00eanero", "Total"], "rowcount": 2}, {"headers": ["Total de usu\u00e1rios que definiram alguma prefer\u00eancia"], "rowcount": 1}, {"headers": ["Total de usu\u00e1rios registrados"], "rowcount": 1}], "runningtime": "9.01"}
enwiki_p
Carlossuarez46 Iranian villages limited (without coordinates)
null
WITH RECURSIVE entries (page_title, page_id, page_namespace, inc, parent_title, parent_namespace, page_len) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace, page_len FROM page WHERE page_title IN ("Towns_and_villages_in_Iran_by_county") AND page_namespace = 14 ) ...
{"connection_id": 165562153}
enwiki_p
Infobox weather event adoption
Adoption of {{Infobox weather event}} on the English Wikipedia, compared to the infoboxes it aims to replace.
SELECT lt_title, COUNT(*) FROM templatelinks LEFT JOIN linktarget ON tl_target_id = lt_id WHERE tl_target_id IN ( (SELECT lt_id FROM linktarget WHERE lt_namespace = 10 AND lt_title = "Infobox_weather_event"), (SELECT lt_id FROM linktarget WHERE lt_namespace = 10 AND lt_title = "Infobox_tropical_cyclone"), (SE...
{"resultsets": [{"headers": ["Page"], "rowcount": 0}], "runningtime": "73.26"}
enwiki_p
nlwiki Wanted templates in main namespace
Executes in < 10 s.
SELECT CONCAT('[[Speciaal:VerwijzingenNaarHier/Sjabloon:', REPLACE(lt_title,'_',' '), ']]') AS backlink, COUNT(*) AS `count` FROM templatelinks INNER JOIN linktarget ON tl_target_id=lt_id RIGHT JOIN page pf ON tl_from=page_id WHERE lt_namespace=10 AND tl_from_namespace=0 AND NOT EXISTS (SELECT * FROM page pt W...
{"resultsets": [{"headers": ["Page"], "rowcount": 7221}], "runningtime": "52.29"}
nlwiki
%before_1%
null
SELECT CONCAT("Category:",page_title,"") FROM page AS page WHERE page_namespace = 14 AND page_is_redirect =0 #AND page_is_redirect =1 #AND page_title LIKE "%nimation_directors%" #AND (page_title LIKE "%peopel%" OR page_title LIKE "%Peopel%") ORDER BY RAND() LIMIT 500;
{"resultsets": [{"headers": ["description", "tmp1", "tmp2", "c"], "rowcount": 500000}], "runningtime": "2766.56"}
enwiki_p
Wikidata items with their own item ID as label, description or alias
null
SELECT wbx_text, wby_name, wbxl_language FROM wbt_item_terms JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id JOIN wbt_type ON wbtl_type_id = wby_id JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id JOIN wbt_text ON wbxl_text_id = wbx_id WHERE ( wbx_text LIKE 'Q1%' OR wbx_text LIKE 'Q2%' OR wbx_text ...
{"resultsets": [{"headers": ["mainspace_title"], "rowcount": 433029}], "runningtime": "443.44"}
wikidatawiki_p
روابط سبام من مستخدم Hasanisawi
null
select page.page_title,el_to from externallinks join page on page.page_id = externallinks.el_from where el_to like "%isawi-bookmark.blogspot.com%" or el_to like "%archdrawingrepresentation.blogspot.com%" or el_to like "%archifia.blogspot.com%" or el_to like "%architectural-communication-skills.blogspot.com%" or el_to l...
{"resultsets": [{"headers": ["page_title_formatted"], "rowcount": 2991}], "runningtime": "9.09"}
arwiki_p
Attempted edits to user pages of blocked users
Returns edit attempts that hit abuse filter 803 ("prevent new users from editing other's user pages") on user pages of blocked users. Only offending accounts (the ones that triggered the filter) that are not currently blocked are shown. Accounts that show up in the "offending user" column have a high probability of b...
WITH sock_template AS ( SELECT tl.tl_from FROM enwiki_p.templatelinks tl WHERE tl.tl_target_id IN (32197, 277052, 282063, 115252, 1968835) ) SELECT REPLACE(afl.afl_user_text, ' ', '_') AS 'Offending user', afl.afl_title AS 'Blocked user', CASE WHEN p.page_id IN (SELECT tl_from FROM sock_template) THEN 'Yes' ELSE...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 4824}], "runningtime": "32.01"}
enwiki_p
البحث عن مقالات ملخص تعديل معين
null
SELECT page_id, comment_text,actor_name,rev_timestamp FROM revision_userindex INNER JOIN page ON rev_page = page_id INNER JOIN actor ON rev_actor = actor.actor_id INNER JOIN comment ON comment_id = rev_comment_id WHERE page_namespace = 0 AND page.page_is_redirect = 0 AND comment_text like _u...
{"resultsets": [{"headers": ["page_title_formatted"], "rowcount": 2469}], "runningtime": "4.73"}
arwiki_p
أكثر مستخدمين شكرًا شهريا
null
USE arwiki_p; select CONCAT('[[مستخدم:',actor_name,'|',actor_name,']]'), COUNT(*) from logging INNER JOIN actor on logging.log_actor = actor_id where log_timestamp BETWEEN 20230501000000 AND 20230631235959 and log_type = "thanks" group by logging.log_actor having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10;
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.05"}
arwiki_p
أكثر مستخدمين نقلًا شهريًا
null
USE arwiki_p; select CONCAT('[[مستخدم:',actor_name,'|',actor_name,']]'), COUNT(*) from logging INNER JOIN actor on logging.log_actor = actor_id where log_timestamp BETWEEN 20230501000000 AND 20230631235959 and log_action IN ("move") and log_namespace = 0 group by logging.log_actor having COUNT(*)>1 ORDER BY COUNT(*) DE...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.05"}
arwiki_p
DO NOT RERUN! Top redirect reviewers all time
null
SELECT actor_name AS `reviewer`, COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `Articles`, COUNT(IF(logtemp.page_is_redirect = 1, 1, NULL)) as `Redirects`, COUNT(DISTINCT(logtemp.log_page)) AS `Total` FROM ( SELECT distinct log_actor, log_page, page_is_redirect FROM logging...
{"resultsets": [], "runningtime": "0.03"}
enwiki
AP districts update 2023 - previous month page wise edit details
AP districts pages excluding list articles improvement activity of current month group by each article, with editor while showing count of edits.
SET @pmonthbegin=DATE_FORMAT(CURDATE() - INTERVAL 1 MONTH,'%Y%m01'), @nmonthbegin=DATE_FORMAT(CURDATE() , '%Y%m01'); SELECT page_title, user_name, COUNT(*) as Edits FROM page JOIN categorylinks ON cl_from = page_id AND cl_to="Districts_of_Andhra_Pradesh" AND cl_type="page" JOIN revision ON page_id = rev...
{"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 10}], "runningtime": "0.06"}
enwiki_p
AP districts - Previous month edits, unique human editors
AP districts pages , group by each article, with edits and editor count
# Unique human editors and their total edits for a list of articles specified by category, excluding few as may be SET @pmonthbegin=DATE_FORMAT(CURDATE() - INTERVAL 1 MONTH,'%Y-%m-01'), @nmonthbegin=DATE_FORMAT(CURDATE() , '%Y-%m-01'); SELECT subqres.user_name, COUNT(DISTINCT subqres.page_title) as pages_ed...
{"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 10}], "runningtime": "0.06"}
enwiki_p
Top human editors of the prev. week as per talk page category
With atleast 3 edits per week
# Unique human editors and their total edits for a list of articles specified by category, excluding few as may be SET @pweekbegin=DATE_FORMAT(CURDATE() + INTERVAL -WEEKDAY(CURDATE())-7 DAY,'%Y%m%d'), @pweekend=DATE_FORMAT((CURDATE() + INTERVAL -WEEKDAY(CURDATE())-7 DAY) + INTERVAL 6 DAY, '%Y%m%d'); SELECT subq...
{"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 3833}], "runningtime": "4.00"}
enwiki_p
Top human editors of pages based on talk page category
With atleast 30 edits per month
# Unique human editors and their total edits for a list of articles specified by category, excluding few as may be SET @pmonthbegin=DATE_FORMAT(CURDATE() - INTERVAL 1 MONTH,'%Y-%m-01'), @nmonthbegin=DATE_FORMAT(CURDATE() , '%Y-%m-01'); SELECT subqres.user_name, COUNT(DISTINCT subqres.page_title) as pages_ed...
{"resultsets": [{"headers": ["name", "length"], "rowcount": 3833}], "runningtime": "3.99"}
enwiki_p
Last week's draftifications using Evad's script
null
select concat ("https://en.wikipedia.org/wiki/Draft:", page_title) as page_title, actor_name, log_timestamp, comment_text, count(*) as c from page join logging on page_id = log_page and log_type='move' join actor on log_actor=actor_id join comment on log_comment_id=comment_id left join change_tag on lo...
{"resultsets": [{"headers": ["user", "cnt"], "rowcount": 169}], "runningtime": "0.39"}
enwiki
连接号转换受影响项目页
null
SELECT page.page_namespace as 命名空间编号, REPLACE(page.page_title, '_', ' ') as 页面名称 FROM page WHERE page.page_title like '%_-_%' AND page.page_is_redirect = 0 AND page.page_namespace IN (4, 5, 10, 11, 12, 13, 102, 103, 118, 119, 828, 829);
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "0.06"}
zhwiki_p
NS0→NS10 templatelinks stat on skwiki
null
USE skwiki_p; SELECT REPLACE(lt_title, '_', ' ') AS template_title, COUNT(*) AS article_count FROM templatelinks, linktarget WHERE tl_target_id = lt_id AND tl_from_namespace = 0 AND lt_namespace = 10 GROUP BY lt_title ORDER BY article_count DESC ;
{"resultsets": [{"headers": ["file", "oi_actor", "actor_name"], "rowcount": 616}], "runningtime": "0.69"}
slwiki_p
Files on enwikiversity NOT in spec categories (no license)
null
#USE viwiki_p; SELECT CONCAT("# [[:File:", img_name, "]]") AS file, actor_name #, GROUP_CONCAT(c.cl_from SEPARATOR ' ¤¤¤ ') FROM image JOIN page ON page_namespace = 6 AND page_title = img_name JOIN actor_image ON img_actor = actor_id JOIN categorylinks ON cl_from = page_id AND cl_type = "file" #AND cl_to = "No_lice...
{"resultsets": [{"headers": ["title", "count"], "rowcount": 9}], "runningtime": "0.06"}
enwikiversity_p
edit summary search
null
USE hewiki_p; select page_id, page_namespace, page_title, page_is_redirect, rev_timestamp, rev_id, page_latest, comment.comment_text from revision join page on revision.rev_page = page.page_id /* and page.page_namespace = 0 */ join comment on revision.rev_comment_id = comment.comment_id where rev_timestamp > 201304010...
{"resultsets": [{"headers": ["Q_id"], "rowcount": 4986}], "runningtime": "4.44"}
hewiki_p
edit summary search
null
USE hewiki_p; select revision.*, comment.comment_text from revision join page on revision.rev_page = page.page_id /* and page.page_namespace = 0 */ join comment on revision.rev_comment_id = comment.comment_id where /*rev_timestamp > 20230401000000 and*/ comment.comment_text rlike ".*נילסיזציה.*"
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 96}], "runningtime": "12.15"}
hewiki_p
Username
null
select user_name, user_registration, user_editcount, MAX(rev_timestamp) AS last_edit from user JOIN actor_user ON user_id = actor_user JOIN revision_userindex r ON actor_id = rev_actor where user_registration > 20230500000000 and user_name rlike "^[A-Z][A-Za-z]*[0-9]+!$" GROUP BY user_id order by user_registration desc
{"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", "rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "comm...
enwiki_p
Non-contributor user pages transcluding infobox person
User pages edited within the past year and not including subpages or users with more than 30 edits. To do: -Don't show pages with latest revision being by a bot -Only count non-userspace edits towards the 30 edit threshold
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS 'User page', u.user_editcount AS 'User edit count', TIMESTAMP(r.rev_timestamp) AS 'Page last edited', p.page_len AS 'Page length', CASE WHEN p.page_is_new THEN 'Yes' ELSE 'No' END AS 'Is new?' FROM page p INNER JOIN user u ON REPLACE(p.page_title, '_...
{"resultsets": [{"headers": ["Page", "Is redirect?", "Moved timestamp"], "rowcount": 70}], "runningtime": "81.17"}
enwiki_p
Single actor ID
null
SELECT * FROM actor WHERE actor_name = "Gamsbart"
{"resultsets": [{"headers": ["revs", "page_title"], "rowcount": 26}], "runningtime": "0.13"}
enwiki_p
Unreferenced BLPs, reflist
null
WITH article AS ( SELECT * FROM page JOIN categorylinks ON page_id = cl_from AND cl_to = "Living_people" WHERE page_namespace = 0 AND page_is_redirect = 0 ), no_ext AS ( SELECT DISTINCT(page_title), page_len FROM article LEFT JOIN externallinks ON page_id = el_from WHERE el_id IS NULL ), no_cite AS ...
{"resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 107}], "runningtime": "0.16"}
enwiki_p
Most thankful users
The result set is small because you can't thank accounts with the bot flag. Must be a feature of Extension:Thanks.
SELECT actor_name as receiver, COUNT(*) FROM logging_logindex INNER JOIN actor on log_actor = actor_id WHERE log_action = 'thank' AND log_timestamp >= '20230101000000' AND log_timestamp < '20230701000000' GROUP BY log_actor ORDER BY COUNT(*) DESC
{"resultsets": [{"headers": ["p"], "rowcount": 30}], "runningtime": "501.61"}
huwiki
Most thanked users
The result set is small because you can't thank accounts with the bot flag. Must be a feature of Extension:Thanks.
SELECT log_title as receiver, COUNT(*) FROM logging_logindex WHERE log_action = 'thank' AND log_timestamp >= '20230101000000' AND log_timestamp < '20230701000000' GROUP BY log_title ORDER BY COUNT(*) DESC
{"connection_id": 171250951}
huwiki