title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Hewiki new disambiguations template | null | select page, concat('[[', disambig, ']]') as link from
(select distinct disambig, page, ns from
((select concat('# [[', case p1.page_namespace when 0 then '' when 6 then ':קובץ:' when 10 then 'תבנית:'
else 'פורטל:' end,
replace(p1.page_title, "_", " "), ']]') as page,
replace(p2.page_title, "_", " ... | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 3}], "runningtime": "0.06"} | hewiki_p |
Top NPP reviewers (redirects only) 2023-May | null | SELECT actor_name AS `Reviewer`,
COUNT(IF(logtemp.page_is_redirect = 1, 1, NULL)) as `Redirect Reviews`
FROM (
SELECT distinct log_actor, log_page, page_is_redirect
FROM logging_userindex
JOIN page ON page_title = log_title AND page_namespace = log_namespace
WHERE log_timestamp BET... | {"resultsets": [{"headers": ["actor_name", "files"], "rowcount": 19}], "runningtime": "0.11"} | enwiki_p |
zh DAB pages receiving links | null | USE zhwiki_p;
SELECT DISTINCT CONCAT ('# [[',page_title,']]'),COUNT(pl_from)
FROM pagelinks JOIN page ON pl_title=page_title
WHERE page_is_redirect=0
AND page_namespace=0
AND page_id IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'
)
AND pl_from IN (
SELECT page_id
FROM page
WHERE pa... | {"resultsets": [{"headers": ["Flags", "New articles in a period", "Wikidata item", "Creator", "Date created", "Length"], "rowcount": 91}], "runningtime": "2.48"} | zhwiki_p |
new | null | # DESCRIBE page;
select * from image where img_actor = 26878372 and img_name LIKE "%大法%"; | {"resultsets": [{"headers": ["file", "actor_name"], "rowcount": 1668}], "runningtime": "1.61"} | commonswiki_p |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৯ জানু ২০২২ | SET @ct:=0;
SELECT
CONCAT("{{subst:formatnum:",@ct:=@ct+1,"}}") AS নং,
CONCAT("{{u|",user,"}}") AS ব্যবহারকারী_নাম,
CONCAT("{{subst:formatnum:",cnt,"}}") AS মোট_নিবন্ধ
FROM (
SELECT
actor_name AS user,
COUNT(rev_id) AS cnt
FROM actor
JOIN revision
ON rev_actor = actor_id
JOIN page
ON page_id = rev_page
WH... | {"resultsets": [{"headers": ["actor_name", "page_title", "comment_text", "rev_timestamp"], "rowcount": 143}], "runningtime": "0.23"} | bnwiki |
sp2.14 | null | # Simplified query to focus on blocked editors.
# The page_id list can be manually compiled by looking at page id under "page information" in the Wiki web interface,
# or by running Quarry query #62940 with a list of titles.
select page_title as 'page title', user_name, comment_text as 'block reason'
from page,... | {"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "0.05"} | enwiki |
WikiProject "Y" bug | null | select count(distinct pa_page_id) from page_assessments where pa_class like "Y%"; | {"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 4850}], "runningtime": "31.73"} | enwiki_p |
Definitely dead people articles without WP Biography tag | playing around with the query scheme to see what effect things have on performance; a bit slower with the redundant sub-SELECT, but not much. Repeating to see whether there's some sort of schema optimization going on.
Now producing wiki markup so this can be easily cut-and-pasted into WP
Now uses LEFT JOIN so I can d... | SELECT
CONCAT("* [[",article.page_title, "]]") -- , talk.page_id AS talk_page_id
FROM
page AS article
LEFT JOIN page AS talk ON talk.page_title = article.page_title AND talk.page_namespace = 1 AND talk.page_is_redirect = 0
WHERE
-- article.page_id % 10 = 2
article.page_namespace = 0
AND article.page_is_red... | {"resultsets": [{"headers": ["line"], "rowcount": 0}], "runningtime": "0.05"} | enwiki_p |
latest Draft:Draft:s | null | select concat ("https://en.wikipedia.org/wiki/Draft:", page_title) as page_title, page_touched
from page
where page_is_redirect=0
and page_namespace=118
and page_title like "Draft:%"
order by page_touched desc; | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 12}], "runningtime": "0.08"} | enwiki |
Userspace pages of non-existent users (no redirects) | null | SELECT CONCAT('https://en.wikipedia.org/wiki/', IF(p.page_namespace = 2, 'User:', 'User_talk:'), p.page_title) AS URL
FROM page p WHERE REPLACE(SUBSTRING_INDEX(p.page_title, '/', 1), '_', ' ') not in (select user_name from user)
AND p.page_namespace IN (2, 3)
AND p.page_is_redirect = 0
AND NOT IS_IPV4(SUBSTRING_INDEX(p... | {"resultsets": [{"headers": ["CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), ']]')"], "rowcount": 18}], "runningtime": "0.08"} | enwiki_p |
بوت الصيانة - مقالات بحاجة لإزالة وسم غير مصنفة | null | use arwiki_p;
select p2.page_title from page p2
where p2.page_id in (select cl_from
from categorylinks
inner join page p
on p.page_title = cl_to
and p.page_namespace = 14
where ((p.page_id not in (select cl_f... | {"resultsets": [{"headers": ["el_id", "el_to"], "rowcount": 84}], "runningtime": "0.15"} | arwiki_p |
New Page Reviewers eligible for barnstars - 2023(redirects) | null | SELECT actor_name AS `Reviewer`,
COUNT(IF(logtemp.page_is_redirect = 1, 1, NULL)) as `Redirect Reviews`
FROM (
SELECT distinct log_actor, log_page, page_is_redirect
FROM logging_userindex
JOIN page ON page_title = log_title AND page_namespace = log_namespace
WHERE YEAR(log_timestam... | {"resultsets": [{"headers": ["actor_name", "files"], "rowcount": 21}], "runningtime": "0.08"} | enwiki_p |
New Page Reviewers eligible for barnstars - 2023 (articles) | null | SELECT actor_name AS `Reviewer`,
COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `Article Reviews`
FROM (
SELECT distinct log_actor, log_page, page_is_redirect
FROM logging_userindex
JOIN page ON page_title = log_title AND page_namespace = log_namespace
WHERE YEAR(log_timestamp... | {"resultsets": [{"headers": ["p"], "rowcount": 56}], "runningtime": "839.10"} | enwiki_p |
Articles with categories that don't exist | null | SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:'
WHE... | {"resultsets": [{"headers": ["concat(\"Category:\",page_title)", "page_len", "cat_pages", "cat_subcats"], "rowcount": 8371}], "runningtime": "15.50"} | enwiki_p |
Number of pages by category | null | select
cat_title as category_name,
cat_pages as pages
from category
where cat_pages > 10 | {"resultsets": [{"headers": ["item ID", "lang", "text"], "rowcount": 3843}], "runningtime": "340.30"} | mgwiktionary_p |
CSD G8 redirects | null | SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:'
WHE... | {"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "68.82"} | enwiki_p |
ADNOC related firms | null | # Simplified query to focus on blocked editors.
# The page_id list can be manually compiled by looking at page id under "page information" in the Wiki web interface,
# or by running Quarry query #62940 with a list of titles.
select page_title as 'page title', user_name, comment_text as 'block reason'
from page,... | {"resultsets": [{"headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 100}], "runningtime": "0.12"} | enwiki |
Files on Commons without file pages | null | USE commonswiki_p;
SELECT CONCAT('# [[:File:', REPLACE (img_name,'_',' '), ']] by [[User:', actor_name, ']]') AS p
FROM image INNER JOIN actor ON actor_id = img_actor
WHERE img_name NOT IN (SELECT page_title FROM page WHERE page_namespace = 6)
ORDER BY p
LIMIT 300;
| {"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 90}], "runningtime": "0.24"} | commonswiki_p |
Infobox Weather Adoption | Copied from original query at https://quarry.wmcloud.org/query/73348 created by Chlod | SELECT
lt_title,
COUNT(*)
FROM templatelinks
LEFT JOIN linktarget ON tl_target_id = lt_id
WHERE tl_target_id IN (
(SELECT lt_id FROM linktarget WHERE lt_namespace = 10 AND lt_title = "Infobox_weather_event"),
(SELECT lt_id FROM linktarget WHERE lt_namespace = 10 AND lt_title = "Infobox_tropical_cyclone"),
(SE... | {"resultsets": [{"headers": ["page_title"], "rowcount": 7}], "runningtime": "75.44"} | enwiki_p |
Edit counts of admins at time of successful RFA | Rough draft. Not sure if fully accurate. Combination of Ixtal's parent query and my subquery. | SELECT log_timestamp,
log_title,
(
SELECT COUNT(*)
FROM revision
JOIN actor ON rev_actor = actor_id
JOIN user ON actor_user = user_id
WHERE user_name = log_title
AND rev_timestamp < log_timestamp
) AS edit_count
from logging #NOTE: Timestamp may not be last time adminship granted
WHERE logging.log_type="rig... | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.34"} | enwiki |
All recent ckbwiki articles with their creator | This query retrieves all recent ckbwiki articles with their creator.
The query can also be executed to retrieve all articles on the Central Kurdish Wikipedia. | USE ckbwiki_p;
SELECT page_title, actor_name
FROM page
JOIN revision ON rev_page = page_id
JOIN actor ON actor_id = rev_actor
WHERE page_namespace = 0
AND page_is_redirect = 0
AND rev_parent_id = 0
ORDER BY rev_timestamp DESC; | {"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "75.83"} | ckbwiki_p |
Links to Elsevier from main namespace | null | -- Used to be 1234 on 2019-08
USE frwiki_p;
SELECT DISTINCT(page_title)
FROM externallinks
JOIN page
ON page_id = el_from
AND page_namespace = 0
WHERE el_index LIKE "http://com.elsevier.linkinghub./%"
OR el_index LIKE "https://com.elsevier.linkinghub./%"; | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "35.19"} | frwiki_p |
Wikiproject Cleanup Contributions (Copy) | null | use arwiki_p;
SET @rank=0;
SELECT CONCAT('{{إحصاءات مساهم في مشروع ويكي الصيانة|',@rank:=@rank+1,'|') AS rank, s.*
FROM (
SELECT
rev_user_text,
CONCAT('|',COUNT(*),'}}')
FROM revision_userindex
WHERE rev_comment like "%وب:م و ص%"
GROUP BY rev_user_text
ORDER BY COUNT(*) DESC) s; | {"resultsets": [{"headers": ["now()"], "rowcount": 1}, {"headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"], "rowcount": 57023}], "runningtime": "67.12"} | arwiki_p |
Most thanked 2023 | Most thanked editors on the English Wikipedia in 2022 | SELECT log_title, COUNT(log_id)
FROM logging_logindex
WHERE
log_type = "thanks" AND
log_timestamp >= "20230000000000"
GROUP BY log_title
ORDER BY 2 DESC | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 29}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 31}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco... | frwiktionary |
Userspace pages of non-existent users (no talk, no subpages) | null | SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL
FROM enwiki_p.page p
LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name
WHERE p.page_namespace = 2
AND u.user_id IS NULL
AND p.page_is_redirect = 0
AND NOT IS_IPV4(p.page_title) -- Exclude IPv4
AND NOT IS_IPV6(p.page_title... | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 36}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco... | enwiki_p |
Orphaned talk pages | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 34}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 15}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 16}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 16}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco... | enwiki_p |
Articles with categories that don't exist | null | SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE p.page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:'
W... | {"resultsets": [{"headers": ["basepage_title"], "rowcount": 1}], "runningtime": "69.43"} | eswiki_p |
Artículos creados en 2022 (mujeres-hombres) | Comparaciones entre los artículos creados de mujeres y hombres desde 2018. Se agrupa mensualmente | use eswiki_p;
SELECT date_format(rev_timestamp, '%m/%Y') mes,
(SUM(IF(cl_to = 'Mujeres', 1, 0))) mujeres, (SUM(IF(cl_to = 'Hombres', 1, 0))) hombres
FROM revision, page, categorylinks
WHERE year(rev_timestamp) between 2021 and 2022
AND rev_parent_id = 0
AND page_id = rev_page AND page_namespace = 0
AND cl_fro... | {"resultsets": [{"headers": ["cl_sortkey_prefix", "page_title", "created", "last-mod", "el_to", "pp_value"], "rowcount": 128}], "runningtime": "1.94"} | eswiki |
Wikipedistas de Colombia | null | select rc_title as 'Títiulo página', rc_timestamp as 'Fecha de creación', rc_new_len as 'Tamaño',
actor_name as 'Usuario'
from recentchanges
INNER JOIN actor ON rc_actor = actor_id
INNER JOIN page ON page_title = actor_name and page_namespace = 2
INNER JOIN categorylinks ON page_id = cl_from
WHERE rc_new = 1
AND rc_... | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 0}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou... | eswiki |
Páginas más revertidas en las últimas 4 horas | null | use eswiki_p;
SELECT rc_title page, pr_expiry, count(1) as reverted
FROM recentchanges rc
INNER JOIN change_tag ON rc_id = ct_rc_id
LEFT JOIN page_restrictions ON pr_page = rc_cur_id
WHERE ct_tag_id = 6
AND rc_timestamp BETWEEN date_add(now(), INTERVAL -4 HOUR) AND NOW()
AND rc_type = 0
AND rc_namespace = 0
G... | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 8}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcou... | eswiki |
Wikivacaciones 2022 participants | null | SELECT A.actor_name, COUNT(1) as files
FROM commonswiki_p.image I
JOIN commonswiki_p.page P ON I.img_name = P.page_title
JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from
JOIN commonswiki_p.actor A ON I.img_actor = A.actor_id
WHERE P.page_namespace = 6
AND CL.cl_to = "Wikivacaciones_2022"
GROUP BY A.act... | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 18}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 27}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco... | commonswiki_p |
CSD G8 redirects (moved to draft) | null | SELECT CONCAT('https://en.wikipedia.org/wiki/', CASE page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:'
WHE... | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 33}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 37}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco... | enwiki_p |
Userspace pages of non-existent users (no talk, no subpages) | null | SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL
FROM enwiki_p.page p
LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name
WHERE p.page_namespace = 2
AND u.user_id IS NULL
AND p.page_is_redirect = 0
AND NOT IS_IPV4(p.page_title) -- Exclude IPv4
AND NOT IS_IPV6(p.page_title... | {"resultsets": [{"headers": ["page_title"], "rowcount": 77053}], "runningtime": "268.37"} | enwiki_p |
Orphaned talk pages | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 19}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 22}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco... | enwiki_p |
WIP Infobox {power station,dam} transclusions in article space | Work in progress — will probably break this apart into 2–3 separate queries later on | SELECT
page_title,
page_len,
lt_title
FROM page
LEFT JOIN templatelinks
ON tl_from = page_id
AND page_namespace = 0
AND page_is_redirect = 0
LEFT JOIN linktarget ON tl_target_id = lt_id
WHERE tl_target_id IN (
(SELECT lt_id FROM linktarget WHERE lt_namespace = 10 AND lt_title = "Infobox_power_station")/*,
(SE... | {"resultsets": [{"headers": ["Page", "Page length", "Re-created at"], "rowcount": 258}], "runningtime": "13.14"} | enwiki_p |
Number of articles on frwikt | null |
select count(page_id)
from page
where page_namespace=0
and page_is_redirect=0
| {"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 500}], "runningtime": "55.90"} | frwiktionary |
intitle doesnt work with redirects so im doing this | mhm | select distinct CONCAT("{{User:Aidan9382//adle|1=",page_title,"}}") as page_title, page_is_redirect as is_redirect
from page
where page_namespace = 0
and page_title rlike "/[Ss]andbox|/[Dd]oc(?![a-zA-Z]|_[Ww]atson)|/[Aa]rchive"
order by page_title asc; | {"resultsets": [{"headers": ["page_title"], "rowcount": 7}], "runningtime": "97.06"} | enwiki |
Most prolific kowiki editors 2023 | null | select
rev_actor,
count(rev_id) as edit_count,
actor_name
from
revision,
actor
where
rev_actor = actor_id
AND rev_timestamp > 20230000000000
AND NOT (actor_name LIKE '%Bot%' OR actor_name LIKE'%bot%' OR actor_name LIKE '%BOT%' OR actor_name LIKE 'MediaWiki message delivery')
AND actor_user is NOT NULL
grou... | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 500}], "runningtime": "68.67"} | kowiki_p |
Templates linked from page, by creator edit count | Templates linked from [[Wikipedia:Database reports/Unused templates (filtered)/1]], with their creators and their edit counts.
For [[WP:RAQ#Unused templates created by users with more than 10000 edits, sort by the number of edits by the creator]] circa 23 May 2023. | SELECT user_name, user_editcount, CONCAT('[[Template:', tmpl.page_title, ']]')
FROM pagelinks
JOIN page AS drut ON drut.page_id = pl_from
JOIN page AS tmpl ON tmpl.page_namespace = pl_namespace AND tmpl.page_title = pl_title
JOIN revision ON rev_page = tmpl.page_id
JOIN actor_revision ON actor_id = rev_actor
JOIN user ... | {"resultsets": [{"headers": ["pt_namespace", "pt_title", "pt_user", "pt_reason_id", "pt_timestamp", "pt_expiry", "pt_create_perm"], "rowcount": 10}], "runningtime": "0.06"} | enwiki_p |
Orphaned talk pages | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["AFD", "User", "Revision Timestamp"], "rowcount": 30}, {"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 12}], "runningtime": "77.62"} | 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 "... | {"resultsets": [{"headers": ["concat(\"https://en.wikipedia.org/wiki/\",page_title)", "actor_name", "rc_new_len"], "rowcount": 2687}], "runningtime": "2.86"} | bnwikiquote |
New pages created within a period | Number of unique pages created in 2021? | SELECT p.page_title
FROM tewiki_p.revision r
JOIN tewiki_p.page p ON p.page_id = r.rev_page
WHERE r.rev_timestamp >= '20210801000000'
AND r.rev_timestamp <= '20210817235959'
AND p.page_namespace = 0 | {"resultsets": [{"headers": ["concat(\"https://en.wikipedia.org/wiki/\",page_title)", "actor_name", "rc_new_len"], "rowcount": 1527}], "runningtime": "1.64"} | tewiki_p |
सदस्य ज्यांनी सर्वाधिक पृष्ठे तयार केली आहेत | Test | SELECT Count(*) number,
actor_name
FROM revision
JOIN actor
ON rev_actor = actor_id
JOIN page
ON rev_page = page_id
WHERE rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND rev_timestamp > 20010000000000
AND rev_timestamp ... | {"resultsets": [{"headers": ["page_title", "replace(pl_title, '_', ' ')"], "rowcount": 19}], "runningtime": "162.79"} | mrwiki_p |
Olympian Biographies | null | WITH articles AS (
SELECT DISTINCT(Article.page_title), Article.page_id, rev_timestamp, rev_len as "InitialSize", Article.page_len as "CurrentSize"
FROM revision_userindex
JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0
JOIN page AS Talk ON Article.page_title = Talk.page_title AND T... | {"connection_id": 164195948} | enwiki_p |
nov 2019 new pages tewiki | tewiki page creations in nov., 2019 | SELECT page_title, rev_timestamp, actor_name
FROM revision
JOIN page ON page_id = rev_page
JOIN actor_revision ON actor_id = rev_actor
WHERE rev_timestamp LIKE '201911%'
AND rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0 | {"resultsets": [{"headers": ["Page title"], "rowcount": 11}], "runningtime": "0.17"} | tewiki_p |
البحث عن رابط خارجي | null | select concat("[[:",page.page_title,"]]") as "اسم المقال",el_to as "رابط المنتدي" from reference
join page on page.page_id = reference.el_from
where el_to like "%جيهان_شيركو%" and page.page_namespace in (0) and el_to not like "%web.archive.org%" | {"resultsets": [{"headers": ["ips_item_id", "ips_site_page", "ips_row_id", "links", "ukwiki", "enwiki"], "rowcount": 10000}], "runningtime": "387.99"} | arwiki_p |
Vandalismebestrijding nlwiki | Achterstand 772 (backlog: 772 non patrolled) | # 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": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 0}], "runningtime": "0.04"} | nlwiki_p |
Heartbeat | null | set max_statement_time = 10;
select substring_index(current_user(), '@', 1) as uname, database();
show databases;
show tables from heartbeat_p;
show columns from heartbeat_p.heartbeat;
describe heartbeat_p.heartbeat;
show index in heartbeat_p.heartbeat;
select shard, last_updated, lag / 3600 as 'lag hours' from heartbe... | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 33}], "runningtime": "1.08"} | enwiki_p |
Uploader stats from specific Commons category | null | set @categoryname = "Vladimir_Medeyko_by_year";
select
actor_name as "uploader",
count(*) as "upload_count"
from page
inner join categorylinks on cl_from = page_id
inner join image on img_name = page_title
inner join actor on actor_id = img_actor
where
cl_to = @categoryname and
cl_type = "file"
group by
... | {"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 2567}], "runningtime": "63.78"} | commonswiki_p |
Category by time | Just attempting! | select page_namespace,page_title,cl_timestamp from categorylinks join page on page_id=cl_from
where cl_to like "Videospill" order by cl_timestamp asc; | {"resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 107}], "runningtime": "0.12"} | nowiki_p |
Carlossuarez46 Iranian villages limited (with coordinates) | null | WITH RECURSIVE entries (page_title, page_id, page_namespace, inc, parent_title, parent_namespace, page_len) AS (
(
SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace, page_len
FROM page
WHERE page_title IN ("Towns_and_villages_in_Iran_by_county")
AND page_namespace = 14
)
... | {"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 123316}], "runningtime": "1238.55"} | enwiki_p |
Lugnuts Olympian Biographies Limited | null | WITH articles AS (
SELECT DISTINCT(Article.page_title), Article.page_id, rev_timestamp, rev_len as "InitialSize", Article.page_len as "CurrentSize"
FROM revision_userindex
JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0
JOIN page AS Talk ON Article.page_title = Talk.page_title AND T... | {"resultsets": [{"headers": ["page_title", "page_id", "talk_id", "page_cat", "talk_cat"], "rowcount": 100000}], "runningtime": "89.23"} | enwiki_p |
Starzynka stub status | null | SELECT page_title, LEFT(rev_timestamp,8), page_len
FROM page
JOIN revision ON rev_page = page_id
WHERE rev_parent_id = 0
AND page_is_redirect = 0
AND page_namespace = 0
AND rev_actor = 327368
AND page_len < 3000 | {"resultsets": [{"headers": ["page_title", "pl_title"], "rowcount": 1825384}], "runningtime": "1905.05"} | enwiki_p |
BlackJack stub status | null | SELECT page_title, LEFT(rev_timestamp,8), page_len
FROM page
JOIN revision ON rev_page = page_id
WHERE rev_parent_id = 0
AND page_is_redirect = 0
AND page_namespace = 0
AND rev_actor = 172461
AND page_len < 3000 | {"connection_id": 165574012} | enwiki_p |
BlackJack Biographies Limited | null | WITH articles AS (
SELECT DISTINCT(Article.page_title), Article.page_id, rev_timestamp, rev_len as "InitialSize", Article.page_len as "CurrentSize"
FROM revision_userindex
JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0
JOIN page AS Talk ON Article.page_title = Talk.page_title AND T... | {"resultsets": [{"headers": ["title", "count"], "rowcount": 9}], "runningtime": "0.05"} | enwiki_p |
Lugnuts cricket biographies by source | Olympic articles that are sourced to sites other than Olympedia and Sports Reference | WITH articles AS (
SELECT DISTINCT(Article.page_title), Article.page_id, rev_timestamp, rev_len as "InitialSize", Article.page_len as "CurrentSize"
FROM revision_userindex
JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0
JOIN page AS Talk ON Article.page_title = Talk.page_title AND T... | {"resultsets": [{"headers": ["page_from", "page_to"], "rowcount": 136}], "runningtime": "129.75"} | enwiki_p |
Most prolific ruwiki editors, April 2023 | null | select
count(revision.rev_id) as edit_count,
actor.actor_name
from
revision,
actor
where
actor.actor_id = revision.rev_actor and
revision.rev_timestamp like '202304%'
group by
actor.actor_name
having
edit_count >= 100
order by
edit_count desc;
| {"resultsets": [{"headers": ["user_name"], "rowcount": 10}], "runningtime": "12.35"} | ruwiki_p |
روابط مدونة بلوجر في صفحة مستخدمين | null | select page.page_title,el_to from externallinks
join page on page.page_id = externallinks.el_from
where el_to like "%blogspot.com/%"
and el_to not like "https://web.archive.org/web/%"
and page.page_namespace in (2); | {"resultsets": [{"headers": ["item_id", "ips_row_id", "links", "ukwiki", "ips_site_page", "ruwiki"], "rowcount": 10000}], "runningtime": "564.18"} | arwiki_p |
T295516 What percentage of talk page edits are made with DiscussionTools? | null | select *
from (
select tags, count(*) as count
from (
select rev_id, COALESCE(group_concat(ctd_name),'[NO INTERESTING TAGS]') as tags
from revision revision1
left outer join change_tag on rev_id=ct_rev_id
left outer join change_tag_def
on ct_tag_id=ctd_id
-- Ignore this tag because it would be listed in... | {"resultsets": [{"headers": ["user_name", "img_name", "user_registration"], "rowcount": 500}], "runningtime": "11.30"} | enwiki_p |
Newest pages in category | null | set @category_name = 'Videospill';
select
page_namespace as namespace,
replace(page_title, '_', ' ') as title,
actor_name as first_editor,
comment_text as first_edit_summary,
date_format(rev_timestamp, '%Y-%m-%d %H:%i:%s') as first_edit_timestamp
from categorylinks
join page on page_id = cl_from
left ... | {"resultsets": [{"headers": ["Target", "LinkCount"], "rowcount": 761}], "runningtime": "151.53"} | nowiki_p |
category tree | null | SELECT p1.page_id as 'From', p1.page_title as 'From title' , p2.page_id as 'To', cl_to as 'To title'
FROM page as p1 JOIN categorylinks JOIN page as p2
ON p1.page_namespace = 14 AND p1.page_id=cl_from AND cl_to = p2.page_title AND p2.page_namespace = 14 | {"connection_id": 165666401} | nowiki_p |
SQL will be the end of me and I'm trying my best to learn | null | SELECT
log_timestamp as Opprettet,
cat_title as Kategori,
cl_type as Sideform,
page_title as Sidetittel
FROM
category
left join categorylinks on cat_title = cl_to
left join page on page_id = cl_from
left join logging on page_title = log_title
WHERE
... | {"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", "actor_id", "actor_user", "actor_name", "comment_id", "comment_hash", "comment_text", "comment_data", "log_id", "log_type", "log_action"... | nowiki_p |
Zigzig20s Biographies | null | WITH articles AS (
SELECT DISTINCT(Article.page_title), Article.page_id, rev_timestamp, rev_len as "InitialSize", Article.page_len as "CurrentSize"
FROM revision_userindex
JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0
JOIN page AS Talk ON Article.page_title = Talk.page_title AND T... | {"resultsets": [{"headers": ["latest_rev_id", "length", "page_id", "page_title", "links_to"], "rowcount": 10000}], "runningtime": "9.24"} | enwiki_p |
Lugnuts Cricket Biographies Limited | null | WITH RECURSIVE all_citation_templates (page_title, page_id, page_namespace) AS (
(
SELECT page_title, page_id, page_namespace
FROM page
WHERE page_title = "Citation_templates"
AND page_namespace = 14
)
UNION
(
SELECT child.page_title, child.page_id, child.page_namespace
FROM page AS ch... | {"resultsets": [{"headers": ["user_editcount", "user_name", "up_value", "rc_type"], "rowcount": 2}], "runningtime": "2.34"} | enwiki_p |
Hewiki new disambiguations template | null | select page, concat('[[', disambig, ']]') as link from
(select distinct disambig, page, ns from
((select concat('# [[', case p1.page_namespace when 0 then '' when 6 then ':קובץ:' when 10 then 'תבנית:'
else 'פורטל:' end,
replace(p1.page_title, "_", " "), ']]') as page,
replace(p2.page_title, "_", " ... | {"resultsets": [{"headers": ["actor_name", "actor_user", "Edit_count", "Gross_byte_count", "nett_byte_count"], "rowcount": 100}], "runningtime": "10.20"} | hewiki_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": 3}], "runningtime": "0.05"} | viwiki_p |
البحث عن رابط خارجي | null | select concat("[[:",page.page_title,"]]") as "اسم المقال",el_to as "رابط المنتدي" from externallinks
join page on page.page_id = externallinks.el_from
where el_to like "%/vb/%" and page.page_namespace in (0) and el_to not like "%web.archive.org%" | {"resultsets": [{"headers": ["cl_to", "count(*)"], "rowcount": 34}], "runningtime": "14.11"} | arwiki_p |
Long-title pages | null | select page_title, page_is_redirect from page where page_namespace = 0 order by length(page_title) desc limit 1000; | {"resultsets": [{"headers": ["CONCAT(\"Category:\",page_title,\"\")"], "rowcount": 99}], "runningtime": "0.57"} | enwiki_p |
Number of articles with no images | null | select count(*) from page left join imagelinks on page_id = il_from where page_namespace = 0 and page_is_redirect = 0 and il_from is null; | {"resultsets": [{"headers": ["page_title"], "rowcount": 3}], "runningtime": "17.83"} | enwiki_p |
Orphaned talk pages | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["num", "Page title", "No. of errors"], "rowcount": 1000}], "runningtime": "35.58"} | enwiki_p |
Orphaned talk pages | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["lt_title"], "rowcount": 85}], "runningtime": "9.23"} | enwiki_p |
Userspace pages of non-existent users (no talk, no subpages) | null | SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL
FROM enwiki_p.page p
LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name
WHERE p.page_namespace = 2
AND u.user_id IS NULL
AND p.page_is_redirect = 0
AND NOT IS_IPV4(p.page_title) -- Exclude IPv4
AND NOT IS_IPV6(p.page_title... | {"resultsets": [{"headers": ["item_id", "ips_row_id", "links", "ukwiki", "ips_site_page", "enwiki"], "rowcount": 15000}], "runningtime": "595.22"} | enwiki_p |
Cleanup redirects | null | -- select page_title from page
-- where page_id in (select cl_from from categorylinks where cl_to in ('All_disambiguation_pages'))
-- and page_namespace = 118
-- select distinct cl_to from categorylinks
-- where cl_from in (select page_id from page where page_is_redirect = 1 and page_namespace = 118)
-- select page_n... | {"resultsets": [{"headers": ["CONCAT('* [[m:Special:CentralAuth/', REPLACE (user_name,'_',' '), ']]')", "d"], "rowcount": 6}], "runningtime": "37.84"} | enwiki_p |
Intentional disambiguation links | null | -- select page_title, rd_title from redirect
-- join page on rd_from = page_id
-- where page_title not like '%_(disambiguation)'
-- and page_id in (select tl_from from templatelinks where tl_target_id = 432);
select page_title, rd_title from redirect
join page on rd_from = page_id
where page_title like '%_(disambiguat... | {"resultsets": [{"headers": ["ss_total_edits"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_editcount", "user_admin", "user_bot"], "rowcount": 835}], "runningtime": "6.69"} | enwiki_p |
Unnecessary disambiguation | null | select sp.page_title, rd_title from redirect
join page sp on rd_from = sp.page_id
join page tp on rd_title = tp.page_title and rd_namespace = tp.page_namespace
where (sp.page_title like CONCAT(rd_title, '\_(%)') or sp.page_title like CONCAT(rd_title, ',\_%'))
and sp.page_title not like '%\_(disambiguation)'
and sp.page... | {"resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 71206}], "runningtime": "71.79"} | enwiki_p |
File talk pages without file in bnwiki | null | SET @ns = 7; # Talk namespace number to search
SET @prefix = ''; # Namespace prefix for links (prepended to 'talk:')
USE bnwiki_p;
SELECT CONCAT( '# [[', @prefix, 'File:', pg.page_title, ']]') AS 'Title' FROM page pg
WHERE pg.page_is_redirect = 0
AND pg.page_namespace = @ns
AND pg.page_title NOT IN (SELECT pg2.page_ti... | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 21}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 11}], "runningtime": "0.20"} | bnwiki_p |
Cross-namespace redirects | null | SELECT page_namespace, page_title, rd_namespace, rd_title, rd_fragment FROM redirect, page WHERE rd_namespace != page_namespace AND rd_from = page_id ORDER BY page_namespace | {"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files", "page_id", "page_namespace", "page_title", "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": ... | rowiki_p |
Recently registered accounts resembling a particular name | null | SELECT user_name, user_registration, user_editcount FROM `user` WHERE user_name LIKE "Mathew%anks%" AND user_registration>'20230501' ORDER BY user_name | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.05"} | enwiki_p |
ويكيبيديا:إحصاءات العام/2022| مراجعة للتعديلات | null | USE arwiki_p;
select CONCAT('[[مستخدم:',actor_name,'|',actor_name,']]'), COUNT(*)
from logging
INNER JOIN actor on logging.log_actor = actor_id
where log_timestamp BETWEEN 20230501000000 AND 20220531235959
and log_action = "approve"
and log_namespace = 0
group by logging.log_actor
having COUNT(*)>1
ORDER BY COUNT(*) DE... | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.04"} | arwiki_p |
Find low resolution finna images | null | SELECT
img_name,
img_height,
img_width,
image.*,
GROUP_CONCAT(DISTINCT(el_to), " ")
FROM
image,
page,
externallinks
WHERE
img_name=page_title
AND page_namespace=6
AND page_id=el_from
AND (el_index_60 LIKE "https://fi.finna%/%" OR el_index_60 LIKE "http://fi.finna%/%" )
AND img_height<2000
A... | {"resultsets": [{"headers": ["page_title", "linked_from"], "rowcount": 0}], "runningtime": "0.21"} | commonswiki_p |
sp2.13g | null | # Simplified query to focus on blocked editors.
# The page_id list can be manually compiled by looking at page id under "page information" in the Wiki web interface,
# or by running Quarry query #62940 with a list of titles.
select page_title as 'page title', user_name, comment_text as 'block reason'
from page,... | {"connection_id": 107341717} | enwiki |
Find low resolution finna images (wikilinks) | null | SELECT
CONCAT("* [[:file:", img_name, "]]") as wikilink
FROM
image,
page,
externallinks
WHERE
img_name=page_title
AND page_namespace=6
AND page_id=el_from
AND (el_index_60 LIKE "https://fi.finna%/%" OR el_index_60 LIKE "http://fi.finna%/%" )
AND el_to LIKE "%musketti%"
AND img_height<2000
AND img... | {"resultsets": [{"headers": ["tl_from", "tl_from_namespace", "tl_target_id"], "rowcount": 957}], "runningtime": "1.11"} | commonswiki_p |
Most frequent domains (frwiki) | This query compiles a list of 1 000 external links (from the main namespace of the French Wikipedia) grouped by website. | USE frwiki_p;
SELECT url, COUNT(*)
FROM (
SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to) + 3), '/', 1) url
FROM externallinks
WHERE el_from IN (
SELECT page_id
FROM page
WHERE page_namespace = 0
)
) tmp_table
GROUP BY url
HAVING COUNT(*) > 10000
ORDER BY COUNT(*) DESC; | {"resultsets": [{"headers": ["xEFBFBC"], "rowcount": 1}], "runningtime": "0.06"} | frwiki_p |
New Page Reviewers eligible for barnstars - 2022(articles) | 2023 version | SELECT actor_name AS `Reviewer`,
COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `Article Reviews`
FROM (
SELECT distinct log_actor, log_page, page_is_redirect
FROM logging_userindex
JOIN page ON page_title = log_title AND page_namespace = log_namespace
WHERE log_timestamp BETW... | {"resultsets": [{"headers": ["page_title", "page_namespace", "bot users", "bot users named", "last edit on page", "edits"], "rowcount": 8}], "runningtime": "2.89"} | enwiki_p |
All orphan non-free files on wikiversity | null | #USE jawiki_p;
SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p
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)
#LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c2... | {"resultsets": [{"headers": ["oi_name", "oi_actor"], "rowcount": 616}], "runningtime": "0.54"} | enwikiversity_p |
Suspicious user talk page moves | null | select log_id,log_timestamp,concat("User talk:",log_title),log_params
from logging_logindex
where log_type="move" and log_namespace=3 and log_params not like "%User talk:%" and log_title not like "%/%"
and log_timestamp > 20210000000000
order by log_timestamp desc
limit 200; | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "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.05"} | commonswiki_p |
log summary search | null | USE hewiki_p;
select logging.*, comment.comment_text
from logging join comment on logging.log_comment_id = comment.comment_id
where /*log_timestamp > 20130401000000
and*/ comment.comment_text rlike ".*נילסיזיציה.*" | {"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 8}, {"headers": ["avg_edits_per_day"], "rowcount": 1}, {"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 9}, {"headers": ["avg_edits_per_day"], "rowcount": 1}], "runningtime": "0.27"} | hewiki_p |
Reviewer stats by time interval (huwiki) | FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days. | use huwiki_p;
SELECT
CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#',
user_name as 'Szerkesztő',
count(*) as 'Ellenőrzések száma az időszakban'
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', 'a... | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "rev_len"], "rowcount": 3000}], "runningtime": "2.41"} | huwiki_p |
Reviewer stats by time interval (huwiki) | FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days. | use huwiki_p;
SELECT
CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#',
user_name as 'Szerkesztő',
count(*) as 'Ellenőrzések száma az időszakban'
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', 'a... | {"connection_id": 108616854} | huwiki_p |
SEA | null | select CONCAT('https://en.wikipedia.org/wiki/', CASE page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:'
WHE... | {"resultsets": [{"headers": ["Page", "Is redirect?", "Moved timestamp"], "rowcount": 110}], "runningtime": "21.65"} | enwiki_p |
Double redirects | null | select sp.page_namespace, sp.page_title, if(tp.page_latest>sp.page_latest, tp.page_latest, sp.page_latest) as page_latest, tp.page_namespace, tp.page_title from redirect
join page sp on sp.page_id = rd_from and sp.page_namespace not in (2, 3)
join page tp on tp.page_title = rd_title and tp.page_namespace = rd_namespace... | {"resultsets": [{"headers": ["Articles with talk page redirects"], "rowcount": 1138}], "runningtime": "30.23"} | enwiki_p |
Anzahl User die sich vor mir angemeldet haben und im Mai 2023 aktiv waren | Anzahl User die sich vor mir angemeldet haben und im Mai 2023 bzw. danach aktiv waren | SELECT COUNT(DISTINCT u.user_id)
FROM user AS u, actor, revision, user AS Wurgl
WHERE Wurgl.user_name = 'Wurgl'
AND u.user_id = actor_user
AND actor_id = rev_actor
AND rev_timestamp > '20230501000000'
AND (u.user_registration IS NULL
OR u.user_registration < Wurgl.user_registration
) | {"resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 107}], "runningtime": "0.12"} | dewiki_p |
Gamsbart biographies by source | Olympic articles that are sourced to sites other than Olympedia and Sports Reference | WITH articles AS (
SELECT DISTINCT(Article.page_title), Article.page_id, rev_timestamp, rev_len as "InitialSize", Article.page_len as "CurrentSize"
FROM revision_userindex
JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0
JOIN page AS Talk ON Article.page_title = Talk.page_title AND T... | {"resultsets": [{"headers": ["revs", "page_title"], "rowcount": 0}], "runningtime": "0.05"} | enwiki_p |
Reviewer stats by time interval (huwiki) | FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days. | use huwiki_p;
SELECT
CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#',
user_name as 'Szerkesztő',
count(*) as 'Ellenőrzések száma az időszakban'
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', 'a... | {"resultsets": [{"headers": ["Tables_in_bnwikiquote_p"], "rowcount": 88}], "runningtime": "0.14"} | huwiki_p |
Artykuły, których po 1.01.2020 nie edytowali redaktorzy | Uwzględniani są użytkownicy, którzy uprawnienia redaktora mają w chwili wykonania zapytania lub mieli je kiedykolwiek wcześniej. Pomijane są edycje wycofane i wycofujące. | -- Id znaczników zmian:
-- 7: Anulowanie edycji
-- 9: Wycofanie zmian
-- 123: Ręczne wycofanie zmian
-- 126: Wycofane
SELECT SUM(cnt) FROM (
SELECT IF(SUM(
-- Zlicz edycje redaktorów po 1.01.2020 w danym haśle. Jeśli 0, dolicz do wyniku ogólnego
rev_timestamp > '20200101000000'
AND... | {"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name"], "rowcount": 3}], "runningtime": "0.06"} | plwiki_p |
zh dab pages without dab property | either titled as a dab page or contained in a dab category | USE zhwiki_p;
SELECT DISTINCT page_title
FROM page
WHERE page_is_redirect=0
AND page_namespace=0
AND (page_title like "%(消歧%"
OR EXISTS (SELECT
1
FROM categorylinks
WHERE cl_from = page_id
AND cl_to like "%消歧%"
)
)
AND NOT EXISTS (
SELE... | {"resultsets": [{"headers": ["avg_edit_per_day"], "rowcount": 1}], "runningtime": "0.10"} | zhwiki_p |
Huwiki edits potentially affected by T336101 | null | SELECT rev_id, ct_tag_id
FROM change_tag JOIN revision ON ct_rev_id = rev_id
WHERE
ct_tag_id IN (SELECT ctd_id FROM change_tag_def WHERE ctd_name IN ('discussiontools-reply', 'visualeditor'))
AND rev_timestamp >= '20230504205113' AND rev_timestamp <= '20230505182520'; | {"resultsets": [{"headers": ["year", "month", "avg_edit_count"], "rowcount": 15}], "runningtime": "0.12"} | huwiki_p |
Reviewer stats by time interval (huwiki) | FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days. | use huwiki_p;
SELECT
CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#',
user_name as 'Szerkesztő',
count(*) as 'Ellenőrzések száma az időszakban'
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', 'a... | {"resultsets": [{"headers": ["iwl_from", "iwl_prefix", "iwl_title"], "rowcount": 100}], "runningtime": "0.14"} | huwiki_p |
zh dab pages titled (dab) but without link from primary topic | null | USE zhwiki_p;
SELECT DISTINCT page_title
FROM page LEFT JOIN pagelinks ON pl_title = page_title AND pl_namespace = page_namespace
WHERE pl_namespace IS NULL
AND page_is_redirect=0
AND page_namespace=0
AND page_title like "%(消歧%"; | {"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": 100}], "runningtime": "0.14"} | zhwiki_p |
Reviewer stats by time interval (huwiki) | FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days. | use huwiki_p;
SELECT
CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#',
user_name as 'Szerkesztő',
count(*) as 'Ellenőrzések száma az időszakban'
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', 'a... | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 100}], "runningtime": "0.13"} | huwiki_p |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.