title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Most prolific Lexeme creators (Dagbani) | null | SELECT actor.actor_name as Username,
COUNT(actor.actor_name) AS cnt
FROM page
JOIN revision ON page.page_id=revision.rev_page
JOIN pagelinks ON page.page_id=pagelinks.pl_from
JOIN actor ON revision.rev_actor=actor.actor_id
WHERE page.page_namespace=146
AND revision.rev_parent_id=0 # No parent rev = page creatio... | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 24}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 9}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 9}], "runningtime": "0.20"} | wikidatawiki_p |
Test | 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": ["img_name"], "rowcount": 165}], "runningtime": "0.81"} | nlwiki_p |
Tewiki:Pagecount in a Namespace | null | Select count(page_id) from page
where page_namespace=10 | {"resultsets": [{"headers": ["page_title", "page_id", "page_namespace", "inc", "parent_title", "parent_namespace"], "rowcount": 197625}], "runningtime": "230.49"} | tewiki |
%before_1% | null | SELECT page_title
FROM page AS page
WHERE page_namespace = 0
AND page_is_redirect =0
#AND page_title LIKE "%rossword%"
#AND (page_title LIKE "%peopel%" OR page_title LIKE "%Peopel%")
#LIMIT 399; | {"connection_id": 70673825} | etwiki_p |
page_links_updated by date, all namespaces | null | select
SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(el_to, '/', 3), '://', -1), '/', 1), '?', 1) as domain
from externallinks | {"connection_id": 70679635} | enwiki |
Most prolific Lexeme creators (Dagbani) | null | SELECT actor.actor_name as Username,
COUNT(actor.actor_name) AS cnt
FROM page
JOIN revision ON page.page_id=revision.rev_page
JOIN pagelinks ON page.page_id=pagelinks.pl_from
JOIN actor ON revision.rev_actor=actor.actor_id
WHERE page.page_namespace=146
AND revision.rev_parent_id=0 # No parent rev = page creatio... | {"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 1}], "runningtime": "149.69"} | wikidatawiki_p |
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": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 22}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 8}], "runningtime": "0.19"} | tawikisource_p |
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": ["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.22"} | tawikisource_p |
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": ["img_name"], "rowcount": 165}], "runningtime": "0.75"} | tawikisource_p |
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": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 50}], "runningtime": "2.38"} | tawikisource_p |
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": ["page_title", "COUNT(*)"], "rowcount": 399}], "runningtime": "0.47"} | tawikisource_p |
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": ["\u09a8\u0982", "\u09b8\u09a6\u09b8\u09cd\u09af", "\u09b8\u09ae\u09cd\u09aa\u09be\u09a6\u09a8\u09be\u09f0_\u09b8\u0982\u0996\u09cd\u09af\u09be"], "rowcount": 1000}], "runningtime": "1.21"} | tawikisource_p |
Total mensual del uso de "Agradecer" | Total mensual del uso de "Agradecer" | /* Total mensual del uso de "Agradecer" (desde 2014 en adelante que es cuando se inició 'thanks')*/
SELECT SUBSTR(log_timestamp,1,6) AS AAAAMM, COUNT(*) as 'TOTAL_agradecer'
FROM logging
WHERE
log_type= 'thanks'
AND
SUBSTR(log_timestamp,1,4) > 2013
AND
log_namespace = '2'
GROUP BY SUBSTR(log_timestamp,1,6) | {"resultsets": [{"headers": ["\u09a8\u0982", "\u09b8\u09a6\u09b8\u09cd\u09af", "\u09b8\u09ae\u09cd\u09aa\u09be\u09a6\u09a8\u09be\u09f0_\u09b8\u0982\u0996\u09cd\u09af\u09be"], "rowcount": 1000}], "runningtime": "1.24"} | cawiki_p |
Los 100 usuarios que más ha usado "agradecer" en es_wiki en 202x | Los 100 usuarios que más ha usado "agradecer" en es_wiki en 202x | /* Usuario que más ha usado "agradecer" en 20xx */
SELECT (ROW_NUMBER() OVER (PARTITION BY 'Total' ORDER BY COUNT(*) DESC)) AS '#',
concat('[[Usuario:',actor_name,'|',actor_name,']]') as 'Usuario/a', COUNT(*) as 'Total'
FROM
logging, actor
WHERE
log_type= 'thanks'
AND
actor_id = log_actor
AND
SUBSTR(log_time... | {"resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 107}], "runningtime": "0.19"} | cawiki_p |
Los 100 usuarios que más ha usado "agradecer" en es_wiki en 202x | Los 100 usuarios que más ha usado "agradecer" en es_wiki en 202x | /* Usuario que más ha usado "agradecer" en 20xx */
SELECT (ROW_NUMBER() OVER (PARTITION BY 'Total' ORDER BY COUNT(*) DESC)) AS '#',
concat('[[Usuario:',actor_name,'|',actor_name,']]') as 'Usuario/a', COUNT(*) as 'Total'
FROM
logging, actor
WHERE
log_type= 'thanks'
AND
actor_id = log_actor
AND
SUBSTR(log_time... | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 4}, {"headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"], "rowcount": 132}], "runningtime": "0.23"} | cawiki_p |
Los 100 usuarios que más ha usado "agradecer" en es_wiki en 202x | Los 100 usuarios que más ha usado "agradecer" en es_wiki en 202x | /* Usuario que más ha usado "agradecer" en 20xx */
SELECT (ROW_NUMBER() OVER (PARTITION BY 'Total' ORDER BY COUNT(*) DESC)) AS '#',
concat('[[Usuario:',actor_name,'|',actor_name,']]') as 'Usuario/a', COUNT(*) as 'Total'
FROM
logging, actor
WHERE
log_type= 'thanks'
AND
actor_id = log_actor
AND
SUBSTR(log_time... | {"resultsets": [{"headers": ["ct_id", "ct_rc_id", "ct_log_id", "ct_rev_id", "ct_params", "ct_tag_id"], "rowcount": 10}], "runningtime": "0.08"} | wikidata_p |
Unreviewed new redirects by user | Count of articles in the enwiki new pages patrol queue grouped by user that created them. | SELECT page_title
FROM pagetriage_page
JOIN page ON ptrp_page_id = page_id
JOIN revision ON rev_page = page_id
JOIN actor ON actor_id = rev_actor
WHERE ptrp_reviewed = 0
AND page_namespace = 0
AND page_is_redirect = 1
AND rev_parent_id = 0
GROUP BY actor_name
ORDER BY COUNT(*) DESC limit 50... | {"resultsets": [{"headers": ["Title", "COUNT(ct.ct_rev_id)"], "rowcount": 10}], "runningtime": "0.83"} | enwiki |
Gesichtete Personenartikel | null | SELECT page_title, rev_timestamp, fr_timestamp
FROM flaggedrevs, flaggedpages, page, revision, templatelinks, linktarget
WHERE fr_timestamp > CONCAT(CURRENT_DATE() - 0, '000000')
AND fr_page_id = page_id
AND fr_rev_id = fp_stable
AND fp_page_id = page_id
AND page_namespace = 0
AND rev_id = fp_stable
... | {"resultsets": [], "runningtime": "0.04"} | dewiki_p |
Most incoming redirects | List pages that have most redirects linking to them | USE ukwiki_p;
SELECT rd_title AS title, count(rd_from) AS redirects
FROM redirect
GROUP BY rd_title
ORDER BY redirects DESC
LIMIT 500; | {"resultsets": [{"headers": ["page_title", "page_random"], "rowcount": 100}], "runningtime": "0.15"} | ukwiki_p |
Vandalismebestrijding (IP-patrolling) nlwiki | 214 ! | # 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": 275}], "runningtime": "170.04"} | nlwiki_p |
fix categories 2022 | null | select
CONCAT('* [[تصنيف:',p1.page_title, ']]>') AS cat1
#, REPLACE(CONCAT( '[[:' , ll_title , ']]' ) , ' لكرة القدم' ,'' ) AS cat2
, REPLACE(CONCAT( '[[تصنيف:' , p1.page_title , ']]' ) , 'لكرة_القدم_' ,'' ) AS cat2
#, CONCAT("#Category:", p1.page_title) AS title
from page AS p1#, langlinks
where p1.page_name... | {"resultsets": [{"headers": ["Page Title", "n_rollback"], "rowcount": 0}], "runningtime": "0.04"} | arwiki_p |
ElBe Test | Just a test by ElBe. | select 'user' from user in admin | {"connection_id": 71124857} | dewiki |
test | null | SELECT DISTINCT lt_title , count(*) as a
FROM page p1, templatelinks, linktarget
WHERE p1.page_namespace = 0
and tl_from = p1.page_id
and tl_target_id = lt_id
and lt_namespace = 10
and (lt_title like "ص.م %" or lt_title like "صندوق_معلومات_%" or lt_title like "معلومات_%" )
AND NOT EXISTS (SELECT * FROM page p2
... | {"resultsets": [{"headers": ["actor_name", "count(log_actor)"], "rowcount": 147}], "runningtime": "1.21"} | arwiki_p |
get all articles by primary and iso1-codes | null | set @ns:=0;
#use commonswiki_p;set @ns:=6;
set @iso1:='DE';
#set @iso2:='' or code
set @iso2:='6';
/*
'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": ["year", "COUNT(DISTINCT rev_actor)"], "rowcount": 1}], "runningtime": "2.99"} | dewiki_p |
obsolete | null | null | {"resultsets": [{"headers": ["user", "edit_count"], "rowcount": 70}], "runningtime": "0.57"} | dewiki_p |
Container categories w/articles | Direct subcategories of [[Category:Container categories]] with at least one member page in mainspace.
For [[WP:RAQ#Displaying all categories in [Category:Container categories] which also have mainspace pages in them.]] circa 23 November 2022. | SELECT CONCAT('Category:', catpage.page_title), COUNT(*)
FROM page AS catpage
JOIN categorylinks AS parentcat ON parentcat.cl_from = catpage.page_id
JOIN categorylinks AS childcat ON childcat.cl_to = catpage.page_title
JOIN page AS childpage ON childpage.page_id = childcat.cl_from
WHERE catpage.page_namespace = 14
AN... | {"resultsets": [{"headers": ["actor_name", "count(log_actor)"], "rowcount": 11}], "runningtime": "0.80"} | enwiki_p |
Revisions to unreview by bot | null | SELECT
page_title,
fr_rev_id
FROM page as page1
INNER JOIN flaggedrevs ON flaggedrevs.fr_page_id = page1.page_id
WHERE fr_user = 358582
AND fr_timestamp >= 20220901000000 # placeholder
ORDER BY page_title, fr_rev_id; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 2}], "runningtime": "4.69"} | huwiki_p |
#SheSaid on Catalan Wikiquote from Oct 1st 2022 till 31 Dec | null | SELECT
page_title,
page_namespace,
actor_name,
rev_timestamp,
comment_text
FROM
revision
JOIN comment_revision ON rev_comment_id=comment_id
JOIN page ON rev_page=page_id
JOIN actor_revision ON rev_actor=actor_id
WHERE
rev_timestamp BETWEEN 20221001000000 AND 20221231999999
AND comment_text ... | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 46}], "runningtime": "0.98"} | cawikiquote_p |
#SheSaid on Ukrainian Wikiquote from Oct 1st 2022 till 31 Dec | null | SELECT
page_title,
page_namespace,
actor_name,
rev_timestamp,
comment_text
FROM
revision
JOIN comment_revision ON rev_comment_id=comment_id
JOIN page ON rev_page=page_id
JOIN actor_revision ON rev_actor=actor_id
WHERE
rev_timestamp BETWEEN 20221001000000 AND 20221231999999
AND comment_text ... | {"resultsets": [{"headers": ["concat ('*[[',page_title,']]')"], "rowcount": 30}], "runningtime": "1.58"} | ukwikiquote_p |
#SheSaid on French Wikiquote from Oct 1st 2022 till 31 Dec | null | SELECT
page_title,
page_namespace,
actor_name,
rev_timestamp,
comment_text
FROM
revision
JOIN comment_revision ON rev_comment_id=comment_id
JOIN page ON rev_page=page_id
JOIN actor_revision ON rev_actor=actor_id
WHERE
rev_timestamp BETWEEN 20221001000000 AND 20221231999999
AND comment_text ... | {"resultsets": [{"headers": ["concat ('*[[',page_title,']]')"], "rowcount": 4}], "runningtime": "1.72"} | frwikiquote_p |
Vandalismebestrijding Nlwiki (IP-patrol/vandal fighting) | 89 23-11-2022 13:34 (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... | {"resultsets": [{"headers": ["concat ('*[[',page_title,']]')"], "rowcount": 3628}], "runningtime": "5.38"} | nlwiki_p |
nlwiki Article titles starting with an article w/ bad catsort | null | /*SELECT page_title
FROM page
WHERE
page_namespace=0 AND page_is_redirect=0 AND
NOT EXISTS (SELECT * FROM page_props WHERE page_id=pp_page AND pp_propname='disambiguation') AND
NOT EXISTS (SELECT * FROM page_props WHERE page_id=pp_page AND pp_propname='defaultsort')
LIMIT 10*/
SELECT
page_title,
cl_to,
R... | {"resultsets": [{"headers": ["page_id", "title", "edits", "users", "score"], "rowcount": 1000}], "runningtime": "2.92"} | nlwiki |
Max/Min Revision Timestamps for a given wikidata QID | null | select max(rev_timestamp), min(rev_timestamp) from page join revision ON page.page_id = revision.rev_page where page_title = "Q214204"; | {"connection_id": 71508081} | wikidatawiki_p |
(from 2022) SDC edits by user and edit summary #WMSE-WLE-sweden | null | SELECT r.rev_page, r.rev_timestamp, r.rev_comment_id, cr.comment_text, s.slot_role_id, s.slot_content_id, c.content_model, c.content_address
FROM revision r
LEFT JOIN slots s ON slot_revision_id = r.rev_id
LEFT JOIN comment_revision cr ON comment_id = r.rev_comment_id
LEFT JOIN content c ON content_id = s.slot_c... | {"resultsets": [{"headers": ["Podkategoria", "Liczba plik\u00f3w", "Nie mniej ni\u017c pr\u00f3g"], "rowcount": 399}], "runningtime": "0.47"} | commonswiki_p |
#SheSaid on Bengali Wikiquote from Oct 1st 2022 till 31 Dec | null | SELECT
page_title,
page_namespace,
actor_name,
rev_timestamp,
comment_text
FROM
revision
JOIN comment_revision ON rev_comment_id=comment_id
JOIN page ON rev_page=page_id
JOIN actor_revision ON rev_actor=actor_id
WHERE
rev_timestamp BETWEEN 20221001000000 AND 20221231999999
AND comment_text ... | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 5}], "runningtime": "39.57"} | bnwikiquote_p |
#SheSaid on Igbo Wikiquote from Oct 1st 2022 till 31 Dec | null | SELECT
page_title,
page_namespace,
actor_name,
rev_timestamp,
comment_text
FROM
revision
JOIN comment_revision ON rev_comment_id=comment_id
JOIN page ON rev_page=page_id
JOIN actor_revision ON rev_actor=actor_id
WHERE
rev_timestamp BETWEEN 20221001000000 AND 20221231999999
AND comment_text ... | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 4}], "runningtime": "38.98"} | igwikiquote_p |
Most prolific Lexeme creators (Dagbani) | null | SELECT actor.actor_name as Username,
COUNT(actor.actor_name) AS cnt
FROM page
JOIN revision ON page.page_id=revision.rev_page
JOIN pagelinks ON page.page_id=pagelinks.pl_from
JOIN actor ON revision.rev_actor=actor.actor_id
WHERE page.page_namespace=146
AND revision.rev_parent_id=0 # No parent rev = page creatio... | {"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 5}], "runningtime": "0.11"} | wikidatawiki_p |
Bad disambiguation page titles (eswiki) | Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki). | use eswiki_p;
select page_title as main_title
from (page join redirect on page_id = rd_from)
where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
| {"resultsets": [{"headers": ["rc_cur_id", "rc_title", "rc_patrolled"], "rowcount": 1301}], "runningtime": "1.66"} | eswiki |
NPP pages reviewed daily | null | select review_date as date,
COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `Articles`,
COUNT(IF(logtemp.page_is_redirect = 1, 1, NULL)) as `Redirects`
from (
SELECT distinct page_id,
concat(left(log_timestamp, 4), "-", right(left(log_timestamp, 6), 2), "-", right(left(log_timestamp, 8), 2)) as r... | {"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 1}], "runningtime": "97.87"} | enwiki |
vx | null | SELECT
ipb_address,
actor_name,
ipb_timestamp,
comment_text
FROM
ipblocks
INNER JOIN actor ON ipblocks.ipb_by_actor = actor.actor_id
INNER JOIN comment ON ipblocks.ipb_reason_id = comment.comment_id
WHERE
lower(cast(comment_text as CHAR)) RLIKE 'VXFC|Vote \(X\) for Change|vote x for change'
ORDER BY ipb_t... | {"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 0}], "runningtime": "0.05"} | enwiki_p |
WikiQuote updated articles in #SheSaid 2022 (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. Identifying any individual author from this query would be problematic. In general this list probably requires each individual article to be individually inspected. An update might ... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022"
FROM
revision
JOIN page ON rev_page=page_id
WHERE rev_id in (SELECT
rev_id
FROM
revision
WHERE
rev_page in (SELECT rev... | {"resultsets": [{"headers": ["rd_from", "page_title"], "rowcount": 6}], "runningtime": "2.85"} | enwikiquote_p |
English WikiQuote: new articles in #SheSaid period (01-Oct-22 : 31-Dec-22) | New articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022 (#SheSaid WikiQuote 2022 campaign) 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"
This takes 75s elapsed to run and is therefore ex... | SELECT
CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New articles in a period",
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",
IF(I... | {"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 0}], "runningtime": "0.90"} | enwikiquote_p |
WLF India uploads | null | SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line
FROM logging_logindex
JOIN actor_logging ON log_actor=actor_id
JOIN templatelinks ON tl_from=log_page
JOIN categorylinks ON cl_from=log_page
WHERE
-- only uploads
log_type='upload'
AND log_action='upload'
--... | {"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 10}], "runningtime": "0.07"} | commonswiki_p |
POTY 2021 formerly featured | null | select
page_title
from
categorylinks
join page on cl_from = page_id
where
cl_to = "Formerly_featured_pictures_on_Wikimedia_Commons"
and page_title IN (
select
il_to
from
imagelinks
join page on page_id = il_from
and page_namespace = il_from_namespace
where
page_title ... | {"resultsets": [{"headers": ["log_title", "COUNT(log_id)"], "rowcount": 2159}], "runningtime": "2.87"} | commonswiki_p |
#SheSaid on English Wikiquote from Oct 1st 2022 till 31 Dec | null | SELECT
page_title,
page_namespace,
actor_name,
rev_timestamp,
comment_text
FROM
revision
JOIN comment_revision ON rev_comment_id=comment_id
JOIN page ON rev_page=page_id
JOIN actor_revision ON rev_actor=actor_id
WHERE
rev_timestamp BETWEEN 20221001000000 AND 20221231999999
AND comment_text ... | {"resultsets": [{"headers": ["Reviewer", "Article Reviews"], "rowcount": 100}], "runningtime": "8.49"} | enwikiquote_p |
Circular redirects | null | SELECT p1.page_title as page,p2.page_title as redirect FROM page p1,page p2,pagelinks, redirect
WHERE p1.page_namespace=0 AND p1.page_id=pl_from
AND pl_namespace=0
AND pl_title=p2.page_title
AND p2.page_namespace=0
AND rd_from=p2.page_id
AND rd_namespace=0
AND rd_title=p1.page_title
| {"resultsets": [{"headers": ["Count", "Size_B"], "rowcount": 1}], "runningtime": "0.15"} | enwiki_p |
flaggedrevs_statistics example | https://phabricator.wikimedia.org/T323495 | SELECT
reviewed_pages_ns0.year,
total_pages_ns0.frs_stat_val_avg as total_pages_ns0_avg,
reviewed_pages_ns0.frs_stat_val_avg as reviewed_pages_ns0_avg,
synced_pages_ns0.frs_stat_val_avg as synced_pages_ns0_avg,
reviewed_pages_ns0.frs_stat_val_avg - synced_pages_ns0.frs_stat_val_avg as pending_chan... | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 24}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 9}], "runningtime": "0.58"} | ruwiki_p |
Bad disambiguation page titles (eswiki) | Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki). | use eswiki_p;
select page_title as main_title
from (page join redirect on page_id = rd_from)
where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
| {"resultsets": [{"headers": ["page_id", "title", "edits", "users", "score"], "rowcount": 1000}], "runningtime": "3.18"} | eswiki |
Frog articles2 | null | WITH frog_pages(cl_from) AS ( SELECT cl_from FROM categorylinks WHERE cl_to = 'Frogs' )
SELECT page_namespace, page_title from page where page_id in (SELECT * from frog_pages); | {"resultsets": [{"headers": ["Tables_in_wikidatawiki_p"], "rowcount": 110}], "runningtime": "0.21"} | enwiki_p |
igWikiquote: #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": ["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_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "p... | igwikiquote_p |
Circular redirects | null | SELECT p1.page_title as page,p2.page_title as redirect FROM page p1,page p2,pagelinks, redirect
WHERE p1.page_namespace=0 AND p1.page_id=pl_from
AND pl_namespace=0
AND pl_title=p2.page_title
AND p2.page_namespace=0
AND rd_from=p2.page_id
AND rd_namespace=0
AND rd_title=p1.page_title
| {"resultsets": [{"headers": ["img_name"], "rowcount": 289}], "runningtime": "1.97"} | enwiki_p |
Most prolific Lexeme creators (Dagbani) | null | SELECT actor.actor_name as Username,
COUNT(actor.actor_name) AS cnt
FROM page
JOIN revision ON page.page_id=revision.rev_page
JOIN pagelinks ON page.page_id=pagelinks.pl_from
JOIN actor ON revision.rev_actor=actor.actor_id
WHERE page.page_namespace=146
AND revision.rev_parent_id=0 # No parent rev = page creatio... | {"resultsets": [{"headers": ["CONCAT('* [[:File:', p.page_title, \"]]\")"], "rowcount": 12}], "runningtime": "15.26"} | wikidatawiki_p |
Orphaned articles with more than two incoming links | Articles tagged with {{orphan}} that have more than two incoming links. These are candidates to have the {{orphan}} template removed. | SELECT p.page_title
FROM page p
INNER JOIN categorylinks c ON p.page_id = c.cl_from AND c.cl_to = "Artikel_tak_bertuan"
INNER JOIN pagelinks pl ON p.page_title = pl.pl_title AND p.page_namespace = pl.pl_namespace
INNER JOIN page p2 ON p2.page_id = pl.pl_from
AND pl.pl_from_namespace = 0 and p2.page_is_redirect=0
GROUP ... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 384}], "runningtime": "449.43"} | idwiki_p |
Ønskede kategorier | null | use nowiki_p;
select
DISTINCT replace( cl_to, "_", " " ), concat( "[http://no.wikipedia.org/wiki/Category:", cl_to, "?action=edit&preload=Template:WantedCat&summary=Oppretter_etterspurt_kategori", " create]" )
from categorylinks left join page on page_title = cl_to and page_namespace=14 where page_title is null li... | {"resultsets": [{"headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata", "img_bits", "img_media_type", "img_major_mime", "img_minor_mime", "img_description_id", "img_actor", "img_timestamp", "img_sha1"], "rowcount": 1}, {"headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata... | nowiki |
রোলব্যাকের সংখ্যা (ট্যাগ অনুযায়ী) | null | SELECT COUNT(*) as cnt
FROM revision
JOIN change_tag
ON rev_id = ct_rev_id
JOIN actor
ON actor_id = rev_actor
WHERE actor_name = 'আফতাবুজ্জামান'
AND ct_tag_id =
(SELECT ctd_id FROM change_tag_def
WHERE ctd_name = 'mw-rollback'); | {"resultsets": [{"headers": ["page_id", "page_title", "count(distinct(actor_id))"], "rowcount": 3803}], "runningtime": "5.87"} | bnwiki_p |
Fiwiki edit analysis 2 | null | SELECT ip_timestamp, page_title, ip, (user_timestamp<ip_timestamp) as abc10_edited_first, COALESCE(creator_name, r4.rev_user_text) as article_creator_name
FROM (
SELECT page_id, page_title, ip_timestamp, ip, user, user_timestamp, creator_name, min(r3.rev_timestamp) as min_ts
FROM (
SELECT
p.page_id,
p.page_title,... | {"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 3024}], "runningtime": "24.00"} | fiwiki_p |
Fiwiki edit analysis | null | SELECT rc_title as article_name, rc_user_text as ip, (min_abc10_ts<min_ip_ts) as abc10_edit_first, COALESCE(article_creator, r2.rev_user_text) as article_creator FROM (
SELECT count(distinct(rc_id)) as c, rc_title, rc_user_text, rc_cur_id, article_creator, min(t.rc_timestamp) as min_ip_ts, min(t.abc10_ts) as min_abc1... | {"resultsets": [{"headers": ["rev_id", "rev_actor", "rev_timestamp", "rev_len", "rev_parent_id", "prefix", "page_title"], "rowcount": 5}], "runningtime": "4.51"} | fiwiki_p |
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": ["line"], "rowcount": 2891}], "runningtime": "138.01"} | nlwiki_p |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 357; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20221101010000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"resultsets": [{"headers": ["date", "images"], "rowcount": 78}], "runningtime": "0.34"} | cswiki_p |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 357; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20221101010000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"resultsets": [{"headers": ["sayfa ad\u0131"], "rowcount": 11123}], "runningtime": "10.52"} | cswiki_p |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 357; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20221101010000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"connection_id": 34543107} | cswiki_p |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 10; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20220821000000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name"], "rowcount": 19}], "runningtime": "0.39"} | cswiki_p |
Deji Olatunji blacklisting | This shows pages, existing and deleted, that match /.*(comedy.?shorts.?gamer|\bdeji\b.*(olatunji|tube)).*/i.
For [[Wikipedia:Deletion review/Log/2022 November 15]]. | SET @pat='(?i)(comedy.?shorts.?gamer|\\bdeji\\b.*(olatunji|tube))';
SELECT CONCAT('[[', CASE page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'User:' ... | {"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name"], "rowcount": 1}], "runningtime": "0.07"} | enwiki_p |
WLM Puglia - only 2022 participants | null | SELECT CONCAT("# {{target| user = ", actor_name, "|site = commons.wikimedia.org }}") as line
FROM revision r_prev
join categorylinks on rev_page = cl_from
join actor on rev_actor = actor_id and actor_user is not null
WHERE rev_parent_id = 0
and cl_to IN (
"Images_from_Wiki_Loves_Monuments_2022_in_Italy_-_Apulia"
) G... | {"resultsets": [{"headers": ["concat(\"Category:\",page_title)", "page_len", "cat_pages", "cat_subcats"], "rowcount": 8363}], "runningtime": "20.86"} | commonswiki_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",
NVL(rvmax.rev_len,0) - 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": ["Anzahl"], "rowcount": 1}], "runningtime": "4.36"} | enwikiquote_p |
Tournaments | null | select page_title from page where page_namespace=0
and ((page_title like '%_Baseball_Tournament')
)
and page_is_redirect=0 | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | enwiki |
Conference Tournaments | null | select page_title from page where page_namespace=0
and ((page_title like '%_Conference_Basketball_Tournament_%')
or (page_title like '%_Conference_Soccer_Tournament_%')
or (page_title like '%_Conference_Volleyball_Tournament_%')
or (page_title like '%_Conference_Ice_Hockey_Tournament_%')
or (page_title like '%_... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "1.32"} | enwiki |
Tournaments | null | select page_title from page where page_namespace=0
and ((page_title like '%_Basketball_Tournament')
or (page_title like '%_Soccer_Tournament')
or (page_title like '%_Volleyball_Tournament')
or (page_title like '%_Ice_Hockey_Tournament')
or (page_title like '%_Football_Tournament')
)
and page_is_redirect=0 | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.08"} | enwiki |
Rarest disambiguators on enwiki | Disambiguators used precisely once. | SELECT page_title, REGEXP_SUBSTR(page_title, "\\(.*?\\)") as $dab, COUNT(*) AS $count
FROM page
WHERE page_is_redirect = 0
AND page_namespace = 0
AND page_title LIKE "_%(_%)"
GROUP BY 2
ORDER BY 3 ASC | {"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 50}], "runningtime": "5.61"} | enwiki_p |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 370; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20221101000000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | cswiki_p |
Sanskrit lemma edits | null | set @language = 'Sanskrit';
select actor_name as `user`, count(*) as `edit count` from categorylinks
join revision on rev_page = cl_from
join actor on actor_id = rev_actor
where cl_to in (concat(@language, '_lemmas'))
group by rev_actor
order by `edit count` desc; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | enwiktionary_p |
enWikiquote: All new articles the past few 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.06"} | enwikiquote_p |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 370; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20221101000000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | cswiki_p |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 370; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20221101000000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | commonswiki |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 370; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20221101000000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | commonswiki |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 370; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20221101000000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | commonswiki |
Experienced users and newcomers | null | SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced
SET @minTenureDays = 370; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced
SET @eventDate = '20221101000000'; -- 3) see @minTenureDays
SELECT
user_name,
user_editcount,
... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | commonswiki |
#SheSaid on Catalan Wikiquote from Oct 1st 2022 till 31 Dec | null | SELECT
page_title,
page_namespace,
actor_name,
rev_timestamp,
comment_text
FROM
revision
JOIN comment_revision ON rev_comment_id=comment_id
JOIN page ON rev_page=page_id
JOIN actor_revision ON rev_actor=actor_id
WHERE
rev_timestamp BETWEEN 20221001000000 AND 20221231999999
AND comment_text ... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | cawikiquote_p |
Tags that are used most often in pagetriage | null | select log_params, count(*) as total
from logging
where
log_type="pagetriage-curation"
and log_action="tag"
and log_timestamp>20220901000000 and log_timestamp<20221101000000
group by log_params
order by total desc; | {"resultsets": [{"headers": ["Reviewer", "Redirect Reviews"], "rowcount": 20}], "runningtime": "23.64"} | enwiki |
All possible articles for COVID-19 situation on zhwiki | null | SELECT *
FROM (
SELECT
page_id,
page_title,
COUNT(rev_id) AS rev_count,
rev_id AS first_rev_id,
rev_timestamp AS first_rev_timestamp
FROM (
SELECT
page_id,
page_title,
rev_id,
rev_timestamp
FROM (
SELECT
page_id,
page_title
FROM page
WHERE page_is_redirect = 0 AND page_na... | {"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.09"} | zhwiki_p |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["LEFT(log_timestamp, 6)", "COUNT(*) OR -1"], "rowcount": 203}], "runningtime": "1.41"} | enwiki_p |
Longest 1,000 pages in all namespaces | null | SELECT page_title AS "Mainspace", page_len
FROM page WHERE page_namespace = "0" ORDER BY page_len DESC LIMIT 1000;
SELECT page_title AS "Talk", page_len
FROM page WHERE page_namespace = "1" ORDER BY page_len DESC LIMIT 1000;
SELECT page_title AS "User", page_len
FROM page WHERE page_namespace = "2" ORDER BY page_len DE... | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 7}], "runningtime": "0.07"} | enwiki_p |
Bad disambiguation page titles (eswiki) | Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki). | use eswiki_p;
select page_title as main_title
from (page join redirect on page_id = rd_from)
where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
| {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | eswiki |
X Final | Non-redirect articles with titles ending in "_Final" | select page_title from page where page_namespace=0
and (page_title like '%_Final')
and page_is_redirect=0
| {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | enwiki |
Edit count American politics articles | null | WITH ids AS (SELECT cl_from
FROM categorylinks
WHERE cl_to = "American_politics_task_force_articles"),
title AS (SELECT page_title
FROM ids
JOIN page ON page_id = cl_from),
article AS (SELECT page_id
FROM page
WHERE page_namespace = 0
AND page_title IN (SELECT *
... | {"resultsets": [{"headers": ["concat(\"Category:\",page_title)", "page_len", "cat_pages", "cat_subcats"], "rowcount": 8363}], "runningtime": "18.90"} | enwiki_p |
Edit count Armenia or Azerbaijan articles | null | WITH ids AS (SELECT cl_from
FROM categorylinks
WHERE cl_to = "WikiProject_Armenia_articles"
OR cl_to = "WikiProject_Azerbaijan_articles"),
title AS (SELECT page_title
FROM ids
JOIN page ON page_id = cl_from),
article AS (SELECT page_id
FROM page
WHERE page_namespace = 0
AND... | {"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "2.93"} | enwiki_p |
#SheSaid on Italian Wikiquote from Oct 1st 2022 till 31 Dec | null | SELECT
page_title,
page_namespace,
actor_name,
rev_timestamp,
comment_text
FROM
revision
JOIN comment_revision ON rev_comment_id=comment_id
JOIN page ON rev_page=page_id
JOIN actor_revision ON rev_actor=actor_id
WHERE
rev_timestamp BETWEEN 20221001000000 AND 20221231999999
AND comment_text ... | {"resultsets": [{"headers": ["tl_from"], "rowcount": 7}], "runningtime": "0.07"} | itwikiquote_p |
#SheSaid on Spanish Wikiquote from Oct 1st 2022 till 31 Dec | null | SELECT
page_title,
page_namespace,
actor_name,
rev_timestamp,
comment_text
FROM
revision
JOIN comment_revision ON rev_comment_id=comment_id
JOIN page ON rev_page=page_id
JOIN actor_revision ON rev_actor=actor_id
WHERE
rev_timestamp BETWEEN 20221001000000 AND 20221231999999
AND comment_text ... | {"resultsets": [{"headers": ["page_title"], "rowcount": 415}], "runningtime": "0.50"} | eswikiquote_p |
tlWikiquote: All new articles the past two weeks | New articles. on Tagalog 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": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 100}], "runningtime": "0.18"} | tlwikiquote_p |
7646 | null | select DISTINCT p2.page_title
from page p1, page p2, templatelinks, linktarget, categorylinks
where p1.page_namespace = 1 and p1.page_is_redirect = 0
and p2.page_namespace = 0 and p2.page_is_redirect = 0
and p1.page_id = cl_from
and p1.page_title = p2.page_title
and p2.page_id = tl_from
and lt_namespace = 10 and ... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | arwiki_p |
cl_timestamp values by page | null | select
page_title as mainspace_title,
date_format(cl_timestamp, '%Y-%m-%d %H:%i:%s') as category_link_update_time,
count(*) as category_count
from categorylinks
join (
select page_id, page_title from page where page_namespace = 0 limit 100
) as page_subset on page_id = cl_from
group by page_title, cl_timesta... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | enwiktionary |
Random sample of 500k edits (Wikidata) | null | SELECT * FROM text LIMIT 10; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | wikidatawiki_p |
Random sample of 500k edits (Wikidata) | null | select comment_text from comment_revision limit 20000;
| {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.06"} | bnwiki |
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... | {"connection_id": 35020041} | tewiki |
Lowercase example | null | SELECT LOWER(page_title), LOWER("FOO"), LOWER(CONCAT(page_title,"_FOO")), BINARY LOWER(CAST page_title AS CHAR)
FROM page WHERE page_namespace=0 AND page_title="AAA" | {"resultsets": [], "runningtime": "0.04"} | enwiki_p |
UC TLA redirects to dab with no lc page | null | SELECT Pu.page_title, rd_title
FROM page Pu
JOIN redirect ON rd_from = Pu.page_id AND rd_namespace = 0
JOIN page Pr ON Pr.page_namespace = 0 AND Pr.page_title = rd_title
JOIN categorylinks ON cl_from = Pr.page_id AND cl_type = "page" AND cl_to = "All_disambiguation_pages"
WHERE Pu.page_is_redirect = 1
AND Pu.page_names... | {"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 100}], "runningtime": "3.27"} | enwiki_p |
UC TLA dabs with no lc page | null | SELECT Pu.page_title
FROM page Pu
JOIN categorylinks ON cl_from = Pu.page_id AND cl_type = "page" AND cl_to = "All_disambiguation_pages"
WHERE Pu.page_namespace = 0 AND Pu.page_title REGExP BINARY "^[A-Z][A-Z][A-Z]$"
AND NOT EXISTS (SELECT 1 FROM page Pl WHERE Pl.page_namespace = 0
AND Pl.page_title = C... | {"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 100}], "runningtime": "5.79"} | enwiki_p |
UC 2LA redirects to dab with no lc page | null | SELECT Pu.page_title, rd_title
FROM page Pu
JOIN redirect ON rd_from = Pu.page_id AND rd_namespace = 0
JOIN page Pr ON Pr.page_namespace = 0 AND Pr.page_title = rd_title
JOIN categorylinks ON cl_from = Pr.page_id AND cl_type = "page" AND cl_to = "All_disambiguation_pages"
WHERE Pu.page_is_redirect = 1
AND Pu.page_names... | {"connection_id": 74926273} | enwiki_p |
UC 4LA dabs with no lc page | null | SELECT LENGTH(Pu.page_title) AS Letters, COUNT(*) AS HowMany, MIN(Pu.page_title) AS Example
FROM page Pu
JOIN categorylinks ON cl_from = Pu.page_id AND cl_type = "page" AND cl_to = "All_disambiguation_pages"
WHERE Pu.page_namespace = 0 AND Pu.page_title REGExP BINARY "^[A-Z]+$"
AND NOT EXISTS (SELECT 1 FROM page Pl WHE... | {"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 2}], "runningtime": "0.07"} | enwiki_p |
Authors of good articles | null | select * from comment_revision limit 10; | {"resultsets": [{"headers": ["page_namespace", "page_title", "cl_to"], "rowcount": 0}], "runningtime": "0.06"} | bnwiki_p |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.