title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
All articles which are not redirects but have unnecessary zwnj
All articles which are not redirects but have unnecessary zwnj , to be debugged
SELECT page_id, UNHEX(REPLACE(HEX(rd_title),'E2808C5F', '5F')) as rd_title_f from page p join redirect ON rd_from=p.page_id # where page_title ='బిశ్వ_భూషణ్‌_హరిచందన్‌‌' where (HEX(page_title) LIKE '%E2808C5F%' OR HEX(page_title) LIKE '%E2808C') AND rd_namespace=0 AND p.page_namespace=0 ORDER BY p.pag...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.07"}
tewiki_p
Flyttar från användarnamnrymden till huvudnamnrymden
Listar flyttar från användarnamnrymden till huvudnamnrymden i mars 2022 med ursprung, mål, användare som flyttat, tidpunkt och storlek på sidan i byte.
SELECT CONCAT('Användare:', log_title) AS Från, page_title AS Till, actor_name AS Vem, log_timestamp AS När, page_len AS Storlek FROM logging LEFT JOIN page ON log_page=page_id LEFT JOIN actor on log_actor=actor_id WHERE log_type = 'move' AND log_namespace = 2 AND page_namespace = 0 AND log_timestamp > '20220300000000'...
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 300}], "runningtime": "3.90"}
svwiki
All pages with paid disclosure
null
SELECT page_title FROM page JOIN templatelinks ON tl_from = page_id WHERE tl_title = "Connected_contributor_(paid)"
{"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 5}, {"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 9}], "runningtime": "0.73"}
enwiki_p
redirects – X Singles and Doubles
null
select page_title from page where page_namespace=0 and page_is_redirect=1 and ((page_title like '%–$_%$_Singles' ESCAPE '$') or (page_title like '%–$_%$_Doubles' ESCAPE '$') )
{"resultsets": [{"headers": ["total", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 1}], "runningtime": "14.51"}
enwiki_p
redirects – MW Singles and Doubles
null
select page_title from page where page_namespace=0 and page_is_redirect=1 and ((page_title like '%–$_Men\'s$_Singles' ESCAPE '$') or (page_title like '%–$_Men\'s$_Doubles' ESCAPE '$') or (page_title like '%–$_Women\'s$_Singles' ESCAPE '$') or (page_title like '%–$_Women\'s$_Doubles' ESCAPE '$') or (page_title l...
{"connection_id": 33799008}
enwiki_p
Pagina's in een categorie die onder de categorie 'sport' valt
Recursive query to get all categories that somewhere in the Category:Sport tree.
WITH RECURSIVE Cat AS (SELECT page_title FROM page WHERE page_title = 'Sport' AND page_namespace = 14 UNION SELECT SubCat.page_title FROM page AS SubCat, categorylinks, Cat...
{"resultsets": [{"headers": ["page_title", "page_len", "page_namespace", "page_id"], "rowcount": 1000}], "runningtime": "1.40"}
nlwiki_p
All article titles with unnecessary zwnj which are redirects
All article titles with unnecessary zwnj
SELECT CONCAT("[[",REPLACE(page_title, '_', ' '),"]]") as pagename from page p # where page_title ='బిశ్వ_భూషణ్‌_హరిచందన్‌‌' where (HEX(page_title) LIKE '%E2808C5F%' OR HEX(page_title) LIKE '%E2808C') AND p.page_namespace=0 AND page_is_redirect !=0 LIMIT 5000
{"resultsets": [{"headers": ["rev_timestamp", "page_title"], "rowcount": 1000}], "runningtime": "23.36"}
tewiki_p
Change tags on recent wbcreateredirect edits
null
SELECT ctd_name, COUNT(*), rc_this_oldid FROM recentchanges JOIN comment_recentchanges ON rc_comment_id = comment_id JOIN change_tag ON ct_rc_id = rc_id JOIN change_tag_def ON ct_tag_id = ctd_id WHERE comment_text LIKE '/* wbcreateredirect%' AND rc_namespace IN (0, 120, 146) GROUP BY ctd_name;
{"resultsets": [{"headers": ["rev_timestamp", "page_title"], "rowcount": 1000}], "runningtime": "2.91"}
wikidatawiki_p
ORES: recent good edit
null
SELECT rc_this_oldid, user_name, rc_new_len - rc_old_len, user_registration, user_editcount FROM recentchanges LEFT JOIN actor ON rc_actor = actor_id LEFT JOIN user ON actor_user = user_id WHERE rc_timestamp < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 2 DAY), "%Y%m%d%H%I%S") AND rc_type = 0 AND rc_bot = 0 AND rc_...
{"resultsets": [{"headers": ["rev_timestamp", "page_title"], "rowcount": 1000}], "runningtime": "1.26"}
zhwiki_p
AfC review counts, last 7 days
** NOT including deleted articles **
select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / c...
{"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 5219}], "runningtime": "6.83"}
enwiki_p
Kategorie:Squashturnier mit Vorlage:Tennisturnier_Zeichenerklärung
Siehe https://de.wikipedia.org/w/index.php?title=Wikipedia:Bots/Anfragen&oldid=216549435#Ersetzung_Vorlage
WITH RECURSIVE Cat AS (SELECT page_title FROM page WHERE page_title = 'Squashturnier' AND page_namespace = 14 UNION SELECT SubCat.page_title FROM page AS SubCat, categorylin...
{"connection_id": 33836992}
dewiki_p
BE2
null
SELECT ipb_address, actor_name, ipb_timestamp, comment_text FROM ipblocks INNER JOIN actor ON ipblocks.ipb_by_actor = actor.actor_id INNER JOIN comment ON ipblocks.ipb_reason_id = comment.comment_id WHERE comment.comment_text REGEXP 'INTSF|Ineedtostopforgetting' ORDER B...
{"resultsets": [{"headers": ["page_title"], "rowcount": 14}], "runningtime": "42.88"}
enwiki_p
Global user information
null
select * from globaluser where gu_name = 'BDavis (WMF)';
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "0.11"}
centralauth_p
Local user information
null
select * from user where user_name = 'BDavis (WMF)';
{"resultsets": [{"headers": ["page_title"], "rowcount": 44}], "runningtime": "0.26"}
mediawikiwiki_p
sqwiki active reviewers
null
SELECT user_name, rev_timestamp AS 'Last edit', GROUP_CONCAT(ug1.ug_group) AS 'user_groups' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('reviewer', 'sysop') JOIN `actor` ON actor_user = user_id JOIN `revision_userindex` ON rev_id = (SELECT rev_id FROM revision_userindex ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "0.07"}
sqwiki_p
Links from Dresden pages to Disambiguation pages , de
null
SELECT pl_from, pl_title FROM page , categorylinks as cl1, categorylinks as cl2, pagelinks Where cl2.cl_to = 'Begriffsklärung' AND cl2.cl_from= page_id AND pl_title=page_title AND pl_from_namespace = 0 AND pl_namespace = 0 AND (cl1.cl_to like '%Dresden%' OR cl1.cl_to like '%Dresdner%') AND pl_titl...
{"resultsets": [{"headers": ["page_title", "pl_title"], "rowcount": 187}], "runningtime": "0.31"}
dewiki_p
Edit milestones
Shows when a user reaches a certain milestone.
WITH edit_dates AS ( SELECT DATE(rev_timestamp) AS date, COUNT(rev_id) AS edits FROM revision LEFT JOIN actor ON (revision.rev_actor = actor.actor_id) -- Điền tên người dùng đây WHERE actor.actor_name = "Chiristmas Patterson" -- Nếu muốn xem cột mốt cho cả Wikipedia thì xóa luôn lệnh này. GROUP BY dat...
{"connection_id": 161845350}
viwiki_p
Edit milestones
Shows when a user reaches a certain milestone.
WITH edit_dates AS ( SELECT DATE(rev_timestamp) AS date, COUNT(rev_id) AS edits FROM revision LEFT JOIN actor ON (revision.rev_actor = actor.actor_id) -- Điền tên người dùng đây WHERE actor.actor_name = "Nguyentrongphu" -- Nếu muốn xem cột mốt cho cả Wikipedia thì xóa luôn lệnh này. GROUP BY date OR...
{"resultsets": [{"headers": ["title_length", "size", "ns", "title"], "rowcount": 1305}], "runningtime": "45.64"}
viwiki_p
Edit milestones
Shows when a user reaches a certain milestone.
WITH edit_dates AS ( SELECT DATE(rev_timestamp) AS date, COUNT(rev_id) AS edits FROM revision LEFT JOIN actor ON (revision.rev_actor = actor.actor_id) -- Điền tên người dùng đây WHERE actor.actor_name = "Nguyentrongphu" -- Nếu muốn xem cột mốt cho cả Wikipedia thì xóa luôn lệnh này. GROUP BY date OR...
{"resultsets": [{"headers": ["title_length", "size", "ns", "title"], "rowcount": 64}], "runningtime": "22.47"}
viwiki_p
AfC review counts, last year
Credit to KylieTastic, who I forked this from so I could pull the latest data.
use enwiki_p; select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank, count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", ...
{"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 5}, {"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 9}], "runningtime": "1.85"}
enwiki
sqwiki active reviewers
null
SELECT user_name, rev_timestamp AS 'Last edit', GROUP_CONCAT(ug1.ug_group) AS 'user_groups' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('reviewer', 'sysop', 'bot') JOIN `actor` ON actor_user = user_id JOIN `revision_userindex` ON rev_id = (SELECT rev_id FROM revision_userindex...
{"resultsets": [{"headers": ["main_title"], "rowcount": 1}], "runningtime": "10.29"}
sqwiki_p
Vandalismebestrijding nlwiki
Vandalismebestrijding (IP-controle) 915 open, 16-03-2022 13:55 (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", "page_len"], "rowcount": 10000}], "runningtime": "99.71"}
nlwiki_p
WSC 2021-22 Improved
null
SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(article, 'Всього'), user_number, size_increase, users FROM ( SELECT CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') as article, COUNT(1) AS user_number, SUM(user_size_increase) as size_increase, ...
{"connection_id": 34257628}
ukwiki_p
Edit milestones
Shows when a user reaches a certain milestone.
WITH edit_dates AS ( SELECT DATE(rev_timestamp) AS date, COUNT(rev_id) AS edits FROM revision LEFT JOIN actor ON (revision.rev_actor = actor.actor_id) -- Điền tên người dùng đây WHERE actor.actor_name = "Chiristmas Patterson" -- Nếu muốn xem cột mốt cho cả Wikipedia thì xóa luôn lệnh này. GROUP BY dat...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 45}], "runningtime": "13.48"}
viwiki_p
(TOTAL) SDC edits by user and edit summary #WMSE-WLM-denmark
null
SELECT page_title, comment_text FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page LEFT JOIN comment_revision ON comment_id = r1.rev_comment_id LEFT JOIN revision r2 ON r1.rev_parent_id = r2.rev_id WHERE actor_name IN ('AliciaFagervingWMSE-bot') AND ...
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 1}], "runningtime": "24.90"}
commonswiki_p
(TOTAL) SDC edits by user and edit summary #WMSE-WLM-elsalvador
null
SELECT page_title, comment_text FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page LEFT JOIN comment_revision ON comment_id = r1.rev_comment_id LEFT JOIN revision r2 ON r1.rev_parent_id = r2.rev_id WHERE actor_name IN ('AliciaFagervingWMSE-bot') AND ...
{"resultsets": [{"headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"], "rowcount": 74}], "runningtime": "17.99"}
commonswiki_p
(TOTAL) SDC edits by user and edit summary #WMSE-WLE-latvia
null
SELECT page_title, comment_text FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page LEFT JOIN comment_revision ON comment_id = r1.rev_comment_id LEFT JOIN revision r2 ON r1.rev_parent_id = r2.rev_id WHERE actor_name IN ('AliciaFagervingWMSE-bot') AND ...
{"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": 0}], "runningtime": "0.06"}
commonswiki_p
rollback statistics, user wise
Example data for task https://phabricator.wikimedia.org/T215397 . Shows ratio of main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted.
select LEFT(rev_timestamp,6) as month, ct_tag_id, count(*) as rollback_revert_count from user,actor, revision_actor_temp, change_tag, page, revision where page_id = rev_page and page_namespace = 0 and user_id =actor_user and revactor_actor=actor_id and revactor_rev=re...
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 187}], "runningtime": "17.42"}
tewiki_p
Global file renames to review
null
SELECT CONCAT('[[',page1.page_title,']]') AS 'Cím' ,CONCAT(af.afl_user_text, IF(COUNT(DISTINCT actor.actor_name)>1, CONCAT(' + ', COUNT(DISTINCT actor.actor_name)-1,' további'), '') ) AS 'Szerkesztő' #,GROUP_CONCAT(DISTINCT actor.actor_name SEPARATOR ', ') ,CONCAT('[https://hu.wikipedia.org/w/index.php?...
{"resultsets": [{"headers": ["Usuario", "Total", "Total agradecer 2021 a fecha AAAA-MM-DDTHH:MM:SS"], "rowcount": 100}], "runningtime": "1.93"}
huwiki_p
U5 monitoring (short base page)
null
select replace(concat("[[:{{subst:ns:",log_namespace,"}}:",replace(log_title,"_"," "),"]]"),":{{subst:ns:0}}:",":") as 'Page', (select actor_name from actor_logging where actor_id=log_actor) as "Deleting admin", comment_text as "Edit summary", (select max(ar_len) from archive where ar_namespace=log_namespace and ar_tit...
{"resultsets": [{"headers": ["REPLACE(page_title,\".%.srt\",\"\")"], "rowcount": 1400}], "runningtime": "1.67"}
enwiki_p
Pages which exist with color but not colour, or vice versa
null
SELECT CONCAT(CASE page_namespace WHEN 4 THEN "Wikipedia:" ELSE "" END, page_title) as title FROM page WHERE page_title REGEXP "\bb[Cc]olou?r" AND page_namespace IN (0, 4) GROUP BY page_namespace, REPLACE(REPLACE(page_title,"colour","color"),"Colour","Color") HAVING COUNT(*)=1 ORDER BY page_namespace, title
{"resultsets": [{"headers": ["Usuario", "Total", "Total agradecer 2021 a fecha AAAA-MM-DDTHH:MM:SS"], "rowcount": 550}], "runningtime": "1.07"}
enwiki_p
1919年生
null
SELECT page_id, page_title FROM page WHERE page_title REGEXP '[0-9]{4}年';
{"resultsets": [{"headers": ["actor_name", "date", "pagename"], "rowcount": 346}], "runningtime": "1.24"}
zhwiki_p
Living people with paid contributors
null
SELECT page_title FROM page JOIN categorylinks ON cl_from = page_id JOIN templatelinks ON tl_from = page_id WHERE cl_to = "Living_people" AND tl_title = "Connected_contributor_(paid)"
{"resultsets": [{"headers": ["cl_to", "count_cl_to"], "rowcount": 2}, {"headers": ["cl_to", "count_cl_to"], "rowcount": 5}, {"headers": ["cl_to", "count_cl_to"], "rowcount": 40}], "runningtime": "261.79"}
enwiki_p
کتاب‌های ویکی‌پدیا درباره
null
select concat ('*[[:رده:',page_title,']]') from page where page_namespace = 14 and page_title like '%کتاب‌های_ویکی‌پدیا_درباره%';
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.06"}
fawiki_p
Wikidata - Romanian description where English description is "Ukrainian military personnel"
Query to collect all items where the English description starting with "A" – may need un-capitalization
use wikidatawiki_p; SELECT wbt_item_terms.wbit_item_id AS _item, CAST(wbt_text.wbx_text AS CHAR(1000) CHARACTER SET utf8) AS _desc FROM wbt_item_terms JOIN wbt_term_in_lang ON wbt_item_terms.wbit_term_in_lang_id = wbt_term_in_lang.wbtl_id JOIN wbt_text_in_lang ON wbt_term_in_lang.wbtl_text_in_lang_id = wbt_text_i...
{"resultsets": [{"headers": ["file", "lnprojpage"], "rowcount": 18}], "runningtime": "0.32"}
wikidatawiki_p
Undo statistics yearwise
to be debugged
select LEFT(rev_timestamp,6) as month, count(*) as tag_count from revision join change_tag ON rev_id = ct_rev_id where ct_tag_id in ( select ctd_id from change_tag_def where ctd_name = 'mw-undo' ) Group by LEFT(rev_timestamp,6),ct_tag_id LI...
{"connection_id": 34726665}
tewiki_p
Undo statistics userwise
users who used undo atleast 5 times
select LEFT(rev_timestamp,4) as year, user_name, count(*) as undo_count from user,actor, revision_actor_temp, change_tag, page, revision where page_id = rev_page and page_namespace = 0 and user_id =actor_user and revactor_actor=actor_id and revactor_rev=rev_id and ...
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.06"}
tewiki_p
nlwiktionary Taxa with and without Wikispecies links
null
SELECT page_title, GROUP_CONCAT(iwl_title SEPARATOR '; ') AS wikispecies FROM pagelinks, page, iwlinks WHERE pl_from=1113518 AND pl_namespace=page_namespace AND pl_title=page_title AND page_id=iwl_from AND iwl_prefix='wikispecies' AND iwl_title REGEXP '_' GROUP BY page_title ; SELECT page_title FRO...
{"resultsets": [{"headers": ["pages_with_disambig_but_not_redir"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_articles", "user_latestcreation"], "rowcount": 1004}], "runningtime": "141.14"}
nlwiktionary
List category contents, including subcats
null
SELECT p.page_id, p.page_namespace, p.page_title, p.page_is_redirect, cl.cl_to, cl.cl_type FROM page p JOIN categorylinks cl ON cl.cl_from = p.page_id AND cl.cl_to = "LGBT_history" LIMIT 1000;
{"resultsets": [{"headers": ["Usuario", "AAAADDMM", "hhmmss"], "rowcount": 100}], "runningtime": "0.22"}
enwiki_p
Recursive attempt
null
WITH RECURSIVE ancestors AS ( SELECT * FROM page p JOIN categorylinks cl ON cl.cl_from = p.page_id AND cl.cl_type = "subcat" UNION [all] SELECT p.* FROM page p, ancestors as a WHERE p.page_title = a.page_title ) SELECT * FROM ancestors LIMIT 10;
{"resultsets": [{"headers": ["Usuario", "AAAADDMM", "hhmmss"], "rowcount": 0}], "runningtime": "18.19"}
enwiki_p
Number of articles created on cswiki in 2021
null
select count(*) from (select rev_page, min(rev_timestamp) rev_timestamp from revision where rev_parent_id like 0 group by rev_page) revision join page on rev_page = page_id where rev_timestamp between '20201231230000' and '20211231225959' and page_namespace like 0 and not page_is_redirect;
{"resultsets": [{"headers": ["#", "Usuario", "Total", "Total agradecer 2022 a fecha AAAA-MM-DDTHH:MM:SS"], "rowcount": 4}], "runningtime": "0.13"}
cswiki_p
Female users on Czech Wikipedia by number of edits (2022)
null
SELECT user_name, user_editcount FROM user WHERE user_id IN (SELECT up_user FROM user_properties WHERE up_property = 'gender' AND up_value = 'female') ORDER BY user_editcount DESC, user_name
{"resultsets": [{"headers": ["output"], "rowcount": 4221}], "runningtime": "613.95"}
cswiki_p
Still active veteran Czech Wikipedia editors as of 2022-03-18
null
select user_id, user_name, max(rev_timestamp) as max_rev_timestamp from user join actor on user_id = actor_user join revision on rev_actor = actor_id where user_id<=439 and rev_timestamp between '20210318000000' and '20220318000000' group by user_id order by max_rev_timestamp desc
{"resultsets": [{"headers": ["#", "Usuario", "Total", "Total agradecer 2022 a fecha AAAA-MM-DDTHH:MM:SS"], "rowcount": 4}], "runningtime": "0.12"}
cswiki_p
List category contents, including subcats
This was used as the base query for category retrieval in the ORES-inspect toolforge tool.
SELECT p.page_id, p.page_namespace, p.page_title, p.page_is_redirect, cl.cl_to, cl.cl_type FROM page p JOIN categorylinks cl ON cl.cl_from = p.page_id WHERE cl.cl_to IN ("LGBT_history");
{"resultsets": [{"headers": ["title_length", "size", "ns", "title"], "rowcount": 788}], "runningtime": "1.86"}
enwiki_p
AfC review counts, last 56 days
** NOT including deleted articles **
select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / c...
{"resultsets": [{"headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace", "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": 750}...
enwiki_p
All arwikibooks articles and talks (arwiki)
null
use arwikibooks_p; select CONCAT ("[[",p.page_title,"]]") AS "الصفحة", CONCAT ("[[نقاش:",p.page_title,"]]") AS "نقاش الصفحة", p.page_id AS "ID" from page p where p.page_namespace=0 order by p.page_id desc;
{"resultsets": [{"headers": ["cl_to", "count_cl_to"], "rowcount": 245}], "runningtime": "47.37"}
arwikibooks_p
Authors in arwikisource not linked to wikidata
قائمة بجميع صفحات ويكي مصدر العربية في شكل مؤلف:إسم الكاتب بدون رابط في ويكي بيانات.
USE arwikisource_p; SELECT CONCAT('# [[مؤلف:',page_title,']]') AS "المؤلف", pp_value FROM page LEFT JOIN langlinks ON ll_from = page_id LEFT JOIN (SELECT * FROM page_props WHERE pp_propname = 'wikibase_item') AS props ON pp_page = page_id WHERE ll_title IS NULL and pp_value IS NULL AND page_namespace = 102 AN...
{"resultsets": [{"headers": ["cat1", "cat2"], "rowcount": 0}], "runningtime": "0.05"}
arwikibooks_p
مقالات الجزائر غير المراجعة
null
USE arwiki_p; SELECT article.page_title as "المقالة" FROM revision inner join actor on actor_id = rev_actor INNER JOIN page article ON article.page_id = rev_page AND article.page_namespace = 0 INNER JOIN page talk ON talk.page_title = article.page_title AND talk.page_namespace = 1 INNER JOIN categorylinks...
{"resultsets": [{"headers": ["cat1", "cat2"], "rowcount": 305}], "runningtime": "0.38"}
arwiki_p
مقالات الجزائر في عام 2022
null
USE arwiki_p; SELECT article.page_title as "المقالة", MIN(revision.rev_id) as "النسخة", actor.actor_name as "المستخدم", revision.rev_actor as "معرف المستخدم", revision.rev_timestamp as "تاريخ الإنشاء", article.page_len as "حجم المقالة" FROM revision inner join actor on actor_id = rev_actor INNER JOIN page article ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "1.98"}
arwiki_p
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ
৩০ জানু ২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে 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": ["#", "Usuario", "Total", "Total agradecer 2022 a fecha AAAA-MM-DDTHH:MM:SS"], "rowcount": 17}], "runningtime": "0.14"}
bnwiki
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৯ জানু ২০২২
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": ["#", "Usuario", "Total", "Total agradecer 2022 a fecha AAAA-MM-DDTHH:MM:SS"], "rowcount": 17}], "runningtime": "0.12"}
bnwiki
unknown cite params2
null
select page_title, cl_sortkey_prefix, COUNT(*) #page_namespace, page_title, cl_sortkey_prefix, COUNT(*) from categorylinks join page on cl_from = page_id where cl_to = "أخطاء_CS1:_empty_unknown_parameters" #and page_namespace = 0 group by cl_sortkey_prefix #having count(*) > 1 ORDER BY COUNT(*) DESC #limit 100; ;
{"resultsets": [{"headers": ["rev_id", "rev_timestamp", "page_namespace", "rev_actor"], "rowcount": 0}], "runningtime": "0.09"}
arwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["#", "Usuario", "Total", "Total agradecer 2022 a fecha AAAA-MM-DDTHH:MM:SS"], "rowcount": 17}], "runningtime": "0.13"}
enwiki_p
Non-free images with short or no rationale.
null
USE enwiki_p; SELECT p.page_id,p.page_len, p.page_title FROM page p INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = 'All_non-free_media' # Exclude files with templated rationales as some rationale templates are very short: LEFT JOIN templatelinks t ON t.tl_from = p.page_id AN...
{"resultsets": [{"headers": ["tl_title"], "rowcount": 51}], "runningtime": "1995.61"}
wikipedia
mis-spaced disambiguators on enwiki
null
SELECT page_title, rd_title FROM page JOIN redirect ON rd_from = page_id WHERE page_title RLIKE "[a-zA-Z]\\([^)]{2,}\\)$" AND rd_title NOT RLIKE "[a-zA-Z]\\([^)]{2,}\\)$" AND page_namespace = 0
{"resultsets": [{"headers": ["tl_title"], "rowcount": 24}], "runningtime": "1517.42"}
enwiki_p
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ
৩০ জানু ২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে 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 "(.*)([Bb][...
{"resultsets": [{"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 500}, {"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 21}], "runningtime": "3.48"}
aswiki
Ukrainian websites referenced from huwiki
null
SELECT el_to FROM externallinks WHERE el_index LIKE 'http://ua.%' OR el_index LIKE 'https://ua.%' GROUP BY el_index ORDER BY el_index;
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 21}], "runningtime": "10.61"}
huwiki_p
nlwiktionary Dutch nouns
for cross-referencing biological vernacular names
SELECT 1/*page_title FROM categorylinks, page WHERE cl_to="Zelfstandige_naamwoorden_in_het_Nederlands" AND cl_from=page_id AND page_namespace=0*/
{"resultsets": [{"headers": ["user_name", "frp_user_id", "frp_editComments", "frp_uniqueContentPages", "frp_totalContentEdits", "frp_reviewedEdits", "frp_revertedEdits", "frp_demoted", "user_editcount", "days_since_registration", "unique_days_with_edits"], "rowcount": 0}], "runningtime": "1.58"}
nlwiktionary
Featured article editors
featured article contributors on tewiki for a specific year. Modify rev_timestamp, category for the required year.
SELECT LEFT(rev_timestamp,4) AS iyear, user_name FROM revision LEFT JOIN page ON page_id = rev_page LEFT JOIN actor ON rev_actor = actor_id LEFT JOIN user ON user_id =actor_user where rev_actor != 0 AND page_namespace=0 AND LEFT(rev_timestamp,4)="2021" AND NOT (user_name LIKE '%AWB%' OR user_nam...
{"resultsets": [{"headers": ["@t := now()"], "rowcount": 1}, {"headers": ["user_name", "user_registration", "user_editcount"], "rowcount": 47}], "runningtime": "55.03"}
tewiki_p
Page titles from prefix (fast)
Uses an index on (page_namespace, page_title), so this query is fast. See the forked query for an example that doesn't use the index.
SELECT page_title, page_id, page_namespace FROM page WHERE page_namespace = 0 AND page_title LIKE "Bảo%";
{"resultsets": [{"headers": ["tl_title", "count(tl_title)"], "rowcount": 13967}], "runningtime": "18.91"}
enwiki_p
Vandalismebestrijding nlwiki (IP-patrolling)
Vandalismebestrijding, 1493 te markeren/controleren, 21 maart 2022, 15:10 (CET)
# anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION SELECT 'total...
{"resultsets": [{"headers": ["user", "cnt"], "rowcount": 910}], "runningtime": "3.30"}
nlwiki_p
Undo statistics userwise
users who used undo atleast 5 times
select LEFT(rev_timestamp,4) as year, user_name, count(*) as undo_count from user,actor, revision_actor_temp, change_tag, page, revision where page_id = rev_page and page_namespace = 0 and user_id =actor_user and revactor_actor=actor_id and revactor_rev=rev_id and ...
{"resultsets": [{"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 500}, {"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 500}], "runningtime": "19.74"}
elwiki_p
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ
৩০ জানু ২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে wikitable ক্লিক করুন।
SET @counter:=12; 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 "(.*)([Bb]...
{"resultsets": [{"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 356}, {"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 154}], "runningtime": "2.73"}
bnwiki
New article initiators
New article initiators on tewiki for a specific year with more than 51 pages. Modify rev_timestamp for required year
SELECT LEFT(rev_timestamp,4) AS iyear, user_name, COUNT(*) as new_pages FROM revision LEFT JOIN page ON page_id = rev_page LEFT JOIN actor ON rev_actor = actor_id LEFT JOIN user ON user_id =actor_user where rev_actor != 0 AND page_namespace=0 AND LEFT(rev_timestamp,4)="2021" AND rev_parent_id ...
{"resultsets": [{"headers": ["COUNT(*)", "SUBSTR(user_registration,1,6)"], "rowcount": 1}], "runningtime": "2.38"}
tewiki_p
New article initiators
New article initiators on tewiki for a specific year with more than 51 pages. Modify rev_timestamp for required year
SELECT LEFT(rev_timestamp,4) AS iyear, user_name, COUNT(*) as new_pages FROM revision LEFT JOIN page ON page_id = rev_page LEFT JOIN actor ON rev_actor = actor_id LEFT JOIN user ON user_id =actor_user where rev_actor != 0 AND page_namespace=0 AND LEFT(rev_timestamp,4)="2020" AND rev_parent_id ...
{"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", "pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 1}], "runnin...
tewiki_p
New article initiators and pages in year
New article initiators on tewiki for a specific year with page_titles. Modify rev_timestamp for required year
SELECT LEFT(rev_timestamp,4) AS iyear, user_name, page_title FROM revision LEFT JOIN page ON page_id = rev_page LEFT JOIN actor ON rev_actor = actor_id LEFT JOIN user ON user_id =actor_user where rev_actor != 0 AND page_namespace=0 AND LEFT(rev_timestamp,4)="2021" AND rev_parent_id = 0 AND NOT...
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 93}], "runningtime": "183.00"}
tewiki_p
অসমীয়া ৱিকিপিডিয়াত প্ৰবন্ধ সৃষ্টি কৰা সদস্যসকল
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": ["log_title", "COUNT(log_id)"], "rowcount": 7761}], "runningtime": "10.74"}
aswiki
New file uploaders and file pages in a year
New file uploaders on tewiki for a specific year with page_titles. Modify rev_timestamp for required year
SELECT LEFT(rev_timestamp,4) AS iyear, user_name, page_title FROM revision LEFT JOIN page ON page_id = rev_page LEFT JOIN actor ON rev_actor = actor_id LEFT JOIN user ON user_id =actor_user where rev_actor != 0 AND page_namespace=6 AND LEFT(rev_timestamp,4)="2021" AND rev_parent_id = 0 AND NOT...
{"resultsets": [{"headers": ["log_title", "COUNT(log_id)", "(SELECT COUNT(log_id)\n\t\t\t\t\t\t\t\tFROM logging_logindex\n\t\t\t\t\t\t\t\tWHERE \n\t\t\t\t\t\t\t\tlog_type = \"thanks\" AND\n \t\t\t\t\t\t\tlog_timestamp >= \"20210000000000\" AND\n\t\t\t\t\t\t\t\tlog_timestamp <= \"20220000000000\")"], "rowcount": 8678...
tewiki_p
New articles yearwise
New articles yearwise
SELECT LEFT(rev_timestamp,4) AS iyear, COUNT(*) as num_articles FROM revision LEFT JOIN page ON page_id = rev_page where rev_actor != 0 AND page_namespace=0 AND rev_parent_id = 0 GROUP BY LEFT(rev_timestamp,4) ORDER BY iyear DESC LIMIT 10000;
{"resultsets": [{"headers": ["log_title", "COUNT(log_id)", "100*COUNT(log_id)/(SELECT COUNT(log_id)\n\t\t\t\t\t\t\t\tFROM logging_logindex\n\t\t\t\t\t\t\t\tWHERE \n\t\t\t\t\t\t\t\tlog_type = \"thanks\" AND\n \t\t\t\t\t\t\tlog_timestamp >= \"20210000000000\" AND\n\t\t\t\t\t\t\t\tlog_timestamp <= \"20220000000000\")"]...
tewiki_p
Vandalismebestrijding nlwiki
IP-controle, nlwiki, 22 maart 2022 13:05 (CET) 1128 ongecontroleerde wijzigingen
# 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", "cl_to"], "rowcount": 16}], "runningtime": "5.90"}
nlwiki_p
Bracket lint - Missing end tag
null
select distinct page_title, linter_params from linter join page on page.page_id = linter.linter_page where page.page_namespace=0 and linter_cat=4 and linter_params like '%racket%' and linter_params like '%"name":"b"%' order by page_title asc limit 1000;
{"resultsets": [{"headers": ["Tables_in_votewiki_p"], "rowcount": 87}], "runningtime": "0.22"}
enwiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["log_action", "Total"], "rowcount": 1}], "runningtime": "7.95"}
enwiki_p
অসমীয়া ৱিকিপিডিয়াত প্ৰবন্ধ সৃষ্টি কৰা সদস্যসকল
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": ["actor_name", "COUNT(log_id)"], "rowcount": 334}], "runningtime": "0.70"}
aswiki
Hewiki templates protection
null
select replace(template, '_', ' ') as template, counter as transclusions, if(id = -1, 'redlink', ifnull(pr_level, 'none')) as protection, if(pr_level in ('sysop', 'templateeditor'), '', '!!!') as problem from (select template, counter, ifnull(page_id, -1) as id from (select tl_title as template, count(tl_from)...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 21}], "runningtime": "5.51"}
hewiki_p
top rollbacker
null
SELECT actor_name as user, COUNT(*) as cnt FROM revision JOIN change_tag ON rev_id = ct_rev_id JOIN actor ON actor_id = rev_actor WHERE ct_tag_id = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'mw-rollback') GROUP BY user ORDER BY cnt DESC LIMIT 1000;
{"resultsets": [{"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 425}, {"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 119}], "runningtime": "2.65"}
bnwiki
অসমীয়া ৱিকিপিডিয়াত প্ৰবন্ধ সৃষ্টি কৰা সদস্যসকল
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": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 500}, {"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 500}], "runningtime": "3.13"}
aswiki
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ
৩০ জানু ২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে 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": ["cl_to", "count_cl_to"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 4}, {"headers": ["tl_title", "count_tl_title"], "rowcount": 1}, {"headers": ["page_title", "pl_title"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"...
bnwiki
Important articles without portal links (2010s test)
null
SELECT SUBSTRING_INDEX(cl_to, "-", 1) AS Importance, Pa.page_title AS Article FROM templatelinks JOIN page Pt ON Pt.page_id=tl_from AND Pt.page_namespace=1 /* Talk page */ JOIN page Pa ON Pa.page_namespace=0 AND Pa.page_title=Pt.page_title /* Article */ JOIN categorylinks ON cl_from=Pt.page_id AND cl_type="page" AND cl...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 24}], "runningtime": "13.09"}
enwiki_p
Active collaborators on discussion pages (article,wikipedia ns)
Active collaborators on more than 2 discussion pages with atleast three distinct participants in year (excluding loggedin non bot, awb editors) in article talk and wikipedia talk space, which are generally more active than others.
Select user_name, COUNT(DISTINCT page_id) as num_pages from actor join revision on rev_actor=actor_id join page on revision.rev_page = page.page_id JOIN user ON user_id =actor_user Where LEFT(rev_timestamp,4)="2021" AND actor_user !=0 AND (page_namespace =1 OR page_namespace= 5) AND NOT (user_name LIKE '%A...
{"resultsets": [{"headers": ["dbname", "hostname"], "rowcount": 941}], "runningtime": "1.34"}
tewiki_p
Top-importance articles not linked to the relevant portal
null
SELECT STRAIGHT_JOIN Pp.page_title AS Portal, SUBSTRING_INDEX(Ct.cl_to, "-", 1) AS Importance, Pa.page_title AS Article FROM page Pp JOIN categorylinks Ct ON Ct.cl_type="page" AND Ct.cl_to LIKE "Top-importance_%" AND Ct.cl_to IN (CONCAT("Top-importance_",Pp.page_title,"_articles"), /* Top-importance Africa → Portal:A...
{"resultsets": [{"headers": ["#", "Usuario", "Total 2022"], "rowcount": 100}], "runningtime": "0.23"}
enwiki_p
Infoboxes by number of transclusions in ruwiki
null
USE enwiki_p; SELECT REPLACE(page_title, '_', ' ') as name, ( SELECT COUNT(*) FROM templatelinks WHERE tl_title = page_title AND tl_namespace = page_namespace ) as transclusion_count FROM page JOIN categorylinks ON cl_from = page_id WHERE true #page_namespace ...
{"resultsets": [{"headers": ["actor_name", "count(*)"], "rowcount": 500}], "runningtime": "607.15"}
enwiki_p
Infoboxes by number of transclusions in ruwiki
null
USE ruwiki_p; SELECT REPLACE(page_title, '_', ' ') as name, ( SELECT COUNT(*) FROM templatelinks WHERE tl_title = page_title AND tl_namespace = page_namespace ) as transclusion_count FROM page JOIN categorylinks ON cl_from = page_id WHERE page_namespace = 10 ...
{"resultsets": [{"headers": ["#", "Usuario", "Total 2022"], "rowcount": 100}], "runningtime": "0.21"}
ruwiki_p
Infoboxes by number of transclusions in enwiki
null
SELECT REPLACE(page_title, '_', ' ') as name, ( SELECT COUNT(*) FROM templatelinks WHERE tl_title = page_title AND tl_namespace = page_namespace ) as transclusion_count FROM page JOIN categorylinks ON cl_from = page_id WHERE page_namespace = 10 AND cl_to = ...
{"resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 107}], "runningtime": "0.19"}
enwiki_p
Nouveaux verbes sur le wiktionnaire depuis juillet 2021
null
SELECT page_title FROM page, categorylinks AS cl WHERE page_id = cl_from AND cl_to = "Verbes_en_français" AND cl_timestamp >= 20210701000000;
{"resultsets": [{"headers": ["gu_id"], "rowcount": 1}], "runningtime": "0.07"}
frwiktionary_p
Plwikinews pages linked from plwiki's {{wikinews}} transclusions in ns0
null
select page_title, iwl_title from page inner join templatelinks on tl_from = page_id inner join iwlinks on iwl_from = page_id where tl_namespace = 10 and tl_title = "Wikinews" and tl_from_namespace = 0 and iwl_prefix = "n" ;
{"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 1}], "runningtime": "0.08"}
plwiki_p
my uploads
This count based purely on filename and uploader, a handy guide to size of the total size uploads presuming bot accounts are not the actual uploaders for some projects.
USE commonswiki_p; SELECT img_name FROM image JOIN actor_image ON actor_id = img_actor WHERE actor_name = "Frettie";
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 10}], "runningtime": "0.06"}
commonswiki_p
my uploads
This count based purely on filename and uploader, a handy guide to size of the total size uploads presuming bot accounts are not the actual uploaders for some projects.
USE commonswiki_p; SELECT img_name FROM image JOIN actor_image ON actor_id = img_actor WHERE actor_name = "Skim";
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 10}], "runningtime": "0.08"}
commonswiki_p
my uploads
This count based purely on filename and uploader, a handy guide to size of the total size uploads presuming bot accounts are not the actual uploaders for some projects.
USE commonswiki_p; SELECT img_name FROM image JOIN actor_image ON actor_id = img_actor WHERE actor_name = "TFerenczy";
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 11}], "runningtime": "0.10"}
commonswiki_p
my uploads
This count based purely on filename and uploader, a handy guide to size of the total size uploads presuming bot accounts are not the actual uploaders for some projects.
USE commonswiki_p; SELECT img_name FROM image JOIN actor_image ON actor_id = img_actor WHERE actor_name = "Martin Urbanec";
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 10}], "runningtime": "0.07"}
commonswiki_p
images uploaded by an user
null
SELECT page_title FROM revision_userindex JOIN actor_revision ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace=6 AND rev_parent_id = 0 AND actor_name = 'TFerenczy'
{"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": 11}], "runningtime": "0.09"}
commonswiki_p
Count different types of video types
null
select img_minor_mime, count(img_name) as filecount from image where img_media_type="VIDEO" group by img_minor_mime order by filecount DESC
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 10}], "runningtime": "0.07"}
commonswiki_p
Total length from Commons videos
There are two types of img_metadata data formats: JSONs and PHP-serialized strings. This approach handles both. The metadata keys/values depend on the media type (ogg, mpeg, or webm). This approach handles all three. Data details: https://www.mediawiki.org/wiki/Manual:Image_table Additional statistics: https://commons...
SELECT img_minor_mime, COUNT(1) AS num_files, SUM(IF(img_minor_mime = 'ogg', ROUND(COALESCE(JSON_EXTRACT(img_metadata, '$.data.length'), SUBSTR(REGEXP_SUBSTR(img_metadata, '(s:6:"length";d:)[0-9]*\.?[0-9]*'), 16), 0), 3), ROUND(COALESCE(JSON_EXTRACT(img_metadata, '$.data.playtime_seconds'), SUBSTR...
{"connection_id": 15159270}
commonswiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["actor_name", "count(*)"], "rowcount": 500}], "runningtime": "1302.97"}
enwiki_p
Total length from Commons audio
There are two types of img_metadata data formats: JSONs and PHP-serialized strings. This approach handles both. The metadata keys/values depend on the media type (ogg, mpeg, or webm). This approach handles all three. Audio files longer than 1 day in time are excluded as outliers / likely bad metadata. Data details: h...
WITH audio_length AS ( SELECT img_minor_mime, IF(img_minor_mime = 'ogg', ROUND(COALESCE(JSON_EXTRACT(img_metadata, '$.data.length'), SUBSTR(REGEXP_SUBSTR(img_metadata, '(s:6:"length";d:)[0-9]*\.?[0-9]*'), 16), 0), 3), ROUND(COALESCE(JSON_EXTRACT(img_metadata, '$.data.playtime_seconds'), SUBSTR(R...
{"resultsets": [{"headers": ["ug_user", "ug_group", "ug_expiry", "user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time"...
commonswiki_p
Total length of Commons video
There are two types of img_metadata data formats: JSONs and PHP-serialized strings. This approach handles both. The metadata keys/values depend on the media type (ogg, mpeg, or webm). This approach handles all three. Video files longer than 1 day in time are excluded as outliers / likely bad metadata. Data details: h...
WITH video_length AS ( SELECT img_minor_mime, IF(img_minor_mime = 'ogg', ROUND(COALESCE(JSON_EXTRACT(img_metadata, '$.data.length'), SUBSTR(REGEXP_SUBSTR(img_metadata, '(s:6:"length";d:)[0-9]*\.?[0-9]*'), 16), 0), 3), ROUND(COALESCE(JSON_EXTRACT(img_metadata, '$.data.playtime_seconds'), SUBSTR(R...
{"resultsets": [{"headers": ["ug_group", "user_name", "user_registration"], "rowcount": 65}], "runningtime": "0.13"}
commonswiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "6.26"}
enwiki_p
Protected enwiki pages
https://www.mediawiki.org/wiki/Manual:Page_restrictions_table
SELECT pr.*, p.page_title, p.page_namespace FROM page_restrictions pr LEFT JOIN page p ON pr.pr_page = p.page_id WHERE p.page_namespace = 0 LIMIT 100;
{"resultsets": [{"headers": ["rc_patrolled", "count"], "rowcount": 4}, {"headers": ["user", "unpatrolled"], "rowcount": 10}, {"headers": ["day", "unpatrolled", "manually patrolled", "autopatrolled", "total"], "rowcount": 31}, {"headers": ["rc_namespace", "unpatrolled"], "rowcount": 7}, {"headers": ["rc_namespace", "rc_...
enwiki_p
עריכות שקשורות לנייטרליות בערכים
טבלה זו מרכזת רשימת עריכות בוויקיפדיה שנוגעות לנקודת מבט נייטרלית בוויקיפדיה
use hewiki_p; select page.page_title as "ערך", rev_timestamp as "זמן עריכה", rev_user_text as "עורך", rev_comment as "תקציר" from revision inner join page on page_id=rev_page where (rev_comment like '%נייטרלי%' or rev_comment like '%POV%') and rev_user_text!='EranBot' and rev_user_text!='Matanyabot' and rev_comment no...
{"resultsets": [{"headers": ["CONCAT('# [[:File:', page_title, ']]')"], "rowcount": 3}], "runningtime": "5.20"}
hewiki
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": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace", "count"], "rowcount": 10}], "runningtime": "0.07"}
wikidatawiki_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_namespace", "page_title"], "rowcount": 2}], "runningtime": "0.11"}
wikidatawiki_p