title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["CONCAT('* ', COUNT(ips_item_id), ' - [[',ips_site_page,']] - [[d:Q', ips_item_id, ']]')"], "rowcount": 9}], "runningtime": "101.89"}
enwiki
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["page_title", "comment_text", "tags"], "rowcount": 1}], "runningtime": "0.07"}
enwiki
All Articles for Deletion (AfD)
null
SELECT page_title FROM page WHERE page_title LIKE '%Articles_for_deletion%' AND page_namespace = 4 AND page_is_redirect = 0
{"resultsets": [{"headers": ["lang", "articles_count", "comment_texts"], "rowcount": 1}], "runningtime": "2.63"}
enwiki
User groups
null
SELECT DISTINCT ug_group FROM user_groups ORDER BY ug_group
{"resultsets": [{"headers": ["ns", "page_title", "el_to"], "rowcount": 13}], "runningtime": "48.80"}
enwiki_p
تحويلة
null
USE arwiki_p; SELECT CONCAT('[[قالب:',page_title,']]') AS "القالب", COUNT(tl_from) AS "عدد الاستخدام", SUM(IF(tl_from_namespace = 0, 1, 0)) AS "نطاق المقالات", page_is_redirect FROM page LEFT JOIN templatelinks ON tl_title = page_title AND tl_namespace = page_namespace WHERE page_namespace = 10 AND page_title LIKE "تحو...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 2148}], "runningtime": "25.43"}
arwiki
انبوه‌سازها - آزمایشی
null
SELECT concat('*',actor_name) As User FROM comment JOIN revision ON comment_id = rev_comment_id JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id WHERE comment_text LIKE '%ایجادشده_به_کمک_[[راهنما:ابزار/به_ویکی‌فا|به_ویکی‌فا]]_انبوه_و%' AND page_is_redirect = 0 AND page_namespace = 0 GROUP BY actor_nam...
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 41}], "runningtime": "20.43"}
fawiki_p
انبوه‌سازهای دسترسی‌دار - آزمایشی
null
SELECT concat('*',actor_name) As User FROM comment JOIN revision ON comment_id = rev_comment_id JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id JOIN user ON actor_user = user_id JOIN user_groups ON ug_user = user_id WHERE comment_text LIKE '%ایجادشده_به_کمک_[[راهنما:ابزار/به_ویکی‌فا|به_ویکی‌فا]]_انبو...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 59}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 7}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 21}], "runningtime": "4.79"}
fawiki_p
انبوه‌سازهای گشت‌زن
null
SELECT actor_name As User, COUNT(page_title) As 'No.' FROM comment JOIN revision ON comment_id = rev_comment_id JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id JOIN user ON actor_user = user_id JOIN user_groups ON ug_user = user_id WHERE comment_text LIKE '%ایجادشده_به_کمک_[[راهنما:ابزار/به_ویکی‌فا|ب...
{"resultsets": [{"headers": ["category_name", "fawiki_counterparts"], "rowcount": 3}], "runningtime": "0.11"}
fawiki_p
انبوه‌سازهای گشت خودکار
null
SELECT actor_name As User, COUNT(page_title) As 'No.' FROM comment JOIN revision ON comment_id = rev_comment_id JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id JOIN user ON actor_user = user_id JOIN user_groups ON ug_user = user_id WHERE comment_text LIKE '%ایجادشده_به_کمک_[[راهنما:ابزار/به_ویکی‌فا|ب...
{"resultsets": [{"headers": ["Tables_in_svwiki_p"], "rowcount": 93}], "runningtime": "0.21"}
fawiki_p
انبوه‌سازهای ربات
null
SELECT actor_name As User, COUNT(page_title) As 'No.' FROM comment JOIN revision ON comment_id = rev_comment_id JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id JOIN user ON actor_user = user_id JOIN user_groups ON ug_user = user_id WHERE comment_text LIKE '%ایجادشده_به_کمک_[[راهنما:ابزار/به_ویکی‌فا|ب...
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 10}], "runningtime": "0.12"}
fawiki_p
انبوه‌سازهای دسترسی‌دار
null
SELECT actor_name As User, COUNT(page_title) As 'No.' FROM comment JOIN revision ON comment_id = rev_comment_id JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id JOIN user ON actor_user = user_id JOIN user_groups ON ug_user = user_id WHERE comment_text LIKE '%ایجادشده_به_کمک_[[راهنما:ابزار/به_ویکی‌فا|ب...
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 10}], "runningtime": "1.80"}
fawiki_p
انبوه‌سازهای بی‌دسترسی
null
SELECT actor_name As User, COUNT(page_title) As 'No.' FROM comment JOIN revision ON comment_id = rev_comment_id JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id JOIN user ON actor_user = user_id JOIN user_groups ON ug_user = user_id AND ug_group NOT IN ('bot', 'autopatrolled', 'patroller', 'sysop', 'e...
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 10}], "runningtime": "4.67"}
fawiki_p
انبوه‌سازی در سال ۲۰۲۱
null
SELECT concat ('[[User:',actor_name,']]') AS User, concat ('[[',page_title,']]') As Article FROM comment JOIN revision ON comment_id = rev_comment_id JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id WHERE comment_text LIKE '%ایجادشده_به_کمک_[[راهنما:ابزار/به_ویکی‌فا|به_ویکی‌فا]]_انبوه_و%' AND page_is_...
{"resultsets": [{"headers": ["ipb_id", "ipb_address", "ipb_user", "ipb_reason_id", "ipb_timestamp", "ipb_auto", "ipb_anon_only", "ipb_create_account", "ipb_expiry", "ipb_range_start", "ipb_range_end", "ipb_enable_autoblock", "ipb_deleted", "ipb_block_email", "ipb_by_actor", "ipb_allow_usertalk", "ipb_parent_block_id", ...
fawiki_p
Inactive ipblock-exempt users on Commons
null
SELECT concat('[[*',actor_name,']]') AS User FROM actor JOIN revision ON rev_actor = actor_id JOIN user ON actor_user = user_id JOIN user_groups ON ug_user = user_id WHERE rev_timestamp < 20200101000000 AND ug_group = 'ipblock-exempt' GROUP BY actor_name;
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 10}], "runningtime": "0.09"}
commonswiki_p
Active ipblock-exempt users on Commons
null
SELECT concat('[[*',actor_name,']]') AS User FROM actor JOIN revision ON rev_actor = actor_id JOIN user ON actor_user = user_id JOIN user_groups ON ug_user = user_id WHERE rev_timestamp > 20191231235959 AND ug_group = 'ipblock-exempt' GROUP BY actor_name;
{"resultsets": [{"headers": ["page_title"], "rowcount": 395}], "runningtime": "3.62"}
commonswiki_p
Ipblock-exempt users on Commons
null
SELECT concat('*[[User:',user_name,']]') AS User FROM user JOIN user_groups ON ug_user = user_id AND ug_group = 'ipblock-exempt' GROUP BY user_name;
{"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.11"}
commonswiki_p
Ipblock-exempt users on enwiki
null
SELECT concat('*[[User:',user_name,']]') AS User FROM user JOIN user_groups ON ug_user = user_id AND ug_group = 'ipblock-exempt' GROUP BY user_name;
{"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", "actor_id", "actor_user", "actor_name"], "rowcount": 1}], "runningtime": "0.08"}
enwiki_p
Ipblock-exempt users on dewiki
null
SELECT concat('*[[User:',user_name,']]') AS User FROM user JOIN user_groups ON ug_user = user_id AND ug_group = 'ipblock-exempt' GROUP BY user_name;
{"resultsets": [{"headers": ["page_title"], "rowcount": 385}], "runningtime": "0.87"}
dewiki_p
Ipblock-exempt users on frwiki
null
SELECT concat('*[[User:',user_name,']]') AS User FROM user JOIN user_groups ON ug_user = user_id AND ug_group = 'ipblock-exempt' GROUP BY user_name;
{"resultsets": [{"headers": ["page_title"], "rowcount": 383}], "runningtime": "0.89"}
frwiki_p
Ipblock-exempt users on fawiki
null
SELECT concat('*[[User:',user_name,']]') AS User FROM user JOIN user_groups ON ug_user = user_id AND ug_group = 'ipblock-exempt' GROUP BY user_name;
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 63}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 9}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 21}], "runningtime": "3.18"}
fawiki_p
Ipblock-exempt users on arwiki
null
SELECT concat('*[[User:',user_name,']]') AS User FROM user JOIN user_groups ON ug_user = user_id AND ug_group = 'ipblock-exempt' GROUP BY user_name;
{"resultsets": [{"headers": ["tl_title"], "rowcount": 91}], "runningtime": "2065.36"}
arwiki_p
Ipblock-exempt users on trwiki
null
SELECT concat('*[[User:',user_name,']]') AS User FROM user JOIN user_groups ON ug_user = user_id AND ug_group = 'ipblock-exempt' GROUP BY user_name;
{"resultsets": [{"headers": ["rc_title", "num_edits"], "rowcount": 1000}], "runningtime": "1.31"}
trwiki_p
Ipblock-exempt users on hewiki
null
SELECT concat('*[[User:',user_name,']]') AS User FROM user JOIN user_groups ON ug_user = user_id AND ug_group = 'ipblock-exempt' GROUP BY user_name;
{"connection_id": 56969240}
hewiki_p
Longest Czech Wikipedia articles
null
SELECT page_namespace, page_title, page_len FROM page WHERE page_namespace=0 AND page_is_redirect=0 ORDER BY page_len DESC LIMIT 10
{"connection_id": 57040184}
cswiki_p
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["rc_patrolled", "count"], "rowcount": 4}, {"headers": ["user", "unpatrolled"], "rowcount": 15}, {"headers": ["day", "unpatrolled", "manually patrolled", "autopatrolled", "total"], "rowcount": 31}, {"headers": ["rc_namespace", "unpatrolled"], "rowcount": 6}, {"headers": ["rc_namespace", "rc_...
enwiki
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"headers": ["title", "length"], "rowcount": 10}], "runningtime": "0.07"}
eswiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 5}], "runningtime": "2.49"}
enwiki_p
Kandidaten für Artikel verschoben, Kategorie aber nicht
Ganz grob eine Datenbankabfrage, gefiltert werden muss noch wenn das Verschiebeziel inzwischen gelöscht wurde oder wenn rückverschoben, etc.
SELECT log_title, log_timestamp, log_params FROM logging, page WHERE log_action = 'move' AND log_namespace = 0 AND page_title = log_title AND page_namespace = 14 ORDER BY log_timestamp DESC
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 0}], "runningtime": "2.55"}
dewiki_p
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 0}], "runningtime": "2.85"}
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": ["pl_from", "pl_title", "cl_to"], "rowcount": 49}], "runningtime": "3.41"}
enwiki
Deletion rates of CX and non-CX articles for a wiki
For one wiki, shows how many articles were created using Content Translation (CX articles) and how frequently they were deleted, compared to articles created using other methods (non-CX articles).
SET @start_time = '20220101'; -- 1 Jan 2020 SET @end_time = '20220331'; -- 1 Jan 2021 SET @cx_tag_id = ( SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'contenttranslation' ); WITH nondeleted_new_articles AS ( SELECT SUM(IF(ct_tag_id = @cx_tag_id, 1, 0)) AS cx, SUM(IF(ct_tag_id IS N...
{"resultsets": [{"headers": ["page_title", "rev_timestamp"], "rowcount": 2}], "runningtime": "29.56"}
etwiki_p
Wikidata
null
select count(user_name) from user;
{"resultsets": [{"headers": ["page_title"], "rowcount": 476}], "runningtime": "0.71"}
wikidatawiki
Count all DPLA bot uploads
null
SELECT count(*) FROM logging JOIN actor ON logging.log_actor = actor.actor_id WHERE log_type = "upload" AND actor_name = "DPLA bot";
{"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": "34.66"}
commonswiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_len", "page_title"], "rowcount": 10}], "runningtime": "0.09"}
enwiki_p
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 58}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 7}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 21}], "runningtime": "0.45"}
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": ["#", "Usuario", "Total 2022"], "rowcount": 100}], "runningtime": "0.43"}
enwiki
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["page_title", "rev_timestamp"], "rowcount": 5}], "runningtime": "28.59"}
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": ["page_title", "page_len"], "rowcount": 100}], "runningtime": "0.55"}
enwiki
All active IP blocks (enwiki)
null
SELECT ipb_id, ipb_address, ipb_timestamp, ipb_anon_only, ipb_create_account, ipb_expiry, ipb_range_start, ipb_range_end, comment_text FROM ipblocks JOIN `comment` ON comment_id = ipb_reason_id WHERE ipb_user = 0 AND ipb_address IS NOT NULL AND ipb_expiry >= "20220426000000" ORDER BY ipb_id DESC LIMIT 250000;
{"resultsets": [{"headers": ["dbname", "lang", "family", "domain", "size", "is_meta", "is_closed", "is_multilang", "is_sensitive", "root_category", "server", "script_path"], "rowcount": 941}], "runningtime": "1.11"}
enwiki_p
sss
null
SELECT CURRENT_DATE; SELECT CONCAT('P', term_entity_id), term_text from wb_terms WHERE term_entity_type = 'property' AND term_language = 'en' and term_type = 'label' ORDER bY term_entity_id desc;
{"connection_id": 43584608}
wikidatawiki_p
Count of DPLA bot uploads and byte size after March 2022
null
SELECT COUNT(img_name) AS "File count", COUNT(DISTINCT REGEXP_REPLACE(REGEXP_REPLACE(img_name, '^.*DPLA_-_', ''), '[\.|_].*$', '')) AS "Item count", ROUND(SUM(img_size/(1<<30))) AS "Size (GB)" FROM image JOIN actor_image ON actor_id = img_actor WHERE actor_name = "DPLA bot" AND img_timestamp > "20220331999999"
{"resultsets": [{"headers": ["page_title"], "rowcount": 37}], "runningtime": "8.28"}
commonswiki_p
Count all DPLA uploads after March 2022
null
SELECT count(*) FROM logging JOIN actor ON logging.log_actor = actor.actor_id WHERE log_type = "upload" AND log_timestamp > "20220331999999" AND actor_name = "DPLA bot";
{"resultsets": [{"headers": ["page_title"], "rowcount": 33}], "runningtime": "5.42"}
commonswiki_p
Welsh property label editors
null
SET @lang = 'cy'; SELECT actor_name, COUNT(*) AS total, SUM(comment_text LIKE '/* wbsetlabel-add:%') AS added, SUM(comment_text LIKE '/* wbsetlabel-set:%') AS changed, SUM(comment_text LIKE '/* wbsetlabel-remove:%') AS removed, DATE_FORMAT(MIN(rev_timestamp), "%Y-%m-%d") AS since, DATE_FORMAT(MAX(rev_timestamp),...
{"resultsets": [{"headers": ["day", "news"], "rowcount": 0}], "runningtime": "3.22"}
wikidatawiki_p
New talk pages with < 6 bytes on ptwikivoyage
null
SELECT page_title, page_len, page_touched FROM page WHERE page_namespace = 1 AND page_is_new = 1 AND page_len < 6 ORDER BY page_len DESC;
{"resultsets": [{"headers": ["comment_text", "COUNT(*)"], "rowcount": 121}], "runningtime": "0.36"}
ptwikivoyage_p
Pages of a main category's direct subcategories with ext link
Find total number of pages in a upper level category, Examples villages in a district, with sub category of mandal
SELECT CONCAT("[[",page_title,"]]") as page, cl_to as category FROM page p JOIN categorylinks cl ON p.page_namespace = 0 -- main page AND cl.cl_from = p.page_id AND cl.cl_to in ( SELECT page_title as subcat FROM page p JOIN categorylinks cl ON p.page_namespace = 14 -- Optional namespace check. 14 - ca...
{"resultsets": [{"headers": ["ipb_address"], "rowcount": 57446}], "runningtime": "63.15"}
tewiki_p
ৱিকিপিডিয়াৰ শীৰ্ষ সম্পাদক
null
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": ["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"}
aswiki
ৱিকিপিডিয়াৰ শীৰ্ষ সম্পাদক
null
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": ["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.06"}
aswiki
IP-patrolling nlwiki 28 April 2022
Vandalismebestrijding (IP-controle) 28-4-2022 22:27 (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": ["cl_to", "count_cl_to"], "rowcount": 5}, {"headers": ["page_title"], "rowcount": 28}, {"headers": ["tl_title", "count_tl_title"], "rowcount": 2}, {"headers": ["page_title", "pl_title"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {...
nlwiki_p
Vandalismebestrijding (IP-patrolling) nlwiki (failed)
Vandalismebestrijding, IP-controle, 28 april 2022, 22:
# 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": [""], "rowcount": 72514}], "runningtime": "81.18"}
nlwiki_p
All article space redirects in tewiki
All article titles with unnecessary zwnj
SELECT CONCAT("[[",REPLACE(page_title, '_', ' '),"]]") as pagename, CONCAT("[[",REPLACE(rd_title, '_', ' '),"]]") as rdname from redirect join page on rd_from=page_id where rd_namespace=0 LIMIT 10000
{"resultsets": [{"headers": ["user_name", "user_editcount"], "rowcount": 10}], "runningtime": "6.48"}
tewiki_p
all pages which are redirect in a category with pattern
all pages in a category pattern
SELECT CONCAT("[[",REPLACE(page_title, '_', ' '),"]]") as pagename, CONCAT("[[",REPLACE(rd_title, '_', ' '),"]]") as rdname from page join redirect on rd_from=page_id where rd_namespace=0 LIMIT 100
{"resultsets": [{"headers": ["user_name", "user_editcount"], "rowcount": 10}], "runningtime": "6.00"}
tewiki_p
all pages in a category pattern which are redirects
null
SELECT CONCAT("[[",REPLACE(page_title, '_', ' '),"]]") as pagename, CONCAT("[[",REPLACE(rd_title, '_', ' '),"]]") as rdname from redirect join page on rd_from=page_id where rd_namespace=0 and rd_title in ( SELECT page_title FROM page p JOIN categorylinks on cl_from =p.page_id WHERE cl_to LIKE "%మండల...
{"resultsets": [{"headers": ["user_name", "user_editcount"], "rowcount": 10}], "runningtime": "5.64"}
tewiki_p
all redirects in a category
null
SELECT CONCAT("[[",REPLACE(page_title, '_', ' '),"]]") as pagename, CONCAT("[[",REPLACE(rd_title, '_', ' '),"]]") as rdname from redirect join page on rd_from=page_id where rd_namespace=0 and rd_title in ( SELECT p.page_title FROM page p JOIN categorylinks on cl_from =p.page_id WHERE cl_to LIKE "బాప...
{"resultsets": [{"headers": ["COUNT(DISTINCT user_name)", "edit_bucket"], "rowcount": 4}], "runningtime": "39.83"}
tewiki_p
All redirects in a category
This is useful to identify redirects, so that maintenance actions can be taken up to delete unused redirect pages
SELECT CONCAT("[[",REPLACE(page_title, '_', ' '),"]]") as pagename, CONCAT("[[",REPLACE(rd_title, '_', ' '),"]]") as rdname from redirect join page on rd_from=page_id where rd_namespace=0 and rd_title in ( SELECT p.page_title FROM page p JOIN categorylinks on cl_from =p.page_id WHERE cl_to ="బాపట్ల_...
{"resultsets": [{"headers": ["link"], "rowcount": 171}], "runningtime": "3251.66"}
tewiki_p
All categories in tewiki
This is useful to identify redirects, so that maintenance actions can be taken up to delete unused redirect pages
SELECT CONCAT("[[",REPLACE(page_title, '_', ' '),"]]") as pagename, CONCAT("[[",REPLACE(rd_title, '_', ' '),"]]") as rdname from redirect join page on rd_from=page_id where rd_namespace=0 and rd_title in ( SELECT p.page_title FROM page p JOIN categorylinks on cl_from =p.page_id WHERE cl_to ="పల్నాడు...
{"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "23.44"}
tewiki_p
Most active test wikis on Incubator
This query lists the most active test projects on Incubator. It considers everything a test wiki prefix that begins with Wx (x may be any lower case letter), followed by a slash, followed by any number of lower case letters (this is a bit more relaxed than format actually required on Incubator, but the gain of simplici...
USE incubatorwiki_p; SELECT REGEXP_SUBSTR(rc_title, 'W[a-z]/[a-z]+') AS prefix, COUNT(*) AS count FROM recentchanges WHERE rc_namespace IN (0, 1, 10, 11, 14, 15, 828, 829) AND rc_type < 5 -- exclude Wikidata edits and category changes GROUP BY prefix HAVING prefix <> '' ORDER BY COUNT(*) DESC;
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 3}], "runningtime": "170.75"}
incubatorwiki
All user categories
null
select concat("Category:",page_title),page_len,cat_pages,cat_subcats from page join revision on rev_page=page_id and rev_parent_id=0 join category on cat_title=page_title where page_namespace=14 and page_title like "%Wikipedian%" and not exists (select 1 from categorylinks where cl_from=page_id and cl_to="Wikipedia_s...
{"resultsets": [{"headers": ["rev_parent_id", "comment_text"], "rowcount": 0}], "runningtime": "4.61"}
enwiki_p
Most active Category:Відеоігри_за_алфавітом editors in ukwiki
null
select a.actor_name, count(*) as number_of_edits from categorylinks cl join revision_userindex r on cl.cl_from = r.rev_page join actor a on r.rev_actor = a.actor_id where cl_to = "Відеоігри_за_алфавітом" group by a.actor_id order by number_of_edits desc
{"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 122}], "runningtime": "6.19"}
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 = "Ngọc Anh" -- Nếu muốn xem cột mốt cho cả Wikipedia thì xóa luôn lệnh này. GROUP BY date ORDER BY...
{"resultsets": [{"headers": ["actor_name", "antal"], "rowcount": 157}], "runningtime": "0.59"}
viwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["rc_timestamp", "page_title", "actor_id"], "rowcount": 8830}], "runningtime": "24.57"}
enwiki_p
NPP and merge tags
null
SELECT page_id, page_title FROM categorylinks INNER JOIN pagetriage_page ON categorylinks.cl_from = pagetriage_page.ptrp_page_id INNER JOIN page ON pagetriage_page.ptrp_page_id = page.page_id WHERE TRUE AND cl_to = 'All_articles_to_be_merged' AND ptrp_reviewed = 0 ORDER BY cl_timestamp ASC
{"resultsets": [{"headers": ["actor_name", "antal_kvinnor", "antal_m\u00e4n", "antal", "andel_kvinnor"], "rowcount": 100}], "runningtime": "1.46"}
enwiki
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"headers": ["actor_name", "antal_kvinnor", "antal_m\u00e4n", "antal", "andel_kvinnor"], "rowcount": 100}], "runningtime": "1.47"}
eswiki
Long-term event recruitment at events
null
SELECT * FROM logging_userindex AS logging -- INNER JOIN comment_logging AS comment ON logging.log_comment_id = comment.comment_id INNER JOIN user ON logging.log_title = user.user_name WHERE TRUE AND log_type = 'newusers' AND log_action = 'create2' AND log_timestamp >= '20100101000000' AND user_regist...
{"resultsets": [{"headers": ["log_timestamp", "count(*)"], "rowcount": 1}], "runningtime": "0.13"}
eswiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["#", "Usuario/a", "Total"], "rowcount": 500}], "runningtime": "3.81"}
enwiki_p
Article creation statistics on plwikinews
null
setset @start_timestamp := 202setset20301000000; #set @end_timestamp := 20220401000000; select actor_name, count(log_id) as creation_count from logging inner join page on page_id = log_page inner join actor on actor_id = log_actor where log_type = "create" and page_namespace = 0 and log_timestamp >=...
{"resultsets": [{"headers": ["tl_title"], "rowcount": 45}], "runningtime": "2192.29"}
plwikinews_p
top 500 editcount on nowiki
null
SELECT user_name, user_editcount FROM user ORDER BY user_editcount DESC LIMIT 500;
{"resultsets": [{"headers": ["anv\u00e4ndare", "antal_biografiredigeringar", "d\u00e4rav_antal_kvinnor", "d\u00e4rav_antal_m\u00e4n", "andel_kvinnor", "fr\u00e5n", "till"], "rowcount": 267}], "runningtime": "6.14"}
nowiki_p
All mainspace page creations by a specific user (enwikisource)
Returns all mainspace pages created on en.wikisource by a given user; note that this includes all redirects created during page moves.
SELECT page.page_title FROM revision_userindex INNER JOIN page ON revision_userindex.rev_page = page.page_id WHERE revision_userindex.rev_actor = (SELECT actor_id FROM actor WHERE actor_name = "Yodin") AND revision_userindex.rev_parent_id = 0 AND page.page_namespace = 0;
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 57}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 21}], "runningtime": "1.09"}
enwikisource_p
All mainspace page creations by a specific user (enwiki)
Returns all mainspace pages created on en.wikipedia by a given user; note that this includes all redirects created during page moves.
SELECT page.page_title FROM revision_userindex INNER JOIN page ON revision_userindex.rev_page = page.page_id WHERE revision_userindex.rev_actor = (SELECT actor_id FROM actor WHERE actor_name = "Jimbo Wales") AND revision_userindex.rev_parent_id = 0 AND page.page_namespace = 0;
{"resultsets": [{"headers": ["timestamp", "bureaucrat", "target", "comment_text"], "rowcount": 11}], "runningtime": "1.88"}
enwiki_p
fr IPBE inactivity 180d
null
SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', GROUP_CONCAT(ug1.ug_group) AS 'user_groups' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('ipblock-exempt') JOIN actor ON actor_user = user_id JOIN revision_userindex ON rev_id = (SELECT rev_id FR...
{"resultsets": [{"headers": ["page_title"], "rowcount": 45}], "runningtime": "11.91"}
frwiki
fr IPBE inactivity 180d
null
SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', GROUP_CONCAT(ug1.ug_group) AS 'user_groups' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('ipblock-exempt') JOIN actor ON actor_user = user_id JOIN revision_userindex ON rev_id = (SELECT rev_id FR...
{"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "11.05"}
frwiki
Article creation statistics on plwikinews
null
set @start_timestamp := 20220401000000; #set @end_timestamp := 20220501000000; select actor_name, count(log_id) as creation_count from logging inner join page on page_id = log_page inner join actor on actor_id = log_actor where log_type = "create" and page_namespace = 0 and log_timestamp >= @start_t...
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "Last edit", "user_groups"], "rowcount": 0}], "runningtime": "0.86"}
plwikinews_p
user categories tier 1
null
USE enwiki_p; with user_cat_page as ( select cl_from, cl_to, page.page_id, page.page_namespace from categorylinks join page on page.page_title = categorylinks.cl_to where page.page_namespace = 14 and cl_to = "Wikipedians_by_education" or cl_to = "Wikipedians_by_ethnicity_and_nationality" or cl_to = "W...
{"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 121}], "runningtime": "14.65"}
enwiki
Select 1
null
SELECT 1
{"resultsets": [{"headers": ["actor_name", "count(rev_actor)"], "rowcount": 0}], "runningtime": "0.05"}
enwiki_p
Most protected pages
5000 pages in Vietnamese Wikipedia that had been protected the most.
SELECT log_namespace AS namespace, log_title AS protected_page, COUNT(log_title) AS occurrences, MAX(log_timestamp) AS latest_occurence FROM logging WHERE log_type = "protect" GROUP BY namespace, protected_page ORDER BY occurrences DESC LIMIT 5000;
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 16}], "runningtime": "0.09"}
enwiki_p
Select 1
null
SELECT 1
{"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", "pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 10}]...
dewiki_p
Select 1
null
SELECT 1
{"resultsets": [{"headers": ["_item", "_desc"], "rowcount": 109}], "runningtime": "349.83"}
enwiki_p
AfC review counts, last 24 hours
** 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": ["_item", "_desc"], "rowcount": 202}], "runningtime": "341.32"}
wikidatawiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 8}], "runningtime": "230.81"}
enwiki_p
Wikidata changes made with Cita
List Wikidata changes made with Wikidata addon for Zotero, Cita: https://www.wikidata.org/wiki/Wikidata:Zotero/Cita
SELECT comment_text, rev_page, rev_timestamp, actor_name FROM change_tag JOIN change_tag_def ON ct_tag_id = ctd_id JOIN revision ON ct_rev_id = rev_id JOIN comment ON rev_comment_id = comment_id JOIN actor ON rev_actor = actor_id WHERE ctd_name = 'WikibaseJS-edit' AND comment_text LIKE '%Wikidata:Zotero/Cita|Cita]]]';
{"resultsets": [{"headers": ["tl_title"], "rowcount": 29}], "runningtime": "2035.45"}
wikidatawiki
Abuse Filter blocks
null
SELECT COUNT(*) FROM logging INNER JOIN actor on logging.log_actor = actor.actor_id WHERE log_type = 'block' AND log_action = 'block' AND actor.actor_name = 'Filtro anti abusi' AND log_timestamp > 20220101000000
{"resultsets": [{"headers": ["Page", "Deleting admin", "Edit summary", "Timestamp"], "rowcount": 3874}], "runningtime": "8.01"}
itwiki
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 1}], "runningtime": "0.06"}
enwiki
templatelinks query, new way
null
SELECT tl_from, lt_namespace, lt_title from templatelinks join linktarget on tl_target_id = lt_id where tl_from = 5974403;
{"resultsets": [{"headers": ["CONCAT(\"# [[\", page_namespace, \":\", page_title, \"]] (\", page_len, \" byte)\")"], "rowcount": 34}], "runningtime": "0.08"}
fawiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["actor_name", "rc_title", "comment_text", "time"], "rowcount": 19}], "runningtime": "25.43"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["md_module", "md_skin", "md_deps"], "rowcount": 154634}], "runningtime": "159.16"}
enwiki_p
named user group on enwiki check
null
SELECT COUNT(1) FROM user_groups WHERE ug_group = "named"
{"connection_id": 61552472}
enwiki_p
Tamzin's user groups on enwiki 2022-05-05
Something is terribly wrong (probably)
SELECT * FROM user_groups WHERE ug_user = 17820167
{"resultsets": [{"headers": ["page_title", "page_count", "tag_center", "tag_small", "tag_span", "tag_div", "tag_b", "tag_i", "tag_s"], "rowcount": 100}], "runningtime": "0.40"}
enwiki_p
Ip-patrolling (vandalismebestrijding) nlwiki
Vandalismebestrijding, IP-controle 5 mei 2022, 16:07 : 929 markeringen 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": ["CONCAT('| [[:{{ns:', i.il_from_namespace, '}}:', p.page_title, ']] ||[[:\u0391\u03c1\u03c7\u03b5\u03af\u03bf:', i_p.page_title, ']]')"], "rowcount": 4}], "runningtime": "0.22"}
nlwiki_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 "...
{"connection_id": 61746227}
bnwiki
search in metadata
null
SELECT img_name,img_metadata FROM `image` WHERE ( img_metadata LIKE "%mario%" ) LIMIT 10;
{"resultsets": [{"headers": ["rev_timestamp", "comment_text", "actor_name"], "rowcount": 6708}], "runningtime": "9.01"}
commonswiki_p
Images with big resolution
null
SELECT img_name FROM image WHERE img_width * img_height > 200000 AND img_name NOT LIKE '%.svg' GROUP BY img_name
{"resultsets": [{"headers": ["rev_timestamp", "comment_text", "actor_name", "ct_id", "ctd_name"], "rowcount": 255}], "runningtime": "1.67"}
viwiki_p
Get nlwiki page schema
null
DESCRIBE commonswiki_p.category;
{"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": 1}], "runningtime": "0.06"}
commonswiki_p
recycle
null
select page_title from page where page_namespace=102 and substring(page_title,1,length(page_title)-7) not in (select page_title from page where page_namespace=6);
{"resultsets": [{"headers": ["Contributors", "Edits", "Articles"], "rowcount": 8}, {"headers": ["Articles", "Editors"], "rowcount": 80}], "runningtime": "3.00"}
commonswiki_p
All edits in ukwiki main namespace in certain period
null
SELECT REPLACE(P.page_title,'_',' ') AS title, COUNT(1) AS edits, R.rev_timestamp AS timestamp FROM ukwiki_p.revision R JOIN ukwiki_p.page P ON R.rev_page=P.page_id WHERE R.rev_timestamp > 20220415174100 AND P.page_namespace = 0 GROUP BY P.page_title HAVING edits >= 2 ORDER BY edits DESC, R.rev_timestamp DESC
{"resultsets": [{"headers": ["Contributors", "Edits", "Articles"], "rowcount": 12}], "runningtime": "12.69"}
ukwiki_p
show tables
null
SHOW TABLES FROM enwiki_p;
{"resultsets": [{"headers": ["page_title"], "rowcount": 18}], "runningtime": "186.38"}
enwiki_p
#/mainspace pages in Category:Living people 220506
Number of pages in the enwiki main namespace that are in [[Category:Living people]] and transclude {{Infobox football biography}}. For [[w:en:User:Levivich/Footy AfDs]].
SELECT COUNT(*) FROM categorylinks JOIN page ON page_id = cl_from WHERE page_namespace = 0 AND cl_to = 'Living_people';
{"resultsets": [{"headers": ["page_title"], "rowcount": 94}], "runningtime": "0.28"}
enwiki
#/living footballers in main namespace 220506
Number of pages in the enwiki main namespace that are in [[Category:Living people]] and transclude {{Infobox football biography}}. For [[w:en:User:Levivich/Footy AfDs]].
SELECT COUNT(*) FROM page JOIN templatelinks ON page_id = tl_from JOIN categorylinks ON page_id = cl_from WHERE page_namespace = 0 AND cl_to = 'Living_people' AND tl_namespace = 10 AND tl_title = 'Infobox_football_biography';
{"resultsets": [{"headers": ["page_title"], "rowcount": 88}], "runningtime": "0.23"}
enwiki
templatelinks
null
SELECT * FROM templatelinks WHERE 1=1 AND tl_namespace = 10 AND tl_title = "AfC_submission" LIMIT 100;
{"connection_id": 27819803}
enwiki_p
w/ revision count first subquery
null
USE enwiki_p; select user.user_id, user.user_name, user.user_registration as acct_created, actor.actor_id, count(rc_id) as recent_rev_count, count(revision.rev_id) as lifetime_rev_count from recentchanges join actor on recentchanges.rc_actor = actor.actor_id join user on actor.actor_user = user.us...
{"resultsets": [{"headers": ["cl_sortkey_prefix", "page_title", "el_to"], "rowcount": 103}], "runningtime": "0.18"}
enwiki
Full w/ limit
null
USE enwiki_p; with recent_user_edits as ( select user.user_id, user.user_name, user.user_registration as acct_created, actor.actor_id, count(rc_id) as recent_rev_count, count(revision.rev_id) as lifetime_rev_count from recentchanges join actor on recentchanges.rc_actor = actor.actor_id join user on...
{"resultsets": [{"headers": ["cl_sortkey_prefix", "page_title", "el_to", "pp_propname", "pp_value"], "rowcount": 10}], "runningtime": "0.06"}
enwiki
test
null
USE enwiki_p; select rc_id from recentchanges limit 1
{"resultsets": [{"headers": ["_item", "_desc"], "rowcount": 98}], "runningtime": "260.91"}
enwiki