title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
BlackJack cricketer stubs
null
SELECT DISTINCT page_title FROM revision JOIN actor_revision ON actor_id = rev_actor JOIN page ON page_id = rev_page JOIN categorylinks ON cl_from = page_id WHERE rev_parent_id = 0 AND actor_name = "BlackJack" AND page_namespace = 0 AND rev_len > 150 AND page_len < 2500 AND page_is_redirect = 0 AND cl_to LI...
{"resultsets": [{"headers": ["page_title"], "rowcount": 149469}], "runningtime": "199.41"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 4017}], "runningtime": "249.02"}
enwiki_p
# of pagetriage-curation/delete log entries
Should almost identically match the count for pagetriage-deletion/logging. This is a double check.
SELECT COUNT(*) FROM logging WHERE log_type = 'pagetriage-curation' AND log_action = 'delete'
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 1}], "runningtime": "0.06"}
enwiki
# of pagetriage-deletion log entries
null
SELECT COUNT(*) FROM logging WHERE log_type = 'pagetriage-deletion'
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1"], "rowcount": 0}], "runningtime": "0.05"}
enwiki
NDigital renamed to Niloybro
null
select * from logging where log_id = 134125350;
{"resultsets": [{"headers": ["Source", "Target"], "rowcount": 14447}], "runningtime": "145.78"}
enwiki_p
lista redaktorów plwikisource z ponad 10 edycjami w ostatnim 3/4 roku
lista redaktorów plwikisource z ponad 10 edycjami w ostatnim roku
USE plwikisource_p; SELECT actor_name FROM (SELECT COUNT(*) AS n, actor_name FROM revision JOIN actor ON rev_actor = actor_id JOIN user_groups ON actor_user = ug_user JOIN page ON page_id = rev_page WHERE ug_group = 'editor' AND rev_timestamp > '20210903000000' AND page_namespace % ...
{"resultsets": [{"headers": ["actor_id"], "rowcount": 1}], "runningtime": "0.08"}
plwikisource_p
Sander.v.Ginkel Olympian stubs
null
SELECT DISTINCT page_title FROM revision JOIN actor_revision ON actor_id = rev_actor JOIN page ON page_id = rev_page JOIN categorylinks ON cl_from = page_id WHERE rev_parent_id = 0 AND actor_name = "Sander.v.Ginkel" AND page_namespace = 0 AND rev_len > 150 AND page_len < 2750 AND page_is_redirect = 0 AND cl...
{"resultsets": [{"headers": ["page_title"], "rowcount": 34347}], "runningtime": "69.22"}
enwiki_p
G7 REQ (2022-07-21)
下面的頁面是符合csd g6標準的,因此請複製下面頁面的名稱並提交CSD請求。
select CONCAT('[[draft:', page_title, ']]') as page_title FROM page WHERE page_namespace = 118 AND page_len = 0 HAVING (SELECT COUNT(DISTINCT rev_actor) FROM revision WHERE rev_page = page_id) = 1;
{"resultsets": [{"headers": ["tl_title"], "rowcount": 102}], "runningtime": "2051.10"}
enwiki
count of pagetriage_page_tags redirects
null
SELECT COUNT(*) FROM pagetriage_page_tags JOIN page ON page_id = ptrpt_page_id WHERE page_is_redirect = 1
{"resultsets": [{"headers": ["rc_actor", "num_edits"], "rowcount": 1}], "runningtime": "0.10"}
enwiki
Most pending changes accepts (all time)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' GROUP BY log_actor ORDER BY manual_accept_count DESC LIMIT 1000
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_update...
enwiki
Löschanträge seit 1. Januar 2022 - dewiki
null
use dewiki_p; SELECT count(*) AS Anzahl, actor_name FROM page, revision, actor_revision, comment_revision WHERE page_title LIKE "Löschkandidaten/%" AND page_namespace = 4 AND page_id = rev_page AND rev_actor = actor_id AND comment_id = rev_comment_id AND comment_text like "Neuer Abschnitt%" AND rev...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 9}], "runningtime": "133.48"}
dewiki_p
count of pagetriage_page redirects
null
SELECT COUNT(*) FROM pagetriage_page JOIN page ON page_id = ptrp_page_id WHERE page_is_redirect = 1
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "rev_timestamp", "page_title", "page_id"], "rowcount": 2}], "runningtime": "0.07"}
enwiki
NC
null
SELECT DISTINCT page_title FROM revision JOIN actor_revision ON actor_id = rev_actor JOIN page ON page_id = rev_page JOIN categorylinks ON cl_from = page_id WHERE rev_parent_id = 0 AND cl_to LIKE "Wikipedia naming conventions" ORDER BY page_title
{"resultsets": [{"headers": ["page_title"], "rowcount": 359}], "runningtime": "0.55"}
enwiki_p
See if T238328 is still happening
See if https://phabricator.wikimedia.org/T238328 is still happening by checking some recent logs.
SELECT comment_text FROM comment WHERE comment_text LIKE "% (afd)" ORDER BY comment_id DESC LIMIT 5000
{"resultsets": [{"headers": ["Longest ns0 page title"], "rowcount": 1}, {"headers": ["Longest article title"], "rowcount": 1}, {"headers": ["Longest one-word title"], "rowcount": 1}], "runningtime": "11.06"}
enwiki
See if T238328 is still happening (5000 most recent edits)
Edit summaries ending in " (afd)" among the 5000 most recent edits. For [[WP:RAQ#Scan 5000 most recent comments for some text]] circa 23 July 2022.
SELECT comment_text FROM (SELECT comment_text FROM revision JOIN comment_revision ON rev_comment_id = comment_id ORDER BY rev_timestamp DESC LIMIT 5000) sq WHERE comment_text LIKE "% (afd)";
{"resultsets": [{"headers": ["Longest ns0 page title", "Length"], "rowcount": 1}, {"headers": ["Longest article title", "Length"], "rowcount": 1}, {"headers": ["Longest one-word title", "Length"], "rowcount": 1}], "runningtime": "12.70"}
enwiki
See if T238328 is still happening (100 most recent matches)
The 100 most recent edit summaries ending in " (afd)", and their timestamps. For [[WP:RAQ#Scan 5000 most recent comments for some text]] circa 23 July 2022.
SELECT rev_timestamp, comment_text FROM revision JOIN comment_revision ON comment_id = rev_comment_id WHERE comment_text LIKE '% (afd)' ORDER BY rev_timestamp DESC LIMIT 100;
{"resultsets": [{"headers": ["page_namespace", "COUNT(*)"], "rowcount": 3}], "runningtime": "0.90"}
enwiki
Oldest AfD revision
null
# Adapted from "replicating Xtools stuff in a normal query", 29 Dec 2021. SELECT rev_timestamp, page_title #SELECT COUNT(*) AS revisions, COUNT(case rev_minor_edit when 1 then 1 else null end) AS minor_edits, #COUNT(DISTINCT rev_actor) AS editors, MIN(rev_timestamp) AS first_timestamp, #MIN(rev_id) AS first_rev, MAX(re...
{"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": 817}], "runningtime": "6.43"}
enwiki_p
Oldest VfD revision
null
# Adapted from "replicating Xtools stuff in a normal query", 29 Dec 2021. SELECT rev_timestamp, page_title #SELECT COUNT(*) AS revisions, COUNT(case rev_minor_edit when 1 then 1 else null end) AS minor_edits, #COUNT(DISTINCT rev_actor) AS editors, MIN(rev_timestamp) AS first_timestamp, #MIN(rev_id) AS first_rev, MAX(re...
{"resultsets": [{"headers": ["page_title"], "rowcount": 535}], "runningtime": "0.80"}
enwiki_p
Most prolific tnwiki editors of all time
null
select rev_actor, count(rev_id) as edit_count, actor_name from revision, actor where rev_actor = actor_id group by rev_actor order by edit_count desc limit 200;
{"resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 1}], "runningtime": "0.06"}
tnwiki
Ukrainian Independence Month 2021 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": ["pl_title", "COUNT(*)"], "rowcount": 31767}], "runningtime": "34.56"}
ukwiki_p
Commons files uploaded by enwiki vandals
null
SELECT img_name FROM image INNER JOIN actor ON image.img_actor = actor.actor_id WHERE actor.actor_name IN ("Mikitheboss")
{"resultsets": [{"headers": ["page_title", "comment_text"], "rowcount": 63535}], "runningtime": "124.43"}
commonswiki_p
قائمة المستخدمين الأكثر إنشاءً للمقالات في يوم ويكيبيديا العربية السادس عشر
قائمة المستخدمين الأكثر إنشاءً للمقالات في يوم ويكيبيديا العربية السادس عشر.
use arwiki_p; SELECT concat('[[مستخدم:',actor_name,'|',actor_name,']]') AS "المستخدم", COUNT(*) AS "عدد المقالات" FROM revision r INNER JOIN actor ON r.rev_actor = actor.actor_id INNER JOIN page p on r.rev_page = p.page_id WHERE p.page_namespace =0 and p.page_is_redirect =0 and r.rev_timestamp between 20220723000000 an...
{"resultsets": [{"headers": ["page_title", "page_touched"], "rowcount": 1926}], "runningtime": "44.29"}
arwiki_p
قائمة المستخدمين الأكثر مراجعةً للمقالات في يوم ويكيبيديا العربية الثامن عشر
null
use arwiki_p; select CONCAT('[[مستخدم:',actor_name,'|',actor_name,']]'), COUNT(*) from logging INNER JOIN actor ON logging.log_actor = actor.actor_id LEFT JOIN page ON log_title = page_title where log_timestamp between 20220723000000 and 20220724000000 and log_action = "approve-i" and log_namespace = 0 and page_is_redi...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 1}], "runningtime": "0.05"}
arwiki_p
قائمة المستخدمين الأكثر مراجعةً للتعديلات في يوم ويكيبيديا العربية الثامن عشر
null
use arwiki_p; select CONCAT('[[مستخدم:',actor_name,'|',actor_name,']]'), COUNT(*) from logging INNER JOIN actor ON logging.log_actor = actor.actor_id LEFT JOIN page ON log_title = page_title where log_timestamp between 20220723000000 and 20220724000000 and log_action = "approve" and log_namespace = 0 and page_is_redire...
{"resultsets": [{"headers": ["oresm_id", "oresm_name", "oresm_version", "oresm_is_current", "oresc_id", "oresc_rev", "oresc_model", "oresc_class", "oresc_probability", "oresc_is_predicted"], "rowcount": 10}], "runningtime": "0.07"}
arwiki_p
Number of edits on Middle French lexemes per user
null
select actor_name, count(*) c from revision_userindex join page on rev_page=page_id join actor_revision on rev_actor=actor_id JOIN pagelinks ON page.page_id=pagelinks.pl_from where page_namespace = 146 AND pagelinks.pl_title="Q1473289" # French group by actor_user order by c desc;
{"connection_id": 12279890}
wikidatawiki_p
Number of edits on Old French lexemes per user
null
select actor_name, count(*) c from revision_userindex join page on rev_page=page_id join actor_revision on rev_actor=actor_id JOIN pagelinks ON page.page_id=pagelinks.pl_from where page_namespace = 146 AND pagelinks.pl_title="Q35222" # Old French group by actor_user order by c desc;
{"connection_id": 12279934}
wikidatawiki_p
Vandalismebestrijding, IP-patrolling nlwiki
192 ongemarkeerd / ongecontroleerd, meeste edits van een (1) IP-adres (113x) 2001:1C03:3D07:B700:155D:63AC:BFAA:A37E 25 juli 2022, 00:45 (CEST)
# anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION SELECT 'total...
{"resultsets": [{"headers": ["page_title", "rd_title", "rd_fragment", "in-links"], "rowcount": 201}], "runningtime": "1.41"}
nlwiki_p
Capture QuickStatement external links of {{Object Location}} templates
null
use commonswiki_p; SELECT concat("File:",page_title) as pagename, REPLACE(el_to,'https://reasonator.toolforge.org/test/?q=','wd:') AS QID FROM externallinks JOIN page ON page_id = el_from JOIN categorylinks ON cl_from = page_id WHERE page_namespace in (6,14) and #14 cl_to='Photographs_of_framed_paintings_by_User:...
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 105}], "runningtime": "24.68"}
commonswiki_p
Flagged revs bug T313700 example cases
null
select * from ( select IF (r3.rev_len>r2.rev_len, r3.rev_len - r2.rev_len, r2.rev_len - r3.rev_len) as rev_len_diff, page_title, r2.rev_timestamp as unreviewed_edit_timestamp, r2.rev_user_text as ip_username, r1.rev_timestamp as autoreviewed_rev_timestamp, r1.rev_user_text as autoreviewed_...
{"resultsets": [{"headers": ["page_title", "actor_name", "rev_timestamp"], "rowcount": 1641}], "runningtime": "3.46"}
fiwiki
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ
১৫-০৫-২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে wikitable ক্লিক করুন।
SET @counter:=0; SELECT CONCAT("{{subst:formatnum:",@counter:=@counter+1,"}}") AS নং, CONCAT("{{u|",user_name,"}}") AS ব্যবহারকারী_নাম, CONCAT("{{subst:formatnum:",user_editcount,"}}") AS সম্পাদনার_সংখ্যা FROM user WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot') AND user_name NOT RLIKE "...
{"resultsets": [{"headers": ["page_title"], "rowcount": 52}], "runningtime": "0.22"}
bnwiki
list of articles w/o redirections starting by letter
returning the titles of all pages in all subcategories of a catogry, in depth=4
select page_title as title, page_len as size from page where page_namespace=0 and page_is_redirect=0 and page_id < 100000
{"resultsets": [{"headers": ["page_title"], "rowcount": 49}], "runningtime": "0.13"}
hewiki
Void
null
show tables;
{"resultsets": [{"headers": ["ns", "page_title"], "rowcount": 0}, {"headers": ["fns", "ftitle", "tns", "ttitle", "exists"], "rowcount": 0}], "runningtime": "74.10"}
centralauth_p
mobile upload metadata (from recentchanges, depending on change tag)
null
SELECT rc_id,rc_timestamp,rc_actor,rc_namespace,rc_title,rc_cur_id,rc_logid,rc_params,img_metadata FROM recentchanges JOIN change_tag ON rc_id = ct_rc_id LEFT JOIN image ON rc_title = img_name WHERE ct_tag_id = 22 AND rc_log_type = "upload" LIMIT 10000;
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 4}], "runningtime": "4.54"}
commonswiki
List of links to geoportail in fr.wikipedia.org
null
USE frwiki_p; SELECT page_id, page_title, el_to FROM externallinks, page WHERE el_from = page_id AND page_namespace = 0 AND el_to LIKE '%https://www.geoportail.gouv.fr%'
{"connection_id": 7446371}
frwiki_p
list of articles w/o redirections starting by letter
returning the titles of all pages in all subcategories of a catogry, in depth=4
select page_title as title, page_len as size from page where page_namespace=0 and page_is_redirect=0 and page_id >= 2100000 and page_id < 2500000
{"resultsets": [{"headers": ["page_title"], "rowcount": 99529}], "runningtime": "113.15"}
hewiki
Query on a redirect with a CSD banner
see https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Redirect_articles_with_CSD_banners_are_not_flagged_as_redirects_in_Quarry
select * from page left join redirect on page_id = rd_from join categorylinks on cl_from = page_id where cl_to = "Candidates_for_speedy_deletion" and page_namespace = 0 limit 10
{"resultsets": [{"headers": ["page_namespace", "page_title", "SUBSTRING(page_title,1,CHAR_LENGTH(page_title)-7)"], "rowcount": 2}], "runningtime": "1.19"}
enwiki
Articles that are soft redirects
null
select distinct page_title from page join categorylinks on cl_from = page_id, category as catdepth1, category as catdepth2 where page_namespace = 0 and page_is_redirect = 0 and catdepth1.cat_title = "Redirect_templates" and catdepth2 in (select cat_title from category c1 where c1.cat_title = catdepth1.cat_title) and (...
{"resultsets": [{"headers": ["page_title"], "rowcount": 6}], "runningtime": "0.99"}
enwiki
மஞ்சள்-கனிச்சாறு1-Rathai_palanivelan
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மேம்படுத்த_வேண்டியவை%" or comment_text like "%Problemat...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 473}], "runningtime": "0.66"}
tawikisource
ஊதா-கனிச்சாறு8-Rathai_palanivelan
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SET @w:=0; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%சிக்கலானவை%" or comment_text like "%Problematic%") #(com...
{"connection_id": 13232769}
tawikisource
Sockpuppet investigation
null
SELECT CONCAT("[[Special:Diff/", revision.rev_id, "|", REPLACE(page.page_title, '_', ' '), "]]") as 版本差异, actor.actor_name as 用户名, revision.rev_timestamp as 时间戳 FROM revision INNER JOIN actor ON revision.rev_actor = actor.actor_id INNER JOIN page ON page.page_id = revision.rev_page WHERE actor.actor_name IN ('Q28', '角色...
{"resultsets": [{"headers": ["user", "cnt"], "rowcount": 11}], "runningtime": "0.17"}
zhwiki_p
Count fixes in Wikipedia:Correct typos in one click
null
SELECT COUNT(*) FROM revision LEFT JOIN comment on rev_comment_id=comment_id WHERE rev_page in (60533818,62053073,61925999,61926002,61926007,61926012,61926014,62002342,62002343,62002345,62002348,62002349,61925967,62057349,61925968,61925974,61925980,61925985,61925989,61925991,61925997) AND comment_text LIKE "% fixed!";
{"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": 817}], "runningtime": "7.24"}
enwiki_p
zhwiki: List unpatrolled new page
null
SELECT rc_timestamp 时间戳, rc_this_oldid 版本号, CONCAT("[[", rc_title, "]]") 条目名, CONCAT("{{User|", actor_name, "}}") 用户名 FROM recentchanges LEFT JOIN actor ON rc_actor = actor_id WHERE rc_type = 1 AND rc_namespace = 0 AND rc_patrolled = 0 AND rc_timestamp > 20220627000000 AND rc_timestamp < 20220628000000
{"connection_id": 13445290}
zhwiki
Nirmaljoshi dam stub status
null
SELECT COUNT(*) articles, SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations, SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent, SUM(page_is_redirect) as redirectCurrent, TRUNCATE(rev_timestamp,-8)/100000000 as month FROM ( SELECT...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 1}], "runningtime": "0.07"}
enwiki_p
nlwiki MMSI codes for import to Wikidata
null
SELECT cl_sortkey_prefix, page_title, el_to, pp_value FROM categorylinks INNER JOIN page ON cl_from=page_id INNER JOIN externallinks ON cl_from=el_from INNER JOIN page_props ON cl_from=pp_page AND pp_propname='wikibase_item' WHERE cl_to='Wikipedia:MMSI-code_niet_op_Wikidata' AND el_to REGEXP '^(https?:)?//(w...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "actor_id", "actor_user", "actor_name"], "rowcount": 0}], "runningtime": "0.05"}
nlwiki
অসমীয়া ৱিকিপিডিয়াত প্ৰবন্ধ সৃষ্টি কৰা সদস্যসকল
null
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 WHERE rev_p...
{"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": 5}], "runningtime": "220.49"}
aswiki
অসমীয়া ৱিকিপিডিয়াত প্ৰবন্ধ সৃষ্টি কৰা সদস্যসকল
null
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 WHERE rev_p...
{"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": 4}], "runningtime": "209.66"}
aswiki
Number of categories on English Wikipedia
null
USE enwiki_p; SELECT COUNT(cat_id) FROM category
{"resultsets": [{"headers": ["user_name", "d"], "rowcount": 28}], "runningtime": "0.33"}
enwiki_p
WSta அயோத்திதாசர்சிந்தனைகள்2ஞான
This Query will provide the list of users who did edit on given book with its all pages.
Use tawikisource_p; SET @w:=0; select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book WHERE rev_page IN (select p...
{"connection_id": 14045994}
tawikisource_p
WSta பரிசு,_வெள்ளியங்காட்டான்
This Query will provide the list of users who did edit on given book with its all pages.
Use tawikisource_p; SET @w:=0; select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book WHERE rev_page IN (select p...
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.07"}
tawikisource_p
Articles that have no assigned Wikiproject
null
select pageA.page_title from page pageA where pageA.page_namespace = 0 # Filter out hard redirects and pageA.page_is_redirect = 0 # flag the page if it doesn't have a talk page, but only if the main article page is missing WikiProject indicators and not exists( # Filter out talk pages which have anything matching W...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "actor_id", "actor_user", "actor_name"], "rowcount": 1}], "runningtime": "0.06"}
enwiki_p
My blocks of users w/ ≥100 edits
null
SELECT user_name, user_editcount, log_timestamp FROM logging LEFT JOIN user ON user_name = REPLACE(log_title, "_", " ") INNER JOIN actor ON actor_user = user_id WHERE log_timestamp > 20220501000000 AND log_type = "block" AND log_action = "block" AND log_actor = 785255 -- Tamzin AND user_editcount >= 100 ORD...
{"resultsets": [{"headers": ["page_title"], "rowcount": 1145}], "runningtime": "1.34"}
enwiki_p
Indefs of users on first page of ListUsers (chron) [enwiki]
null
SELECT user_name, user_id, log_timestamp, comment_text FROM logging LEFT JOIN user ON user_name = REPLACE(log_title, "_", " ") LEFT JOIN comment ON comment_id = log_comment_id INNER JOIN actor ON actor_user = user_id WHERE log_type = "block" AND log_action = "block" AND user_id <= 51 -- Yes, it ends at 51. ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 223}], "runningtime": "0.36"}
enwiki_p
List of links to lefigaro.fr in fr.wikipedia.org
null
USE frwiki_p; SELECT page_id, page_title, el_to FROM externallinks, page WHERE el_from = page_id AND page_namespace = 0 AND el_to LIKE '%lefigaro.fr/%'
{"resultsets": [{"headers": ["page_title"], "rowcount": 3414}], "runningtime": "139.46"}
frwiki_p
NPPs by all time # of reviews
null
SELECT COUNT(*) AS review_count, user_name FROM logging_userindex JOIN actor_logging ON actor_id = log_actor JOIN user ON actor_user = user_id WHERE log_type = 'pagetriage-curation' AND log_action = 'reviewed' GROUP BY log_actor ORDER BY review_count DESC, user_name ASC
{"resultsets": [{"headers": ["ll_count", "title_en", "title_cs", "title_de", "title_pl", "title_hu", "wb_item"], "rowcount": 4800}], "runningtime": "113.29"}
enwiki
List of current enwiki NPPs
null
SELECT user_name, ug_group FROM user JOIN user_groups ON ug_user = user_id WHERE ug_group = 'patroller' ORDER BY user_name ASC;
{"resultsets": [{"headers": ["ll_count", "title_en", "title_cs", "title_de", "title_pl", "title_hu", "wb_item"], "rowcount": 6130}], "runningtime": "118.40"}
enwiki
NPPs who have never reviewed a page
null
SELECT user_name FROM user JOIN user_groups ON ug_user = user_id WHERE ug_group = 'patroller' AND user_name NOT IN ( SELECT user_name FROM logging_userindex JOIN actor_logging ON actor_id = log_actor JOIN user ON actor_user = user_id WHERE log_type = 'pagetriage-curation' AND lo...
{"resultsets": [{"headers": ["ll_count", "title_en", "title_cs", "title_de", "title_pl", "title_hu", "wb_item"], "rowcount": 8720}], "runningtime": "108.72"}
enwiki
Indefs of admins on enwiki
Defined by adminship at time of query, therefore with false positives on pre-adminship blocks (e.g. me) and false negatives on post-block desysops (e.g. Od Mishehu).
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": ["page_title", "cl_to"], "rowcount": 10}], "runningtime": "232.60"}
enwiki_p
Lugnuts article restrictions
Mainspace edits by Lugnuts at or after 2022-07-01 00:00:00 UTC which are either new pages or to pages created by someone else. For [[WT:Arbitration/Requests/Case/Conduct in deletion-related editing/Proposed decision#Comments by Cryptic]] circa 2022 July 31.
SELECT CONCAT('[[Special:Diff/', revedit.rev_id, ']]') AS diff, DATE_FORMAT(revedit.rev_timestamp, '%Y-%m-%d %H:%i:%s') AS timestamp, CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') AS pagename, actcreator.actor_name AS creator, CAST(revedit.rev_len AS INT) - CAST(COALESCE(revparent.rev_le...
{"resultsets": [{"headers": ["editcount"], "rowcount": 1}], "runningtime": "0.10"}
enwiki_p
WikiProject Computational Biology article interlinks
null
SELECT DISTINCT article.page_id, article.page_title FROM page talk INNER JOIN page article ON talk.page_title = article.page_title INNER JOIN categorylinks ON cl_from = talk.page_id WHERE talk.page_namespace = 1 AND article.page_namespace = 0 AND cl_to IN ("Top-importance_Computational_Biology_articles", ...
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 51346}], "runningtime": "53.81"}
enwiki_p
HTTPS Olympedia count
null
SELECT COUNT(*) FROM externallinks JOIN page ON page_id = el_from WHERE page_namespace = 0 AND el_index LIKE 'https://org.olympedia%'
{"resultsets": [{"headers": ["CONCAT('* [[Portal:', page_title, ']]')"], "rowcount": 21643}], "runningtime": "22.59"}
enwiki_p
HTTP Olympedia count
null
SELECT COUNT(*) FROM externallinks JOIN page ON page_id = el_from WHERE page_namespace = 0 AND el_index LIKE 'http://org.olympedia%'
{"resultsets": [{"headers": ["CONCAT('* [[Portal:', page_title, ']]')"], "rowcount": 9321}], "runningtime": "10.02"}
enwiki_p
Files on commons with diff name in use (te.wiki)
null
#USE viwiki_p; SELECT DISTINCT CONCAT('# [[:File:', p.page_title, ']]') FROM page p INNER JOIN categorylinks c ON p.page_id = c.cl_from INNER JOIN (imagelinks i LEFT JOIN redirect r ON i.il_from = r.rd_from) ON p.page_title = i.il_to WHERE c.cl_to = "All_Wikipedia_files_with_a_different_name_on_Wikimedia_Commons" #"All...
{"resultsets": [{"headers": ["up_value", "COUNT(*)"], "rowcount": 2}], "runningtime": "55.57"}
tewiki_p
Non-redirect talk pages of redirect pages
null
select page_subject.page_namespace, page_talk.page_namespace, page_talk.page_title from page page_subject inner join page page_talk on page_talk.page_namespace = page_subject.page_namespace + 1 and page_talk.page_title = page_subject.page_title where 1 and page_subject.page_namespace % 2 = 0 and page_talk.page_namesp...
{"resultsets": [{"headers": ["page_title"], "rowcount": 150000}], "runningtime": "194.47"}
enwiki_p
BlackJack cricketer stubs categories and external links
null
SELECT DISTINCT page_title, GROUP_CONCAT(CONCAT('#', cl_to, '\n')), GROUP_CONCAT(CONCAT('#[', el_to, ' ', el_to, ']\n')) FROM revision JOIN actor_revision ON actor_id = rev_actor JOIN page ON page_id = rev_page JOIN categorylinks ON cl_from = page_id JOIN externallinks on el_from = page_id WHERE rev_parent_id = 0 AND...
{"connection_id": 9304929}
enwiki_p
First words of non-redirect article titles with more than 50 occurrances
null
SELECT COUNT(*) AS total, SUBSTRING_INDEX(page_title, "_", 1) AS first_word FROM page WHERE page_is_redirect = 0 AND page_namespace = 0 GROUP BY first_word HAVING total >= 50;
{"resultsets": [{"headers": ["page_title", "page_len", "cat_pages", "rev_timestamp", "actor_name"], "rowcount": 39}], "runningtime": "3.18"}
enwiki_p
Given names lacking an article
This query attempts to list given names lacking an article. It's not foolproof but should be useful. The Chinese bit filters out people such as Xu Chen, whose first name has no given-name article because it is a surname. (Sadly, it also filters out names such as Lee which are both a given name and a Chinese surname....
SELECT COUNT(DISTINCT Pb.page_id) AS people, SUBSTRING_INDEX(Pb.page_title, "_", 1) AS given_name FROM categorylinks Cb JOIN page Pb ON Pb.page_id = Cb.cl_from AND Pb.page_is_redirect = 0 AND Pb.page_namespace = 0 WHERE Cb.cl_type = 'page' AND Cb.cl_to <= "9999" AND Cb.cl_to REGEXP "^\\d+_births$" GROUP BY given_name H...
{"resultsets": [{"headers": ["img_major_mime", "img_minor_mime", "img_name"], "rowcount": 1}], "runningtime": "2.42"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["pagename", "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": "83.28"}
enwiki_p
Speed test
null
WITH Olympedia AS (SELECT el_from, page_title FROM externallinks JOIN page ON page_id = el_from WHERE page_namespace = 0 AND (substr(el_index,0,21) = 'https://org.olympedia' OR substr(el_index,0,20) = 'http://org.olympedia') GROUP BY el_from) SELECT Olympedia.page_title, actor_name, rev_timestamp...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 1}], "runningtime": "0.07"}
enwiki_p
SVG Translate, counts of files uploaded to Commons by month
null
USE commonswiki_p; SELECT YEAR(rev_timestamp), MONTH(rev_timestamp), COUNT(*) FROM change_tag_def JOIN change_tag ON ( ctd_id = ct_tag_id ) JOIN revision ON ( ct_rev_id = rev_id ) WHERE ctd_name = 'OAuth CID: 1732' AND rev_timestamp > DATE_SUB( CURRENT_DATE, INTERVAL 1 YEAR ) GROUP BY YEAR(rev_timestamp), MONTH(rev...
{"resultsets": [{"headers": ["pagename", "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": "103.69"}
commonswiki_p
Existing revisions affected by 折毛
null
SELECT CONCAT("[[Special:Diff/", revision.rev_id, "|", REPLACE(page.page_title, '_', ' '), "]]") as 版本差异, actor.actor_name as 用户名, revision.rev_timestamp as 时间戳 FROM revision INNER JOIN actor ON revision.rev_actor = actor.actor_id INNER JOIN page ON page.page_id = revision.rev_page WHERE actor.actor_name IN ('Mcpan1995...
{"resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 22}], "runningtime": "17.38"}
zhwiki_p
Social network of editors on cswiki (2022-08)
null
SELECT log.log_title as gets_thx, log.log_user_text as gives_thx, COUNT(*) as cnt, min(log.log_id) as log_id_min FROM logging_compat as log, ( SELECT log_title as user, COUNT(*) as cnt_gets FROM logging WHERE log_type="thanks" AND log_id > 1200000 GROUP BY log_title ) as gets, /*those who were thanked by someon...
{"resultsets": [{"headers": ["YEAR(rf.rev_timestamp)", "COUNT(*)"], "rowcount": 20}, {"headers": ["YEAR(rf.rev_timestamp)", "COUNT(*)"], "rowcount": 18}], "runningtime": "44.10"}
cswiki_p
رده:صامسون
null
select concat ('*[[:رده:',page_title,']]>[[:رده:',REPLACE (page_title,"سامسون","صامسون"),']]') from page where page_namespace = 14 and page_title like '%سامسون%' and page_is_redirect = 0
{"resultsets": [{"headers": ["page_id", "title", "edits", "users", "score"], "rowcount": 1000}], "runningtime": "3.41"}
fawiki_p
صامسون
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%سامسون%' and page_title not like '%سامسونگ%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["page_title"], "rowcount": 26672}], "runningtime": "88.53"}
fawiki_p
Einwegsocken identifizieren
Siehe https://de.wikipedia.org/wiki/Benutzer_Diskussion:Wurgl#Single_Purpose_Accounts
SET @MAX_NEUE_ARTIKEL = 3; # Maximale Anzahl neue Artikel SET @MAX_AKTIVE_TAGE_PROZENT = 10; # Prozentanteil aktive Tage zwischem 1. und letzten Edit im ANR SET @MIN_AKTIVE_TAGE = 5; # Mindestanzahl aktiver Tage SET @MIN_EDIT_COUNT = 5; # Mindestanzahl an Edits SET @MIN_KB_GESCHRIEBEN = 3; # Mindestmenge an Text im ANR...
{"resultsets": [{"headers": ["year", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 2}], "runningtime": "0.24"}
dewiki_p
Antal skapade artiklar
Antal skapade artiklar sedan angivet timestamp (ändra page_is_redirect till = 1 för omdirigeringar)
SELECT count(*) FROM revision r, page p WHERE rev_page = page_id AND rev_parent_id = 0 AND rev_timestamp >='20210802172200' AND page_namespace = 0 AND page_is_redirect = 0
{"resultsets": [{"headers": ["pagename", "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": "124.32"}
svwiki
nlwiki Red links with parenthesis without a disambiguation page
takes ~5 min
SELECT * FROM pagelinks WHERE pl_namespace=0 AND pl_from_namespace=0 AND pl_title REGEXP '_\\(.*\\)$' AND pl_title NOT REGEXP '_\\((doorverwijspagina|hoofdbetekenis)\\)$' AND NOT EXISTS (SELECT * FROM page WHERE page_namespace=pl_namespace AND page_title=pl_title) AND NOT EXISTS (SELECT * FROM page WHERE page_namespa...
{"resultsets": [{"headers": ["editor", "accepts", "recent_edits"], "rowcount": 286}], "runningtime": "13.07"}
nlwiki
سینان
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%سینان%' and page_title not like '%سامسونگ%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["total", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 1}], "runningtime": "19.11"}
fawiki_p
گلبین
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%گولبین%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 104}], "runningtime": "8.99"}
fawiki_p
گولان
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%گولان%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 43}], "runningtime": "5.16"}
fawiki_p
گولان
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%گولان%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["reviews", "rc_title", "accepted", "accept %", "declined", "decline %"], "rowcount": 1491}], "runningtime": "2.37"}
fawiki_p
گولان
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%گولان%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 0}, {"headers": ["cat"], "rowcount": 0}], "runningtime": "2.85"}
fawiki_p
گولان
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%گولان%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["cat_title", "cat_pages", "cat_subcats"], "rowcount": 0}], "runningtime": "0.05"}
fawiki_p
جیوان
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%جیوان%' and page_title not like '%جیوانی%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 707}], "runningtime": "198.99"}
fawiki_p
نیهال
null
select concat ('*[[',page_title,']]') from page where page_namespace = 0 and page_title like '%نیهال%' AND page_is_redirect = 0;
{"resultsets": [{"headers": ["rc_patrolled", "count"], "rowcount": 4}, {"headers": ["user", "unpatrolled"], "rowcount": 15}, {"headers": ["day", "unpatrolled", "manually patrolled", "autopatrolled", "total"], "rowcount": 31}, {"headers": ["rc_namespace", "unpatrolled"], "rowcount": 4}, {"headers": ["rc_namespace", "rc_...
fawiki_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...
{"resultsets": [{"headers": ["page_title"], "rowcount": 41}], "runningtime": "0.71"}
bnwiki
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ
১৫-০৫-২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে wikitable ক্লিক করুন।
SET @counter:=0; SELECT CONCAT("{{subst:formatnum:",@counter:=@counter+1,"}}") AS নং, CONCAT("{{u|",user_name,"}}") AS ব্যবহারকারী_নাম, CONCAT("{{subst:formatnum:",user_editcount,"}}") AS সম্পাদনার_সংখ্যা FROM user WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot') AND user_name NOT RLIKE "...
{"connection_id": 9202850}
bnwiki
Oldest last-edited pages
Pages with the oldest last-edited timestamp, excluding disambiguation and redirects.
SELECT page.page_namespace AS namespace, revision.rev_page AS page, page.page_title AS title, MAX(revision.rev_timestamp) AS latest_edit FROM page LEFT JOIN revision ON (revision.rev_page = page.page_id) WHERE page.page_namespace = 0 -- Chỉ tính không gian chính AND page.page_is_redirect = 0 -- Không tính tran...
{"resultsets": [{"headers": ["el_to", "page_title"], "rowcount": 11}], "runningtime": "20.92"}
enwiki
wikt: pages in category tree w/0 incoming links
Pages in the main namespace, with no incoming links whatsoever (from any namespace), that are in either [[Category:Non-lemma forms by language]] or one of its descendant subcategories. max_recursive_iterations=6 is enough for the entire tree, totaling 3625 categories. See query 66402 for a version that shows only ent...
SET @basecat='Non-lemma_forms_by_language'; SET max_recursive_iterations=6; WITH RECURSIVE deepcat AS ( SELECT CAST(@basecat AS VARCHAR(255)) AS page_title, CAST('' AS VARCHAR(255)) AS cl_to UNION SELECT p2.page_title, cl2.cl_to FROM categorylinks AS cl2 JOIN page AS p2 ON p2.page_id = cl...
{"resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 107}], "runningtime": "0.18"}
enwiktionary_p
Vandalismebestrijding nlwiki
IP-controle, 3 augustus - 145 open
# anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION SELECT 'total...
{"resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 3716}], "runningtime": "4.14"}
nlwiki_p
Articles missing Navboxes
Articles which are linked to from a navbox template, but do not transclude said template. Generates some false positives, such as Coord/speedtest, which I haven't found a workaround for.
# select page titles and template titles SELECT page_title AS "Page Name", (SELECT page_title FROM page WHERE page_id = pl_from) AS "Nav Template" FROM page JOIN pagelinks ON pl_title = page_title # with links incoming from templatespace WHERE pl_from_namespace = 10 # and is in article space AND page_namespace = 0 # an...
{"resultsets": [{"headers": ["page_title"], "rowcount": 353}], "runningtime": "0.46"}
enwiki
wikt: pages in category tree w/0 incoming mainspace links
Pages in the main namespace, with no incoming links from the main namespace, that are in either [[Category:Non-lemma forms by language]] or one of its descendant subcategories. max_recursive_iterations=6 is enough for the entire tree, totaling 3625 categories. See query 66388 for a version that shows entries with no ...
SET @basecat='Non-lemma_forms_by_language'; SET max_recursive_iterations=6; WITH RECURSIVE deepcat (subcat) AS ( SELECT @basecat UNION SELECT page_title FROM categorylinks JOIN page ON page_id = cl_from AND page_namespace = 14 JOIN deepcat ON cl_to = subcat ) SELECT page_title, cl_to FROM page JOIN categ...
{"connection_id": 16086018}
enwiktionary_p
שרי האלפים שרי המאות, בדיקה של יגאל וביקורת
null
select user_name, count(page_title) from user join revision_userindex join page join actor on user_id = actor_user and rev_page = page_id and rev_actor = actor_id where page_namespace = 0 and not page_is_redirect and rev_parent_id = 0 and rev_deleted = 0 group by user_name having count(page_title) >= 50 order by count(...
{"resultsets": [{"headers": ["url", "pagename", "page_id"], "rowcount": 100}], "runningtime": "24.74"}
hewiki_p
templatelinks normalization progress commonswiki
https://phabricator.wikimedia.org/T299424
set statement max_statement_time = 5 for select min(tl_from), max(tl_from) from templatelinks where tl_target_id is null;
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 4}], "runningtime": "238.58"}
commonswiki_p
Comment search recent (rd)
null
SET STATEMENT max_statement_time = 600 FOR SELECT DISTINCT actor_name, rc_this_oldid, comment_text FROM recentchanges_userindex AS recentchanges INNER JOIN comment_recentchanges AS comment ON recentchanges.rc_comment_id = comment.comment_id INNER JOIN actor_recentchanges AS actor ON recentchanges.rc_actor =...
{"resultsets": [{"headers": ["ID", "IP", "Permite editar registrado", "Permite criar conta", "Expira em", "P\u00e1gina ou dom\u00ednio?", "Alvo de bloqueio"], "rowcount": 670}], "runningtime": "0.90"}
enwiki_p
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
USE bnwikibooks_p; SELECT CONCAT("{{U|",actor_name,"}}") AS ব্যবহারকারী_নাম, COUNT(rev_id) AS মোট_নিবন্ধ FROM actor INNER JOIN revision ON revision.rev_actor = actor.actor_id JOIN page ON page.page_id = revision.rev_page WHERE page_is_redirect = 102 AND page_namespace = 102 AND rev_timestamp BETWEEN 20200702100000 AND ...
{"resultsets": [{"headers": ["url", "pagename", "page_id"], "rowcount": 1}], "runningtime": "43.61"}
bnwikibooks_p
List of links to la croix.com in fr.wikipedia.org
null
USE frwiki_p; SELECT page_id, page_title, el_to FROM externallinks, page WHERE el_from = page_id AND page_namespace = 0 AND el_to LIKE '%la-croix.com/%'
{"resultsets": [{"headers": ["user_name"], "rowcount": 16}], "runningtime": "13.76"}
frwiki_p
Most pending changes accepts (all time)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' GROUP BY log_actor ORDER BY manual_accept_count DESC LIMIT 1000
{"resultsets": [{"headers": ["url", "pagename", "page_id"], "rowcount": 1}], "runningtime": "51.64"}
enwiki
List of every enwiki administrator ever, detailed
null
# log_actor contains the actor_id of the person adding/removing the perms # log_title contains a string of the recipient's name (the person whose perms are getting tweaked) # only 52,655 non-automatic user rights changes. should be small enough to do slow stuff on like LIKE and RLIKE SELECT user_name AS promoter, log_...
{"resultsets": [{"headers": ["page_title", "rev_timestamp"], "rowcount": 3}], "runningtime": "1.00"}
enwiki
List of every enwiki administrator ever, simple
null
# log_actor contains the actor_id of the person adding/removing the perms # log_title contains a string of the recipient's name (the person whose perms are getting tweaked) # only 52,655 non-automatic user rights changes. should be small enough to do slow stuff on like LIKE and RLIKE # administrators promoted 2005 or e...
{"resultsets": [{"headers": ["page_id", "title", "edits", "users", "score"], "rowcount": 1000}], "runningtime": "3.47"}
enwiki
List of every enwiki administrator ever, based on meta logs
null
# log_actor contains the actor_id of the person adding/removing the perms # log_title contains a string of the recipient's name (the person whose perms are getting tweaked) # administrators promoted 2005 or earlier do not appear to be in the log. # there are two parameter formats: old format that looks like "rollbacker...
{"resultsets": [{"headers": ["main_title"], "rowcount": 1}], "runningtime": "4.60"}
metawiki