title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
AfC review counts for zhwiki, last 28 days | by https://quarry.wmcloud.org/query/27659 | select count(rc_id) as reviews, actor_name,
SUM(comment_text like "%发布已接受的[[PJ:AFC|条目建立]]草稿%" or comment_text like "%發布已接受的[[PJ:AFC|條目建立]]草稿%") as "accept",
SUM(comment_text like "%仍需改善的草稿%") as "decline",
SUM(comment_text like "%拒绝再次提交的草稿%" or comment_text like "%拒絕再次提交的草稿%") as "reject",
conca... | {"resultsets": [{"headers": ["pages_with_disambig_but_not_redir"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_articles", "user_latestcreation"], "rowcount": 999}], "runningtime": "134.52"} | zhwiki_p |
Non free files with template links | Non free files uploaded with fair use related template links for subsequent filtering to get with no rationale. | select DISTINCT
tl_title,
actor_name,
LEFT(rev_timestamp,8) as date,
page_title
from image as ss
join page ON page_namespace=6 AND page_title=img_name
join revision ON rev_page = page_id AND rev_parent_id = 0
join actor ON actor_id=rev_actor
join categorylinks ON cl_from=page_id A... | {"resultsets": [{"headers": ["user", "edit_count"], "rowcount": 98}], "runningtime": "6.21"} | tewiki_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": ["CONVERT(p1.page_title USING utf8)", "COUNT(*)"], "rowcount": 34}], "runningtime": "10.48"} | enwiki_p |
Redirects from drafts to articles on enwiki | null | SELECT page_title, rd_title
FROM redirect
JOIN page ON rd_from = page_id
WHERE page_namespace = 118
AND rd_namespace = 0
| {"resultsets": [{"headers": ["log_title"], "rowcount": 0}], "runningtime": "13.19"} | enwiki_p |
Tamzin's most-used edit summaries of 2021 on enwiki | null | SELECT comment_text, COUNT(*)
FROM comment
INNER JOIN revision ON rev_comment_id = comment_id
WHERE rev_timestamp LIKE "2021%"
AND rev_actor = 785255 -- Tamzin
GROUP BY 1
ORDER BY 2 DESC | {"connection_id": 55767404} | enwiki_p |
Elli's most-used edit summaries of 2021 on enwiki | null | SELECT comment_text, COUNT(*)
FROM comment
INNER JOIN revision ON rev_comment_id = comment_id
WHERE rev_timestamp LIKE "2021%"
AND rev_actor = 417633 -- Elli
GROUP BY 1
ORDER BY 2 DESC | {"resultsets": [{"headers": ["editor", "accepts", "recent_edits"], "rowcount": 1694}], "runningtime": "13.24"} | enwiki_p |
eviolite's most-used enwiki edit summaries, since April 2021 | null | SELECT comment_text, COUNT(*)
FROM comment
INNER JOIN revision ON rev_comment_id = comment_id
WHERE rev_timestamp > 20210425000000
AND rev_actor = 205086584
GROUP BY 1
ORDER BY 2 DESC | {"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 33}], "runningtime": "6.22"} | enwiki_p |
Tamzin's most-used edit summaries of 2021 on enwiki | null | SELECT comment_text, COUNT(*)
FROM comment
INNER JOIN revision ON rev_comment_id = comment_id
WHERE rev_timestamp > 20210721000000
AND rev_actor = 215868059 -- TAOT
GROUP BY 1
ORDER BY 2 DESC | {"resultsets": [{"headers": ["date", "reviews", "accepts", "declines", "rejects", "accept %", "decline %", "reject %"], "rowcount": 31}], "runningtime": "14.67"} | enwiki_p |
Wikidata - English descriptions starting with "a .." | null | USE metawiki_p;
SELECT log_title, COUNT(log_id)
FROM logging_logindex
WHERE
log_type = "thanks" AND
log_timestamp >= "20200000000000"
GROUP BY log_title
ORDER BY 2 DESC | {"resultsets": [{"headers": ["tl_title"], "rowcount": 58}], "runningtime": "1388.67"} | metawiki_p |
(from Sept 2021) SDC edits by user and edit summary #WMSE-WLM-india | 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_title"], "rowcount": 0}], "runningtime": "0.32"} | commonswiki_p |
Reviewer stats (bnwiki) | null | use bnwiki_p;
SELECT
user_name user,
count(*) as review_cnt
FROM
logging
JOIN actor ON log_actor = actor_id
JOIN user ON actor_user = user_id
WHERE
log_type = 'review'
AND log_action IN ('approve', 'approve2', 'approve-i', 'approve2-i')
#AND log_timestamp > CONCAT( YEAR( DATE_SUB( NOW(), INTERVAL... | {"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.23"} | bnwiki_p |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | USE bnwiki_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 = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev_timestamp <= 30191231235... | {"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": 17}], "runningtime": "0.19"} | bnwiki_p |
Most active editors bnwiki | 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 actor ON revision.rev_actor=actor.actor_id
WHERE page.page_namespace=0
GROUP BY actor.actor_name
ORDER BY cnt DESC
#LIMIT 20; | {"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": 8}], "runningtime": "0.17"} | bnwiki_p |
মোট সম্পাদনার সংখ্যা | ১ এপ্রিল ২০২০। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে HTML ক্লিক করুন। | USE bnwiki_p;
SET @counter:=0; SELECT CONCAT("}}{{subst:সসংঅউতা|",@counter:=@counter+1,"") AS rank, CONCAT("|",user_name,"|") AS user_name, user_editcount
FROM user
WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot')
AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)"
ORDER BY user_editcount DESC... | {"resultsets": [{"headers": ["CONCAT(\"Translations:\", page_title)"], "rowcount": 8}], "runningtime": "0.16"} | bnwiki_p |
Non free files per user | Non free files uploaded per user |
select
actor_name,
LEFT(rev_timestamp,8) as date,
page_title
from image
join page ON page_namespace=6 AND page_title=img_name
join revision ON rev_page = page_id AND rev_parent_id = 0
join actor ON actor_id=rev_actor
join categorylinks ON cl_from=page_id AND cl_type="file"
wher... | {"resultsets": [{"headers": ["pages_with_disambig_but_not_redir"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_articles", "user_latestcreation"], "rowcount": 999}], "runningtime": "105.92"} | tewiki_p |
Local media files with no license for specific user | For images without license information for specific user | set @dbname = 'tewiki';
select
CONCAT("File:", img_name) as pagename
from image
join page ON page_namespace=6 AND page_title=img_name
join revision ON rev_page = page_id AND rev_parent_id = 0
join actor ON actor_id=rev_actor
where
page_is_redirect=0 and actor_name="కార్తీక రాజు"
... | {"resultsets": [{"headers": ["page_id"], "rowcount": 2}], "runningtime": "7.79"} | tewiki_p |
Local media files lacking article backlink for specific user | For files without backlink for specific user | set @dbname = 'tewiki';
select
CONCAT("File:", img_name) as pagename
from image
join page ON page_namespace=6 AND page_title=img_name
join revision ON rev_page = page_id AND rev_parent_id = 0
join actor ON actor_id=rev_actor
where
page_is_redirect=0 and actor_name="Batthini Vinay... | {"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": "18.72"} | tewiki_p |
Recursive Random Post | null | WITH RECURSIVE rcte AS (
SELECT DISTINCT
p.page_id,
p.page_title,
cl.cl_from,
cl.cl_to,
1 AS depth
FROM
page p
INNER JOIN categorylinks cl ON cl.cl_from = p.page_id AND cl.cl_to = 'Gaming'
UNION ALL
SELECT DISTINCT
p2.page_id,
p2.page_title,
cl2.cl_from,
cl2.cl_to,
... | {"resultsets": [{"headers": ["page_len", "page_title"], "rowcount": 0}], "runningtime": "0.07"} | enwiki |
Pages in Category | null | SELECT DISTINCT
p.page_id,
p.page_title,
cl.cl_from,
cl.cl_to,
p.page_is_redirect,
1 AS depth
FROM
page p
INNER JOIN categorylinks cl ON cl.cl_from = p.page_id AND cl.cl_to = 'Independent_Games_Festival_winners'
ORDER BY RAND()
LIMIT 5 | {"resultsets": [{"headers": ["MIN(rev_id)", "page_title", "cl_to"], "rowcount": 0}], "runningtime": "0.07"} | enwiki |
singles etc | null | select page_title from page where page_namespace=0
and page_is_redirect=0
and ((page_title like '%–$_%$_singles' ESCAPE '$')
or (page_title like '%–$_%$_oubles' ESCAPE '$')
or (page_title like '%–$_%$_triples' ESCAPE '$')
or (page_title like '%–$_%$_pairs' ESCAPE '$')
or (page_title like '%–$_%$_fours' ESCAPE '... | {"resultsets": [{"headers": ["cat", "pages", "subcats", "files", "total"], "rowcount": 0}], "runningtime": "0.27"} | enwiki_p |
Singles etc Bowls | null | select page_title from page where page_namespace=0
and page_is_redirect=0
and ((page_title like '%–$_%$_Singles' ESCAPE '$')
or (page_title like '%–$_%$_Doubles' ESCAPE '$')
or (page_title like '%–$_%$_Triples' ESCAPE '$')
or (page_title like '%–$_%$_Pairs' ESCAPE '$')
or (page_title like '%–$_%$_Fours' ESCAPE ... | {"resultsets": [{"headers": ["cat", "total"], "rowcount": 0}], "runningtime": "0.88"} | enwiki_p |
Get article author | null | SELECT page_title, actor_name AS page_creator
FROM revision_userindex
JOIN page ON page_id = rev_page
JOIN actor_revision ON actor_id = rev_actor
WHERE rev_page IN (66411662)
ORDER BY rev_id ASC
LIMIT 1 | {"resultsets": [{"headers": ["cat", "pages", "subcats", "files", "total"], "rowcount": 50}], "runningtime": "0.15"} | enwiki |
Wikidata: 2021 top patrollers (main namespace) | null | SELECT
actor_name,
COUNT(log_id) AS cnt
FROM
logging
JOIN actor_logging ON log_actor=actor_id
WHERE
log_type='patrol'
AND log_action='patrol'
-- AND log_namespace=0
AND log_timestamp >= "20210000000000" AND
log_timestamp <= "20220000000000"
GROUP BY
actor_name
HAVING
cnt>=1000
ORDER BY
cnt D... | {"resultsets": [{"headers": ["cat", "total"], "rowcount": 0}], "runningtime": "3.79"} | wikidatawiki_p |
Most active users by bytes on Wikidata (2021) | null | SELECT CONCAT("[",actor_name,"](https://www.wikidata.org/wiki/User:",actor_name,")") AS user_name, SUM(CAST(rev.rev_len as signed)-CAST(parent.rev_len as signed)) AS byte_count
FROM actor
JOIN revision rev
ON actor_id = rev.rev_actor
JOIN revision parent
ON rev.rev_parent_id = parent.rev_id
JOIN page
ON page_id = paren... | {"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 6}, {"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 7}], "runningtime": "0.20"} | wikidatawiki_p |
Long user talk pages | null | SELECT concat("User talk:",page_title), page_len
FROM page
WHERE page_namespace = 3
AND page_len >500000
AND page_title NOT RLIKE "/"; | {"resultsets": [{"headers": ["editor", "accepts", "recent_edits"], "rowcount": 310}], "runningtime": "1.34"} | enwiki_p |
largest talk pages | null | SELECT page_title, page_len
#SELECT COUNT(*)
FROM page
WHERE page_namespace='5'
#0/1 main 2/3 user 4/5 wp 6/7 file 8/9 mw 10/11 template 12/13 help
# 14/15 cat 100/101 portal 118/119 draft 710/711 timedtext 828/829 module
# 2300/2301 gadget 2302/2303 g. definition -1 special -2 media
# AND page_title LIKE 'Articles_f... | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.45"} | enwiki_p |
global ipv6 blocks larger than the contribs limit | null | SELECT RIGHT(gb_address, 2) AS `cidr`, gb_address, gb_by, gb_reason
FROM globalblocks
WHERE
gb_address rlike ".*/(19|2\\d|3[01])"
AND gb_range_start LIKE "v6%"
ORDER BY cidr | {"resultsets": [{"headers": ["title", "link", "hex"], "rowcount": 1}], "runningtime": "0.10"} | centralauth_p |
enwiki ipv6 blocks larger than the contribs limit | null | SELECT *
FROM ipblocks_ipindex
JOIN comment_ipblocks ON ipb_reason_id = comment_id
JOIN actor_ipblocks ON ipb_by_actor = actor_id
WHERE
ipb_address rlike ".*/(19|2\\d|3[01])"
AND ipb_user = 0
AND ipb_auto = 0
AND ipb_range_start LIKE "v6%"
| {"resultsets": [{"headers": ["title", "link", "last_edit"], "rowcount": 0}], "runningtime": "0.12"} | enwiki_p |
WTTC | null | select page_title from page where page_namespace=0
and page_is_redirect=0
and ((page_title like '%World_Table_Tennis_Championship%')
)
| {"resultsets": [{"headers": ["page_title", "link", "last_edit_timestamp"], "rowcount": 44009}], "runningtime": "48.91"} | enwiki_p |
All Wikilinks | Inspired by Wikipedia speed-running. Will be used to create a very large network of all links. | SELECT
pagelinks.pl_from,
pagelinks.pl_namespace,
pagelinks.pl_title,
pagelinks.pl_from_namespace,
page.page_title
FROM pagelinks
INNER JOIN page ON pagelinks.pl_from = page.page_id; | {"resultsets": [{"headers": ["page_title", "page_namespace", "actor_name", "rev_timestamp", "comment_text"], "rowcount": 81}], "runningtime": "97.89"} | enwikipedia |
Largest AfD talk pages | null | SELECT page_title, page_len
#SELECT COUNT(*)
FROM page
WHERE page_namespace='5'
#0/1 main 2/3 user 4/5 wp 6/7 file 8/9 mw 10/11 template 12/13 help
# 14/15 cat 100/101 portal 118/119 draft 710/711 timedtext 828/829 module
# 2300/2301 gadget 2302/2303 g. definition -1 special -2 media
# AND page_title LIKE 'Articles_f... | {"connection_id": 62301775} | enwiki_p |
WOBC | null | select page_title from page where page_namespace=0
and page_is_redirect=0
and ((page_title like '%–$_%$_singles' ESCAPE '$')
or (page_title like '%–$_%$_oubles' ESCAPE '$')
or (page_title like '%–$_%$_triples' ESCAPE '$')
or (page_title like '%–$_%$_pairs' ESCAPE '$')
or (page_title like '%–$_%$_fours' ESCAPE '... | {"resultsets": [{"headers": ["actor_name"], "rowcount": 0}], "runningtime": "3.40"} | enwiki_p |
uncatted chem redirs | null | select page_title, rd_title from page join redirect on page_id=rd_from where page_namespace=0 and page_is_redirect=1 and page_title rlike "(O|H|N|I|F|S|Cl|Na|Mg|Fe|Br|Al|Ag|Si|Cu|Co|Cr|Ni|Ca|Ti|Mn|Sn|Se|Sc|Ga|Ge|Li|Zr|Nb|Mo|Cd|Pd)[0-9]" and page_title not rlike "_" and page_id not in (select cl_from from categorylinks ... | {"resultsets": [{"headers": ["actor_name"], "rowcount": 4}], "runningtime": "3.39"} | enwiki_p |
Creation user and date for local media files with no license | For images without license information, output created user and date | set @dbname = 'tewiki';
select
actor_name,
LEFT(rev_timestamp,8) as date,
CONCAT("[[:File:", img_name,"]]") as pagename
from image
join page ON page_namespace=6 AND page_title=img_name
join revision ON rev_page = page_id AND rev_parent_id = 0
join actor ON actor_id=rev_actor
whe... | {"resultsets": [{"headers": ["pp_propname"], "rowcount": 30}], "runningtime": "0.14"} | tewiki_p |
Creation user and date for local media files with no license | For images without license information, output created user and date | select
CONCAT("File:", img_name) as pagename
from image
join page ON page_namespace=6 AND page_title=img_name
join revision ON rev_page = page_id AND rev_parent_id = 0
join actor ON actor_id=rev_actor
where
page_is_redirect=0
AND NOT EXISTS(
SELECT * FROM categorylinks
WHERE page_... | {"resultsets": [{"headers": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 1173}], "runningtime": "2.20"} | tewiki_p |
Unclear Media license | File which is not categorized as free or non-free | select
CONCAT("File:", img_name) as pagename
from image
join page ON page_namespace=6 AND page_title=img_name
join revision ON rev_page = page_id AND rev_parent_id = 0
join actor ON actor_id=rev_actor
where
page_is_redirect=0
AND NOT EXISTS(
SELECT * FROM categorylinks
WHERE page_id=cl... | {"resultsets": [{"headers": ["pp_propname", "pp_value"], "rowcount": 70}], "runningtime": "0.23"} | tewiki_p |
Oldest revision in mainspace | 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": 2181}], "runningtime": "4.33"} | enwiki_p |
lowest pageIDs in whatever namespace(?) | null | SELECT page_title, page_len, page_namespace, page_id
FROM page
WHERE page_namespace='2300'
# 0/1 main 2/3 user 4/5 wp 6/7 file 8/9 mediawiki 10/11 template
# 12/13 help 14/15 cat 100/101 portal 118/119 draft 710/711 timedtext 828/829 module
# 2300/2301 gadget 2302/2303 ... | {"resultsets": [{"headers": ["user_id", "user_name", "user_editcount"], "rowcount": 144}], "runningtime": "0.88"} | enwiki_p |
Oldest revision in userspace | 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": ["ug_user", "ug_group", "ug_expiry"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_editcount"], "rowcount": 144}], "runningtime": "0.84"} | enwiki_p |
Oldest revision in user talk space | 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": ["ug_user", "ug_group", "ug_expiry"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_editcount"], "rowcount": 144}], "runningtime": "0.82"} | enwiki_p |
Oldest revision in projectspace | 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": ["ug_user", "ug_group", "ug_expiry"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_editcount"], "rowcount": 144}], "runningtime": "0.84"} | enwiki_p |
Oldest revision in project talk space | 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": ["ug_user", "ug_group", "ug_expiry"], "rowcount": 4}, {"headers": ["user_id", "user_name", "user_editcount"], "rowcount": 144}], "runningtime": "0.85"} | enwiki_p |
Oldest revision in file space | 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": ["ug_user", "ug_group", "ug_expiry"], "rowcount": 4}, {"headers": ["user_id", "user_name", "user_editcount"], "rowcount": 102}], "runningtime": "0.78"} | enwiki_p |
Oldest revision in file talk space | 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": ["user_id", "user_name", "user_editcount"], "rowcount": 102}], "runningtime": "0.80"} | enwiki_p |
Oldest revision in help space | 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_id"], "rowcount": 0}], "runningtime": "8.39"} | enwiki_p |
Oldest revision in help talk space | 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_id"], "rowcount": 3}], "runningtime": "38.36"} | enwiki_p |
Oldest revision in category space | 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": ["CONCAT('{{Commons:', p.page_title, '}}')"], "rowcount": 90}], "runningtime": "15.98"} | enwiki_p |
Oldest revision in category talk space | 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": ["user ID", "user name", "count"], "rowcount": 25}], "runningtime": "6.72"} | enwiki_p |
Oldest revision in TimedText space | 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": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "user_password_e... | enwiki_p |
Oldest revision in TimedText talk space | 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_namespace", "page_title", "cl_to"], "rowcount": 10}, {"headers": ["page_namespace", "page_title", "cl_to"], "rowcount": 10}], "runningtime": "15.44"} | enwiki_p |
Oldest revision in gadget space | 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", "COUNT(*)"], "rowcount": 50}], "runningtime": "20.02"} | enwiki_p |
Oldest revision in gadget talk space | 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... | {"connection_id": 14181736} | enwiki_p |
Oldest revision in mainspace | 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", "COUNT(*)"], "rowcount": 50}], "runningtime": "3.75"} | enwiki_p |
Oldest revision in MediaWiki space | 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", "page_id", "revisions", "editors", "size"], "rowcount": 1}], "runningtime": "0.09"} | enwiki_p |
Oldest revision in module space | 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", "page_id", "revisions", "editors", "size"], "rowcount": 1}], "runningtime": "0.08"} | enwiki_p |
Oldest revision in module talk space | 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", "page_id", "revisions", "editors", "size"], "rowcount": 3}], "runningtime": "0.08"} | enwiki_p |
redirects to ref- templates tt2 | null | SELECT
page_title
FROM page
WHERE page_namespace = 10
AND page_title LIKE '%_icon' | {"resultsets": [{"headers": ["actor_name", "count(rev_actor)"], "rowcount": 148}], "runningtime": "10.09"} | ruwiki_p |
redirects to ref- templates tt | null | SELECT
page_title,
pl_title
FROM pagelinks
JOIN page ON pl_from = page_id
WHERE pl_namespace = 10
AND pl_from_namespace = 10
AND page_is_redirect = 1
AND pl_title LIKE 'Ref-%'
AND page_title NOT LIKE '%_icon' | {"resultsets": [{"headers": ["\u0645", "\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a"], "rowcount": 469}], "runningtime": "4.55"} | ruwiki_p |
Longest 1,000 pages in all namespaces | null | SELECT page_title AS "Mainspace", page_len
FROM page WHERE page_namespace = "0" ORDER BY page_len DESC LIMIT 1000;
SELECT page_title AS "Talk", page_len
FROM page WHERE page_namespace = "1" ORDER BY page_len DESC LIMIT 1000;
SELECT page_title AS "User", page_len
FROM page WHERE page_namespace = "2" ORDER BY page_len DE... | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 13}], "runningtime": "0.09"} | enwiki_p |
Longest 1,000 pages (MediaWiki) | null | SELECT page_title AS "MediaWiki", page_len
FROM page WHERE page_namespace = "8" ORDER BY page_len DESC LIMIT 1000; | {"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": 1000}], "runningtime": "1.62"} | enwiki_p |
Longest 1,000 pages (Template) | null | SELECT page_title AS "Template", page_len
FROM page WHERE page_namespace = "10" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page_title"], "rowcount": 1000}], "runningtime": "1.41"} | enwiki_p |
Longest 1,000 pages (Help talk) | null | SELECT page_title AS "Help talk", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "13" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 0}], "runningtime": "7.60"} | enwiki_p |
Longest 1,000 pages (mainspace) | null | SELECT page_title AS "Mainspace", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "0" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["count(*)"], "rowcount": 1}], "runningtime": "19.80"} | enwiki_p |
Longest 1,000 pages (talk) | null | SELECT page_title AS "Talk", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "1" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 0}], "runningtime": "9.39"} | enwiki_p |
Longest 1,000 pages (User) | null | SELECT page_title AS "User", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "2" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 0}], "runningtime": "1.98"} | enwiki_p |
Longest 1,000 pages (User talk) | null | SELECT page_title AS "User talk", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "3" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page_id", "page_title"], "rowcount": 10}], "runningtime": "0.08"} | enwiki_p |
Longest 1,000 pages (Wikipedia) | null | SELECT page_title AS "Wikipedia", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "4" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["concat(page, \"{{\u05db}} ([[\", disambig, \"]])\")"], "rowcount": 2514}], "runningtime": "5.72"} | enwiki_p |
Longest 1,000 pages (Wikipedia talk) | null | SELECT page_title AS "Wikipedia talk", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "5" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page_id", "page_title"], "rowcount": 1}], "runningtime": "0.07"} | enwiki_p |
Longest 1,000 pages (File talk) | null | SELECT page_title AS "File talk", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "7" ORDER BY page_len DESC LIMIT 1000; | {"connection_id": 14302453} | enwiki_p |
Longest 1,000 pages (File) | null | SELECT page_title AS "File", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "6" ORDER BY page_len DESC LIMIT 1000; | {"connection_id": 14302572} | enwiki_p |
Longest 1,000 pages (Category) | null | SELECT page_title AS "Category", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "14" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page", "disambig"], "rowcount": 2514}], "runningtime": "4.09"} | enwiki_p |
Longest 1,000 pages (Category talk) | null | SELECT page_title AS "Category talk", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "15" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page_title"], "rowcount": 1000}], "runningtime": "1.46"} | enwiki_p |
Longest 1,000 pages (Portal) | null | SELECT page_title AS "Portal", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "100" ORDER BY page_len DESC LIMIT 1000; | {"connection_id": 14302861} | enwiki_p |
Longest 1,000 pages (Draft) | null | SELECT page_title AS "Draft", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "118" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page", "disambig"], "rowcount": 2514}], "runningtime": "3.87"} | enwiki_p |
Longest 1,000 pages (Draft talk) | null | SELECT page_title AS "Draft talk", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "119" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page_id", "page_title"], "rowcount": 1}], "runningtime": "24.99"} | enwiki_p |
Longest 1,000 pages (TimedText) | null | SELECT page_title AS "TimedText", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "710" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page", "disambig"], "rowcount": 2514}], "runningtime": "4.12"} | enwiki_p |
Longest 1,000 pages (TimedText talk) | null | SELECT page_title AS "TimedText talk", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "711" ORDER BY page_len DESC LIMIT 1000; | {"connection_id": 14303362} | enwiki_p |
Longest 1,000 pages (Module) | null | SELECT page_title AS "Module", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "828" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["page", "disambig"], "rowcount": 2514}], "runningtime": "3.94"} | enwiki_p |
Longest 1,000 pages (Module talk) | null | SELECT page_title AS "Module talk", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "829" ORDER BY page_len DESC LIMIT 1000; | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 13}], "runningtime": "0.10"} | enwiki_p |
Longest 1,000 pages that aren't subpages (Wikipedia) | null | SELECT page_title AS "Wikipedia", page_len AS "Size (bytes)"
FROM page WHERE page_namespace = "4"
AND page_title NOT LIKE "%/%"
ORDER BY page_len 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"], "rowcount": 10}], "runningtime": "0.08"} | enwiki_p |
users with advanced user rights and non-ascii user names | null | SELECT user_name, ug_group
FROM user_groups
JOIN user ON user_id = ug_user
WHERE ug_group NOT IN ('bot')
AND ug_group IN ('abusefilter', 'abusefilter-helper', 'accountcreator',
#'autoreviewer',
#'bot',
'bureaucrat', 'checkuser',
#'confirmed',
... | {"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 181}], "runningtime": "3.97"} | enwiki |
Insanely subnested archives | null | #SELECT LENGTH(page_title) AS title_length, page_len AS "size", page_namespace AS "ns", page_title AS "title"
#FROM page
#WHERE page_title LIKE "%/%/%/%/%"
#AND page_title NOT LIKE "%/%/%/%/%/%"
#AND page_title NOT LIKE "%/%/%/%/%/%/%"
#ORDER BY length(page_title) DESC;
# 4 slashes
#SELECT LENGTH(page_title) AS title_... | {"resultsets": [{"headers": ["File name", "Date", "Size", "Uploader's name"], "rowcount": 49}], "runningtime": "439.37"} | enwiki_p |
All pages with 10 or more slashes in their titles | null | SELECT LENGTH(page_title) AS title_length, page_len AS "size", page_namespace AS "ns", page_title AS "title"
FROM page WHERE page_title LIKE "%/%/%/%/%/%/%/%/%/%/%"
ORDER BY page_len ASC;
| {"resultsets": [{"headers": ["user", "cnt"], "rowcount": 82}], "runningtime": "0.67"} | enwiki_p |
Blank, glitched ClueBot indices (7 or more slashes) | null | SELECT LENGTH(page_title) AS title_length, page_len AS "size", page_namespace AS "ns", page_title AS "title"
FROM page WHERE page_title LIKE "%/%/%/%/%/%/%/%" AND page_len = 202
ORDER BY page_len ASC;
| {"resultsets": [{"headers": ["page_id"], "rowcount": 5}], "runningtime": "14.67"} | enwiki_p |
44 slashes | null | SELECT LENGTH(page_title) AS title_length, page_len AS "size", page_namespace AS "ns", page_title AS "title"
FROM page WHERE page_title LIKE "%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%/%"
ORDER BY page_len ASC;
| {"resultsets": [{"headers": ["tl_title"], "rowcount": 86}], "runningtime": "1380.96"} | enwiki_p |
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": ["page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "2.02"} | eswiki |
oooold stuff | null | SELECT page_namespace, page_title, page_len, page_touched, CONCAT("https://en.wikipedia.org/wiki/Special:Redirect/page/", page_id) AS $link
FROM page
WHERE page_is_new=1
AND page_is_redirect = 0
AND page_namespace != 2
AND page_namespace != 3
AND page_namespace != 8
ORDER BY page_touched ASC
LIMIT 500 | {"resultsets": [{"headers": ["actor_name", "rc_this_oldid", "comment_text"], "rowcount": 1}], "runningtime": "15.82"} | enwiki_p |
Global IP block exempt users active on fawiki | null | select
gu_name,
gu_home_db,
user_editcount,
case
when exists (
select ug_user
from fawiki_p.user_groups
where
ug_user = user_id
and ug_group in (
'sysop',
'ipblock-exempt'
)
) then 1
else 0
end as has_local_ipbe,
max(left(log_timestam... | {"resultsets": [], "runningtime": "0.03"} | fawiki_p |
ooold stuff | null | select page_namespace, page_title, page_len, page_touched from page where page_is_new=1 order by page_touched asc limit 10000; | {"resultsets": [{"headers": ["ctd_name"], "rowcount": 104}], "runningtime": "0.22"} | enwiki_p |
Non free media per user | Non free files uploaded per user | select
LEFT(rev_timestamp,8) as date,
page_title
from image
join page ON page_namespace=6 AND page_title=img_name
join revision ON rev_page = page_id AND rev_parent_id = 0
join actor ON actor_id=rev_actor
join categorylinks ON cl_from=page_id AND cl_type="file"
where
page_is_redir... | {"resultsets": [{"headers": ["year", "month", "day", "page_namespace", "count"], "rowcount": 1704}], "runningtime": "40.57"} | tewiki_p |
enwiki desysops | null | SELECT log_timestamp, actor_name, log_title, comment_text, CONCAT("https://en.wikipedia.org/wiki/Special:Log?logid=", log_id) AS link
FROM logging
INNER JOIN comment on log_comment_id = comment_id
INNER JOIN actor on log_actor = actor_id
WHERE log_type = "rights"
AND log_params RLIKE '"4::oldgroups".*"sysop".*"5::newgr... | {"resultsets": [{"headers": ["File name", "Date", "Size", "Uploader's name"], "rowcount": 27}], "runningtime": "437.83"} | enwiki_p |
Top VE users on enwiki | null | SELECT (SELECT actor_name
FROM actor
WHERE actor_id = rev_actor) AS $user,
COUNT(*) AS $VE_edits
FROM change_tag
INNER JOIN revision ON ct_rev_id = rev_id
WHERE ct_tag_id = 5 -- visualeditor
GROUP BY rev_actor
ORDER BY 2 DESC
LIMIT 1000 | {"resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["tl_title"], "rowcount": 0}, {"headers": ["page_title", "rev_timestamp"], "rowcount": 0}, {"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title", "pp_propname"], "r... | enwiki_p |
Top VE users on enwiki (incl. "switched") | null | SELECT (SELECT actor_name
FROM actor
WHERE actor_id = rev_actor) AS $user,
COUNT(*) AS $VE_edits
FROM change_tag
INNER JOIN revision ON ct_rev_id = rev_id
WHERE ct_tag_id = 5 -- visualeditor
OR ct_tag_id = 22 -- visualeditor-switched
GROUP BY rev_actor
ORDER BY 2 DESC
LIMIT 1000 | {"resultsets": [{"headers": ["actor_name", "COUNT(actor_name)"], "rowcount": 13}], "runningtime": "0.12"} | enwiki_p |
All "in popular culture" AfDs | This query tries to find all the "in popular culture"-related articles that were sent to AfD over the years. | SELECT page_id, page_title, page_len
FROM page
WHERE page_namespace='4'
AND page_title LIKE 'Articles_for_deletion/%in_popular_culture%'
OR page_title LIKE 'Articles_for_deletion/%in_fiction%'
OR page_title LIKE 'Articles_for_deletion/%in_literature%'
OR page_title LIKE 'Articles_for_deletion/%in_film%'
OR page_t... | {"resultsets": [{"headers": ["page_title", "suffix"], "rowcount": 2026}], "runningtime": "3.88"} | enwiki_p |
Vandalismebestrijding (IP-patrolling) nlwiki | 30 december 2021 16:11 (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": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.09"} | nlwiki_p |
Find MLK by his name | get oldest page title | SELECT *
FROM page
WHERE page.page_title LIKE '%Martin%'
AND page.page_title LIKE '%Luther%'
AND page.page_title LIKE '%King%'
ORDER BY COUNT(page.page_id) ASC
LIMIT 1; | {"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.07"} | enwiki_p |
Kris Kourtis in deletion logs by Commons admins | null | SELECT concat ('*[[:File:', log_title, ']]'), actor_name
FROM logging
JOIN actor ON log_actor = actor_id
JOIN user ON actor_user = user_id
JOIN user_groups ON ug_user = user_id
WHERE log_type = 'delete'
AND log_action = 'delete'
AND log_namespace = 6
AND ug_group = 'sysop'
AND log_title LIKE '%Kris_Kourtis%'; | {"resultsets": [{"headers": ["af_id", "af_pattern", "af_user", "af_user_text", "af_timestamp", "af_enabled", "af_comments", "af_public_comments", "af_hidden", "af_hit_count", "af_throttled", "af_deleted", "af_actions", "af_global", "af_group"], "rowcount": 0}], "runningtime": "0.07"} | commonswiki_p |
Kris Kourtis in deletion logs by Commons admins | null | SELECT concat ('*[[:File:', log_title, ']]'), actor_name, fa_user
FROM logging
JOIN actor ON log_actor = actor_id
JOIN user ON actor_user = user_id
JOIN user_groups ON ug_user = user_id
JOIN filearchive ON log_title = fa_name
WHERE log_type = 'delete'
AND log_action = 'delete'
AND log_namespace = 6
AND ug_group = 'syso... | {"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.07"} | commonswiki_p |
All orphan non-free files linked to project namespace on te.wiki | All orphan non-free files not linked from Article and Wikipedia namespaces | SELECT
actor_name,
LEFT(rev_timestamp,8) as date,
CONCAT("[[:File:", p.page_title,"]]") as pagename
from page p
join image ON p.page_namespace=6 AND p.page_title=img_name
INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from
LEFT JOIN imagelinks i ON p.page_title = i.il_to AND (i.il_from_namespace = 0 ... | {"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.08"} | tewiki_p |
Kris Kourtis in file archives | null | SELECT concat ('*[[:File:', fa_name, ']]'), user_name, concat ('{{noping|', actor_name, '}}')
FROM filearchive
JOIN actor ON fa_actor = actor_id
JOIN user ON user_id = fa_deleted_user
WHERE fa_name LIKE '%Kris_Kourtis%'; | {"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.07"} | commonswiki_p |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.