title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Nombre de pages dans le scope d’un projet/portail | null | set @project = 'Les_sans_pagEs';
set @cat_pdd = concat("Article_du_projet_", @project, "_d'importance_");
select count(distinct page_title)
from page, categorylinks
where page_id = cl_from
and (page_namespace = 0 and cl_to = concat("Portail:", @project, "/Articles liés")
or page_namespace = 1 and (
cl_to =... | {"resultsets": [{"headers": ["page_namespace", "page_title", "count(cl.cl_to)"], "rowcount": 2}], "runningtime": "0.06"} | frwiki |
Nombre de thésaurus par langue | null | select distinct SUBSTRING(page_title, instr(page_title, "/") + 1) as langue, count(*) as nb_th
from page
where page_namespace = 106
and page_is_redirect = 0
and page_title like "%/%"
and page_id not in (
select cl_from
from categorylinks
where cl_to = "Thésaurus_homographes"
)
group by langue | {"resultsets": [{"headers": ["page_namespace", "page_title", "count(cl.cl_to)", "tl_title"], "rowcount": 2}], "runningtime": "0.07"} | frwiktionary |
অসমীয়া ৱিকিপিডিয়াত প্ৰবন্ধ সৃষ্টি কৰা সদস্যসকল | null | SET @ct:=0;
SELECT
CONCAT("{{subst:formatnum:",@ct:=@ct+1,"}}") AS নং,
CONCAT("{{u|",user,"}}") AS সদস্য,
CONCAT("{{subst:formatnum:",cnt,"}}") AS মুঠ_প্ৰবন্ধ
FROM (
SELECT
actor_name AS user,
COUNT(rev_id) AS cnt
FROM actor
JOIN revision
ON rev_actor = actor_id
JOIN page
ON page_id = rev_page
WHERE rev_p... | {"resultsets": [{"headers": ["page_namespace", "page_title", "count(cl.cl_to)", "tl_title"], "rowcount": 1}], "runningtime": "0.06"} | aswiki |
Nombre de thésaurus | null | select count(*) as nb_th
from page
where page_namespace = 106
and page_is_redirect = 0
and page_title like "%/%"
and page_id not in (
select cl_from
from categorylinks
where cl_to = "Thésaurus_homographes"
) | {"resultsets": [{"headers": ["page_namespace", "page_title", "tl_namespace", "tl_title"], "rowcount": 2}], "runningtime": "0.06"} | frwiktionary_p |
test | null | select max(rev_timestamp)
from revision | {"resultsets": [{"headers": ["page_namespace", "page_title", "count(cl.cl_to)"], "rowcount": 2}], "runningtime": "0.08"} | frwiktionary_p |
Results for "final" at the end of enwiki pages | Articles ending in "_final" | select page_title from page where page_namespace=0
and (page_title like '%_final')
and page_is_redirect=0 | {"resultsets": [{"headers": ["page_title"], "rowcount": 6156}], "runningtime": "186.23"} | enwiki |
softball tournaments | null | select page_title from page where page_namespace=0
and (page_title like '%_softball_tournament')
and page_is_redirect=0 | {"resultsets": [{"headers": ["concat(\"Category:\",p.page_title)", "page_len", "cat_pages", "cat_subcats"], "rowcount": 1}], "runningtime": "0.13"} | enwiki |
Recent category changes | null | select
date_format(rc_timestamp, '%Y-%m-%d %H:%i:%s') as timestamp,
actor_name as user,
page_title as category_member_title,
page_namespace as category_member_namespace,
if(regexp_replace(rc_params, '.*s:5:"added";b:(.);.*', '\\1') = '1', 'added', 'removed') as action,
rc_title as category_title
fr... | {"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": 0}], "runningtime": "0.15"} | enwiktionary |
Most pending changes accepts (all time) | null | SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank,
actor_name,
COUNT(log_actor) AS manual_accept_count
FROM logging_userindex
JOIN actor_logging ON actor_id = log_actor
WHERE log_type = 'review' AND log_action = 'approve'
GROUP BY log_actor
ORDER BY manual_accept_count DESC
LIMIT 1000 | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | enwiki |
Abuse filter testing | null | SELECT * from abuse_filter_log ORDER BY afl_id DESC LIMIT 10 ; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | enwiki_p |
text table testing | null | SELECT * from text where old_id = 1138907508; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | enwiki |
Categories in enwiki could be created in arwiki | null | select concat("* [[:en:Category:",page_title,"]]"), count(cl_from)
from page
inner join categorylinks
on cl_to = page_title
where page_id not in (select cl_from from categorylinks where cl_to = "Hidden_categories")
and cl_from in (select ll_from from langlinks where ll_from = cl_from and ll_lang = "ml")
and page_id not... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | enwiki |
Vandalismebestrijding 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_talk"], "rowcount": 0}], "runningtime": "0.06"} | nlwiki_p |
Tewiki:All users edit count all NS | null | SELECT actor_name,COUNT(rev_actor) as edit_count
FROM revision,actor
WHERE actor_id=rev_actor
GROUP BY rev_actor
ORDER BY count(rev_actor) desc | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | mlwiki |
So nebenbei Weiterleitungen auflösen | Bots die im letzten Jahr Seiten mit der Weiterleitung 'Bundesstaat (Föderaler Staat)' angefasst haben.
https://de.wikipedia.org/wiki/Wikipedia:Fragen_zur_Wikipedia#Links_umbiegen_nach_Verschiebung | SELECT page_title, MAX(rev_timestamp), GROUP_CONCAT(DISTINCT actor_name SEPARATOR ',') AS Bots
FROM pagelinks, page LEFT JOIN (revision, actor, user_groups)
ON rev_page = page_id
AND rev_actor = actor_id
AND actor_user = ug_user
... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | dewiki_p |
Pages in books related to the Bangladesh Liberation War by length | null | select concat("পাতা:", page_title), page_len
from page
#join categorylinks
#on cl_from = page_id
join page_props
on pp_page = page_id
#where cl_to = replace("মুদ্রণ সংশোধন করা হয়নি", ' ', '_')
where pp_propname = 'proofread_page_quality_level'
and pp_value = 1
and page_namespace = 104
and (
page_title like replace(... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | bnwikisource_p |
all signpost single pages(?) | null | SELECT page_title AS title, page_len AS length FROM page
WHERE page_namespace = "5"
AND page_title LIKE "Wikipedia_Signpost%"
# All arbitration reports
#AND page_title LIKE "Wikipedia_Signpost%rbitratio%"
AND page_title LIKE "Wikipedia_Signpost/Single/%-%-%"
ORDER BY length DESC; | {"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 1}], "runningtime": "2.62"} | enwiki_p |
POTY 2020 R2 statistics | null | select count(distinct rev_actor) as voters, count(rev_id) as votes from revision_userindex join page on rev_page=page_id where page_namespace=4 and page_title like "Picture_of_the_Year/2020/R2/v/%"; | {"resultsets": [{"headers": ["page_title", "actor_id", "actor_user", "actor_name", "count(*)"], "rowcount": 48757}], "runningtime": "179.11"} | commonswiki_p |
manual select protects | null | select * from page_restrictions left join page on pr_page = page_id where pr_type = 'edit' and page_namespace = 4; | {"resultsets": [{"headers": ["prefix", "page_namespace", "edit_count", "actor_count", "pages_count"], "rowcount": 2}], "runningtime": "43.70"} | zhwikiquote |
enwiki: My moves to /Archive A | null | select log_id,log_timestamp,(select actor_name from actor where log_actor=actor_id) as "user",
log_title,log_params,(select comment_text from comment where comment_id=log_comment_id) as "summary"
from logging where log_type="move" and log_actor=35870338 and log_params like "%/Archive A%"
order by log_timestamp desc lim... | {"resultsets": [{"headers": ["iwl_from", "iwl_prefix", "iwl_title"], "rowcount": 100}], "runningtime": "0.17"} | enwiki |
enwiki: Users by number of moves in October 2022 | My first Quarry. Thanks to queries 67439, 36671, 67105 | USE enwiki_p;
SELECT (select actor_name from actor where log_actor=actor_id) as "Mover" , COUNT(*) as "# Moves"
FROM logging
WHERE log_type="move"
AND log_timestamp>='20221001'
AND log_timestamp<'20221101'
GROUP BY log_actor
ORDER BY COUNT(*) DESC
LIMIT 500; | {"resultsets": [{"headers": ["iwl_from", "iwl_prefix", "iwl_title"], "rowcount": 10}, {"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}, {"headers"... | enwiki_p |
enwiki: Users by number of moves in December 2022 | My first Quarry. Thanks to queries 67439, 36671, 67105 | USE enwiki_p;
SELECT (select actor_name from actor where log_actor=actor_id) as "Mover" , COUNT(*) as "# Moves"
FROM logging
WHERE log_type="move"
AND log_timestamp>='20221201'
AND log_timestamp<'20230101'
GROUP BY log_actor
ORDER BY COUNT(*) DESC
LIMIT 500; | {"resultsets": [{"headers": ["iwl_from", "iwl_prefix", "iwl_title", "page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 100}, {"headers": ["tl_from", "tl_from_namespa... | enwiki_p |
Nombre de personnes ayant contribué aux articles récents en 2022 | null | select distinct actor_name
from revision, actor
where rev_page = 10126567
and rev_actor = actor_id
and rev_timestamp <= 20221231235959
and rev_timestamp >= 20220101000000 | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 21}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 7}], "runningtime": "0.25"} | frwiki |
Nombre de personnes ayant contribué aux articles récents en 2021 | null | select distinct actor_name
from revision, actor
where rev_page = 10126567
and rev_actor = actor_id
and rev_timestamp <= 20211231235959
and rev_timestamp >= 20210101000000 | {"resultsets": [{"headers": ["user", "cnt"], "rowcount": 100}], "runningtime": "0.35"} | frwiki |
Nombre de personnes ayant contribué aux articles récents en 2020 | null | select distinct actor_name
from revision, actor
where rev_page = 10126567
and rev_actor = actor_id
and rev_timestamp <= 20201231235959
and rev_timestamp >= 20200101000000 | {"resultsets": [{"headers": ["user", "cnt"], "rowcount": 100}], "runningtime": "0.36"} | frwiki |
Nombre de personnes ayant contribué aux articles récents en 2018 | null | select distinct actor_name
from revision, actor
where rev_page = 10126567
and rev_actor = actor_id
and rev_timestamp <= 20181231235959
and rev_timestamp >= 20180101000000 | {"resultsets": [{"headers": ["user", "cnt"], "rowcount": 100}], "runningtime": "0.31"} | frwiki |
Liste noms par année | null | select year(rev_timestamp) as annee, group_concat(distinct actor_name separator ', ') as liste_noms
from revision, actor
where rev_page = 10126567
and rev_actor = actor_id
group by year(rev_timestamp) | {"resultsets": [{"headers": ["user", "cnt"], "rowcount": 100}], "runningtime": "0.29"} | frwiki |
Nombre de personnes ayant contribué aux articles récents en 2019 | null | select distinct actor_name
from revision, actor
where rev_page = 10126567
and rev_actor = actor_id
and rev_timestamp <= 20191231235959
and rev_timestamp >= 20190101000000 | {"resultsets": [{"headers": ["user", "cnt"], "rowcount": 100}], "runningtime": "0.28"} | frwiki |
Nombre de personnes ayant contribué aux articles récents de 2016 à 2017 | null | select distinct actor_name
from revision, actor
where rev_page = 10126567
and rev_actor = actor_id
and rev_timestamp <= 20171231235959
and rev_timestamp >= 20160101000000 | {"resultsets": [{"headers": ["page_title"], "rowcount": 973}], "runningtime": "1.17"} | frwiki |
Nombre de personnes par an page accueil LSP | null | select year(rev_timestamp) as annee, count(distinct rev_actor) as nb
from revision
where rev_page = 10109281
group by year(rev_timestamp) | {"resultsets": [{"headers": ["page_title"], "rowcount": 986}], "runningtime": "1.14"} | frwiki |
Updated Scrape OTRS from files in Files_with_PermissionOTRS_template_but_without_P6305_SDC_statement | Scrape OTRS without relying on "Category:Files_with_PermissionOTRS_template_but_without_P6305_SDC_statement" | use commonswiki_p;
SELECT concat("M",page_id) AS MID, "P6305",
concat('"',REPLACE(el_to,'https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=',''),'"') AS OTRS,
count(el_to) as num
FROM page
JOIN categorylinks c1 ON page_id=c1.cl_from AND c1.cl_to='Files_with_PermissionTicket_template_bu... | {"resultsets": [{"headers": ["page_namespace", "month", "year", "edits_by_month", "editors_by_month"], "rowcount": 50}], "runningtime": "0.25"} | commonswiki |
count of monthly revisions | null | select year(rev_timestamp) as year, month(rev_timestamp) as month,
count(*) as rev_c, count(distinct(rev_page)) as page_c, count(distinct(rev_actor)) as actor_c from revision group by year(rev_timestamp), month(rev_timestamp) | {"resultsets": [{"headers": ["actor_name", "c"], "rowcount": 124}], "runningtime": "0.23"} | eewiki_p |
All tables in the enwiki_p database | All of the queriable tables in the public English Wikipedia database. | select * from site_stats limit 100 | {"resultsets": [{"headers": ["ipb_anon_only", "COUNT(*)"], "rowcount": 3}], "runningtime": "1.38"} | bewiktionary_p |
wiktionary_revision | All of the queriable tables in the public English Wikipedia database. | select year(rev_timestamp) as year, month(rev_timestamp) as month,
count(*) as rev_c, count(distinct(rev_page)) as page_c, count(distinct(rev_actor)) as actor_c from revision group by year(rev_timestamp), month(rev_timestamp) | {"resultsets": [{"headers": ["page_title"], "rowcount": 34}], "runningtime": "0.55"} | lvwiktionary_p |
JWB changes removing 500+ bytes | null | SELECT rc_timestamp, CASE WHEN ct_tag_id > 0 THEN "Y" ELSE "N" END AS rvtd, rc_this_oldid, rc_namespace AS ns, rc_title,
rc_old_len AS old, rc_new_len AS new, rc_new_len - rc_old_len AS diff, actor_name, comment_text
FROM recentchanges
JOIN `comment` ON comment_id=rc_comment_id AND comment_text LIKE '%JWB%'
JOIN actor... | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 20}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 7}], "runningtime": "0.19"} | enwiki_p |
old protected titles by number of spaces | null | SELECT pt_namespace, pt_title, pt_timestamp, LENGTH(pt_title) - LENGTH(REPLACE(pt_title, '_', ''))
FROM protected_titles
WHERE
pt_timestamp < DATE_SUB(NOW(), INTERVAL 10 YEAR)
ORDER BY 4 DESC | {"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name", "ratio_revocation", "nb_editions"], "rowcount": 5}], "runningtime": "1.13"} | enwiki_p |
Article creation statistics on plwikinews 2022-11 | null | set @start_timestamp := 20221101000000;
set @end_timestamp := 20221130000000;
select
actor_name,
count(log_id) as creation_count
from logging
inner join page on page_id = log_page
inner join actor on actor_id = log_actor
where
log_type = "create" and
page_namespace = 0 and
log_timestamp >= @start_ti... | {"resultsets": [{"headers": ["concat(\"[[\",page_title,\"]]\")", "redlinksCount"], "rowcount": 38263}], "runningtime": "57.22"} | plwikinews_p |
External Links to Fox News articles | null | #select el_to, el_index, page_title
#from externallinks
#join page on el_from = page_id
#where el_to like 'http://www.foxnews%'
#limit 1000;
select * from templatelinks
limit 10; | {"resultsets": [{"headers": ["Title", "user", "comment"], "rowcount": 0}], "runningtime": "0.09"} | enwiki_p |
WIP: enWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22) | This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022",
rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase",
rvmax.rev_len "Current size",
CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ',
... | {"resultsets": [{"headers": ["Title", "user", "comment"], "rowcount": 0}], "runningtime": "0.06"} | enwikiquote_p |
WIP enWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
The calculation of length can be buggy. The lastes... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"resultsets": [{"headers": ["Title", "user", "comment"], "rowcount": 0}], "runningtime": "0.05"} | enwikiquote_p |
WIP: enWikiquote: All new articles since 20221001 | New articles. on English WikiQuote from 1-Ocotober-2022 This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
The latest version leverages the current date through the NOW() function and is set to examines ne... | SELECT /*Not good enought yes - needs page & reivions into the query below*/
(SELECT '#SheSaid' WHERE EXISTS(SELECT 'ọ'
FROM comment_revision
JOIN revision x ON x.rev_comment_id=comment_id
WHERE x.rev_page=page_id... | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 19}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 7}], "runningtime": "0.18"} | enwikiquote_p |
Userspace pages of non-existent users | null | SELECT CONCAT('https://en.wikipedia.org/wiki/User', CASE WHEN p.page_namespace = 3 THEN '_talk:' ELSE ':' END, p.page_title) AS URL
FROM enwiki_p.page p
LEFT JOIN enwiki_p.user u ON REPLACE(SUBSTRING_INDEX(p.page_title, '/', 1), '_', ' ') = u.user_name
WHERE p.page_namespace IN (2, 3)
AND u.user_id IS NULL
AND p.page_i... | {"resultsets": [{"headers": ["page_title", "actor_id", "actor_user", "actor_name", "count(*)"], "rowcount": 471}], "runningtime": "0.88"} | enwiki_p |
nlwiki New users since Nov 2021 | except indefinitely blocked users | SELECT user_id, user_name, user_registration, user_editcount
FROM `user`
WHERE user_registration REGEXP '^202(11[12]|2)' AND user_editcount > 0 AND
NOT EXISTS (SELECT * FROM ipblocks WHERE ipb_user=user_id AND ipb_expiry='infinity') AND
NOT EXISTS (SELECT * FROM user_groups WHERE ug_user=user_id AND ug_group='bot... | {"resultsets": [{"headers": ["Count", "Size_GB", "Date"], "rowcount": 169}], "runningtime": "10.43"} | nlwiki |
Hyphenated number ranges on enwiki | null | SELECT page_title
FROM page
WHERE page_namespace = 0
AND page_is_redirect = 0
AND page_title RLIKE "\\d{3,4}-\\d{3,4}" | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 19}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 7}], "runningtime": "0.18"} | enwiki_p |
Suspicious user talk page moves | null | select log_id,log_timestamp,(select actor_name from actor where log_actor=actor_id) as "user",
log_title,log_params,(select comment_text from comment where comment_id=log_comment_id) as "summary"
from logging where log_type="move" and log_namespace=3 and log_params not like "%User talk:%" and log_title not like "%/%"
o... | {"resultsets": [{"headers": ["page_title", "user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "user_password_exp... | enwiki |
enwiki: All moves to /Archive | null | select log_id,log_timestamp,(select actor_name from actor where log_actor=actor_id) as "user",
log_title,log_params,(select comment_text from comment where comment_id=log_comment_id) as "summary"
from logging where log_type="move" and log_params like "%/Archive%"
order by log_timestamp desc limit 1000; | {"resultsets": [{"headers": ["page_title", "user_name", "min(rev_timestamp)"], "rowcount": 354}], "runningtime": "2.95"} | enwiki |
Vandalismebestrijding nlwiki | Backlog: 372 5 dec. 2022 18:08 (CET) | # 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... | {"connection_id": 75798567} | nlwiki_p |
Extract size and edits of an article per day | null | select DATE(rev_timestamp), AVG(rev_len) as dimensione, COUNT(*) as edits
from page as p, revision as r
where p.page_title= 'Invasione_russa_dell''Ucraina_del_2022'
and p.page_id = r.rev_page
and page_namespace = 0
group by DATE(rev_timestamp)
order by DATE(rev_timestamp) | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "31.95"} | itwiki |
Articles created by Joe Roe | null | SELECT page_title
FROM page
JOIN revision ON rev_page = page_id
JOIN actor ON actor_id = rev_actor
WHERE actor_name = 'Joe Roe'
AND page_namespace = 0
AND page_is_redirect = 0
AND rev_parent_id = 0
ORDER BY rev_timestamp DESC; | {"resultsets": [{"headers": ["rc_timestamp", "ctd_name", "WEEK(rc_timestamp)"], "rowcount": 11}], "runningtime": "0.06"} | enwiki |
WSta தந்தைபெரியார்கருணானந்தம் | This Query will provide the list of users who did edit on given book with its all pages. | Use tawikisource_p;
SET @w:=0;
select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book
WHERE rev_page IN (select p... | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 12}, {"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.08"} | tawikisource_p |
pagetriage_page table pages older than 30 days, counts, by namespace | null | SELECT page_namespace, COUNT(*)
FROM pagetriage_page
JOIN page ON page_id = ptrp_page_id
WHERE ptrp_created < DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -1 MONTH), "%Y%m%d%H%i%s")
AND page_namespace != 118 /* draftspace */
GROUP BY page_namespace | {"resultsets": [{"headers": ["actor_name", "actor_user", "user_id", "user_name", "rev_actor"], "rowcount": 5}], "runningtime": "2.35"} | enwiki |
pagetriage_page table pages older than 30 days, list of page titles | null | SELECT ptrp_reviewed_updated, 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:'
... | {"connection_id": 41872687} | enwiki |
Artículos borrados por año | Artículos borrados por año | /* Artículos borrados por año. Para Wikipedia en español usar database name eswiki_p */
SELECT
SUBSTR(log_timestamp,1,4) AS AAAA, COUNT(*) AS TOTAL_delete
FROM logging
WHERE
log_action = 'delete'
AND
log_namespace = '0'
GROUP BY AAAA | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 94}], "runningtime": "0.86"} | eswiki_p |
POTY 2021 R2 statistics | null | select count(distinct rev_actor) as voters, count(rev_id) as votes from revision_userindex join page on rev_page=page_id where page_namespace=4 and page_title like "Picture_of_the_Year/2021/R2/v/%"; | {"resultsets": [{"headers": ["user_name", "user_registration", "time", "user_editcount"], "rowcount": 45}], "runningtime": "40.79"} | commonswiki_p |
Softball Tournaments | null | select page_title from page where page_namespace=0
and (page_title like '%_Softball_Tournament')
and page_is_redirect=0 | {"resultsets": [{"headers": ["#", "suradnik", "broj ure\u0111ivanja"], "rowcount": 200}], "runningtime": "0.94"} | enwiki |
Count fixes in Wikipedia:Correct typos in one click | null | SELECT COUNT(*)
FROM revision
LEFT JOIN comment on rev_comment_id=comment_id
WHERE rev_page in (60533818,62053073,61925999,61926002,61926007,61926012,61926014,62002342,62002343,62002345,62002348,62002349,61925967,62057349,61925968,61925974,61925980,61925985,61925989,61925991,61925997)
AND comment_text LIKE "% fixed!"; | {"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"} | enwiki_p |
all signpost talk pages(?) | null | SELECT page_title AS title, page_len AS length FROM page
WHERE page_namespace = "5"
AND page_title LIKE "Wikipedia_Signpost%"
# All arbitration reports
#AND page_title LIKE "Wikipedia_Signpost%rbitratio%"
# AND page_is_redirect = 0
ORDER BY page_title ASC; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 13328}], "runningtime": "7373.53"} | enwiki_p |
enWikiquote: All new articles the past two weeks | New articles. on English WikiQuote from the last few weeks. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
The latest version leverages the current date through the NOW() function and is set to examine... | SELECT /*Not good enought yes - needs page & reivions into the query below*/
(SELECT '#SheSaid' WHERE EXISTS(SELECT 'ọ'
FROM comment_revision
JOIN revision x ON x.rev_comment_id=comment_id
WHERE x.rev_page=page_id... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.04"} | enwikiquote_p |
Wikidata items edited by user between timestamps | null | SELECT DISTINCT page_title
FROM revision_userindex r1
JOIN actor_revision ON actor_id = r1.rev_actor
LEFT JOIN page ON page_id = r1.rev_page
LEFT JOIN revision r2 ON r1.rev_parent_id = r2.rev_id
WHERE actor_name IN ('Alicia Fagerving (WMSE)')
AND r1.rev_timestamp > '20221128000000'
AND r1.rev_timestamp < '202212... | {"resultsets": [], "runningtime": "0.03"} | wikidatawiki_p |
GlamourQueen accounts | Find thanks | select user_name, user_registration, TIME_FORMAT(user_registration, "%H%i") as time from user where user_registration > "20200101" and (user_name like "%GlamourQueen" or user_name like "%PrincessQueen")
order by user_registration desc
limit 250 | {"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": 1}], "runningtime": "0.06"} | enwiki |
Pages in books related to the Bangladesh Liberation War by length | null | select concat("পাতা:", page_title), page_len
from page
#join categorylinks
#on cl_from = page_id
join page_props
on pp_page = page_id
#where cl_to = replace("মুদ্রণ সংশোধন করা হয়নি", ' ', '_')
where pp_propname = 'proofread_page_quality_level'
and pp_value = 1
and page_namespace = 104
and (
page_title like replace(... | {"resultsets": [{"headers": ["page_title", "cl_to", "cl_sortkey"], "rowcount": 0}], "runningtime": "0.80"} | bnwikisource_p |
Making a category tree | null | WITH RECURSIVE cats( cl_to, cat_tree, cl_from, cl_type )
AS (SELECT cl_to, cl_to, cl_from, cl_type from categorylinks
WHERE cl_to= 'Mountains_of_Sabah'
UNION ALL select page_title, concat( cat_tree, "→", page_title ), categorylinks.cl_from, categorylinks.cl_type
FROM cats INNER JOIN page ON cats.cl... | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 150}], "runningtime": "28.04"} | commonswiki_p |
find coords per quadrant per iso code (depending on center) | null | set @ns:=0;
#use commonswiki_p;set @ns:=6;
set @iso1:='IT';
#set @iso2:='' or code
set @iso2:='';
/*
'XA', 'XI', 'XN', 'XO', 'XP', 'XS',
'AE','AF','AX','AL','AS','AD','AO','AI','AQ','AG','AR','AM','AW','AU','AT','AZ',
'BS','BH','BD','BB','BL','BY','BE','BZ','BJ','BM','BT','BO','BQ','BA','BW','BV','BR','BN','BG',... | {"resultsets": [{"headers": ["page_title"], "rowcount": 45978}], "runningtime": "38.41"} | dewiki_p |
enWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22) | This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022",
rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase",
rvmax.rev_len "Current size",
CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ',
... | {"resultsets": [{"headers": ["title"], "rowcount": 0}], "runningtime": "0.11"} | enwikiquote_p |
enWikiquote: All new articles since 20221001 | New articles. on English WikiQuote from 1-Ocotober-2022 This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
The latest version leverages the current date through the NOW() function and is set to examines ne... | SELECT
CONCAT('"',
NVL((SELECT 'V'
WHERE EXISTS (SELECT 1
FROM templatelinks tm1
JOIN linktarget lt1 ON lt1.lt_id=tm1.tl_target_id
WHERE tm1.tl_from=page_id AND tm1.tl_from_namespace=0
... | {"resultsets": [{"headers": ["reviews", "rc_title", "accepted", "accept %", "declined", "decline %"], "rowcount": 1327}], "runningtime": "16.64"} | enwikiquote_p |
get center and count for iso region | null | set @iso1:='US';
#set @iso2:='' or code
set @iso2:='AK';
select avg(gt_lat) avg_gt_lat,avg(mod(gt_lon+360,360)) avg_gt_lon,count(*) from geo_tags
where
case
when @iso2=''
then gt_country=@iso1 and gt_region is null
else gt_country=@iso1 and gt_region=@iso2
end... | {"resultsets": [{"headers": ["site_id", "site_global_key", "site_type", "site_group", "site_source", "site_language", "site_protocol", "site_domain", "site_data", "site_forward", "site_config"], "rowcount": 1}], "runningtime": "0.05"} | dewiki_p |
Liczba edycji w plwikisource w 2023 roku | null | USE plwikisource_p;
SET @w:=0;
SELECT @w:=@w+1 AS 'Lp',/*`Użytkownik`,*/`Link`,`Liczba edycji`
FROM (SELECT user_name AS 'Użytkownik', CONCAT('[[Wikiskryba:',user_name,'|',user_name,']]') AS 'Link', COUNT(*) AS 'Liczba edycji'
FROM actor JOIN revision ON rev_actor=actor_id JOIN user ON actor_user=user_id JOIN page ON ... | {"resultsets": [{"headers": ["CONCAT('* [[m:Special:CentralAuth/', REPLACE (user_name,'_',' '), ']]')", "d"], "rowcount": 163}], "runningtime": "0.57"} | plwikisource |
itWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on Italian WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"resultsets": [{"headers": ["page_title"], "rowcount": 3}], "runningtime": "60.09"} | itwikiquote_p |
itWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22) | This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on Italian WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022",
rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase",
rvmax.rev_len "Current size",
CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ',
... | {"resultsets": [{"headers": ["count(*)"], "rowcount": 1}], "runningtime": "0.85"} | itwikiquote_p |
itWikiquote: All new articles the last 14 days | New articles. on Italian WikiQuote from the last few weeks. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
The latest version leverages the current date through the NOW() function and is set to examine... | SELECT /*Not good enought yes - needs page & reivions into the query below*/
(SELECT '#SheSaid' WHERE EXISTS(SELECT 'ọ'
FROM comment_revision
JOIN revision x ON x.rev_comment_id=comment_id
WHERE x.rev_page=page_id... | {"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 10}], "runningtime": "0.06"} | itwikiquote_p |
ukWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on Ukrainian WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 1}], "runningtime": "0.05"} | ukwikiquote_p |
ukWikiquote: All new articles the past two weeks | New articles. on Ukrainian WikiQuote from the last few weeks. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
The latest version leverages the current date through the NOW() function and is set to exami... | SELECT /*Not good enought yes - needs page & reivions into the query below*/
(SELECT '#SheSaid' WHERE EXISTS(SELECT 'ọ'
FROM comment_revision
JOIN revision x ON x.rev_comment_id=comment_id
WHERE x.rev_page=page_id... | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 10}], "runningtime": "0.06"} | ukwikiquote_p |
frWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22) | This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022",
rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase",
rvmax.rev_len "Current size",
CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ',
... | {"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"],... | frwikiquote_p |
esWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on Spanish WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"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"],... | eswikiquote_p |
esWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22) | This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on Spanish WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022",
rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase",
rvmax.rev_len "Current size",
CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ',
... | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 10}], "runningtime": "0.05"} | eswikiquote_p |
enWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"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"],... | enwikiquote_p |
enWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22) | This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022",
rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase",
rvmax.rev_len "Current size",
CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ',
... | {"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"],... | enwikiquote_p |
enWikiquote: All new articles the past two weeks | New articles. on English WikiQuote from the last few weeks. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
The latest version leverages the current date through the NOW() function and is set to examine... | SELECT /*Not good enought yes - needs page & reivions into the query below*/
(SELECT '#SheSaid' WHERE EXISTS(SELECT 'ọ'
FROM comment_revision
JOIN revision x ON x.rev_comment_id=comment_id
WHERE x.rev_page=page_id... | {"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"],... | enwikiquote_p |
caWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on Catalan WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"resultsets": [{"headers": ["cl_from", "page_id"], "rowcount": 300}], "runningtime": "62.37"} | cawikiquote_p |
caWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22) | This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on Catalan WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022",
rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase",
rvmax.rev_len "Current size",
CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ',
... | {"resultsets": [{"headers": ["logid", "title", "timestamp", "redirect", "last_edited"], "rowcount": 619}, {"headers": ["count(*)"], "rowcount": 1}], "runningtime": "0.76"} | cawikiquote_p |
bnWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on Bengali WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"resultsets": [{"headers": ["logid", "title", "timestamp", "redirect", "last_edited"], "rowcount": 619}, {"headers": ["count(*)"], "rowcount": 1}], "runningtime": "0.69"} | bnwikiquote_p |
igWikiquote: All new articles the past two weeks | New articles. on Igbo WikiQuote from the last few weeks. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
The latest version leverages the current date through the NOW() function and is set to examines n... | SELECT /*Not good enought yes - needs page & reivions into the query below*/
(SELECT '#SheSaid' WHERE EXISTS(SELECT 'ọ'
FROM comment_revision
JOIN revision x ON x.rev_comment_id=comment_id
WHERE x.rev_page=page_id... | {"connection_id": 92271348} | igwikiquote_p |
bclWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on Bikol WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"connection_id": 92271473} | bclwikiquote_p |
bclWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22) | This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on Bikol WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a #... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022",
rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase",
rvmax.rev_len "Current size",
CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ',
... | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 5}], "runningtime": "38.26"} | bclwikiquote_p |
bclWikiquote: All new articles the past two weeks | New articles. on Bikol WikiQuote from the last few weeks. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable"
The latest version leverages the current date through the NOW() function and is set to examines ... | SELECT /*Not good enought yes - needs page & reivions into the query below*/
(SELECT '#SheSaid' WHERE EXISTS(SELECT 'ọ'
FROM comment_revision
JOIN revision x ON x.rev_comment_id=comment_id
WHERE x.rev_page=page_id... | {"connection_id": 92271870} | bclwikiquote_p |
tlWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on Tagalog WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"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"],... | tlwikiquote_p |
tlWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22) | This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on Tagalog WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022",
rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase",
rvmax.rev_len "Current size",
CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ',
... | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 300}], "runningtime": "0.33"} | tlwikiquote_p |
frWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"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"],... | frwikiquote_p |
igWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22) | New #SheSaid WikiQuote 2022 campaign articles. on Igbo WikiQuote from Oct 1st 2022 till 31 Dec 2022. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable" | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article",
actor_name AS "Creator",
CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ',
MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created",
... | {"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 30}], "runningtime": "0.09"} | igwikiquote_p |
একটি বিষয়শ্রেণিতে থাকা যে টেমপ্লেটের ব্যবহার নেই | null | SELECT CONCAT("[[টেমপ্লেট:", page_title, ']]') as Template
FROM categorylinks
JOIN page ON page_id = cl_from
WHERE cl_to = 'বাবাংলাদেশের_রাজনৈতিক_দলের_রঙ_টেমপ্লেট'
AND cl_type = 'page'
AND page_namespace = 10
AND page_title NOT IN
(SELECT lt_title
FROM linktarget
WHERE lt_namespace=10
AND lt_id IN
(SE... | {"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 3263}], "runningtime": "19.09"} | bnwiki |
Test queries | Quick temporary stuff for gathering more useful data | select distinct CONCAT("{{User:Aidan9382/templates/ArchiveDumpEntry|1=Talk:",page.page_title,"}}") as basepage_title
from page
join templatelinks as tl
on tl.tl_from = page.page_id
join linktarget as lt
on lt.lt_id = tl.tl_target_id
where page.page_namespace = 1
and page.page_is_redirect = 0
and not page.page_title l... | {"resultsets": [{"headers": ["count(page_id)"], "rowcount": 1}], "runningtime": "0.28"} | enwiki |
Wikidata edits with Czech-Authorities-Sync | null | USE wikidatawiki_p;
SELECT /*rev_id, actor_name,*/ page_title
FROM change_tag
JOIN revision ON rev_id=ct_rev_id
JOIN actor ON actor_id=rev_actor
JOIN page ON page_id=rev_page WHERE ct_tag_id=(
SELECT ctd_id
FROM change_tag_def
WHERE ctd_name='Czech-Authorities-Sync'
)
| {"connection_id": 94630909} | wikidatawiki |
Count of edit summaries and log actions linking WP:AES | The redirect WP:AES is used in interface messages for automatic edit summaries. This is substed in millions of edit summaries. | select count(*) as 'count'-- get count
from `comment` -- comment table, escaped with ` since it is a reserved word
where comment_text like '[[WP:AES|←]]%'; -- filter edit summary or log text | {"resultsets": [{"headers": ["title", "length"], "rowcount": 0}], "runningtime": "0.05"} | enwiki_p |
Sysop protected titles in mainspace | null | select ROW_NUMBER() OVER(order by 'Page title') num, -- get row number
CONCAT('[[', replace(pt_title, '_', ' '), ']]') as 'Page title' -- Format as wikilink, replace _ with space
from protected_titles
where pt_namespace = 0 -- filter mainspace
and pt_create_perm = 'sysop' -- filter sysop protection
order by pt_t... | {"resultsets": [{"headers": ["page_title", "page_count", "tag_center", "tag_small", "tag_span", "tag_div", "tag_b", "tag_i"], "rowcount": 32}], "runningtime": "41.00"} | enwiki_p |
All pages having text content model | null | select ROW_NUMBER() OVER(order by page_namespace asc, page_title asc) num, -- get row number
CONCAT('[[', case when page_namespace = 2303 then 'Gadget definition talk:'
when page_namespace = 2302 then 'Gadget definition:'
when page_namespace = 2301 then 'Gadget talk:'
when page_namespace = 2... | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 300}], "runningtime": "50.49"} | enwiki_p |
Pages in all namespaces creation protected as Grawp titles | null | select ROW_NUMBER() OVER(order by pt_namespace asc, pt_title asc) num, -- get row number
CONCAT('[[', case when pt_namespace = 2303 then 'Gadget definition talk:'
when pt_namespace = 2302 then 'Gadget definition:'
when pt_namespace = 2301 then 'Gadget talk:'
when pt_namespace = 2300 then 'Ga... | {"connection_id": 94799081} | enwiki_p |
Inactive non-blocked IP talkpages linking a page | null | select CONCAT('[[User talk:', page_title, ']]') as 'IP talkpage' -- format as wikilink so that it can be read by AWB
from page
join pagelinks on page_id = pl_from -- link with pagelinks table
join revision on rev_id = page_latest and rev_timestamp < '20180110' -- latest page edit is older than the given date
join acto... | {"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 33}], "runningtime": "6.73"} | enwiki_p |
Commons files re-created after previous F1 deletion | null | SELECT DISTINCT CONCAT('https://commons.wikimedia.org/wiki/File:', rc.rc_title) AS 'File', TIMESTAMP(rc.rc_timestamp) AS 'Re-created at'
FROM recentchanges_userindex rc
INNER JOIN logging_logindex l ON l.log_type = 'delete' AND l.log_action = 'delete' AND rc.rc_title = l.log_title AND rc.rc_namespace = l.log_namespace
... | {"resultsets": [{"headers": ["page_title"], "rowcount": 410}], "runningtime": "0.64"} | commonswiki_p |
block id range | null | SELECT *
FROM ipblocks
WHERE ipb_expiry > 20230415000000 AND ipb_expiry < 20230416235959
AND ipb_by_actor != 326
ORDER BY ipb_expiry ASC
LIMIT 20;
| {"resultsets": [{"headers": ["page_title", "page_namespace", "actor_name", "rev_timestamp", "comment_text"], "rowcount": 19}], "runningtime": "0.96"} | zhwiki |
Userspace pages of non-existent users | null | SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL
FROM enwiki_p.page p
LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name
WHERE p.page_namespace = 2
AND u.user_id IS NULL
AND p.page_is_redirect = 0
AND NOT IS_IPV4(p.page_title) -- Exclude IPv4
AND NOT IS_IPV6(p.page_title... | {"resultsets": [{"headers": ["cl_to"], "rowcount": 9157}], "runningtime": "309.82"} | enwiki_p |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.