title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
WLM Bangladesh participants 2016-20, not active in WLM 2021 | https://quarry.wmflabs.org/query/46493 | SELECT CONCAT("* {{target | page = User_talk:", 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_2016_in_Bangla... | {"resultsets": [{"headers": ["reviews", "rc_title", "accepted", "accept %", "declined", "decline %"], "rowcount": 1599}], "runningtime": "14.42"} | commonswiki_p |
Links to Elsevier from main namespace | null | -- Used to be 1234 on 2019-08
USE enwiki_p;
SELECT DISTINCT(page_title)
FROM externallinks
JOIN page
ON page_id = el_from
AND page_namespace = 0
WHERE el_index LIKE "http://com.elsevier.linkinghub./%"
OR el_index LIKE "https://com.elsevier.linkinghub./%"; | {"resultsets": [{"headers": ["categoria"], "rowcount": 110}], "runningtime": "0.81"} | enwiki_p |
zhwiki page_restrictions | null | SELECT *
FROM page_restrictions
JOIN page ON pr_page = page_id
WHERE pr_type = 'edit'
AND pr_level = 'templateeditor'
AND page_title LIKE 'CGroup/%'
| {"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "2.10"} | zhwiki_p |
Txikipedia articles not in Txikipedia category | null | use euwiki_p;
SELECT p.page_namespace, p.page_title
from page p
where p.page_namespace in (104)
and p.page_is_redirect=0
and p.page_id not in (select cl_from
from categorylinks
where cl_to in ("Txikipedia"))
order by p.page_id desc; | {"resultsets": [{"headers": ["num", "Page title", "Is redirect?"], "rowcount": 1}], "runningtime": "3.98"} | euwiki_p |
an.Select bigger articles among two wikis, which are not present in ukrainian | Select bigger articles among two wikis, which are not present in ukrainian | SET @r = 0;
/*SET @scanwiki = bewiki_p;*/
SELECT
@r := @r+1,
enp.page_title as en_title,
enp.page_len as en_len,
dep.page_title as de_title,
dep.page_len as de_len
FROM bewiki_p.page enp
JOIN bewiki_p.langlinks enll
ON enll.ll_from = enp.page_id and ll_lang="ru"
join ... | {"connection_id": 143178472} | ukwiki |
AVG length of all articles in ukwiki. Stable | null | SELECT avg(page_len)
FROM page
WHERE page_namespace=0
and page_is_redirect=0
| {"resultsets": [{"headers": ["p"], "rowcount": 1000}], "runningtime": "1.06"} | ukwiki_p |
Most prolific template maintainers | null | -- Choose the wiki!
-- English Wikipedia can take several minutes per day.
-- Smaller wikis take a few seconds per day.
select
-- revision_actor_temp will some day be deprecated
revision_actor_temp.revactor_actor,
count(revision_actor_temp.revactor_actor) as edit_count,
actor.actor_name
from
page,
actor,
... | {"resultsets": [{"headers": ["User", "Registered", "Edit count", "Last edit", "Filter trip count", "Last filter trip"], "rowcount": 64}], "runningtime": "55.83"} | tawiki_p |
Yearwise edits of Project Pages | To be grouped at the closest leaf corresponding to project |
SELECT
page_namespace as namespace,
page_title as project_page,
-- page_title as project_page,
-- rev_timestamp
LEFT(rev_timestamp,4) as edityear,
COUNT(*) as Edits
FROM page
INNER JOIN revision ON revision.rev_page = page_id
WHERE page_title REGEXP "^వికీప్రాజెక్టు\/(?!.... | {"resultsets": [{"headers": ["rc_timestamp", "rc_user_text", "page_title", "eu_entity_id", "eu_aspect", "eu_page_id", "rc_source", "rc_comment"], "rowcount": 201}], "runningtime": "0.41"} | tewiki_p |
Test | null | SELECT page_title
FROM page
WHERE page_namespace = 102
AND regexp_replace(page_title,'.[^.]+.srt','') NOT IN (
SELECT page_title FROM page WHERE page_namespace = 6
); | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 87}], "runningtime": "0.47"} | commonswiki_p |
Editors by experience level 65000-75000 2019 | For https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=842949728#Help_compiling_a_list_of_editors_by_experience_level
Users registered at least a year ago, that are in neither the administrator nor new-page-patroller usergroups, with no blocks in at least a year, at least 5 total pa... | SELECT user_id, user_name, user_editcount, user_registration
FROM `user`
JOIN actor_user on actor_user=user_id
WHERE user_editcount >= 65000
AND user_editcount <= 75000
AND user_registration < 20181105000000
AND EXISTS (SELECT 1 FROM user_groups WHERE user_id=ug_user AND ug_group = 'extendedconfirmed')
AND NOT ... | {"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_type", "rc_log_acti... | null |
x庄市 | null | select page_title from zhwiki_p.page where page_namespace=0 and (page_title like '%庄市' or page_title like '%莊市'); | {"resultsets": [{"headers": ["cl_from", "page_title", "rc_timestamp", "rc_this_oldid", "rc_ip", "actor_user", "actor_name"], "rowcount": 80}], "runningtime": "0.42"} | null |
Bengali Wikipedia editors sorted by number of edits | null | use bnwiki_p;
select
rev_actor,
actor_name,
count(rev_id) as edit_count
from
revision,
actor
where
rev_timestamp > 20190300000000 and
rev_actor = actor_id
group by
rev_actor
having
count(rev_id) between 10000 and 40000
order by
edit_count desc; | {"resultsets": [{"headers": ["ipb_id", "ipb_address", "ipb_user", "ipb_reason_id", "ipb_timestamp", "ipb_auto", "ipb_anon_only", "ipb_create_account", "ipb_expiry", "ipb_range_start", "ipb_range_end", "ipb_enable_autoblock", "ipb_deleted", "ipb_block_email", "ipb_by_actor", "ipb_allow_usertalk", "ipb_parent_block_id", ... | null |
Fawiki 2019 elections eligible voters (50 edits in the last 6 months) | null | use fawiki_p;
select concat('[[User:', user_name, '|]]'),
concat(left(log_timestamp, 4), '-', mid(log_timestamp, 5, 2), '-', mid(log_timestamp, 7, 2)) as acct_created,
concat(left(first_timestamp, 4), '-', mid(first_timestamp, 5, 2), '-', mid(first_timestamp, 7, 2)) as first_edit,
concat('{{formatnum:', onefifty.cnt, '... | {"resultsets": [{"headers": ["date", "images"], "rowcount": 85}], "runningtime": "1.93"} | null |
Hewiki pages by enwiki category | null | select ll_title from enwiki_p.categorylinks cl
inner join enwiki_p.langlinks on cl.cl_from=ll_from
inner join hewiki_p.page p on p.page_title=ll_title and p.page_namespace=0
where ll_lang='he' and cl_to ='People of the Holocaust' | {"resultsets": [{"headers": ["CONCAT('# [[',REPLACE(page_title,'_',' '),']]')"], "rowcount": 359}], "runningtime": "260.48"} | null |
Contribs by specific users | Gets the number of contribs by a specific list of users in the first half of 2018 | SELECT actor_name, count(*)
FROM revision_actor_temp
Join actor on revactor_actor = actor_id
WHERE revactor_timestamp > '20180101000000' AND revactor_timestamp < '20180601000000'
AND actor_name in ( 'Bawolff', 'Isarra', 'Quiddity' )
GROUP BY actor_name; | {"resultsets": [{"headers": ["en", "ar"], "rowcount": 100}], "runningtime": "11.89"} | null |
Edits in specific category at specific time | Edits to articles in category:Canada and Category:United_States (directly. Does not include articles in sub-categories) during first quarter of 2018 | select cl_to, count(*)
from categorylinks
join revision on rev_page = cl_from
where cl_to in ('Canada', 'United_States' )
AND rev_timestamp > '20180101000000' AND rev_timestamp < '20180400000000'
group by cl_to;
| {"connection_id": 36483721} | null |
English Wikipedia portals by age and number of edits, editors | This query takes all pages in the Portal namespace and aggregates them by base page name (the name before the first slash), then it aggregates the timestamps and username for all the corresponding revisions. It helps find portals which, in aggregate, have very few edits and/or editors (either in total or relative to th... | USE enwiki_p;
SELECT SUBSTRING_INDEX(page_title, "/", 1) AS portal, SUBSTR(MIN(rev_timestamp), 1, 4) AS creation, SUBSTR(AVG(rev_timestamp), 1, 4) AS avgEditsYear, COUNT(DISTINCT(rev_actor)) AS editors, COUNT(DISTINCT(rev_sha1)) AS revisions
FROM page
JOIN revision_userindex
ON rev_page = page_id
AND page_namespace = 1... | {"connection_id": 113512589} | null |
enwiki inactive special users | null | use enwiki_p;
SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', GROUP_CONCAT(ug1.ug_group) AS 'user_groups'
FROM `user`
LEFT JOIN user_groups ug1
ON user_id = ug1.ug_user AND ug1.ug_group IN ('sysop', 'abusefilter', 'abusefilter-helper', 'templateeditor', 'accountcreator', 'bureaucrat'... | {"connection_id": 113520321} | null |
Personen mit ev. fehlenden Begriffsklärungsseiten | Etliche, aber nicht alle Adeligen gefiltert: https://quarry.wmflabs.org/query/39691 | USE dewiki_p;
SELECT p0.page_title
FROM page AS p0, templatelinks
WHERE p0.page_namespace = 0
AND p0.page_title LIKE "%\_(%)"
AND tl_from = p0.page_id
AND tl_title = "Personendaten"
AND tL_namespace = 10
AND NOT EXISTS (SELECT 1
FROM page AS p1
WHERE p1.page_ti... | {"resultsets": [{"headers": ["log_type", "page_is_redirect", "COUNT(*)", "MIN(log_title)", "MAX(log_title)"], "rowcount": 6}], "runningtime": "0.61"} | null |
Emulate history of [[Anarchism]] | SQL that returns similar information as https://en.wikipedia.org/w/index.php?title=Anarchism&action=history | USE mediawikiwiki_p;
SELECT count(*), page_namespace FROM page group by page_namespace; | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang", "rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_time... | null |
Emulate history of [[Anarchism]] | SQL that returns similar information as https://en.wikipedia.org/w/index.php?title=Anarchism&action=history | USE mediawikiwiki_p;
SELECT count(*), page_namespace FROM page group by page_namespace; | {"connection_id": 113598770} | null |
Give list of all SQL tables for the default wiki (English Wikipedia) | null | SHOW TABLES | {"resultsets": [{"headers": ["date", "images"], "rowcount": 86}], "runningtime": "0.70"} | null |
Sample some revisions made with WikiLoop Battlefield with "contains" | null | SELECT * FROM comment WHERE contains(comment_text, "WikiLoop Battlefield") LIMIT 10; | {"resultsets": [{"headers": ["gb_address", "gb_reason"], "rowcount": 1000}], "runningtime": "3.61"} | null |
Count WikiLoop Battlefield Reversions with "LIKE" | null | USE enwiki_p;
SELECT COUNT(*)
FROM comment
WHERE comment_text LIKE '%WikiLoop Battlefield%'
LIMIT 100; | {"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_text_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "ar_content_model", "ar_content_format", "actor_id", "actor_user", "actor_nam... | null |
Describe category | null | describe category | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 1}], "runningtime": "0.11"} | null |
Find subcategories of Canada | null | select page_namespace, page_title
from categorylinks
inner join page on page_id = cl_from
where cl_to = 'Canada' and cl_type = 'subcat'
| {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 30}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 7}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 12}], "runningtime": "0.93"} | null |
Count WikiLoop Battlefield revisions group by authors | null | # SHOW Tables;
# DESC actor;
# DESC actor_user;
SELECT COUNT(*), actor_revision.actor_name FROM comment_revision
INNER JOIN revision_userindex ON revision_userindex.rev_comment_id = comment_revision.comment_id
INNER JOIN actor_revision ON revision_userindex.rev_actor = actor_revision.actor_id
WHERE comment_revision... | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 29}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 7}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 12}], "runningtime": "4.74"} | null |
Sample some revisions made with WikiLoop Battlefield with "like" | null | USE enwiki_p;
SELECT *
FROM comment
WHERE comment_text LIKE '%WikiLoop Battlefield%'
LIMIT 2000; | {"resultsets": [{"headers": ["afl_id", "afl_filter", "afl_user", "afl_user_text", "afl_ip", "afl_action", "afl_actions", "afl_var_dump", "afl_timestamp", "afl_namespace", "afl_title", "afl_wiki", "afl_deleted", "afl_patrolled_by", "afl_rev_id"], "rowcount": 1}], "runningtime": "0.09"} | null |
CatMess | null | select
page_title,
page_id,
cl_from,
cl_to,
cl_type,
cat_id,
cat_title,
cat_pages,
cat_subcats
from categorylinks
join page on page_id = cl_from
join category on cat_title = page_title
where page.page_namespace=14
limit 10; | {"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 1}], "runningtime": "0.14"} | null |
GA/FA and GAN/FAC linked from Deaths in 2019 | GA/FA and GAN/FAC linked from [[October 19]] | SELECT
page_title #Faster than just selecting the page title and id, but only those are needed
FROM
page pg1
WHERE
pg1.page_namespace = 0 #Only care about articles
AND pg1.page_title IN ( #Where page is linked from a specified other page
SELECT
pl_title
FROM
pagelinks
WHERE
pl_from... | {"resultsets": [{"headers": ["slot_role_id"], "rowcount": 1}], "runningtime": "887.13"} | null |
Tittle | null | USE cswiki_p;
SELECT rc_namespace, rc_title, rc_this_oldid, rc_user_text, rc_timestamp FROM recentchanges WHERE rc_patrolled = 0 ORDER BY rc_timestamp; | {"resultsets": [{"headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"], "rowcount": 74}], "runningtime": "47.70"} | null |
arwiki football leagues categories | null | #use arwiki_p;
select DISTINCT
CONCAT('* [[:',ll_title, ']]>') AS cat1 ,
CONCAT("#Category:", p1.page_title) AS title
from page AS p1, langlinks
#where p1.page_title like "%football_leagues%" AND ll_title like "%في_دوريات_كرة_قدم%"
#where p1.page_title like "%leagues%" AND ll_title like "%في_دوريات%"
#where p1.page_ti... | {"resultsets": [{"headers": ["page_title"], "rowcount": 27}], "runningtime": "254.25"} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"resultsets": [{"headers": ["page_title"], "rowcount": 28}], "runningtime": "192.89"} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"resultsets": [{"headers": ["page_namespace", "page_title", "rd_title"], "rowcount": 8}], "runningtime": "0.80"} | null |
try2 | null | null | {"resultsets": [{"headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 11}], "runningtime": "0.26"} | null |
most popular link domains | null | use mediawikiwiki_p;
SELECT regexp_substr( el_to, '[^:/]*(://|//|:)[^?/]*' ), count(*)
from externallinks inner join page on page_id = el_from and page_namespace = 0
group by 1 order by 2 desc LIMIT 50000; | {"connection_id": 116177337} | null |
Most popular external link domains | null | use mediawikiwiki_p;
SELECT
regexp_substr( el_to, '[^:/]*(://|//|:)[^?/]*' ),
count(*)
from externallinks
inner join
page on page_id = el_from and
page_namespace = 0
group by 1
order by 2 desc
LIMIT 50000; | {"connection_id": 116179896} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"resultsets": [{"headers": ["rev_id", "page_title", "rev_actor", "rev_parent_id", "slot_content_id"], "rowcount": 10}], "runningtime": "0.23"} | null |
Last edit time | null | USE zhwikibooks_p;
SELECT ra.actor_user, r.rev_timestamp
FROM revision r
JOIN revision_actor_temp rat ON rat.revactor_rev = r.rev_id
JOIN actor ra ON rat.revactor_actor = ra.actor_id
LEFT JOIN revision b
JOIN revision_actor_temp bat ON bat.revactor_rev = b.rev_id
JOIN actor ba ON bat.revactor_actor = ba.actor_id
ON ra.... | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 40}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 9}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 14}], "runningtime": "26.81"} | null |
Statistics of editing MediaWiki JS/CSS in ruwiki | Считает количество правок в Media Wiki *.css и *.js по пользователям, в поле Random Page одна из страниц, которую правил пользователь | USE ruwiki_p;
SELECT actor_name AS 'User', page_title AS 'Random Page', COUNT(*) AS 'Edits'
FROM revision_userindex
JOIN page ON page_id = rev_page
JOIN actor ON rev_actor = actor_id
WHERE
rev_timestamp >= "20181001" AND
page_namespace = 8 AND
(page_title LIKE '%.css' OR
page_title LIKE '%.js')
GROUP ... | {"resultsets": [{"headers": ["wbxl_id", "wbxl_language", "wbxl_text_id"], "rowcount": 100}, {"headers": ["wbtl_id", "wbtl_type_id", "wbtl_text_in_lang_id"], "rowcount": 100}, {"headers": ["wbpt_id", "wbpt_property_id", "wbpt_term_in_lang_id"], "rowcount": 100}], "runningtime": "1.41"} | null |
Proofread-Sasi-TamilProverb3 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
#... | {"resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wpage", "commonscat"], "rowcount": 1260}], "runningtime": "57.88"} | null |
Bengali Contributors with 5k-40k in past 6 months | null | use bnwiki_p;
select
rev_actor,
actor_name,
count(rev_id) as edit_count
from
revision,
actor
where
rev_timestamp > 20190300000000 and
rev_actor = actor_id
group by
rev_actor
having
count(rev_id) between 5000 and 40000
order by
edit_count desc; | {"resultsets": [{"headers": ["pap_project_title", "pa_class", "pa_importance", "counts"], "rowcount": 100}], "runningtime": "6.89"} | null |
She Did It Challenge Test | List of articles created for the She Did It Challenge on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
created,
total_len,
articles
FROM
(
SELECT
CONCAT(actor_name) as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as total_len,
GROUP_CONCAT(
DI... | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 5}], "runningtime": "0.18"} | null |
Fawiki 2019 elections eligible voters | null | use fawiki_p;
select concat('[[User:', user_name, '|]]'),
concat(left(log_timestamp, 4), '-', mid(log_timestamp, 5, 2), '-', mid(log_timestamp, 7, 2)) as acct_created,
concat(left(first_timestamp, 4), '-', mid(first_timestamp, 5, 2), '-', mid(first_timestamp, 7, 2)) as first_edit,
concat('{{formatnum:', onefifty.cnt, '... | {"resultsets": [{"headers": ["cl_to"], "rowcount": 2000}], "runningtime": "9.52"} | null |
Anzahl Vorlagen mit templatedata ohne Template | null | USE dewiki_p;
/* USE enwiki_p; */
SELECT page_title
FROM page_props, page LEFT JOIN categorylinks
ON page_id = cl_from
AND cl_to = "Vorlage:mit_TemplateData" /* deWP */
/* AND cl_to = "Templates_using_TemplateData" /* enWP */
... | {"resultsets": [{"headers": ["pagina", "enlace"], "rowcount": 0}], "runningtime": "40.59"} | null |
uploaded videos on specific period | null | SELECT DISTINCT I.img_name, I.img_timestamp
FROM commonswiki_p.image AS I
LEFT JOIN commonswiki_p.page AS P ON I.img_name=P.page_title
#WHERE I.img_timestamp > 20191014000000
WHERE I.img_timestamp BETWEEN 20050000000000 AND 20060000000000
AND P.page_namespace = 6
AND (P.page_title RLIKE "\.[Ww][Ee][Bb][Mm]" OR #o... | {"resultsets": [{"headers": ["page", "pr_expiry", "reverted"], "rowcount": 50}], "runningtime": "7.90"} | null |
2018–19 | null | #use arwiki_p;
SELECT p.page_title , pp_value#, cl.cl_to
FROM page p, page_props, wikidatawiki_p.page wdp #, categorylinks cl
WHERE p.page_namespace = 0 AND p.page_is_redirect = 0
and not exists (select * from wikidatawiki_p.pagelinks wdpl
where wdpl.pl_from = wdp.page_id AND (wdpl.pl_title = 'Q52394608') ... | {"resultsets": [{"headers": ["page", "pr_expiry", "reverted"], "rowcount": 50}], "runningtime": "6.21"} | null |
page_title LIKE "%animat%" | null | USE commonswiki_p;
SELECT CONCAT("Category:",cat_title,"")
FROM category AS cat
WHERE cat_title LIKE "%Media_needing_categories_as_of_%"
ORDER BY cat_title ASC
LIMIT 9999; | {"resultsets": [{"headers": ["page_title"], "rowcount": 899}], "runningtime": "12.28"} | null |
WSC-UK previous years' participants | WSC-UK previous years' participants not active this year | use commonswiki_p;
SELECT CONCAT("# {{#target:User_talk:", actor_name, "|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_European_Science_Photo_Competitio... | {"resultsets": [{"headers": ["CONCAT(\"* [[:\u0646\u0642\u0627\u0634:\", page.page_title, \"]]\")"], "rowcount": 2550}], "runningtime": "145.79"} | null |
WSC Article Contest #1 | WSC-UK previous years' participants not active this year | use ukwiki_p;
SELECT CONCAT("# {{#target:User_talk:", actor_name, "|}}") 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 (
"Статті_конкурсу_Жінки_у_STEM"
) and not exists (
SELECT 1
FROM revis... | {"resultsets": [{"headers": ["CONCAT(\"* [[:\u0646\u0642\u0627\u0634:\", page.page_title, \"]]\")"], "rowcount": 915}], "runningtime": "3.56"} | null |
WSC Article Contest #2 | WSC-UK previous years' participants not active this year | use ukwiki_p;
SELECT CONCAT("# {{#target:User_talk:", actor_name, "|}}") 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 (
"Категорія:Інтерес:Біологія"
) and not exists (
SELECT 1
FROM revisio... | {"resultsets": [{"headers": ["cl_from", "page_title", "rc_timestamp", "rc_this_oldid", "actor_name"], "rowcount": 374}], "runningtime": "2.79"} | null |
All pages with wikidata Q#s/P#s in title | Enwiki pages whose title contains a Wikidata Q number or P number as a disambiguator, even if the closing parenthesis is missing or the Q or P is lowercase; and what they redirect to if they're currently redirects.
For [[MediaWiki talk:Titleblacklist#Request to prevent "Wikidata" titles from being created]] circa 14 N... | SELECT CONCAT('[[{{ns:', page_namespace, '}}:', page_title, ']]') AS 'page title',
CASE WHEN page_is_redirect = 0 THEN NULL
ELSE (SELECT CASE WHEN rd_namespace = 0 THEN CONCAT('[[', rd_title, ']]')
ELSE CONCAT('[[{{ns:', rd_namespace, '}}:', rd_title, ']]')
... | {"connection_id": 38220525} | null |
Get all living persons with WikiProject Biography | Get all biographical articles of living people which have talk pages without WikiProject Biography | SELECT page.page_title FROM page INNER JOIN categorylinks c1 ON c1.cl_from = page.page_id WHERE c1.cl_to = "Living_people" and page.page_namespace = "0" and (SELECT page_title FROM page p2 INNER JOIN categorylinks c2 ON c2.cl_from = p2.page_id WHERE p2.page_namespace = "1" and p2.page_title = page.page_title and c2.cl_... | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.40"} | null |
Summary of bureaucrat actions from 2015, Commons | A simple summary of logged rights changes by Bureaucrats since 2015. 'rights' is a rough indicator of activity, as individual actions may not be a Bureaucrat request. | use commonswiki_p;
SELECT actor_name AS Bureaucrat,
count(log_id) AS Count,
LEFT(log_timestamp,4) AS Year
FROM user_groups
JOIN actor ON actor_user = ug_user AND ug_group = "bureaucrat"
JOIN logging_userindex ON actor_id = log_actor
WHERE log_action="rights"
AND log_timestamp > 20150100000000
GROUP BY Year, Bureaucra... | {"resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wpage", "commonscat"], "rowcount": 1000}], "runningtime": "5.05"} | null |
log_params | null | USE metawiki_p;
SELECT * FROM logging
WHERE log_type = "rights"
ORDER BY log_timestamp DESC
LIMIT 50; | {"connection_id": 2052387} | null |
Bureaucrat actions in 2019, Commons, details | null | use commonswiki_p;
select log_id as ID, log_params as raw, actor_name as Bureaucrat, log_timestamp as Date, log_title as Name
from logging
join actor
on actor_id = log_actor
join user_groups
on actor_user = ug_user
where log_type = "rights"
and log_action = "rights"
and log_timestamp between "20190101000000" and "20191... | {"connection_id": 38611387} | null |
Bureaucrat actions in 2019, Commons, details | null | use commonswiki_p;
select log_id as ID, log_params as raw, actor_name as Bureaucrat, log_timestamp as Date, log_title as Name
from logging
join actor
on actor_id = log_actor
join user_groups
on actor_user = ug_user
where log_type = "rights"
and log_action = "rights"
and log_timestamp between "20190101000000" and "20191... | {"resultsets": [], "runningtime": "0.08"} | null |
Bureaucrat actions in 2019, Commons, summary | null | use commonswiki_p;
select count(log_id) as Count, actor_name as Bureaucrat
from logging
join actor
on actor_id = log_actor
join user_groups
on actor_user = ug_user
where log_type = "rights"
and log_action = "rights"
and log_timestamp between "20190101000000" and "20191116000000"
and ug_group = "bureaucrat"
and log_para... | {"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_... | null |
OTRS restores and their delay | Undeletes from a given date, with a comment like OTRS in the log, ordered by the length of time since deletion. This may bear no relationship to how recently an email was received at OTRS. | USE commonswiki_p;
SELECT LEFT(l.log_title, 50) AS Page,
LEFT(c.comment_text, 50) AS Comment,
LEFT(l.log_timestamp, 8) AS UDate,
DATEDIFF(LEFT(l.log_timestamp, 8), LEFT(ll.log_timestamp, 8)) AS Wait
FROM (SELECT comment_text, comment_id FROM comment_logging WHERE comment_text LIKE "%OTRS%") AS c
JOIN logging_logindex A... | {"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_... | null |
Recent portal deletions by month | Includes redirects and dabs as well as actual portals | SELECT SUBSTR(log_timestamp, 1, 6), COUNT(*)
FROM logging_logindex
WHERE log_namespace=100 AND log_type ='delete' AND log_action=log_type
AND log_timestamp >= '201901010000' AND log_title NOT LIKE '%/%'
GROUP BY SUBSTR(log_timestamp, 1, 6) | {"connection_id": 2095573} | null |
Specific External Links | null | SELECT DISTINCT(page_title) FROM externallinks
JOIN page ON el_from = page_id
WHERE page_namespace = 0
AND (
el_index LIKE 'https://com.breitbart%'
OR el_index LIKE 'http://com.breitbart%'
); | {"resultsets": [{"headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "user_password_e... | null |
Article talk pages misclassified as FA-class | null | use fawiki_p;
select distinct p1.page_title
from page p1
join page p2
on p1.page_title = p2.page_title
and p1.page_namespace = 0
and p2.page_namespace = 1
join categorylinks cl2
on p2.page_id = cl2.cl_from
and cl2.cl_to like 'مقالههای_درجه_برگزیده%'
left join categorylinks cl1
on p1.page_id = cl1.cl_from
... | {"connection_id": 38640954} | null |
Comments used in OTRS related undeletes | null | USE commonswiki_p;
SELECT LEFT(comment_text, 50) AS Comment, count(log_timestamp) AS Total
FROM (SELECT comment_text, comment_id FROM comment_logging WHERE comment_text LIKE "%OTRS%") AS c
JOIN logging_logindex AS l ON l.log_comment_id = c.comment_id
WHERE log_timestamp > 20190101000000
AND log_action = "restore"
GROUP... | {"resultsets": [], "runningtime": "0.05"} | null |
Article talk pages misclassified as GA-class | null | use fawiki_p;
select distinct p1.page_title
from page p1
join page p2
on p1.page_title = p2.page_title
and p1.page_namespace = 0
and p2.page_namespace = 1
join categorylinks cl2
on p2.page_id = cl2.cl_from
and cl2.cl_to like 'مقالههای_درجه_خوب%'
left join categorylinks cl1
on p1.page_id = cl1.cl_from
and... | {"resultsets": [{"headers": ["page_title", "pp_value", "label", "description"], "rowcount": 522}], "runningtime": "2.73"} | null |
Incorrect use of classification categories | null | use fawiki_p;
select page_namespace, page_title, cl_to
from categorylinks
join page
on cl_from = page_id
and page_namespace % 2 <> 1
and page_namespace <> 14
where
cl_to like 'مقالههای_درجه%'
order by page_title | {"resultsets": [{"headers": ["page_title"], "rowcount": 4228}], "runningtime": "402.36"} | null |
مليون مقالة 16:50 | قائمة المستخدمين الأكثر إنشاءً للمقالات في يوم ويكيبيديا العربية الثالث عشر. | use arwiki_p;
SELECT concat('[[مستخدم:',actor_name,'|',actor_name,']]') AS "المستخدم", COUNT(*) AS "عدد المقالات"
FROM revision r
INNER JOIN actor ON r.rev_actor = actor.actor_id
INNER JOIN page p on r.rev_page = p.page_id
WHERE p.page_namespace =0 and p.page_is_redirect =0 and r.rev_timestamp between 20190901000000 a... | {"resultsets": [{"headers": ["now()"], "rowcount": 1}, {"headers": ["page_title", "direct_links", "redirects", "all_backlinks"], "rowcount": 25182}], "runningtime": "137.29"} | null |
edits by user day by day | null | USE fawiki_p;
SELECT
actor_name,
LEFT(rev_timestamp, 8),
COUNT(*)
FROM revision
JOIN actor
ON rev_actor = actor_id
WHERE
rev_actor IN
(
SELECT rev_actor
FROM revision
JOIN actor
ON rev_actor = actor_id
AND actor_user <> 0
LEFT JOIN user_groups
ON ug_user = actor_user
... | {"resultsets": [{"headers": ["page_title"], "rowcount": 19}], "runningtime": "33.87"} | null |
WikiDaheim users 2019 (by first revision, by uploader) | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count
FROM actor, revision, image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND actor.actor_id = revision.rev_actor
AND image.img_name = page.page_title
and revision.r... | {"resultsets": [{"headers": ["page_title"], "rowcount": 2608}], "runningtime": "781.72"} | null |
fetch admin info | null | USE zhwiki_p;
SELECT actor_user, actor_name, MAX(log_timestamp), MAX(rev_timestamp)
FROM actor
JOIN logging ON log_actor = actor_id
JOIN revision_actor_temp on revactor_actor = actor_id
JOIN revision ON rev_id = revactor_rev
WHERE actor_name = 'WhitePhosphorus' | {"runningtime": "2.82", "resultsets": [{"rowcount": 359, "headers": ["cl_from", "page_title", "rc_timestamp", "rc_this_oldid", "actor_name"]}]} | null |
try2 | null | use enwiki_p;
SELECT catpage.page_title , temppage.page_title , en_ll.ll_title
FROM page as catpage, langlinks as en_ll , page as temppage
WHERE catpage.page_namespace = 14
and temppage.page_namespace = 10
and catpage.page_title like "%seasons"
and catpage.page_title = temppage.page_title
and en_ll.ll_from = catpage.pa... | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.32"} | null |
get revisions by comment | null | #use dewiki_p;
use wikidatawiki_p;
#describe wb_changes;
#describe comment;
#describe revision;
#select comment_text from comment where comment_text like "%Bild, BW erfüllt%"
#limit 20;
# change_revision_id change_user_id
SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(wb_changes.change_object_id) as obj_... | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 0}], "runningtime": "0.21"} | null |
count WD edits by user | count WD edits by user | #use dewiki_p;
use wikidatawiki_p;
#describe wb_changes;
#describe comment;
#select comment_text from comment where comment_text like "%Bild, BW erfüllt%"
#limit 20;
# change_revision_id change_user_id
#select * from comment
#where comment.comment_text like "/* wbcreateclaim-create:1| */ [[Property:P18]]:%"
#limi... | {"runningtime": "280.85", "resultsets": [{"rowcount": 1012, "headers": ["CONCAT ('File:',p1.page_title,'')"]}]} | null |
Voci it.wiki senza interwiki con titolo uguale in fr.wiki (no disambigue) | null | USE itwiki_p;
SELECT DISTINCT
it_page.page_title itwiki_title,
fr_page.page_title frwiki_title
FROM
frwiki_p.page fr_page
INNER JOIN wikidatawiki_p.wb_items_per_site wdata
ON wdata.ips_site_id = 'frwiki'
AND wdata.ips_site_page = REPLACE(fr_page.page_title, '_', ' ')
INNER JOIN page it_page
WHERE it_page... | {"resultsets": [{"headers": ["firstedit", "user_name", "user_editcount"], "rowcount": 10}], "runningtime": "1265.26"} | null |
Voci it.wiki senza interwiki con titolo uguale in de.wiki (no disambigue) | null | USE itwiki_p;
SELECT DISTINCT
it_page.page_title itwiki_title,
de_page.page_title dewiki_title
FROM
dewiki_p.page de_page
INNER JOIN wikidatawiki_p.wb_items_per_site wdata
ON wdata.ips_site_id = 'dewiki'
AND wdata.ips_site_page = REPLACE(de_page.page_title, '_', ' ')
INNER JOIN page it_page
WHERE it_page... | {"resultsets": [{"headers": ["pl_namespace", "pl_title"], "rowcount": 0}], "runningtime": "0.20"} | null |
المقالة ذات الترتيب المحدد 3 | null | use arwiki_p;
/*select * from archive
where ar_parent_id = 0
and ar_namespace = 0
limit 100;*/
SELECT * FROM (
SELECT p.page_title, r.rev_timestamp as time
FROM page p
join revision r
on p.page_id=r.rev_page
WHERE p.page_namespace=0
and p.page_is_redirect=0
and r.rev_parent_id=0
UNION ALL
se... | {"runningtime": "0.18", "resultsets": [{"rowcount": 2, "headers": ["page_title"]}]} | null |
مقالات أنشئت في فترة زمنية محددة | null | SELECT P1.page_title, R.rev_actor, R.rev_timestamp
FROM arwiki_p.revision R
JOIN arwiki_p.page P1 ON R.rev_page = P1.page_id
WHERE R.rev_parent_id = 0
AND P1.page_namespace = 0
AND P1.page_is_redirect = 0
AND R.rev_timestamp>=20191117134400
AND R.rev_timestamp< 20191117134500
ORDER BY R.rev_timestamp ASC | {"connection_id": 39861521} | null |
عدد المقالات | null | USE arwiki_p;
SELECT COUNT(*) AS "عدد المقالات"
FROM revision r
join page p on p.page_id=r.rev_page
WHERE p.page_namespace=0
and p.page_is_redirect=0
and r.rev_parent_id=0
ORDER BY COUNT(*) DESC
LIMIT 1; | {"runningtime": "13874.08", "resultsets": [{"rowcount": 2007651, "headers": ["page_title", "pp_value"]}]} | null |
Latest 1000 deleted articles (arwiki) | null | use arwiki_p;
select log_title, log_timestamp
from logging
where log_type like "delete"
and log_action = "delete"
and log_namespace = 0
#AND R.rev_timestamp>=20191117134400
#AND R.rev_timestamp< 20191117134500
ORDER BY log_timestamp DESC
limit 1000; | {"connection_id": 3629211} | null |
Article titles ending with a period except BCE years in ruwiki | null | USE ruwiki_p;
SELECT page_title
FROM page
WHERE page_namespace = 0
AND page_is_redirect = 0
AND page_title REGEXP "[а-яА-Я]\\.(\\_\\(.+\\))?$"
AND NOT page_title LIKE "%н._э." | {"resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wpage", "commonscat"], "rowcount": 11}], "runningtime": "214.54"} | null |
تعديلات ذات ملخص تعديل محدد | null | use arwiki_p;
select concat("[[",page_title,"]]"), concat("[[:en:",(select ll_title from langlinks
where ll_from = rev_page
and ll_lang = "en"
... | {"resultsets": [{"headers": ["@wiki"], "rowcount": 1}], "runningtime": "0.11"} | null |
قوالب تصفح دوريات رياضية | null | use enwiki_p;
select distinct p2.page_title, count(pl_title)
from pagelinks
inner join page p1 on p1.page_title = pl_title
inner join page p2 on p2.page_id = pl_from
inner join langlinks on ll_from = p1.page_id
where pl_from_namespace = 10
and p1.page_namespace = 0
and p2.page_title like "%League%"
and p... | {"resultsets": [{"headers": ["@wiki"], "rowcount": 1}], "runningtime": "0.11"} | null |
تعديلات ذات ملخص تعديل محدد | null | use arwiki_p;
select concat("[[",page_title,"]]"), concat("[[:en:",(select ll_title from langlinks
where ll_from = rev_page
and ll_lang = "en"
... | {"resultsets": [{"headers": ["@w"], "rowcount": 1}], "runningtime": "0.16"} | null |
Voci it.wiki senza interwiki con titolo uguale in es.wiki (no disambigue) | null | USE itwiki_p;
SELECT DISTINCT
it_page.page_title itwiki_title,
es_page.page_title eswiki_title
FROM
eswiki_p.page es_page
INNER JOIN wikidatawiki_p.wb_items_per_site wdata
ON wdata.ips_site_id = 'eswiki'
AND wdata.ips_site_page = REPLACE(es_page.page_title, '_', ' ')
INNER JOIN page it_page
WHERE it_page... | {"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 31}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 7}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 12}], "runningtime": "1.06"} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"runningtime": "66.92", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 11, "headers": ["wpage", "commonscat"]}]} | null |
fawiki edits by date and user type (D4) | null | USE fawiki_p;
SELECT
LEFT(rev_timestamp, 8) AS dt,
CASE
WHEN actor_user IS NULL THEN 1
ELSE 0
END AS anon,
COUNT(*) AS cnt
FROM revision
LEFT JOIN actor
ON rev_actor = actor_id
LEFT JOIN user_groups
ON actor_user = ug_user
AND ug_group = 'bot'
WHERE
rev_timestamp > '20191001000000'
AND ug_user... | {"runningtime": "0.22", "resultsets": [{"rowcount": 9, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 1, "headers": ["term_row_id", "term_entity_id", "term_full_entity_id", "term_entity_type", "term_language", "term_type", "term_text", "term_search_key", "term_weight"]}]} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wikipage", "commonspage"], "rowcount": 402}], "runningtime": "111.40"} | null |
List of titles that redirect to the first page in a split list | null | SELECT page_title AS from_title, rd_title AS to_title
FROM redirect
JOIN page ON rd_from=page_id
WHERE rd_title LIKE 'List_of%A–%' AND rd_namespace=0 AND rd_fragment=''
AND page_title NOT LIKE '%A–%' AND page_title NOT LIKE '%A-%' AND page_title LIKE 'List_of%'
GROUP BY to_title | {"resultsets": [{"headers": ["ug_times", "ug_user", "ug_group"], "rowcount": 100}], "runningtime": "0.56"} | null |
Total count of AfC reviews | Last run 24 Feb '19
This query counts the number of AfC submissions reviewed during the past 30 days by reading the edit comment associated with each review. Includes drafts in the "Draft" namespace and "User" space.
You can re-run this query and get new data at any time by following these steps:
1. log into quarry.w... | use enwiki_p;
select count(rc_id) as edits, user_name
from recentchanges_userindex
left join user on rc_user = user_id
inner join comment c on rc_comment_id = c.comment_id
where (rc_namespace = 118 or rc_namespace = 2) and (comment_text like "Declining submission:%" or comment_text like "%Publishing accepted%")
gr... | {"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 100}], "runningtime": "1.76"} | null |
Total count of AfC reviews | Last run 24 Feb '19
This query counts the number of AfC submissions reviewed during the past 30 days by reading the edit comment associated with each review. Includes drafts in the "Draft" namespace and "User" space.
You can re-run this query and get new data at any time by following these steps:
1. log into quarry.w... | use enwiki_p;
select count(rc_id) as edits, user_name
from recentchanges_userindex
left join user on rc_user = user_id
inner join comment c on rc_comment_id = c.comment_id
where (rc_namespace = 118 or rc_namespace = 2) and (comment_text like "Declining submission:%" or comment_text like "%Publishing accepted%")
gr... | {"runningtime": "1.26", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 100}]} | null |
Total count of AfC reviews | Last run 24 Feb '19
This query counts the number of AfC submissions reviewed during the past 30 days by reading the edit comment associated with each review. Includes drafts in the "Draft" namespace and "User" space.
You can re-run this query and get new data at any time by following these steps:
1. log into quarry.w... | use enwiki_p;
select count(rc_id) as edits, user_name
from recentchanges_userindex
left join user on rc_user = user_id
inner join comment c on rc_comment_id = c.comment_id
where (rc_namespace = 118 or rc_namespace = 2) and (comment_text like "Declining submission:%" or comment_text like "%Publishing accepted%")
gr... | {"runningtime": "1.52", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 100}]} | null |
Neue Abschnitte auf WP:VM nach User | null | USE dewiki_p;
SELECT actor_name, COUNT(actor_name)
FROM revision RV
LEFT JOIN comment CM ON (RV.rev_comment_id=CM.comment_id)
LEFT JOIN actor AC ON (RV.rev_actor=AC.actor_name)
WHERE rev_page = 7165976 -- WP:VM
AND comment_text LIKE "Neuer Abschnitt%"
GROUP BY actor_name | {"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 100}], "runningtime": "1.38"} | null |
Neue Abschnitte auf WP:VM nach USER | null | USE dewiki_p;
SELECT actor_name, COUNT(rev_actor) as total
FROM revision RV
LEFT JOIN comment_revision CM ON (RV.rev_comment_id=CM.comment_id)
LEFT JOIN actor AC ON (RV.rev_actor=AC.actor_id)
WHERE rev_page = 7165976 -- WP:VM
AND comment_text LIKE "Neuer Abschnitt%"
GROUP BY rev_actor
ORDER BY total DESC | {"runningtime": "325.81", "resultsets": [{"headers": ["File name", "Date", "Size", "Uploader's name"], "rowcount": 1}]} | null |
Neuer Content nach Benutzer auf WP:VM | null | USE dewiki_p;
SELECT actor_name, SUM(rev_len) as total
FROM revision RV
LEFT JOIN actor AC ON (RV.rev_actor=AC.actor_id)
WHERE rev_page = 7165976 -- WP:VM
GROUP BY rev_actor
ORDER BY total DESC | {"runningtime": "0.23", "resultsets": [{"headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 10}]} | null |
Edits auf WP:VM nach User | null | USE dewiki_p;
SELECT actor_name, count(rev_actor) as total
FROM revision RV
LEFT JOIN actor AC ON (RV.rev_actor=AC.actor_id)
WHERE rev_page = 7165976 -- WP:VM
GROUP BY rev_actor
order by total desc | {"resultsets": [{"headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 1}], "runningtime": "0.11"} | null |
Missing Commons creator templates on Wikidata | Get a list of Qid's and name of Commons creator templates based on https://commons.wikimedia.org/wiki/Category:Creator_templates_with_Wikidata_link:_item_missing_P1472 so we can add it using quickstatements. | null | {"runningtime": "0.13", "resultsets": [{"headers": ["fr_page_id", "fr_rev_id", "fr_user", "fr_timestamp", "fr_comment", "fr_quality", "fr_tags", "fr_text", "fr_flags", "fr_img_name", "fr_img_timestamp", "fr_img_sha1", "fr_rev_timestamp"], "rowcount": 10}]} | null |
Kategorie Gestorben | null | USE dewiki_p;
SELECT page_title, GROUP_CONCAT(cl_to SEPARATOR ', ')
FROM page, categorylinks
WHERE page_namespace = 14
AND page_title LIKE "Gestorben_im_%_oder_%_Jahrhundert%"
AND cl_from = page_id
GROUP BY page_title
ORDER by page_title | {"connection_id": 5123126} | null |
HK anon | null | USE commonswiki_p;
SELECT DISTINCT actor_name
FROM actor_image
JOIN image ON actor_id = img_actor
WHERE
img_major_mime = 'image'
AND img_metadata LIKE "%Q08QLJC04AA%"
GROUP BY actor_name
ORDER BY actor_name; | {"runningtime": "94.04", "resultsets": [{"headers": ["CONCAT(\"Q\",ips_item_id)", "CONCAT(\"Lar\")", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 1266}]} | null |
مستخدمون غير نشطين | null | use arwiki_p;
select concat("{{مس|",user_name,"}}") as "اسم المستخدم", user_editcount as "عدد التعديلات", ug_group as "الصلاحية"
from user
inner join user_groups
on ug_user = user_id
where (ug_group like "editor" or ug_group like "autoreview" or ug_group like "bot" or ug_group like "uploader")
and user_id not in (sel... | {"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_actor", "log_namespace", "log_title", "log_page", "actor_id", "actor_user", "actor_name", "rev_id", "rev_parent_id"], "rowcount": 5}], "runningtime": "3.97"} | null |
HK anon 3 | null | USE commonswiki_p;
SELECT actor_name,
TIMESTAMPDIFF( day, MIN(img_timestamp), MAX(img_timestamp) ) AS Active
FROM actor_image
JOIN image ON actor_id = img_actor
WHERE
img_major_mime = 'image'
AND img_description_id = 44
AND img_metadata LIKE "%I13LSLJ00QM%"
GROUP BY actor_name
HAVING Active < 10
ORDER BY actor_name
; | {"runningtime": "0.20", "resultsets": [{"headers": ["page_title"], "rowcount": 13}]} | null |
Users with patrol right, Commons | null | use commonswiki_p;
select distinct user_name as Username, ug_group as "User group"
from user
join user_groups
on ug_user = user_id
where ug_group in ("patroller", "image-reviewer", "sysop"); | {"resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wikipage"], "rowcount": 12}], "runningtime": "1.07"} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.