title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "3.28", "resultsets": [{"headers": ["page_title"], "rowcount": 663}]} | enwiki |
Articles on Dagbani Wikipedia excluding all non-article namespaces | Articles on Dagbani Wikipedia excluding all non-article namespaces | #dag
use dagwiki_p ;
# select wd.ips_item_id,ckbp.page_title from page as ckbp, wikidatawiki_p.wb_items_per_site as wd where ckbp.page_namespace=0 and kkbp.page_is_redirect = 0 and wd.ips_site_id="ckbwiki" and wd.ips_site_page=ckbp.page_title
select pp.pp_value as Qid, page_title as title from page
left join p... | {"runningtime": "1.33", "resultsets": [{"rowcount": 20, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | articlesondagbaniwikipedia |
All dagwiki main namespace articles with their Qid if they have one | ckbwiki main namespace articles with their Qid. If the query works fine. | #ckb
use dagwiki_p ;
# select wd.ips_item_id,ckbp.page_title from page as ckbp, wikidatawiki_p.wb_items_per_site as wd where ckbp.page_namespace=0 and kkbp.page_is_redirect = 0 and wd.ips_site_id="ckbwiki" and wd.ips_site_page=ckbp.page_title
select pp.pp_value as Qid, page_title as title from page
left join p... | {"runningtime": "24.19", "resultsets": [{"rowcount": 1, "headers": ["user_name", "rc_this_oldid", "comment_text"]}]} | wikibase |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "137.18", "resultsets": [{"rowcount": 1, "headers": ["edits", "patrolled", "non_current", "non_current_patrolled"]}]} | enwiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "1.37", "resultsets": [{"rowcount": 37, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | enwiki |
Get article creation date and Wikidata item by category - Wikiproject COVID-19 | null | USE enwiki_p;
SELECT page_props.pp_value, article.page_title, revision.rev_timestamp,
MIN(revision.rev_id), COUNT(*) AS edits, article.page_len
FROM revision
INNER JOIN page article ON
article.page_id = rev_page AND
article.page_namespace = 0
INNER JOIN page talk ON
talk.page_title = article.page_title AND... | {"runningtime": "91.40", "resultsets": [{"rowcount": 1, "headers": ["user_name", "rc_this_oldid", "comment_text"]}]} | enwiki_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "0.07", "resultsets": [{"rowcount": 10, "headers": ["page_id"]}]} | enwiki |
2020 Olympics pages w/o 2021 redirects | Non-redirect pages in the main namespace with titles containing any of "2020 Olympics", "2020 Summer Olympics", "2020 Paralympics", "2020 Summer Paralympics", or "Tokyo 2020" (case-insensitive); where there isn't a redirect pointing at them, with the same title except "2021" instead of "2020".
For [[WP:VPT#Missing "20... | SELECT page_title
FROM page AS p1
WHERE p1.page_namespace = 0
AND p1.page_title RLIKE '(?i)(2020_(Summer_)?(O|Para)lympics|Tokyo_2020)'
AND p1.page_is_redirect = 0
AND NOT EXISTS (SELECT 1 FROM redirect
JOIN page AS p2 ON p2.page_id = rd_from
WHERE rd_namespace = 0
... | {"runningtime": "6.95", "resultsets": [{"rowcount": 31, "headers": ["date", "reviews", "accepts", "declines", "rejects"]}]} | enwiki |
2020 Olympics redirects w/o 2021 redirects | Redirects in the main namespace with titles containing any of "2020 Olympics", "2020 Summer Olympics", "2020 Paralympics", "2020 Summer Paralympics", or "Tokyo 2020" (case insensitive); where there isn't another redirect pointing at the same target, with the same title as the first redirect except "2021" instead of "20... | SELECT page_title
FROM page AS p1
JOIN redirect r1 ON r1.rd_from = p1.page_id
WHERE p1.page_namespace = 0
AND p1.page_title RLIKE '(?i)(2020_(Summer_)?(O|Para)lympics|Tokyo_2020)'
AND NOT EXISTS (SELECT 1 FROM redirect AS r2
JOIN page AS p2 ON p2.page_id = rd_from
WHERE r2.rd_nam... | {"runningtime": "7.75", "resultsets": [{"rowcount": 196, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | enwiki |
Get article creation date and Wikidata item by category - Wikiproject COVID-19 | null | USE enwiki_p;
SELECT page_props.pp_value, article.page_title, revision.rev_timestamp,
MIN(revision.rev_id), MAX(revision.rev_id), COUNT(*) AS edits, article.page_len
FROM revision
INNER JOIN page article ON
article.page_id = rev_page AND
article.page_namespace = 0
INNER JOIN page talk ON
talk.page_title = ... | {"runningtime": "14.62", "resultsets": [{"rowcount": 7165, "headers": ["wbit_item_id", "wbxl_language", "wbtl_type_id", "wbx_text"]}]} | enwiki_p |
#WPWP edits | null | SELECT actor_name, COUNT(*) as edits, MIN(rc_title) AS example_1, MAX(rc_title) AS example_2, MIN(rc_timestamp) AS start_time
FROM recentchanges
JOIN `comment` ON comment_id = rc_comment_id AND comment_text REGEXP "#WPWP" AND comment_text NOT REGEXP "(Undid|Reverted|revision)"
JOIN actor ON actor_id = rc_actor
WHERE rc... | {"runningtime": "233.17", "resultsets": [{"rowcount": 25449, "headers": ["qid", "type", "lang", "text"]}]} | enwiki_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "10.31", "resultsets": [{"headers": ["page"], "rowcount": 5000}]} | enwiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "0.08", "resultsets": [{"rowcount": 5, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang", "pp_page", "pp_propname", "pp_value", "... | enwiki |
2020 Olympics pages w/o 2021 redirects | Non-redirect pages in the main namespace with titles containing any of "2020 Olympics", "2020 Summer Olympics", "2020 Paralympics", "2020 Summer Paralympics", or "Tokyo 2020" (case-insensitive); where there isn't a redirect pointing at them, with the same title except "2021" instead of "2020".
For [[WP:VPT#Missing "20... | SELECT concat("[[",page_title,"]]") as"Title"
FROM page AS p1
WHERE p1.page_namespace = 0
AND p1.page_title RLIKE '(?i)(2020_(Summer_)?(O|Para)lympics|Tokyo_2020)'
AND NOT p1.page_title LIKE '$_-_$'
AND NOT p1.page_title LIKE '$_–_$'
AND NOT EXISTS (SELECT 1 FROM redirect
JOIN page AS p2 ON p2... | {"runningtime": "14.79", "resultsets": [{"rowcount": 150, "headers": ["Edits", "User"]}]} | enwiki |
Most pending changes accepts (all time) | null | SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank,
actor_name,
COUNT(log_actor) AS manual_accept_count
FROM logging_userindex
JOIN actor_logging ON actor_id = log_actor
WHERE log_type = 'review' AND log_action = 'approve'
GROUP BY log_actor
ORDER BY manual_accept_count DESC
LIMIT 1000 | {"runningtime": "149.10", "resultsets": [{"rowcount": 172, "headers": ["page_title", "cl_to"]}]} | enwiki |
Dr. Universe AfD count | 198.207.223.xxx | SET statement max_statement_time = 10 for
select actor_name, count(distinct page_title) from actor, revision_userindex, page
where actor_id = rev_actor
and page_namespace = 4
and rev_page = page_id
and actor_name in ('Dr. Universe', 'RoySmith', 'Daniel', '力')
and page_title like 'Articles_for_deletion%'
group by acto... | {"runningtime": "0.12", "resultsets": [{"rowcount": 1, "headers": ["@dbname", "New CX articles", "New non-CX articles", "Deleted CX articles", "Deleted non-CX articles", "Deleted CX %", "Deleted non-CX %", "Deletion % difference"]}]} | enwiki_p |
Pagine con apostrofi tipografici nel titolo | null | select concat('[[', page.page_title, ']]') as titolo
from page
where page_is_redirect = 0
and page_namespace = 0
and (page_title like '%—%' or page_title like '%’%')
order by page_title
| {"runningtime": "0.31", "resultsets": [{"rowcount": 100, "headers": ["Timestamp", "actor_name", "rc_title", "total diff"]}]} | itwikisource_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "1.70", "resultsets": [{"headers": ["count(page_id)"], "rowcount": 1}]} | enwiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "0.14", "resultsets": [{"rowcount": 17, "headers": ["actor_name", "total"]}]} | enwiki |
Newest pages in category | null | set @category_name = 'Proto-Norse_lemmas';
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_fr... | {"runningtime": "2.97", "resultsets": [{"rowcount": 2000, "headers": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"]}]} | enwiktionary_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "94.45", "resultsets": [{"rowcount": 22, "headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"]}]} | enwiki |
Foo Islands and Foo Archipelago which are different places | null | SET STATEMENT max_statement_time=600 FOR
SELECT Ps.page_title AS islands, Pp.page_title AS archipelago,
(SELECT COUNT(*) FROM pagelinks WHERE pl_namespace = 0 AND pl_title = Ps.page_title AND pl_from_namespace = 0) AS slinks,
(SELECT COUNT(*) FROM pagelinks WHERE pl_namespace = 0 AND pl_title = Pp.page_title AND pl_fro... | {"runningtime": "0.19", "resultsets": [{"rowcount": 100, "headers": ["Tables_in_eswikinews_p"]}]} | enwiki_p |
Tewiki: user-wise WPWPTE to village pages | null | select actor_name,count(rev_actor) as countt 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 "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = 'భారతదేశ_గ్రామాలు'
OR
... | {"runningtime": "0.14", "resultsets": [{"rowcount": 0, "headers": ["ru_oldname", "ru_newname", "ru_wiki", "ru_status"]}, {"rowcount": 4, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 9, "headers": ["Tables_in_centralauth_p"]}]} | tewiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "11.84", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, ... | enwiki |
Most popular individual edit times | List of a user's edit times. | SELECT
DAYOFWEEK(rev_timestamp) AS dow,
HOUR(rev_timestamp) AS hour,
COUNT(rev_id) AS edits
FROM revision LEFT JOIN actor ON (revision.rev_actor = actor.actor_id)
-- Filter by user.
WHERE actor.actor_name = "NguoiDungKhongDinhDanh"
GROUP BY dow, hour
ORDER BY dow ASC, hour ASC; | {"runningtime": "12.38", "resultsets": [{"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["pa... | viwiki_p |
تعديلات الإداريين العرب في ويكي بيانات - حذف | null | use wikidatawiki_p;
select concat ("[[special:diff/",rev_id,"]]"), rev_user_text from revision
where rev_user_text in (select arwiki_p.user.user_name from arwiki_p.user inner join arwiki_p.user_groups
on arwiki_p.user.user_id = arwiki_p.user_groups.ug_user
where arwiki_p.user... | {"runningtime": "0.22", "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}]} | wikidatawiki |
List users by edit count | null | SET @counter = 0;
SELECT @counter := @counter +1, user_editcount, user_name
FROM (SELECT user_name, user_editcount
FROM user
WHERE user_id NOT IN (
SELECT ug_user
FROM user_groups
WHERE ug_group = 'bot')
AND user_name NOT IN (
SELECT REPLACE(log_title, '_', ' ')
FROM logging
WHERE log_type = 'rights'
AND log_params LI... | {"runningtime": "17.49", "resultsets": [{"headers": ["\u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0\u0995\u09be\u09b0\u09c0_\u09a8\u09be\u09ae", "\u09ae\u09cb\u099f_\u09a8\u09bf\u09ac\u09a8\u09cd\u09a7"], "rowcount": 1000}]} | itwiki_p |
MassMassage list creator:Active user of Indic Wikisource NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE orwikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = or.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace = 250
AND rev... | {"runningtime": "36.88", "resultsets": [{"rowcount": 0, "headers": ["user_name", "rc_this_oldid", "comment_text"]}]} | orwikisource_p |
Copey (beta) | null | SET statement max_statement_time = 600 for
select comment_text, rev_id, rev_timestamp, rev_actor, actor_name from comment, revision, actor
where rev_comment_id = comment_id
and rev_actor = actor_id
and rev_timestamp > '20210000000000'
-- and rev_timestamp = '20210318183645'
and comment_text like '%copey%'
; | {"runningtime": "1.16", "resultsets": [{"rowcount": 648, "headers": ["page_title"]}]} | enwiki_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "1.23", "resultsets": [{"rowcount": 630, "headers": ["page_title"]}]} | enwiki |
Copey | null | SET statement max_statement_time = 600 for
select comment_text, rev_id, rev_timestamp, rev_actor, actor_name from comment, revision, actor
where rev_comment_id = comment_id
and rev_actor = actor_id
and rev_timestamp > '20210000000000'
-- and rev_timestamp = '20210609134313'
and convert(comment_text using latin1) like ... | {"runningtime": "118.84", "resultsets": [{"rowcount": 1, "headers": ["count(1)"]}]} | enwiki_p |
Last edits to pages in Maltese lemmas | null | set @category_name = 'Maltese_lemmas';
select
page_namespace as namespace,
replace(page_title, '_', ' ') as title,
actor_name as last_editor,
comment_text as last_edit_summary,
date_format(rev_timestamp, '%Y-%m-%d %H:%i:%s') as last_edit_timestamp
from categorylinks
join page on page_id = cl_from
join... | {"runningtime": "0.07", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | enwiktionary_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "1348.58", "resultsets": [{"rowcount": 69, "headers": ["tl_title"]}]} | enwiki |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext
FROM categorylinks
JOIN templatelinks ON tl_from = cl_from
JOIN page ON page_id = cl_from
WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%'
AND cl_type = 'file' AND page_namespace = 6
AND tl_namespace = 10 AND tl_title = 'Cs'
ORDER BY page_title;
/*
SEL... | {"runningtime": "0.69", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('# [[:File:', page_title, ']]')"]}]} | commonswiki_p |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext
FROM categorylinks
JOIN templatelinks ON tl_from = cl_from
JOIN page ON page_id = cl_from
WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%'
AND cl_type = 'file' AND page_namespace = 6
AND tl_namespace = 10 AND tl_title = 'Cs'
ORDER BY page_title;
/*
SEL... | {"runningtime": "0.05", "resultsets": [{"headers": ["page_title", "pp_value"], "rowcount": 0}]} | commonswiki_p |
MassMassage list creator:Active user of Odia Wikisource NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE orwikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = or.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,250)
AN... | {"runningtime": "13.60", "resultsets": [{"headers": ["Artikel", "Vorschaubild"], "rowcount": 9554}]} | orwikisource_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "54.37", "resultsets": [{"rowcount": 54, "headers": ["page_title", "pl_title"]}]} | enwiki |
GNDName entfernt | null | SELECT count(*) As "Anzahl", substr(rev_timestamp, 1, 8) as "Datum"
FROM page, revision, actor, comment
WHERE rev_page = page_id
AND page_namespace = 0
AND rev_actor = actor_id
AND actor_name = 'APPERbot'
AND rev_comment_id = comment_id
AND comment_text like '%GNDName nicht mehr notwendig%'
AND rev... | {"runningtime": "8.64", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | dewiki_p |
MassMassage list creator:Active user of Hindi Wikisource NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE hiwikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = hi.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,250)
AN... | {"runningtime": "47.28", "resultsets": [{"headers": ["page_title", "pl_title"], "rowcount": 2}]} | hiwikisource_p |
MassMassage list creator:Active user of Punjabi Wikisource NS0 & NS250 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE pawikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = pa.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,250)
AN... | {"runningtime": "46.56", "resultsets": [{"rowcount": 1, "headers": ["page_title", "pl_title"]}]} | pawikisource_p |
MassMassage list creator:Active user of Tamil Wikisource NS0 & NS250 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE tawikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = ta.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,250)
AN... | {"runningtime": "47.54", "resultsets": [{"rowcount": 4, "headers": ["page_title", "pl_title"]}]} | tawikisource_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "0.40", "resultsets": [{"rowcount": 221, "headers": ["page_title"]}]} | enwiki |
MassMassage list creator:Active user of Assamese Wikisource NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE aswikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = as.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,104)
AN... | {"runningtime": "3.94", "resultsets": [{"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["pag... | aswikisource_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "0.43", "resultsets": [{"rowcount": 117, "headers": ["REPLACE(REPLACE(REPLACE(el_to, 'https://quickstatements.toolforge.org/#/v1=',''), '%7C','|'),'||','#')"]}]} | enwiki |
MassMassage list creator:Active user of Bengali Wikisource NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE bnwikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = bn.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,104)
AN... | {"runningtime": "209.43", "resultsets": [{"rowcount": 1, "headers": ["cl_to", "count_cl_to"]}, {"rowcount": 1, "headers": ["page_title"]}, {"rowcount": 4, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["tl_title", "count_tl_title"]}, {"rowcount": 0, "headers": ["page_title", "pl_title"]}, {"rowcount": 0, "head... | bnwikisource_p |
MassMassage list creator:Active user of Gujarati Wikisource NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE guwikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = gu.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,104)
AN... | {"runningtime": "41.10", "resultsets": [{"rowcount": 268, "headers": ["year", "month", "page_namespace", "count"]}]} | guwikisource_p |
Ações de administradores na Wikipédia lusófona em 2021 | null | SELECT
actor_name Usuário,
SUM(IF((log_type, log_action) IN (('delete', 'delete'), ('delete', 'delete_redir')), actnum, 0)) Eliminações,
SUM(IF((log_type, log_action) = ('delete', 'restore'), actnum, 0)) Restauros,
SUM(BLOCK24H) Bloq_até_24h,
SUM(IF((log_type, log_action) = ('block', 'block'), actnum - BLOCK24H, 0... | {"runningtime": "0.70", "resultsets": [{"rowcount": 0, "headers": ["Draft", "Article"]}]} | ptwiki_p |
Recent additions to Hausa categories | null | select
rc_title,
page_namespace as namespace,
page_title as title,
actor_name as user,
recentchanges_comment.comment_text as recentchanges_summary,
revision_comment.comment_text as revision_summary,
cast(rc_timestamp as datetime) as timestamp
from recentchanges
join page on page_id = rc_cur_id
... | {"runningtime": "2.59", "resultsets": [{"rowcount": 0, "headers": ["Draft", "Article"]}]} | enwiktionary_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "0.16", "resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_... | enwiki |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext
FROM categorylinks
JOIN templatelinks ON tl_from = cl_from
JOIN page ON page_id = cl_from
WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%'
AND cl_type = 'file' AND page_namespace = 6
AND tl_namespace = 10 AND tl_title = 'Cs'
ORDER BY page_title;
/*
SEL... | {"runningtime": "0.88", "resultsets": [{"headers": ["actor_name", "antal"], "rowcount": 567}]} | commonswiki_p |
Régen babrált lapok | null | select page_id,
REPLACE(page_title, '_', ' ') AS cikkcím,
page_touched
from page
where page_namespace=0
and page_is_redirect=0
order by page_touched
limit 100
offset 50; | {"runningtime": "38.59", "resultsets": [{"rowcount": 123, "headers": ["pl_title", "rd_title", "COUNT(*)"]}]} | huwiki |
MassMassage list creator:Active user of Kannada Wikisource NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE knwikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = kn.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,104)
AN... | {"connection_id": 26442581} | knwikisource_p |
TLDs ohne Vorlage TLD | null | WITH RECURSIVE Cat AS (SELECT page_title
FROM page
WHERE page_title = 'Top-Level-Domain'
AND page_namespace = 14
UNION
SELECT SubCat.page_title
FROM page AS SubCat, category... | {"runningtime": "29.31", "resultsets": [{"rowcount": 294, "headers": ["pl_title", "rd_title", "COUNT(*)"]}]} | dewiki_p |
MassMassage list creator:Active user of Malayalam Wikisource NS0 & NS106 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE mlwikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = ml.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,106)
AN... | {"runningtime": "0.69", "resultsets": [{"rowcount": 44, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | mlwikisource_p |
MassMassage list creator:Active user of Marathi Wikisource NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE mrwikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = mr.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,104)
AN... | {"runningtime": "1.11", "resultsets": [{"rowcount": 290, "headers": ["editor", "accepts", "recent_edits"]}]} | mrwikisource_p |
Régen babrált lapok | dátum szerint szűkítve
| select page_id,
REPLACE(page_title, '_', ' ') AS cikkcím,
page_touched
from page
where page_namespace=0
and page_is_redirect=0
and page_touched>"20130310000000"
order by page_touched
limit 100; | {"runningtime": "1.28", "resultsets": [{"rowcount": 585, "headers": ["page_title"]}]} | huwiki |
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... | {"runningtime": "10.10", "resultsets": [{"headers": ["user_name"], "rowcount": 23}]} | enwiki |
عدد الوصلات | null | select count(*) from externallinks where el_to like "%rasoolona.com%" | {"runningtime": "2.43", "resultsets": [{"rowcount": 10, "headers": ["C\u00edm", "MIN(revision1.rev_timestamp)"]}]} | arwiki |
Bilder in deWP | Bilder, die nur die Lizenz PD-US-no_notice haben, welche aber erst 70 Jahre nach dem Tod des Fotographen in deWP verwendet werden dürfen | WITH RECURSIVE Cat AS (SELECT page_title
FROM page
WHERE page_title = 'License_tags'
AND page_namespace = 14
UNION
SELECT SubCat.page_title
FROM page AS SubCat, categorylink... | {"runningtime": "21.04", "resultsets": [{"rowcount": 9142, "headers": ["concat(\"Category:\",page_title)", "page_len"]}]} | commonswiki_p |
aa | null | use arwiki_p;
select count(*) from externallinks where el_to like "%rasoolona.com%" | {"runningtime": "6.57", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "... | arwiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "83.40", "resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 85}]} | enwiki |
Explaining that page_id changes depending on the namspace | null | SELECT article.page_title, article.page_id as page_id_namespace_0, page.page_id as page_id_namespace_1
FROM page
INNER JOIN page article
ON page.page_title=article.page_title
INNER JOIN categorylinks ON cl_from = page.page_id
AND categorylinks.cl_to = "WikiProject_COVID-19_articles"
WHERE page.page_namespace = 1 ... | {"runningtime": "1.60", "resultsets": [{"headers": ["tl_title", "count(tl_title)"], "rowcount": 500}]} | enwiki |
B-class articles with many interwikis | null | SELECT DISTINCT mainpage.page_title
FROM categorylinks outercat
INNER JOIN page outerpage ON outerpage.page_id = outercat.cl_from
INNER JOIN categorylinks innercat ON outerpage.page_title = innercat.cl_to
INNER JOIN page talkpage ON talkpage.page_id = innercat.cl_from
INNER JOIN page mainpage ON mainpage.page_title = t... | {"runningtime": "16.06", "resultsets": [{"rowcount": 190, "headers": ["rank", "reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | enwiki_p |
గుంటూరు జిల్లాలో 30.07.2021 నాటికి అక్షాంశ, రేఖాంశాల పటాలులేని గ్రామాలు | null | set @dist := "గుంటూరు_జిల్లా";
select p1.page_title from page p1
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhra_Pradesh_locator_map.svg")
and p1.page_namespace=0
and p1.page_id in (select cl_from from categorylinks where (cl_to = concat(@dist,'_గ్రామాలు')
... | {"runningtime": "1.47", "resultsets": [{"headers": ["page_title", "count(page_title)"], "rowcount": 966}]} | tewiki |
Retrieve all articles in WikiProject_COVID-19_articles | null | SELECT article.page_title, article.page_id as page_id_namespace_0, page.page_id as page_id_namespace_1
FROM page
INNER JOIN page article
ON page.page_title=article.page_title
INNER JOIN categorylinks ON cl_from = page.page_id
AND categorylinks.cl_to = "مقالات_فريق_عمل_كوفيد-19"
WHERE page.page_namespace = 1
AND ... | {"runningtime": "0.09", "resultsets": [{"rowcount": 1, "headers": ["actor_id", "actor_user", "actor_name"]}]} | arwiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "0.09", "resultsets": [{"rowcount": 1, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_rando... | enwiki |
Get articles in Category:COVID-19 | null | SELECT page.page_title, page.page_id
FROM page
INNER JOIN categorylinks ON cl_from = page.page_id
AND categorylinks.cl_to = "코로나바이러스감염증-19"
WHERE page.page_namespace = 0 | {"runningtime": "0.99", "resultsets": [{"rowcount": 1, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_rando... | kowiki |
Top editors in the Proto-Norse lemmas category | null | set @category_name := 'Maltese_lemmas';
select
actor_name as user,
count(*) as edit_count
from categorylinks
left join revision on rev_page = cl_from
left join actor on actor_id = rev_actor
where cl_to = @category_name
group by rev_actor
having edit_count > 20
order by edit_count desc; | {"connection_id": 21735361} | enwiktionary_p |
Accepts in July 2021 backlog drive | null | select actor_name as editor, COUNT(rev_actor) as accepts,
(select COUNT(rc_id) from recentchanges_userindex where rc_actor = actor_id ) as recent_edits
from revision_userindex
left join actor on rev_actor = actor_id
where (rev_page = 21063913)
and ( MONTH(rev_timestamp) = 7 )
and ( YEAR(rev_timestamp) = 202... | {"runningtime": "4.90", "resultsets": [{"rowcount": 2544, "headers": ["page_title", "count(page_title)"]}]} | enwiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "15.16", "resultsets": [{"rowcount": 0, "headers": ["page_title", "rd_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["tl_title"]}, {"rowcount": 8, "headers": ["page_title", "rev_timestamp"]}, {"rowcount": 0, "headers": ["page_title", "rd_title"]}, {"rowcount": 0, "head... | enwiki |
Dabs which list many people | null | SET STATEMENT max_statement_time=600 FOR
SELECT Pd.page_title AS dab,
SUM(CASE WHEN EXISTS (SELECT 1 FROM categorylinks
WHERE cl_from = Pp.page_id AND (cl_to = "Living_people" OR cl_to REGEXP "^\\d+_(BC_)?(births|deaths)")) THEN 1 ELSE 0 END) AS people,
SUM(CASE WHEN EXISTS (SELECT 1 FROM categorylinks
WHERE cl_f... | {"runningtime": "2.53", "resultsets": [{"rowcount": 2, "headers": ["CONCAT(\"Q\",ips_item_id)", "Lsah", "CONCAT('\"',ips_site_page,'\"')"]}]} | enwiki_p |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext
FROM categorylinks
JOIN templatelinks ON tl_from = cl_from
JOIN page ON page_id = cl_from
WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%'
AND cl_type = 'file' AND page_namespace = 6
AND tl_namespace = 10 AND tl_title = 'Cs'
ORDER BY page_title;
/*
SEL... | {"runningtime": "106.62", "resultsets": [{"rowcount": 402, "headers": ["pages", "date"]}]} | commonswiki_p |
MassMassage list creator:Active user of Marathi Wikisource NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE mrwikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = mr.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN (0,104)
AN... | {"runningtime": "88.60", "resultsets": [{"rowcount": 10, "headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"]}]} | mrwikisource_p |
MassMassage list creator:Active user of Sanskrit NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE sawikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = sa.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN ('0','104','... | {"runningtime": "113.14", "resultsets": [{"rowcount": 1, "headers": ["pages_with_disambig_but_not_redir"]}, {"rowcount": 985, "headers": ["user_id", "user_name", "user_articles", "user_latestcreation"]}]} | sawikisource_p |
MassMassage list creator:Active user of Telugu NS0 & NS104 | MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account | USE tewikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = te.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE actor_user IS NOT NULL
AND page_namespace IN ('0','104','... | {"runningtime": "1.14", "resultsets": [{"headers": ["editor", "accepts", "recent_edits"], "rowcount": 296}]} | tewikisource_p |
Pages that don't have bn label in wikidata | null | USE wikidatawiki_p;
SELECT CONCAT("Q",ips_item_id), "Lbn", CONCAT('"',ips_site_page,'"')
FROM wb_items_per_site
WHERE ips_site_id='bnwiki'
AND NOT EXISTS (
SELECT wbit_item_id FROM wbt_item_terms
INNER JOIN wbt_term_in_lang
ON wbtl_id = wbit_term_in_lang_id
INNER JOIN wbt_text_in_lang
ON wbxl_id = wbtl_... | {"runningtime": "0.70", "resultsets": [{"rowcount": 46, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | wikidatawiki |
Pages that don't have bn label in wikidata | null | USE wikidatawiki_p;
SELECT CONCAT("Q",ips_item_id), "Lbn", CONCAT('"',ips_site_page,'"')
FROM wb_items_per_site
WHERE ips_site_id='bnwiki'
AND NOT EXISTS (
SELECT wbit_item_id FROM wbt_item_terms
INNER JOIN wbt_term_in_lang
ON wbtl_id = wbit_term_in_lang_id
INNER JOIN wbt_text_in_lang
ON wbxl_id = wbtl_... | {"runningtime": "1.40", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('# [[:File:', page_title, ']]')"]}]} | wikidatawiki |
Pages that don't have bn label in wikidata | null | USE wikidatawiki_p;
SELECT CONCAT("Q",ips_item_id), "Lbn", CONCAT('"',ips_site_page,'"')
FROM wb_items_per_site
WHERE ips_site_id='bnwiki'
AND NOT EXISTS (
SELECT wbit_item_id FROM wbt_item_terms
INNER JOIN wbt_term_in_lang
ON wbtl_id = wbit_term_in_lang_id
INNER JOIN wbt_text_in_lang
ON wbxl_id = wbtl_... | {"runningtime": "2.47", "resultsets": [{"rowcount": 157, "headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"]}]} | wikidatawiki |
Pages that don't have bn label in wikidata | null | USE wikidatawiki_p;
SELECT CONCAT("Q",ips_item_id), "Lbn", CONCAT('"',ips_site_page,'"')
FROM wb_items_per_site
WHERE ips_site_id='bnwiki'
AND NOT EXISTS (
SELECT wbit_item_id FROM wbt_item_terms
INNER JOIN wbt_term_in_lang
ON wbtl_id = wbit_term_in_lang_id
INNER JOIN wbt_text_in_lang
ON wbxl_id = wbtl_... | {"runningtime": "0.74", "resultsets": [{"headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"], "rowcount": 157}]} | wikidatawiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "12.22", "resultsets": [{"rowcount": 86, "headers": ["page_title", "rd_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["tl_title"]}, {"rowcount": 929, "headers": ["page_title", "rev_timestamp"]}, {"rowcount": 4, "headers": ["page_title", "rd_title"]}, {"rowcount": 0, "h... | enwiki |
Top editors in the Proto-Norse lemmas category | null | set @category_name := 'Proto-Norse_non-lemma_forms';
select
actor_name as user,
count(*) as edit_count
from categorylinks
left join revision on rev_page = cl_from
left join actor on actor_id = rev_actor
where cl_to = @category_name
group by rev_actor
having edit_count > 20
order by edit_count desc; | {"runningtime": "104.35", "resultsets": [{"headers": ["pages", "date"], "rowcount": 403}]} | enwiktionary_p |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "0.08", "resultsets": [{"rowcount": 10, "headers": ["rev_actor", "rev_page", "Timestamp"]}]} | enwiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "0.21", "resultsets": [{"rowcount": 100, "headers": ["rev_actor", "rev_page", "Timestamp"]}]} | enwiki |
AfC review counts, July 2021 elimination drive | AfC count, July 2021. Including links | use enwiki_p;
select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank,
-- count(rc_id) as tot_reviews,
count(CASE WHEN comment_text like "Commenting on submission%" then NULL ELSE 1 END) as reviews,
concat("[[User:", actor_name, "|", actor_name, "]]") as username,
concat("[[Wikipedia:WikiProject_Arti... | {"runningtime": "22.47", "resultsets": [{"headers": ["actor_name", "page_title", "Timestamp"], "rowcount": 100}]} | enwiki |
AFC reviews | null | select count(rc_id) as reviews, actor_name,
SUM(comment_text like "%Publishing accepted%") as "accept",
SUM(comment_text like "Declining submission:%") as "decline",
SUM(comment_text like "Rejecting submission:%") as "reject",
concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / c... | {"runningtime": "7.17", "resultsets": [{"rowcount": 12, "headers": ["actor_name", "page_title", "Timestamp"]}]} | enwiki_p |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "0.89", "resultsets": [{"rowcount": 501, "headers": ["ipc_hex"]}]} | tewiki |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "0.36", "resultsets": [{"rowcount": 55, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 12, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 16, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | tewiki |
Users take part in #WPWP on viwiki | null | select actor_name
from recentchanges
join comment on rc_comment_id = comment_id
join actor on rc_actor = actor_id
where comment_text like '%#WPWP%' or comment_text like '%#WPWPARK%'
group by actor_name | {"runningtime": "1.18", "resultsets": [{"rowcount": 575, "headers": ["page_title"]}]} | viwiki |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "0.08", "resultsets": [{"headers": ["af_id", "af_pattern", "af_user", "af_user_text", "af_timestamp", "af_enabled", "af_comments", "af_public_comments", "af_hidden", "af_hit_count", "af_throttled", "af_deleted", "af_actions", "af_global", "af_group", "actor_id", "actor_user", "actor_name"], "rowcount": ... | tewiki |
Current active Wikipedia sysops | null | SELECT user_name, user_editcount, rev_timestamp AS 'Last edit',
CONCAT(substr(log_timestamp,1,4),"-",substr(log_timestamp,5,2), "-",substr(log_timestamp,7,2)," ",substr(log_timestamp,9,2)+7,":",substr(log_timestamp,11,2)) as 'Last Log',
ug1.ug_group AS 'user_group'
FROM `user`
LEFT JOIN user_groups ug1
ON user_id =... | {"runningtime": "0.08", "resultsets": [{"rowcount": 10, "headers": ["author", "af_timestamp", "comment", "target"]}]} | idwiki |
Current active Wikipedia sysops | null | SELECT user_name, user_editcount, rev_timestamp AS 'Last edit',
CONCAT(substr(log_timestamp,1,4),"-",substr(log_timestamp,5,2), "-",substr(log_timestamp,7,2)," ",substr(log_timestamp,9,2)+7,":",substr(log_timestamp,11,2)) as 'Last Log',
ug1.ug_group AS 'user_group'
FROM `user`
LEFT JOIN user_groups ug1
ON user_id =... | {"runningtime": "0.22", "resultsets": [{"rowcount": 100, "headers": ["author", "af_timestamp", "comment", "target"]}]} | idwiki |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "0.23", "resultsets": [{"rowcount": 100, "headers": ["author", "af_timestamp", "af_hidden", "comment", "target"]}]} | tewiki |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "0.13", "resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 10}]} | tewiki |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["fa_id", "fa_name", "fa_archive_name", "fa_storage_group", "fa_storage_key", "fa_deleted_user", "fa_deleted_timestamp", "fa_deleted_reason_id", "fa_size", "fa_width", "fa_height", "fa_metadata", "fa_bits", "fa_media_type", "fa_major_mime", "fa_minor_mi... | tewiki |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "6.84", "resultsets": [{"rowcount": 4258, "headers": ["pl_title", "count(pl_title)"]}]} | tewiki |
VISAKHAPATNAM DISTRICT | null | set @dist := "విశాఖపట్నం_జిల్లా";
select p1.page_title from page p1
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhra_Pradesh_locator_map.svg")
and p1.page_namespace=0
and p1.page_id in (select cl_from from categorylinks where (cl_to = concat(@dist,'_గ్రామాలు')
... | {"runningtime": "1.42", "resultsets": [{"headers": ["Draft", "Article"], "rowcount": 4}]} | tewiki |
vijayanagaram district | SRIKAKULAM DISTRICT | set @dist := "విజయనగరం_జిల్లా";
select p1.page_title from page p1
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhra_Pradesh_locator_map.svg")
and p1.page_namespace=0
and p1.page_id in (select cl_from from categorylinks where (cl_to = concat(@dist,'_గ్రామాలు')
... | {"runningtime": "1.58", "resultsets": [{"headers": ["C\u00edm"], "rowcount": 667}]} | tewiki |
Srikakulam district | null | set @dist := "శ్రీకాకుళం_జిల్లా";
select p1.page_title from page p1
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhra_Pradesh_locator_map.svg")
and p1.page_namespace=0
and p1.page_id in (select cl_from from categorylinks where (cl_to = concat(@dist,'_గ్రామాలు')
... | {"runningtime": "1.71", "resultsets": [{"rowcount": 667, "headers": ["C\u00edm", "MIN(revision1.rev_timestamp)"]}]} | tewiki |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "101.90", "resultsets": [{"rowcount": 24, "headers": ["wikitext"]}]} | tewiki |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "30.43", "resultsets": [{"rowcount": 2050, "headers": ["ll_count", "title_cs", "title_en", "title_de", "title_pl", "title_hu", "wb_item"]}]} | tewiki |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.