title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Articles in both a mother and a daughter category | null | SELECT DISTINCT
p1.page_title,
cl1.cl_to,
cl2.cl_to as cl2
FROM page p1 -- article
JOIN categorylinks cl1 -- daughter
ON p1.page_id = cl1.cl_from
AND cl1.cl_to NOT LIKE '%صفحههای_ابهامزدایی%'
JOIN categorylinks cl2 -- mother
ON p1.page_id = cl2.cl_from
AND cl2.cl_to NOT LIKE '%صفحههای_ابهامزدایی%'
JOI... | {"connection_id": 25606363} | fawiki_p |
Articles in both a mother and a daughter category (de) | null | SELECT DISTINCT
p1.page_title,
cl1.cl_to,
cl2.cl_to as cl2
FROM page p1 -- article
JOIN categorylinks cl1 -- daughter
ON p1.page_id = cl1.cl_from
AND cl1.cl_to NOT LIKE '%Begriffsklärung%'
JOIN categorylinks cl2 -- mother
ON p1.page_id = cl2.cl_from
AND cl2.cl_to NOT LIKE '%Begriffsklärung%'
JOIN page p2 ... | {"resultsets": [{"headers": ["page_nb"], "rowcount": 1}], "runningtime": "443.13"} | dewiki_p |
Unreviewed new pages by user (>25 articles) | Stole this from MPGuy2824, still learning the SQL ropes | SELECT actor_name, COUNT(*)
FROM pagetriage_page
JOIN page ON ptrp_page_id = page_id
JOIN revision ON rev_page = page_id
JOIN actor ON actor_id = rev_actor
WHERE ptrp_reviewed = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND rev_parent_id = 0
GROUP BY actor_name
having count(*) > 25
... | {"resultsets": [{"headers": ["2005", "count", "total", "length"], "rowcount": 1}, {"headers": ["2006", "count", "total", "length"], "rowcount": 1}, {"headers": ["2007", "count", "total", "length"], "rowcount": 1}, {"headers": ["2008", "count", "total", "length"], "rowcount": 1}, {"headers": ["2009", "count", "total", "... | enwiki |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["page_id", "title", "edits", "users", "score"], "rowcount": 1000}], "runningtime": "4.80"} | enwiki_p |
Special:Tags with corresponding IDs | Query lists all change tags defined on the wiki, along with their IDs | SELECT * FROM change_tag_def; | {"resultsets": [{"headers": ["page_title"], "rowcount": 47}], "runningtime": "0.17"} | plwiki_p |
Files on ta.wiki NOT in spec categories (no license) | null | #USE pnbwiki_p;
SELECT
CONCAT("# [[:File:", img_name, "]]") AS file, actor_name
###FROM templatelinks
###JOIN page ON tl_from = page_id
###JOIN image ON img_name = page_title AND page_namespace = 6
###JOIN actor_image ON img_actor = actor_id
FROM image
JOIN page
ON page_namespace=6
AND page_title = img_name
AND pa... | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "Wikidata"], "rowcount": 18}], "runningtime": "28.57"} | pnbwiki_p |
Ukrainian Independence Month 2021 on UKWP | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
created,
total_len,
articles
FROM
(
SELECT
CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as... | {"resultsets": [{"headers": ["pagename"], "rowcount": 6}], "runningtime": "0.89"} | ukwiki_p |
رده:والادولید | null | select concat ('*[[:رده:',page_title,']]>[[:رده:',REPLACE (page_title,"والادولید","وایادولید"),']]') from page
where page_namespace = 14
and page_title like '%والادولید%'
and page_is_redirect = 0 | {"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.24"} | fawiki_p |
رده:فنآوری | null | select concat ('*[[:رده:',page_title,']]>[[:رده:',REPLACE (page_title,"فنآوری","فناوری"),']]') from page
where page_namespace = 14
and page_title like '%فنآوری%'
and page_is_redirect = 0 | {"connection_id": 26317393} | fawiki_p |
سنمارینو | null | select concat ('*[[',page_title,']]') from page
where page_namespace = 0
and page_title like '%سنمارینو%'
-- and page_title not like '%جیوانی%'
AND page_is_redirect = 0; | {"resultsets": [{"headers": ["MID", "P921", "QID"], "rowcount": 288}], "runningtime": "1.21"} | fawiki_p |
Lugo files used where? (gl.wiki) | null | #USE glwiki_p;
#SELECT DISTINCT CONCAT('# [[:File:', p.page_title, ']]'), i.il_from, d.page_title #GROUP_CONCAT(i.il_from_namespace ORDER BY i.il_from_namespace SEPARATOR ', ')
#SELECT CONCAT('# [[:File:', p.page_title, ']]'), GROUP_CONCAT(i.il_from_namespace SEPARATOR ', ')
SELECT CONCAT('[[:File:', p.page_title, ']... | {"resultsets": [{"headers": ["MID", "P921", "QID"], "rowcount": 94}], "runningtime": "0.21"} | glwiki_p |
german wiki: rc contaning "aka" | null | Select comment_text as "comment", rc_title article, rc_timestamp time
from recentchanges join comment on rc_comment_id = comment_id
where comment_text like "% aka %"
order by time desc | {"resultsets": [{"headers": ["page_title"], "rowcount": 37}], "runningtime": "0.28"} | dewiki |
German wiki: revision x comment | null | Select *
from comment
where comment_text like "% aka Paulez %"
limit 20 | {"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": 818}], "runningtime": "6.77"} | dewiki |
Test nlwiki | null | # 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_title"], "rowcount": 79}], "runningtime": "7.78"} | nlwiki_p |
اوزاکا | null | select concat ('*[[',page_title,']]') from page
where page_namespace = 0
and page_title like '%اوساکا%'
AND page_is_redirect = 0; | {"resultsets": [{"headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"], "rowcount": 21}], "runningtime": "187.28"} | fawiki_p |
Tewiki: All Templates with Red links | null | select concat("[[",page_title,"]]"),count(page_title) redlinksCount from pagelinks pl,page
#join page on page_id=pl_from
where page_id = pl_from
-- and page_id in (select pp_page from page_props where pp_propname ="disambiguation")
and pl_namespace = 0
and page_namespace = 10
and not exists ... | {"resultsets": [{"headers": ["page_title"], "rowcount": 21}], "runningtime": "0.14"} | tewiki |
Fantastychna-osin-2018-improve | null | SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(article, 'Всього'),
user_number,
size_increase,
users
FROM
(
SELECT
CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') as article,
COUNT(1) AS user_number,
SUM(user_size_increase) as size_increase,
... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 13017}], "runningtime": "6898.32"} | ukwiki_p |
Ukrainian Independence Month 2021 on UKWP | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
created,
total_len,
articles
FROM
(
SELECT
CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as... | {"resultsets": [{"headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"], "rowcount": 13}], "runningtime": "218.30"} | ukwiki_p |
Top Wikipedia Page by Bytecounts (This Month) | Verify each user's contribution here : https://quarry.wmflabs.org/query/54879 | select *
from
(select
rc_title,
sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif
from recentchanges_userindex
where rc_timestamp >= 20220801000000 and rc_timestamp <= 20220830151100 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit')
group by rc_title) a
where tdif > 30000
order by tdif de... | {"resultsets": [{"headers": ["user_id", "edited_page_title", "page_id", "category_title", "revision_type", "rc_timestamp", "cast(rc_timestamp as datetime)"], "rowcount": 181}], "runningtime": "81.07"} | idwiki |
Image metadata of files in both Category:Self-published_work and Category:All_free_media | null | # 110,000 Self-published_work, 174,000 All_free_media
SELECT img_name, actor_id, user_id, user_name, img_metadata
FROM categorylinks
JOIN page ON page_id = cl_from
JOIN image ON img_name = page_title
LEFT JOIN actor_image ON actor_id = img_actor
LEFT JOIN user ON user_id = actor_user
WHERE cl_to = "Self-published_work... | {"resultsets": [{"headers": ["rc_actor"], "rowcount": 1703309}], "runningtime": "1351.75"} | enwiki |
ادینبرا | null | select concat ('*[[',page_title,']]') from page
where page_namespace = 0
and page_title like '%ادینبرا%'
AND page_is_redirect = 0; | {"resultsets": [{"headers": ["actor_name", "antal"], "rowcount": 42}], "runningtime": "0.11"} | fawiki_p |
ادینبرو | null | select concat ('*[[',page_title,']]') from page
where page_namespace = 0
and page_title like '%ادینبرو%'
AND page_is_redirect = 0; | {"resultsets": [{"headers": ["actor_name", "antal"], "rowcount": 236}], "runningtime": "0.44"} | fawiki_p |
WLM uploads via Commons Android App | null | SELECT
log_timestamp AS upload_timestamp,
log_title AS upload_title,
actor_name AS uploader_username
FROM logging_logindex
JOIN actor_logging ON log_actor=actor_id
JOIN templatelinks ON tl_from=log_page
JOIN categorylinks ON cl_from=log_page
WHERE
-- only uploads
log_type='upload'
AND log_ac... | {"resultsets": [{"headers": ["actor_name", "antal"], "rowcount": 236}], "runningtime": "0.36"} | commonswiki_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"], "rowcount": 17}], "runningtime": "0.07"} | eswiki |
Wikidata items with the most sitelinks that aren't on enwiki | null | SELECT CONCAT('Q', ips_item_id), COUNT(ips_item_id)
FROM wb_items_per_site
WHERE (ips_item_id NOT IN (SELECT ips_item_id FROM wb_items_per_site WHERE ips_site_id = "enwiki"))
GROUP BY ips_item_id
ORDER BY COUNT(ips_item_id) DESC
LIMIT 500 | {"resultsets": [{"headers": ["SUBSTR(log_timestamp,1,6)", "Usuario", "COUNT(*)"], "rowcount": 2636}], "runningtime": "3.31"} | wikidatawiki_p |
Ad Alanına göre madde listesi | null | use trwiki_p;
select CONCAT('# [[Yardım:',page_title,']]') as page_title #, page_id as page_id
from page
where page_namespace = 12; | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "56.04"} | trwiki_p |
Hughesdarren plants stub status | Articles in a flora category, created Hughesdarren, grouped by creation month.
Also provides information on the current status of the articles. | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent,
SUM(page_is_redirect) as redirectCurrent,
TRUNCATE(rev_timestamp,-8)/100000000 as month
FROM (
SELECT... | {"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 100}], "runningtime": "0.17"} | enwiki_p |
Fish articles by Lumpsucker | This query produces a list of small Olympian biographies that are created and primarily contain content by Sander.v.Ginkel. This is currently defined as articles with a page length under 4000 with Sander.v.Ginkel contributing more than half the content, but can be adjusted. In addition, redirects, lists and disambiguat... | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent,
SUM(page_is_redirect) as redirectCurrent,
TRUNCATE(rev_timestamp,-8)/100000000 as month
FROM (
SELECT... | {"resultsets": [{"headers": ["tl_from", "tl_target_id"], "rowcount": 1279}], "runningtime": "1.28"} | enwiki_p |
WPWPBN hashtag count without mw-reverted | উইকিপিডিয়ার পাতায় চিত্র যোগ ২০২১ প্রতিযোগিতায় বিগত ২ মাসে WPWPBN হ্যাশট্যাগযুক্ত নিবন্ধে পুনর্বহালকৃত সম্পাদনা বাদ দিয়ে মোট গণনা | SELECT actor_name,count(rev_actor) as count from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPBN%"
and rev_timestamp>="2021070100000"
and rev_timestamp <= "20210831235959"
and rev_id NOT IN
(SE... | {"resultsets": [{"headers": ["rc_actor", "rc_title", "rc_type", "rc_timestamp"], "rowcount": 257968}], "runningtime": "231.48"} | bnwiki_p |
#/bytes added by ips, users to main/draft recently | Totals of the numbers of bytes added by ips and users to the main and draft namespaces in roughly the last 30 days, counting only edits that added more bytes than they removed.
For [[WP:RAQ#IP editors - How much of the new content do they create?]] circa 31 August 2022. | SELECT CASE WHEN rc_namespace = 0 THEN 'Mainspace' ELSE 'Draft' END AS `Namespace`,
SUM(rc_new_len - COALESCE(rc_old_len, 0)) AS `Bytes added`,
CASE WHEN actor_user IS NULL THEN 'IP' ELSE 'User' END AS `IP/User`
FROM recentchanges
JOIN actor_recentchanges ON actor_id = rc_actor
WHERE rc_new_len > COALESCE... | {"resultsets": [{"headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"], "rowcount": 13}], "runningtime": "53.88"} | enwiki_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": ["tl_title"], "rowcount": 123}], "runningtime": "2432.92"} | incubatorwiki |
#/unreverted bytes added by ips, users to main/draft recently | Totals of the numbers of bytes added by ips and users to the main and draft namespaces in roughly the last 30 days, counting only edits that added more bytes than they removed and that aren't tagged as "Reverted".
For [[WP:RAQ#IP editors - How much of the new content do they create?]] circa 31 August 2022. | SELECT CASE WHEN rc_namespace = 0 THEN 'Mainspace' ELSE 'Draft' END AS `Namespace`,
SUM(rc_new_len - COALESCE(rc_old_len, 0)) AS `Bytes added`,
CASE WHEN actor_user IS NULL THEN 'IP' ELSE 'User' END AS `IP/User`
FROM recentchanges
JOIN actor_recentchanges ON actor_id = rc_actor
WHERE rc_new_len > COALESCE... | {"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", "pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 0}], "runningtime": "0.05"} | enwiki_p |
Lugnuts stub status by week | null | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent,
SUM(page_is_redirect) as redirectCurrent,
CONCAT(SUBSTRING(rev_timestamp,1,4),FLOOR(-DATEDIFF(CONCAT(S... | {"resultsets": [{"headers": ["page_title"], "rowcount": 2}], "runningtime": "51.35"} | enwiki_p |
Sander.v.Ginkel stub status by week | null | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent,
SUM(page_is_redirect) as redirectCurrent,
CONCAT(SUBSTRING(rev_timestamp,1,4),FLOOR(-DATEDIFF(CONCAT(S... | {"resultsets": [{"headers": ["Actor", "Edits", "Uploaded images", "Images MiB", "Images GiB", "Images TiB"], "rowcount": 3}], "runningtime": "44.61"} | enwiki_p |
Blackjack stub status by week | null | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent,
SUM(page_is_redirect) as redirectCurrent,
CONCAT(SUBSTRING(rev_timestamp,1,4),FLOOR(-DATEDIFF(CONCAT(S... | {"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": 818}], "runningtime": "7.67"} | enwiki_p |
মুক্ত নয় চিত্র | null | USE bnwiki_p;
SELECT DISTINCT CONCAT('চিত্র:', p.page_title) FROM page p
INNER JOIN categorylinks c ON p.page_id = c.cl_from
INNER JOIN (imagelinks i LEFT JOIN redirect r ON i.il_from = r.rd_from) ON p.page_title = i.il_to
WHERE c.cl_to = "উইকিপিডিয়া:মুক্ত-নয়_এমন_উপাদান_নির্ণায়ক"
AND i.il_from_namespace != 0
AND r.r... | {"resultsets": [{"headers": ["page_title"], "rowcount": 1570}], "runningtime": "1.80"} | bnwiki |
Beaner | This shows pages, existing and deleted, that match /.*[Bb]eaner.*/ | SET @pat='[Bb]eaner';
SELECT CONCAT('[[', 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:'
... | {"resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 2}, {"headers": ["page_title"], "rowcount": 1}, {"headers": ["tl_title"], "rowcount": 0}, {"headers": ["page_title", "rev_timestamp"], "rowcount": 1}, {"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title", "pp_propname"], "r... | enwiki |
mobile upload metadata (from logging, depending on change tag) | null | SELECT log_id,log_timestamp,log_actor,log_namespace,log_page,page_title,img_metadata
FROM logging
JOIN change_tag ON log_id = ct_log_id
JOIN page ON log_page = page_id
JOIN image ON page_title = img_name
WHERE ct_tag_id = 22
AND log_type = "upload"
AND log_timestamp > "20220830"
LIMIT 70000 | {"resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["tl_title"], "rowcount": 0}, {"headers": ["page_title", "rev_timestamp"], "rowcount": 1}, {"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title", "pp_propname"], "r... | commonswiki |
Admins w/ <100 edits since 2018 | Admins with fewer than 100 edits since 1 January 2018. They are currently on track to be desysopped on 1 January 2023 as per item 2 at [[WP:INACTIVITY]] ("(2) (Effective 01 January 2023) Has made fewer than 100 edits over a 60 month period").
For [[WP:BN#Query]] circa 8 August 2022. | SELECT user_name, COUNT(rev_id)
FROM user
JOIN user_groups ON ug_user = user_id
JOIN actor_revision ON actor_user = user_id
JOIN revision_userindex ON rev_actor = actor_id
WHERE ug_group = 'sysop'
AND rev_timestamp >= '2018'
GROUP BY user_name
HAVING COUNT(rev_id) < 100
ORDER BY COUNT(rev_id) ASC; | {"resultsets": [{"headers": ["ctd_name", "antal"], "rowcount": 53}], "runningtime": "8.43"} | enwiki_p |
دوور | null | select concat ('*[[',page_title,']]') from page
where page_namespace = 0
and page_title like '%دوور%'
AND page_is_redirect = 0; | {"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": 3}], "runningtime": "0.06"} | fawiki_p |
templatelinks normalization progress enwiki | https://phabricator.wikimedia.org/T299424 | set statement max_statement_time = 5 for
select
min(tl_from), max(tl_from)
from
templatelinks
where
tl_target_id is null; | {"resultsets": [{"headers": ["rc_id", "ct_id"], "rowcount": 2605}], "runningtime": "2.88"} | enwiki_p |
German wiki users stating their gender | null | USE dewiki_p;
SELECT
up_value,
COUNT(DISTINCT up_user)
FROM user_properties
WHERE up_property = "gender"
GROUP BY 1 | {"resultsets": [{"headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"], "rowcount": 107}], "runningtime": "0.17"} | dewiki_p |
ckbwiki inactive sysop and/or interface-admin users for one year | ckbwiki inactive sysop and/or interface-admin users for one year | 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 ('sysop', 'interface-admin')
JOIN actor
ON actor_user = user_id
JOIN revision_userindex
ON rev_id = (SELECT... | {"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.09"} | ckbwiki_p |
hewiki most prolific translators | null | use arzwiki_p;
SELECT
rev_actor,
actor_name,
count(revision.rev_id) as articles_created
FROM
change_tag,
actor,
revision
WHERE
revision.rev_parent_id = 0 AND
ct_tag_id = (select ctd_id from change_tag_def where ctd_name = 'contenttranslation') AND
rev_id = ct_rev_id AND
rev_actor = actor_id
GROUP BY
rev_act... | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 8}], "runningtime": "61.86"} | arzwiki_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": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 50}], "runningtime": "51.74"} | enwiki |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.12"} | enwiki_p |
Mainspace articles without talk pages (count) | null | SELECT count(*)
FROM page AS article
WHERE article.page_is_redirect=0
AND article.page_namespace=0
AND NOT EXISTS
(
SELECT 1
FROM page AS talkpage
WHERE talkpage.page_title=article.page_title
AND talkpage.page_namespace=1
LIMIT 1
)
AND NOT EXIS... | {"resultsets": [{"headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"], "rowcount": 25}], "runningtime": "109.20"} | enwiki_p |
Mainspace articles without a talk page grouped by month | null | select creationMonth, count(*), page_title
from (
SELECT left(rev_timestamp, 6) as creationMonth, page_title
FROM page AS article
join revision on page_id=rev_page
WHERE article.page_is_redirect=0
AND article.page_namespace=0
AND NOT EXISTS
(
SELECT 1
... | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 21}], "runningtime": "37.64"} | enwiki_p |
test nlwiki | null | # anonymous edits totals
SELECT
CASE rc_patrolled
WHEN 0 THEN 'unpatrolled'
WHEN 1 THEN 'manually patrolled'
WHEN 2 THEN 'autopatrolled'
END AS rc_patrolled,
COUNT(*) AS 'count'
FROM recentchanges, actor
WHERE rc_actor=actor_id AND actor_user IS NULL
GROUP BY rc_patrolled
UNION
SELECT 'total... | {"resultsets": [{"headers": ["user_name", "user_registration", "user_editcount", "ipb_address", "ipb_expiry", "ipb_sitewide"], "rowcount": 6}], "runningtime": "64.06"} | nlwiki_p |
Top Wikipedia User by Bytecounts (This month) | Verify each user's contribution here : https://quarry.wmflabs.org/query/54879 | select * /*sum(tdif)*/
from
(select
actor_name,
sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif
from recentchanges_userindex
left join actor on rc_actor = actor_id
where rc_timestamp >= 20220801000000 and rc_timestamp <= 20220901000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit')
... | {"resultsets": [{"headers": ["rc_id", "rc_title"], "rowcount": 100}], "runningtime": "2.91"} | idwiki |
active blocks by Tamzin on enwiki | null | SELECT ipb_timestamp, ipb_address
FROM ipblocks
WHERE ipb_by_actor = 785255 -- Tamzin | {"resultsets": [{"headers": ["rc_id", "rc_title"], "rowcount": 197094}], "runningtime": "210.08"} | enwiki_p |
Dobre Artykuły z martwymi linkami | null | SET @cat = 'Rumuńscy_skoczkowie_narciarscy';
SET @missing_links = 'Niezweryfikowane_martwe_linki';
SELECT article.page_title AS "xxx" FROM page article
JOIN page talk ON article.page_namespace + 1 = talk.page_namespace AND article.page_title = talk.page_title
JOIN categorylinks c1 ON c1.cl_from = article.page_id AND... | {"resultsets": [{"headers": ["nb", "tl_title"], "rowcount": 183}], "runningtime": "0.34"} | plwiki_p |
Users on enwikiquote by edit count | null | SELECT user_name, user_editcount
FROM user
HAVING user_editcount > 1000
ORDER BY user_editcount; | {"resultsets": [{"headers": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 3}], "runningtime": "0.07"} | enwikiquote_p |
Top Wikipedia User by Bytecounts (This month) | Verify each user's contribution here : https://quarry.wmflabs.org/query/54879 | select * /*sum(tdif)*/
from
(select
actor_name,
sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif
from recentchanges_userindex
left join actor on rc_actor = actor_id
where rc_timestamp >= 20220601000000 and rc_timestamp <= 20220701000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit')
... | {"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": 1}], "runningtime": "0.06"} | idwiki_p |
Linki zewnętrzne | null | USE plwiki_p;
SELECT CONCAT(page_title) as page_title
FROM page
JOIN externallinks
ON page_id = el_from
WHERE page_namespace = 1
AND ((el_to LIKE 'https://en.asiangames2018.id/athletes/country/') OR (el_to LIKE 'http://www.japannationalfootballteam.com/en/players/arai_kozo.html') OR (el_to LIKE 'http://www.przegubowiec... | {"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": 1}], "runningtime": "0.06"} | plwiki |
Użytkownicy, którzy przesłali pliki w ramach Wiki Science Competition 2021 | null | SELECT actor_name AS "Użytkownik", COUNT(*) AS "Wgrane multimedia" FROM page
JOIN categorylinks ON page_id = cl_from
JOIN image ON img_name = page_title
JOIN actor ON img_actor = actor_id
WHERE page_namespace = 6
AND cl_to = "Images_from_Wiki_Science_Competition_2021_in_Poland"
GROUP BY img_actor
... | {"resultsets": [{"headers": ["user_id", "user_name", "rev_actor", "rev_id", "rev_page", "page_id", "page_title"], "rowcount": 100}], "runningtime": "0.15"} | commonswiki_p |
Beauty accounts 2 | Find thanks | select user_name, user_registration from user where user_registration > "20200101" and user_registration < "20220905" and ((user_name like "%Beauty" and user_name not like "% Beauty") or (user_name like "%BeautyQueen"))
order by user_registration desc
limit 250 | {"resultsets": [{"headers": ["user_id", "user_name", "page_id", "page_title", "count(distinct(user_id))"], "rowcount": 1}], "runningtime": "0.11"} | enwiki |
Article creators by volume last week (>2 per day) | Most prolific article creators in August
Counts only non-redirect pages currently in the main namespace, with their first edit between August 1 2022 and August 31 2022. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since been ... | SELECT COUNT(*), SUM(page_len) / COUNT(*) AS "Average Size", actor_name
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN categorylinks ON cl_from = page_id AND (
cl_to = 'Disambiguation_pages' OR
cl_to LIKE '%disambiguation_pages' OR
cl_to LIKE 'List%' OR
cl_to... | {"resultsets": [{"headers": ["rev_actor", "page_id", "page_title", "rev_id", "rev_timestamp"], "rowcount": 38}], "runningtime": "1.54"} | enwiki_p |
Article creators by volume last week (>3 per day) | Most prolific article creators in August
Counts only non-redirect pages currently in the main namespace, with their first edit between August 1 2022 and August 31 2022. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since been ... | SELECT COUNT(*), SUM(page_len) / COUNT(*) AS "Average Size", actor_name
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN categorylinks ON cl_from = page_id AND (
cl_to = 'Disambiguation_pages' OR
cl_to LIKE '%disambiguation_pages' OR
cl_to LIKE 'List%' OR
cl_to... | {"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "user_id", "user_name"], "rowcount": 38}], "runningtime": "0.11"} | enwiki_p |
Article creators by volume August | Most prolific article creators in August
Counts only non-redirect pages currently in the main namespace, with their first edit between August 1 2022 and August 31 2022. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since been ... | SELECT COUNT(*), SUM(page_len) / COUNT(*) AS "Average Size", actor_name
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN categorylinks ON cl_from = page_id AND (
cl_to = 'Disambiguation_pages' OR
cl_to LIKE '%disambiguation_pages' OR
cl_to LIKE 'List%' OR
cl_to... | {"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name"], "rowcount": 1}], "runningtime": "0.06"} | enwiki_p |
Article creators by volume past year | Most prolific article creators from September 2021 to August 2022
Counts only non-redirect pages currently in the main namespace, with their first edit after September 2021. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since ... | SELECT COUNT(*), SUM(page_len) / COUNT(*) AS "Average Size", actor_name
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN categorylinks ON cl_from = page_id AND (
cl_to = 'Disambiguation_pages' OR
cl_to LIKE '%disambiguation_pages' OR
cl_to LIKE 'List%' OR
cl_to... | {"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name"], "rowcount": 1}], "runningtime": "0.07"} | enwiki_p |
Article creators by volume past year | Most prolific article creators from September 2021 to August 2022
Counts only non-redirect pages currently in the main namespace, with their first edit after September 2021. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since ... | SELECT COUNT(*) AS "# Articles", SUM(page_len) / COUNT(*) AS "Average Size", SUM(rev_len) / COUNT(*) AS "Average Creation Size", SUM(external_link_count) / COUNT(*) as "Average # External Links", actor_name as "Creator"
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN ... | {"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 0}], "runningtime": "0.06"} | enwiki_p |
Article creators by volume last week (>1 per day) | Most prolific article creators in August
Counts only non-redirect pages currently in the main namespace, with their first edit between August 1 2022 and August 31 2022. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since been ... | SELECT COUNT(*) AS "# Articles", SUM(page_len) / COUNT(*) AS "Average Size", SUM(rev_len) / COUNT(*) AS "Average Creation Size", SUM(external_link_count) / COUNT(*) as "Average # External Links", actor_name as "Creator"
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
JOIN (SELE... | {"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.07"} | enwiki_p |
Article creators by volume last week (>1 per day) | Most prolific article creators in August
Counts only non-redirect pages currently in the main namespace, with their first edit between August 1 2022 and August 31 2022. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since been ... | SELECT COUNT(*) AS "# Articles", SUM(page_len) / COUNT(*) AS "Average Size", SUM(rev_len) / COUNT(*) AS "Average Creation Size", SUM(external_link_count) / COUNT(*) as "Average # External Links", actor_name as "Creator"
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN ... | {"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": 8495}], "runningtime": "10.70"} | enwiki_p |
Article creators by volume August (with external link count) | Most prolific article creators in August
Counts only non-redirect pages currently in the main namespace, with their first edit between August 1 2022 and August 31 2022. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since been ... | SELECT COUNT(*) AS "# Articles", SUM(page_len) / COUNT(*) AS "Average Size", SUM(rev_len) / COUNT(*) AS "Average Creation Size", SUM(external_link_count) / COUNT(*) as "Average # External Links", actor_name as "Creator"
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN ... | {"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": 19039}], "runningtime": "22.52"} | enwiki_p |
Article creators by volume June | Most prolific article creators in August
Counts only non-redirect pages currently in the main namespace, with their first edit between August 1 2022 and August 31 2022. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since been ... | SELECT COUNT(*) AS "# Articles", SUM(page_len) / COUNT(*) AS "Average Size", SUM(rev_len) / COUNT(*) AS "Average Creation Size", SUM(external_link_count) / COUNT(*) as "Average # External Links", actor_name as "Creator"
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN ... | {"resultsets": [{"headers": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 1}], "runningtime": "0.07"} | enwiki_p |
Article creators by volume July | Most prolific article creators in July
Counts only non-redirect pages currently in the main namespace, with their first edit between July 1 2022 or later. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since June 1, nor articles that have since been deleted, redirec... | SELECT COUNT(*) AS "# Articles", SUM(page_len) / COUNT(*) AS "Average Size", SUM(rev_len) / COUNT(*) AS "Average Creation Size", SUM(external_link_count) / COUNT(*) as "Average # External Links", actor_name as "Creator"
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN ... | {"resultsets": [{"headers": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 0}], "runningtime": "0.05"} | enwiki_p |
Article creators by volume past year | Most prolific article creators from September 2021 to August 2022
Counts only non-redirect pages currently in the main namespace, with their first edit after September 2021. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since ... | SELECT COUNT(*), SUM(page_len) / COUNT(*) AS "Average Size", actor_name
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
LEFT JOIN categorylinks ON cl_from = page_id AND (
cl_to = 'Disambiguation_pages' OR
cl_to LIKE '%disambiguation_pages' OR
cl_to LIKE 'List%' OR
cl_to... | {"resultsets": [{"headers": ["actor_name", "c"], "rowcount": 5}], "runningtime": "10775.97"} | arwiki_p |
Wikidata items with identical label and description | null | SELECT CONCAT('Q', Lwbit.wbit_item_id) AS item_id, wbxl_language, (SELECT wbx_text FROM wbt_text WHERE wbx_id = wbxl_text_id) AS text
FROM wbt_item_terms AS Lwbit
JOIN wbt_term_in_lang AS Lwbtl ON Lwbtl.wbtl_id = Lwbit.wbit_term_in_lang_id
JOIN wbt_type AS Ly ON Ly.wby_id = Lwbtl.wbtl_type_id
JOIN wbt_item... | {"resultsets": [{"headers": ["Actor", "Edits", "Uploaded images", "Images MiB", "Images GiB", "Images TiB"], "rowcount": 3}], "runningtime": "9.71"} | wikidatawiki_p |
Items without Czech label by usage (en) | null | SELECT eu_entity_id, COUNT(eu_page_id) AS number
FROM wbc_entity_usage AS main
WHERE eu_aspect = 'L.en'
AND eu_entity_id LIKE 'Q%'
AND EXISTS (
SELECT 1 FROM wbc_entity_usage AS subq
WHERE subq.eu_entity_id = main.eu_entity_id
AND subq.eu_page_id = main.eu_page_id
AND subq.eu_aspect = 'L.ar'
)
GROUP BY eu_entit... | {"resultsets": [{"headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace", "tl_target_id", "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": 7}], "run... | cswiki_p |
Unreviewed articles with AFD templates | null | SELECT page_title
FROM pagetriage_page
JOIN page ON ptrp_page_id = page_id
JOIN templatelinks ON tl_from = page_id
WHERE tl_title = 'Article_for_deletion/dated'
AND tl_namespace = 10
AND ptrp_reviewed = 0
AND page_is_redirect = 0
AND page_namespace = 0 | {"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 2858}], "runningtime": "22.25"} | enwiki |
Article creators by volume past year by month | Most prolific article creators from September 2021 to August 2022
Counts only non-redirect pages currently in the main namespace, with their first edit after September 2021. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since ... | SELECT actor_name,
COUNT(*) AS "Year total",
SUM(CASE WHEN SUBSTRING(rev_timestamp,1,6) = 202109 THEN 1 ELSE 0 END) AS "Sep 2021",
SUM(CASE WHEN SUBSTRING(rev_timestamp,1,6) = 202110 THEN 1 ELSE 0 END) AS "Oct 2021",
SUM(CASE WHEN SUBSTRING(rev_timestamp,1,6) = 202111 THEN 1 ELSE 0 END) AS "Nov 2021",
SUM(CAS... | {"resultsets": [{"headers": ["page_title"], "rowcount": 43}], "runningtime": "0.10"} | enwiki_p |
Number of templates in mainspace | null | SELECT COUNT(*)
FROM templatelinks
WHERE tl_from_namespace = 0 | {"resultsets": [{"headers": ["page_title", "page_id", "rev_timestamp"], "rowcount": 43}], "runningtime": "0.10"} | enwiki_p |
Article creators by volume 2021 by month | Most prolific article creators from September 2021 to August 2022
Counts only non-redirect pages currently in the main namespace, with their first edit after September 2021. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since ... | SELECT
actor_name as "Creator",
COUNT(*) AS "Year total",
SUM(CASE WHEN SUBSTRING(rev_timestamp,5,2) = 01 THEN 1 ELSE 0 END) AS "Jan",
SUM(CASE WHEN SUBSTRING(rev_timestamp,5,2) = 02 THEN 1 ELSE 0 END) AS "Feb",
SUM(CASE WHEN SUBSTRING(rev_timestamp,5,2) = 03 THEN 1 ELSE 0 END) AS "Mar",
SUM(CASE WHEN SUBSTR... | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 6}], "runningtime": "0.06"} | enwiki_p |
Article creators by volume 2020 by month | Most prolific article creators from September 2021 to August 2022
Counts only non-redirect pages currently in the main namespace, with their first edit after September 2021. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since ... | SELECT
actor_name as "Creator",
COUNT(*) AS "Year total",
SUM(CASE WHEN SUBSTRING(rev_timestamp,5,2) = 01 THEN 1 ELSE 0 END) AS "Jan",
SUM(CASE WHEN SUBSTRING(rev_timestamp,5,2) = 02 THEN 1 ELSE 0 END) AS "Feb",
SUM(CASE WHEN SUBSTRING(rev_timestamp,5,2) = 03 THEN 1 ELSE 0 END) AS "Mar",
SUM(CASE WHEN SUBSTR... | {"resultsets": [{"headers": ["page_id", "page_title", "el_to"], "rowcount": 115507}], "runningtime": "175.48"} | enwiki_p |
Article creators by volume 2019 by month | Most prolific article creators from September 2021 to August 2022
Counts only non-redirect pages currently in the main namespace, with their first edit after September 2021. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since August 1, nor articles that have since ... | SELECT
actor_name as "Creator",
COUNT(*) AS "Year total",
SUM(CASE WHEN SUBSTRING(rev_timestamp,5,2) = 01 THEN 1 ELSE 0 END) AS "Jan",
SUM(CASE WHEN SUBSTRING(rev_timestamp,5,2) = 02 THEN 1 ELSE 0 END) AS "Feb",
SUM(CASE WHEN SUBSTRING(rev_timestamp,5,2) = 03 THEN 1 ELSE 0 END) AS "Mar",
SUM(CASE WHEN SUBSTR... | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "50.19"} | enwiki_p |
Redirect sizes | null | SELECT page_len, rev_len, page_title
FROM page
JOIN revision ON page_id = rev_page and rev_parent_id = 0
WHERE page_is_redirect = 1
AND page_namespace = 0
AND SUBSTRING(rev_timestamp, 1, 4) = '2020' | {"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "actor_id", "actor_user", "actor_name"], "rowcount": 0}], "runningtime": "0.05"} | enwiki_p |
বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ব্যবহারকারী | বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী | USE bnwiki_p;
SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="thanks"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"resultsets": [{"headers": ["Page title", "Namespace", "Redirect?"], "rowcount": 1007}], "runningtime": "1.25"} | bnwiki_p |
বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ব্যবহারকারী | বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী | USE bnwiki_p;
SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="thanks"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"resultsets": [{"headers": ["Page title", "Namespace", "Redirect?"], "rowcount": 1007}], "runningtime": "1.20"} | bnwiki_p |
বাংলা উইকিপিডিয়ায় দৈনিক সম্পাদনা সংখ্যা | null | SELECT
DATE_FORMAT(rev_timestamp, "%Y-%m-%d") AS day,
COUNT(rev_timestamp) AS revisions
FROM revision
GROUP BY day; | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "32.51"} | bnwiki |
Article creation sizes | null | SELECT rev_len, page_len, page_title
FROM page
JOIN revision ON page_id = rev_page and rev_parent_id = 0
WHERE page_is_redirect = 0
AND page_namespace = 0
AND SUBSTRING(rev_timestamp, 1, 4) = '2020' | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "34.46"} | enwiki_p |
Article creation sizes past week | null | SELECT rev_len, page_len, page_title
FROM page
JOIN revision ON page_id = rev_page and rev_parent_id = 0
WHERE page_is_redirect = 0
AND page_namespace = 0
AND rev_timestamp >= '20220829' | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "32.82"} | enwiki_p |
Number of articles by editor by day past year | null | SELECT actor_name as Creator,
COUNT(*) as Articles,
SUBSTRING(rev_timestamp, 1, 8) as Date
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
WHERE rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND rev_timestamp >= '20210901'
AND (rev_len >= 150... | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 16}], "runningtime": "0.10"} | enwiki_p |
Number of articles by editor by week past year | null | SELECT actor_name as "Creator",
COUNT(*) as "Articles",
FLOOR(-DATEDIFF(20210101, SUBSTRING(rev_timestamp, 1, 8)) / 7) + 1 AS WeeksSince2020
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
WHERE rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND... | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "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"],... | enwiki_p |
Number of articles by editor by month past year | null | SELECT actor_name as "Creator",
COUNT(*) as "Articles",
SUBSTRING(rev_timestamp, 1, 6) AS Month
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
WHERE rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND rev_timestamp >= '202109'
AND (rev_len >= ... | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "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"],... | enwiki_p |
Number of articles by editor by year since 2020 | null | SELECT actor_name as "Creator",
COUNT(*) as "Articles",
SUBSTRING(rev_timestamp, 1, 4) AS Year
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
WHERE rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND rev_timestamp >= '2020'
AND (rev_len >= 150... | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 63}], "runningtime": "0.14"} | enwiki_p |
List of used citation templates | null | SELECT tl_title, COUNT(*) as "# Mainspace uses"
FROM templatelinks
WHERE tl_title IN ("Citation", "Cite", "Cite-JETE", "Cite-Karnow", "Cite-NBK", "Cite-TMHP", "Cite-book", "Cite-check", "Cite-efron", "Cite-efron/doc", "Cite-jcdb-title", "Cite-needed", "Cite-news", "Cite-quran", "Cite-quran_ayah", "Cite-section", "Cite-... | {"resultsets": [{"headers": ["cl_to"], "rowcount": 19}], "runningtime": "0.07"} | enwiki_p |
Articles with no references | null | SELECT page_title, page_len, SUBSTRING(rev_timestamp, 1, 8)
FROM page
LEFT JOIN templatelinks ON tl_from = page_id AND
tl_from_namespace = 0 AND
tl_namespace = 10 AND
tl_title IN ("Citation", "Cite", "Cite-JETE", "Cite-Karnow", "Cite-NBK", "Cite-TMHP", "Cite-book", "Cite-check", "Cite-jcdb-title", "Cite-needed... | {"resultsets": [{"headers": ["cl_to"], "rowcount": 13}], "runningtime": "0.08"} | enwiki_p |
Nonstandard user categories | null | -- select * from categorylinks where cl_to = 'Companies_by_affiliation' limit 200;
select * from categorylinks where cl_to = 'Companies' limit 200; | {"resultsets": [{"headers": ["actor_name", "comment_text"], "rowcount": 1}], "runningtime": "0.28"} | enwiki_p |
wikidatawiki: mainspace redirects per QID-bin | null | SELECT
CEILING(SUBSTRING(page_title FROM 2) / 1000000) AS bin,
COUNT(*) AS cnt
FROM
page
WHERE
page_namespace=0
AND page_is_redirect=1
GROUP BY
bin
ORDER BY
bin ASC | {"resultsets": [{"headers": ["T\u00ean t\u00e0i kho\u1ea3n", "Nh\u00f3m ng\u01b0\u1eddi d\u00f9ng", "S\u1ed1 t\u00e1c v\u1ee5"], "rowcount": 200}], "runningtime": "15.37"} | wikidatawiki |
#/temporally-named redirects | The number of currently existing redirects in mainspace either starting with "Untitled " or "Upcoming ", or containing "(untitled" or "(upcoming"; and the number of pages in mainspace (redirects or not) deleted in 2022 with such titles.
For [[WT#Formerly untitled/upcoming media]] circa 5 September 2022.
See also quer... | SELECT COUNT(*) AS '#/existing mainspace redirects'
FROM page
WHERE page_namespace = 0
AND page_is_redirect = 1
AND (page_title LIKE '%(untitled%'
OR page_title LIKE '%(upcoming%'
OR page_title LIKE 'Untitled_%'
OR page_title LIKE 'Upcoming_%');
SELECT COUNT(*) AS '#/deleted mainspace pages in ... | {"resultsets": [{"headers": ["NOW()"], "rowcount": 1}, {"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": 1}], "runningtime": "0.08"} | enwiki_p |
Unreviewed new articles by user (>25 articles) | Count of articles in the enwiki new pages patrol queue grouped by user that created them. | SELECT actor_name, page_title, COUNT(*)
FROM pagetriage_page
JOIN page ON ptrp_page_id = page_id
JOIN revision ON rev_page = page_id
JOIN actor ON actor_id = rev_actor
WHERE ptrp_reviewed = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND rev_parent_id = 0
AND ptrp_created < DATE_SUB(CU... | {"resultsets": [{"headers": ["page_lang"], "rowcount": 1}], "runningtime": "0.06"} | enwiki |
Unreviewed new redirects by user (>25) | Count of articles in the enwiki new pages patrol queue grouped by user that created them. | SELECT actor_name, page_title, COUNT(*)
FROM pagetriage_page
JOIN page ON ptrp_page_id = page_id
JOIN revision ON rev_page = page_id
JOIN actor ON actor_id = rev_actor
WHERE ptrp_reviewed = 0
AND page_namespace = 0
AND page_is_redirect = 1
AND rev_parent_id = 0
GROUP BY actor_name
ORDER BY C... | {"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "actor_id", "actor_user", "actor_name"], "rowcount": 0}], "runningtime": "0.04"} | enwiki |
Find renamed user or vanished user's old name | null | SELECT log_params
FROM logging
WHERE log_type = "gblrename"
AND log_params LIKE '%"Katie"%' | {"resultsets": [{"headers": ["page_title"], "rowcount": 50}], "runningtime": "0.25"} | metawiki |
Uncited articles | Produces a list of articles that do not use citation templates, are expected to have citations, and are not currently tagged as unreferenced
It may be useful to exclude articles with external links but no citation templates. | 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": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 5}], "runningtime": "0.07"} | enwiki_p |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["actor_name", "user_registration", "comment_text"], "rowcount": 4}], "runningtime": "21.18"} | enwiki_p |
Yli 100 muokkausta kuukaudessa tehneet suomenkielisessä Wikipediassa | null | SELECT
d,
sum(c>5) yli5,
sum(c>99) yli100,
sum(c>199) yli200,
sum(c>499) yli500,
sum(c>999) yli1000
FROM (
SELECT
floor(rev_timestamp/100000000) AS d,
rev_user, SUM(1) AS c
FROM
revision_compat
LEFT JOIN user_groups ON ug_user=rev_user AND ug_group='bot'
LEFT... | {"resultsets": [{"headers": ["cl_to", "count_cl_to"], "rowcount": 0}], "runningtime": "63.39"} | fiwiki |
Top Wikipedia Page by Bytecounts (This Month) | Verify each user's contribution here : https://quarry.wmflabs.org/query/54879 | select *
from
(select
rc_title,
sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif
from recentchanges_userindex
where rc_timestamp >= 20220901000000 and rc_timestamp <= 20220907000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit')
group by rc_title) a
where tdif > 3000
order by tdif des... | {"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "0.11"} | idwiki |
Top Wikipedia User by Bytecounts (This month) | Verify each user's contribution here : https://quarry.wmflabs.org/query/54879 | select * /*sum(tdif)*/
from
(select
actor_name,
sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif
from recentchanges_userindex
left join actor on rc_actor = actor_id
where rc_timestamp >= 20220901000000 and rc_timestamp <= 20220907000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit')
... | {"resultsets": [{"headers": ["lu_wiki", "lu_name", "lu_attached_timestamp", "lu_attached_method", "lu_local_id", "lu_global_id"], "rowcount": 92}], "runningtime": "0.19"} | idwiki |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["actor_name"], "rowcount": 1141}], "runningtime": "1.36"} | enwiki_p |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.