title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
nlwiki Potential species with " x " | https://nl.wikipedia.org/wiki/Wikipedia:Biologiecafé/Archief_3#×_of_x? | SELECT page_title
FROM page
WHERE
page_is_redirect=0 AND
page_namespace=0 AND
page_title REGEXP '^\\p{Lu}[\\p{Ll}_]+_x_(\\p{Lu}\\p{Ll}+_)?([\\p{Ll}_]+)' | {"resultsets": [{"headers": ["page_title"], "rowcount": 425}], "runningtime": "0.66"} | nlwiki |
Links from Nekrolog to Disambiguation pages , en | null | SELECT pl_from, pl_title
FROM page , categorylinks as cl1, categorylinks as cl2, pagelinks
Where cl2.cl_to IN ('Human_name_disambiguation_pages','Disambiguation_pages')
AND cl2.cl_from= page_id
AND pl_title=page_title
AND pl_from_namespace = 0
AND pl_namespace = 0
AND cl1.cl_to LIKE "Death_in_____"
... | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 1}], "runningtime": "0.06"} | enwiki_p |
Deleted edits of a user | null | SET @ME = (SELECT `actor_id` FROM `actor` WHERE `actor_name` = "Chlod");
(SELECT 'deleted' AS `key`, COUNT(ar_id) AS val FROM `archive`
WHERE ar_actor = @ME
) UNION (
SELECT 'edited-deleted' AS `key`, COUNT(DISTINCT ar_page_id) AS `val` FROM `archive`
WHERE ar_actor = @ME
) UNION (
SELECT 'created-deleted' AS ... | {"resultsets": [{"headers": ["Actor", "Edits", "Uploaded images", "Images KiB", "Images MiB", "Images GiB", "Images TiB"], "rowcount": 3}], "runningtime": "25.00"} | enwiki_p |
pages by name | query pages by name
| select p.page_id from page p
where p.page_title like 'Correct_typo%' | {"resultsets": [{"headers": ["page_title", "comment_text"], "rowcount": 20}], "runningtime": "5.01"} | enwikibooks_p |
CTE | null | SET @rev = (SELECT MIN(rev_id)
FROM revision
WHERE rev_timestamp > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -2 YEAR), "%Y%m%d%H%i%s"));
SELECT
*
FROM `revision`
WHERE rev_id >= @rev AND
(`rev_comment_id` = 368620488
OR `rev_comment_id` = 368649339
OR `rev_comment_id` = 368649... | {"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 3052}], "runningtime": "23.08"} | enwiki_p |
Consultas varias de SeroBOT desde el inicio de los tiempos | Consultas varias de estadísticas curiosas de SeroBOT | use eswiki_p;
-- select * from actor where actor_name = 'SeroBOT'; -- 21
select rev_page, page_title, count(1) counted
from revision_userindex
inner join page on rev_page = page_id
where rev_actor = 21
and rev_timestamp between '20000101000000' and '20221231235959'
and page_namespace = 0
group by 1, 2
-- having ... | {"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}], "runningtime": "0.08"} | eswiki_p |
WPCleaner large edits | Lists revisions in mainspace with the WPCleaner tag (id 47) which are 10,000+ bytes larger than the previous version. | SELECT page_title, Rn.rev_timestamp, Rn.rev_id, actor_name, Rn.rev_len AS new_len, Ro.rev_len AS old_len
FROM revision Rn
JOIN change_tag ON ct_rev_id = Rn.rev_id AND ct_tag_id = 47
JOIN revision Ro ON Ro.rev_id = Rn.rev_parent_id AND Ro.rev_len > 0 AND Rn.rev_len > Ro.rev_len + 10000
JOIN page ON page_id = Rn.rev_page... | {"resultsets": [{"headers": ["basename", "c"], "rowcount": 4817}], "runningtime": "6.64"} | enwiki_p |
Gothic lemma edits | null | use enwiktionary_p;
set @language = 'Gothic';
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.05"} | enwiktionary_p |
Creators of Gothic lemmas | Gothic lemma creation count. | select actor_name, count(*) as `articles created` from categorylinks
join revision on rev_page = cl_from
join actor on actor_id = rev_actor and rev_parent_id = 0
where cl_to in ('Gothic_lemmas')
and cl_type = 'page'
group by actor_id
order by `articles created` desc; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | enwiktionary_p |
Hivatkozások | null | select * from pagelinks
where pl_title like 'Norwa%'; | {"resultsets": [{"headers": ["page_name", "date", "outcome"], "rowcount": 29}], "runningtime": "0.12"} | huwiki_p |
電子遊戲專題認證條目 (zh) | 用於更新[[w:zh:WikiProject:电子游戏/认证条目]]。列表格式已處理好,可直接下載csv檔;但漢字排序是個謎…… | # FA
SELECT
CONCAT('* {{icon|FA}} [[', REPLACE(page_title, '_', ' '), ']]') AS 典範條目(FA)
FROM
page
JOIN categorylinks AS a ON a.cl_from = page_id
JOIN categorylinks AS b ON b.cl_from = page_id
WHERE
a.cl_to = "电子游戏条目"
AND b.cl_to = "典范条目讨论"
AND page_namespace = 1
ORDER BY
page_title;
# FFA
SELECT
CONCAT('* ... | {"resultsets": [], "runningtime": "0.03"} | zhwiki_p |
Redlinks starting with a prefix | null | SELECT DISTINCT pl_title
FROM pagelinks
WHERE pl_title LIKE "Santokh_Singh%"
AND pl_namespace = 0
AND pl_from_namespace = 0
AND pl_title NOT IN (SELECT page_title FROM page WHERE page.page_namespace = 0) | {"resultsets": [{"headers": ["\u0639\u0646\u0648\u0627\u0646", "\u062d\u062c\u0645 (\u0628\u0627\u06cc\u062a)", "\u0622\u062e\u0631\u06cc\u0646 \u0648\u06cc\u0631\u0627\u06cc\u0634"], "rowcount": 469}], "runningtime": "0.42"} | enwiki_p |
Interlanguage links in enwiki files | Purpose: find files copied from other wikis to enwiki, in hopes that it will reveal cases where the file needs to be moved to Commons or already has been | SELECT DISTINCT CONCAT("File:", page.page_title)
FROM page
INNER JOIN categorylinks ON page.page_id = categorylinks.cl_from
INNER JOIN iwlinks ON page.page_id = iwlinks.iwl_from
WHERE page.page_namespace = 6
AND categorylinks.cl_to = "Copy_to_Wikimedia_Commons_(bot-assessed)"
AND iwlinks.iwl_prefix NOT IN ("commons", "... | {"connection_id": 47988016} | enwiki_p |
zhwp templatelinks | null | SELECT page_title
FROM templatelinks
LEFT JOIN page ON tl_from = page_id
WHERE tl_target_id = (SELECT lt_id FROM linktarget WHERE lt_namespace = 10 AND lt_title = 'Medical') AND page_namespace = 0 | {"resultsets": [{"headers": ["actor_name", "count"], "rowcount": 239}], "runningtime": "223.91"} | zhwiki_p |
Most used external links with .gouv.fr on frwiki | null | USE frwiki_p;
SELECT
COUNT(*),
SUBSTRING_INDEX(SUBSTRING_INDEX(el_to, '/', 3), '.', -2) AS sito
FROM externallinks, page
WHERE el_from = page_id
AND page_namespace = 0
AND SUBSTRING_INDEX(SUBSTRING_INDEX(el_to, '/', 3), '.', -1) = 'gouv.fr'
GROUP BY sito
HAVING COUNT(*) > 10
ORDER BY 1 DESC; | {"resultsets": [{"headers": ["@actor1", "@all_edits", "@article_edits", "@talk_page_edits", "@user_edits", "@user_talk_edits", "@wikipedia_edits", "@wikipedia_talk_edits", "@mediawiki_edits", "@mediawiki_talk_edits", "@template_edits", "@template_talk_edits", "@category_edits", "@category_talk_edits", "@help_edits", "@... | frwiki_p |
Citation bot edits with addition of URL | https://en.wikipedia.org/wiki/User:Citation_bot | select count(*), substr(rev_timestamp, 1, 6) AS month
from revision
join comment_revision
on comment_id = rev_comment_id
and comment_text LIKE "%Add:%url%"
and rev_actor = 307
and rev_timestamp > "20200900"
group by month; | {"resultsets": [{"headers": ["categoria"], "rowcount": 112}], "runningtime": "0.81"} | enwiki_p |
Links to Zenodo from English Wikipedia articles | null | USE enwiki_p;
SELECT el_to, CONCAT('https://en.wikipedia.org/?curid=', el_from) AS article
FROM externallinks
JOIN page
ON page_id = el_from
AND page_namespace = 0
AND el_index LIKE 'https://org.zenodo%'; | {"resultsets": [{"headers": ["categoria"], "rowcount": 111}], "runningtime": "0.79"} | enwiki_p |
Citation bot, monthly number of edits | https://en.wikipedia.org/wiki/User:Citation_bot | SELECT count(*), substr(rev_timestamp, 1, 6) AS month
FROM revision_userindex
WHERE rev_actor = 307
AND rev_timestamp > "20180100"
GROUP BY month; | {"resultsets": [{"headers": ["Page", "Re-created at"], "rowcount": 330}], "runningtime": "19.08"} | enwiki_p |
Voci senza interprogetto collegate a Wikipedia su Wikiquote | null | USE itwikiquote_p;
SELECT CONCAT("# [[:Categoria:", page_title, "]]")
FROM page
WHERE page_namespace = 14
AND page_is_redirect = 1
ORDER BY page_title; | {"resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 20}], "runningtime": "0.06"} | itwikiquote_p |
Reply Tool usage/user | null | select actor_user, actor_name, count(*) as total
from (
select en.ct_id, ct.ct_rev_id, actor_user, actor_name
from change_tag ct
inner join revision_actor_temp rat
on en.ct_rev_id = rat.revactor_rev
inner join actor act
on rat.revactor_actor = act.actor_id
where ct_tag_id = 566
and substring(revactor_timestamp,1,8) >= ... | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 524}], "runningtime": "1.54"} | en_wiki |
nlwiki Unsourced statements by year | null | SELECT RIGHT(cl_to, 4) AS year, COUNT(*) AS `count`
FROM categorylinks
WHERE cl_to REGEXP '^Wikipedia:Artikel_mist_referentie_sinds_'
GROUP BY year
UNION
SELECT 'total', COUNT(*) AS `count`
FROM categorylinks
WHERE cl_to REGEXP '^Wikipedia:Artikel_mist_referentie_sinds_' | {"resultsets": [{"headers": ["month_year", "user", "No_of_articles", "Bytes"], "rowcount": 109}], "runningtime": "0.16"} | nlwiki |
Global usage of We Are Beautiful files | null | SELECT `gil_to`, `gil_wiki`, CONCAT(`gil_page_namespace`, IF(`gil_page_namespace`, ':', ''), `gil_page_title`) AS `title`
FROM `globalimagelinks`
WHERE `gil_to` LIKE 'We_Are_Beautiful%'
LIMIT 10; | {"resultsets": [{"headers": ["page_title", "pp_value"], "rowcount": 2291410}], "runningtime": "1891.54"} | commonswiki_p |
Most frequent domains (frwiki) | This query compiles a list of 5 000 external links (from the main namespace of the French Wikipedia) grouped by website. | USE frwiki_p;
SELECT url, COUNT(*)
FROM (
SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to) + 3), '/', 1) url
FROM externallinks
WHERE el_from IN (
SELECT page_id
FROM page
WHERE page_namespace = 0
)
) tmp_table
#where url LIKE "quarry.wmflabs.org%"
GROUP BY url
HAVING COUNT(*) > 1000
ORD... | {"resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 107}], "runningtime": "0.16"} | frwiki_p |
All orphan non-free files on ja.wiki | null | #USE jawiki_p;
SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p
INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from
LEFT JOIN imagelinks i ON p.page_title = i.il_to AND (i.il_from_namespace = 0)
#LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c2... | {"resultsets": [{"headers": ["Category", "Pages", "Articles"], "rowcount": 36}], "runningtime": "1.39"} | jawiki_p |
All modules | null | select concat("Module:",page_title),page_len from page
join revision on rev_page=page_id and rev_parent_id=0
where page_namespace=828
and page_title not like "Adjacent_stations/%"
and page_title not like "Location_map/data/%"
and page_title not like "User:%"
and page_title not like "Sandbox/%"
and page_title not like... | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 28}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 20}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 25}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 34}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco... | enwiki |
Files on vi.wiki with old versions | null | #USE viwiki_p;
SELECT CONCAT("# [[:File:", oi_name, "]]")
FROM oldimage
INNER JOIN page p ON p.page_title = oi_name AND p.page_namespace = 6
INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = "Hình_không_tự_do" #Non-free files
#INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = "सभी_मुक्त_... | {"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 13}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 32}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 21}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco... | viwiki_p |
G8able | null | set @namespace = 828;
set @slashnum = 3;
select * from page where page_namespace = @namespace and not exists (select 1 from page a where a.page_namespace = @namespace and a.page_title = SUBSTRING_INDEX(page.page_title,"/",@slashnum))
-- These should be cleaned up someday
and (@namespace != 10 or
(page_title not ... | {"resultsets": [{"headers": ["rev_timestamp"], "rowcount": 0}], "runningtime": "0.04"} | enwikiquote |
nlwiki User pages without a user account | (anonymous users and redirects excluded)
Note that the table `user` doesn't seem to contain entries for users with zero visible edits (and neither does `actor`). | SELECT page_namespace AS ns, REPLACE(page_title,'_',' ') AS page_title, GROUP_CONCAT(REPLACE(cl_to,'_',' ') SEPARATOR ' | ') AS cl_to
FROM `page` LEFT JOIN `categorylinks` ON page_id=cl_from
WHERE
page_is_redirect=0 AND
page_namespace IN (2, 3) AND
page_title NOT REGEXP '([1-9][0-9\.]+[0-9]|[1-9A-F][0-9A-F:]+[0-... | {"resultsets": [{"headers": ["Page Title", "Size (bytes)"], "rowcount": 0}], "runningtime": "0.05"} | nlwiki |
Malayalam Wikidata stats temp | null | use wikidatawiki_p;
SELECT
wby_name as term_type,
term_language,
terms
FROM (
SELECT
wbtl_type_id as term_type_id,
wbxl_language as term_language,
count(*) as terms
FROM wbt_item_terms
INNER JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id
INNER JOIN wbt_text_in_lang ON wbtl_text... | {"resultsets": [{"headers": ["page_title", "page_len", "lt_title"], "rowcount": 1000}], "runningtime": "1.16"} | wikidatawiki |
Talk-to-mainspace redirects | Does not include Talk subpage-to-mainspace redirects. Find those at https://quarry.wmflabs.org/query/50016 | SELECT concat( "[https://en.wikipedia.org/w/index.php?title=Talk:{{urlencode:",
p.page_title, "}}&redirect=no Talk:", p.page_title, "] redirects to [[:", r.rd_title, "]]" )
AS "Talk-to-mainspace redirects"
FROM redirect r
INNER JOIN page p ON p.page_id = r.rd_from
WHERE p.page_namespace = 1
AND r.rd_nam... | {"resultsets": [{"headers": ["Page"], "rowcount": 61066}], "runningtime": "127.39"} | enwiki |
sock name patterns | null | SELECT CONCAT('* [[m:Special:CentralAuth/', REPLACE (user_name,'_',' '), ']]'), CONCAT(SUBSTR(user_registration,1,4),'-',SUBSTR(user_registration,5,2),'-',SUBSTR(user_registration,7,2),' ',SUBSTR(user_registration,9,2),':',SUBSTR(user_registration,11,2),':',SUBSTR(user_registration,13,2)) AS d
FROM .user WHERE
#(user_n... | {"resultsets": [{"headers": ["c", "mies", "nainen"], "rowcount": 1}], "runningtime": "0.27"} | loginwiki_p |
nlwiki /doc and .css orphans | null | USE nlwiki_p;
SELECT page_namespace, page_title
FROM page d
WHERE
page_namespace IN (10, 828) AND ((
page_title REGEXP '/doc$' AND
NOT EXISTS (
SELECT *
FROM page m
WHERE m.page_namespace=d.page_namespace AND m.page_title=REGEXP_REPLACE(d.page_title, '/doc$', ''))
) OR (
page_title ... | {"resultsets": [{"headers": ["page_title", "comment_text"], "rowcount": 12}], "runningtime": "0.07"} | nlwiki |
All user categories | null | select concat("Category:",page_title),page_len,cat_pages,cat_subcats from page
join revision on rev_page=page_id and rev_parent_id=0
join category on cat_title=page_title
where page_namespace=14
and page_title like "%Wikipedian%"
and not exists (select 1 from categorylinks where cl_from=page_id and cl_to="Wikipedia_s... | {"resultsets": [{"headers": ["page_title", "page_id", "talk_id"], "rowcount": 0}], "runningtime": "13.96"} | enwiki |
AfC accepts in 6 months (WP:AfC/recent) | null | select actor_name as editor, COUNT(rev_actor) as accepts,
(select COUNT(rc_id) from recentchanges_userindex where rc_actor = actor_id ) as recent_edits,
ipb_expiry As 'Blocked'
from revision_userindex
left join actor on rev_actor = actor_id
left join ipblocks on actor_user = ipb_user
where (rev_page = 210... | {"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 3}], "runningtime": "0.55"} | enwiki_p |
nlwiki Contaminated categories | Categories contaminated with pages in namespaces that don't belong. | SELECT
cl_to,
COUNT(DISTINCT page_namespace) AS `ns_count`,
GROUP_CONCAT(DISTINCT page_namespace SEPARATOR ' | ') AS `namespaces`
FROM
categorylinks INNER JOIN page ON cl_from=page_id
WHERE
cl_to NOT REGEXP '^(Gebruiker|Portaal|Wikipedia):' AND
page_namespace NOT IN (14, 100) AND
(page_namespace... | {"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 0}], "runningtime": "0.05"} | nlwiki |
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": "1.57", "resultsets": [{"rowcount": 1, "headers": ["GROUP_CONCAT(DISTINCT rev_id ORDER BY rev_id SEPARATOR '|')"]}]} | null |
1ST | null | USE metawiki_p;
SELECT COUNT(*)
FROM revision_userindex
WHERE
rev_actor = (SELECT actor_id
FROM actor
WHERE actor_name = "EpochFail") AND
rev_timestamp >= "20140101"; | {"connection_id": 577430625} | null |
Protected pages by talk page category | Pages that are currently protected and which have a talk page in [[Category:All WikiProject Medicine articles]].
This will miss the (likely minimal) corner case where a protected page has a talk page that redirects to a talk page in that category.
For [[WP:RAQ#Medicine pages by protection level]] circa 23 November 20... | SELECT CONCAT('[[', CASE a.page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:'
WHEN 4 THEN '... | {"runningtime": "85.64", "resultsets": [{"rowcount": 1, "headers": ["pl_from", "pl_title"]}]} | null |
Overlong Stub categories query (6 pages or 5 pages) | null | select cat_title Category, ceil(cat_pages/200) Pages, cat_pages Article
from category
where cat_title like '%stubs'
-- and ceil(cat_pages/200) = 3
and ceil(cat_pages/200) > 3
order by 2 desc | {"connection_id": 578419471} | null |
Number of pages with ArbCom Ds/talk_notice by case | null | USE enwiki_p;
SELECT REGEXP_REPLACE(pl_title, "Arbitration/Requests/Case/|Requests_for_arbitration/", "") as `case`, COUNT(*)
FROM page
JOIN templatelinks ON tl_from = page_id
JOIN pagelinks ON pl_from = page_id
WHERE
tl_title = "Ds/talk_notice"
AND tl_namespace = 10
AND page_namespace = 1
AND pl_namespace = 4
AN... | {"runningtime": "2.70", "resultsets": [{"rowcount": 63, "headers": ["actor_name", "count(*)"]}]} | null |
EXIF in User:Túrelio deletion logs on Commons | null | USE commonswiki_p;
SELECT log_title
FROM logging
LEFT JOIN actor ON log_actor = actor_id
LEFT JOIN comment ON log_comment_id = comment_id
WHERE actor_name = 'Túrelio'
AND log_type = 'delete'
AND log_action = 'restore'
AND log_timestamp > 20190101000000
AND comment_text LIKE '%exif%'; | {"runningtime": "86.78", "resultsets": [{"rowcount": 37, "headers": ["page_title"]}]} | null |
مقالات_أنشئت_ضمن_مسابقة_الأحساء_واحة_العطاء | null | USE arwiki_p;
SELECT
article.page_title as "المقالة", MIN(revision.rev_id) as "النسخة", actor.actor_name as "المستخدم", revision.rev_actor as "معرف المستخدم",
revision.rev_timestamp as "تاريخ الإنشاء", article.page_len as "حجم المقالة"
FROM revision
inner join actor
on actor_id = rev_actor
INNER JOIN page article ... | {"runningtime": "5.32", "resultsets": [{"rowcount": 37, "headers": ["page_title"]}]} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM actor INNER JOIN revision
ON revision.rev_actor = actor.actor_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev... | {"runningtime": "41.99", "resultsets": [{"rowcount": 37, "headers": ["page_title"]}]} | null |
Nombre d’annexes de conjugaison dans l’espace Annexe | null | USE frwiktionary_p;
SELECT
(
SELECT COUNT(page_title)
FROM page
WHERE page_title LIKE "Conjugaison%"
AND page_namespace = 100
) Annexe
,
(
SELECT COUNT(page_title)
FROM page
WHERE page_namespace = 116
) Conjugaison | {"runningtime": "100.80", "resultsets": [{"rowcount": 89, "headers": ["reviews", "actor_name", "actor_id", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | null |
enwiki mobile edits November 2020 | null | use enwiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as "day",
count(rev_id) as "mobile revisions"
from
revision,
change_tag
where
rev_timestamp like '202011%' and
ct_tag_id = @mobile_edit_tag and... | {"connection_id": 586461138} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM actor INNER JOIN revision
ON revision.rev_actor = actor.actor_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev... | {"connection_id": 25442098} | null |
Fikwiki reverts 2020 | null | SET @timestamp=20200000000000;
use fiwiki_p;
select
actor_name,
pages,
edits,
(undo_c+rollback_c+flaggedrevs_undo) as reverts,
-- undo_c,
-- rollback_c,
-- flaggedrevs_undo,
flaggedrevs_review,
blocks,
abusefilteredits
from (
select
page_namespace,
count(distinct(re... | {"runningtime": "0.09", "resultsets": [{"rowcount": 5, "headers": ["af_id", "af_pattern", "af_user", "af_user_text", "af_timestamp", "af_enabled", "af_comments", "af_public_comments", "af_hidden", "af_hit_count", "af_throttled", "af_deleted", "af_actions", "af_global", "af_group"]}]} | null |
hewiki mobile edits November 2020 | null | use hewiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as "day",
count(rev_id) as "mobile revisions"
from
revision,
change_tag
where
rev_timestamp like '202011%' and
ct_tag_id = @mobile_edit_tag and... | {"runningtime": "0.11", "resultsets": [{"rowcount": 5, "headers": ["af_id", "af_pattern", "af_user", "af_user_text", "af_timestamp", "af_enabled", "af_comments", "af_public_comments", "af_hidden", "af_hit_count", "af_throttled", "af_deleted", "af_actions", "af_global", "af_group", "afa_filter", "afa_consequence", "afa_... | null |
hewiki revisions and mobile revisions per day November 2020 | null | use hewiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as day,
count(rev_id) as revisions
from
revision -- ,
-- change_tag
where
rev_timestamp like "202011%"
group by
day
order by
day asc; | {"connection_id": 26155044} | null |
hewiki edits November 2020 (mobile/all) | Based on queries #50040 and #50065. | use hewiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as "day",
sum(ct_rev_id is not null) as "mobile revisions",
count(rev_id) as "revisions"
from
revision
left join
change_tag
on
ct_rev_id = ... | {"connection_id": 26155523} | null |
Fikwiki reverts 2018 | null | SET @timestamp=20180000000000;
use fiwiki_p;
select
actor_name,
pages,
edits,
(undo_c+rollback_c+flaggedrevs_undo) as reverts,
-- undo_c,
-- rollback_c,
-- flaggedrevs_undo,
flaggedrevs_review,
blocks,
abusefilteredits
from (
select
page_namespace,
count(distinct(re... | {"runningtime": "802.58", "resultsets": [{"rowcount": 0, "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"]}]} | null |
Find Username of Female Users (zhwiki) | null | USE zhwiki_p;
SELECT user_name, user_editcount
FROM user
RIGHT JOIN (SELECT up_user
FROM user_properties
WHERE up_property LIKE 'gender'
AND up_value LIKE 'female') as female ON female.up_user=user_id
ORDER BY user_editcount DESC | {"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]} | null |
Find Username of male Users (zhwiki) | null | USE zhwiki_p;
SELECT user_name, user_editcount
FROM user
RIGHT JOIN (SELECT up_user
FROM user_properties
WHERE up_property LIKE 'gender'
AND up_value LIKE 'male') as male ON male.up_user=user_id
ORDER BY user_editcount DESC | {"runningtime": "0.19", "resultsets": [{"rowcount": 10, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]} | null |
hewiki edits November 2020 (mobile/all) | Based on queries #50040 and #50065. | use hewiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as day,
sum(ct_rev_id is not null) as mobile_revisions,
count(rev_id) as revisions,
concat(
if(
count(rev_id) = 0,
0,
format(... | {"runningtime": "0.11", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"]}]} | null |
hiwiki edits November 2020 (mobile/all) | Based on queries #50040 and #50065. | use hiwiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as day,
sum(ct_rev_id is not null) as mobile_revisions,
count(rev_id) as revisions,
concat(
if(
count(rev_id) = 0,
0,
format(... | {"runningtime": "0.10", "resultsets": [{"rowcount": 5, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"]}]} | null |
itwiki edits November 2020 (mobile/all) | Based on queries #50040 and #50065. | use itwiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as day,
sum(ct_rev_id is not null) as mobile_revisions,
count(rev_id) as revisions,
concat(
if(
count(rev_id) = 0,
0,
format(... | {"runningtime": "1329.04", "resultsets": [{"rowcount": 1941, "headers": ["log_timestamp", "log_namespace", "log_title"]}]} | null |
ruwiki edits November 2020 (mobile/all) | Based on queries #50040 and #50065. | use ruwiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as day,
sum(ct_rev_id is not null) as mobile_revisions,
count(rev_id) as revisions,
concat(
if(
count(rev_id) = 0,
0,
format(... | {"runningtime": "22.54", "resultsets": [{"rowcount": 1, "headers": ["CURRENT_DATE"]}, {"rowcount": 4, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 5712, "headers": ["ips_row_id", "ips_item_id", "ips_site_id", "ips_site_page"]}]} | null |
itwiki edits November 2020 (mobile/all) | Based on queries #50040 and #50065. | use ptwiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as day,
sum(ct_rev_id is not null) as mobile_revisions,
count(rev_id) as revisions,
concat(
if(
count(rev_id) = 0,
0,
format(... | {"runningtime": "1158.21", "resultsets": [{"rowcount": 108, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]} | null |
AfC review counts, last month | null | use enwiki_p;
select count(rc_id) as reviews, actor_name,
SUM(comment_text like "%Publishing accepted%") as "accept",
SUM(comment_text like "Declining submission:%") as "decline",
SUM(comment_text like "Rejecting submission:%") as "reject",
concat(round(SUM(comment_text like "%Publishing accep... | {"runningtime": "0.09", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
Tewiki edits till November 2020 (mobile/all) | Based on queries #50040 and #50065. | use tewiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as "day",
sum(ct_rev_id is not null) as "mobile revisions",
count(rev_id) as "revisions"
from
revision
left join
change_tag
on
ct_rev_id = ... | {"runningtime": "0.10", "resultsets": [{"rowcount": 2, "headers": ["ipb_deleted", "groups", "user_name", "user_id", "user_editcount", "user_registration"]}]} | null |
enwiki: Translated pages with no language links | null | USE tewiki_p;
SET max_statement_time = 300;
SELECT DISTINCT mainpage.page_title
FROM templatelinks
INNER JOIN page talkpage ON talkpage.page_id = templatelinks.tl_from
INNER JOIN page mainpage ON talkpage.page_title = mainpage.page_title
WHERE templatelinks.tl_title = "%మూలాలు లేవు%"
AND templatelinks.tl_namespace = 1... | {"runningtime": "1.47", "resultsets": [{"rowcount": 500, "headers": ["ipb_deleted", "groups", "user_name", "user_id", "user_editcount", "user_registration"]}]} | null |
Hewiki fair use unused pictures 1 | null | use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists
(select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as
p2 where p2.page_namespace = 14 and p2.pag... | {"runningtime": "22.52", "resultsets": [{"rowcount": 1, "headers": ["page_title", "rev_timestamp"]}]} | null |
Daily edits in November, 2020 (enwiki) | Daily edits in November 2020 | SELECT LEFT(rev_timestamp, 8) AS day, COUNT(*)
FROM revision_userindex
WHERE rev_timestamp BETWEEN "20201101" AND "20201127" GROUP BY 1; | {"connection_id": 587803276} | null |
Russian Wikipedia articles using the most Wikidata entities | null | USE ruwiki_p;
SELECT page_title, count
FROM page
JOIN (
SELECT eu_page_id, COUNT(DISTINCT eu_entity_id) AS count
FROM wbc_entity_usage
GROUP BY eu_page_id
HAVING count >= 100
) AS pages ON eu_page_id = page_id
WHERE page_namespace = 0
ORDER BY count DESC
LIMIT 10; | {"runningtime": "0.73", "resultsets": [{"rowcount": 5, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 2, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
WPCleaner large edits | Lists revisions in mainspace with the WPCleaner tag (id 47) which are 2,000+ bytes larger than the previous version. | SELECT page_title, Rn.rev_timestamp, Rn.rev_id, actor_name, Rn.rev_len AS new_len, Ro.rev_len AS old_len
FROM revision Rn
JOIN change_tag ON ct_rev_id = Rn.rev_id AND ct_tag_id = 47
JOIN revision Ro ON Ro.rev_id = Rn.rev_parent_id AND Ro.rev_len > 0 AND Rn.rev_len > Ro.rev_len + 2000
JOIN page ON page_id = Rn.rev_page ... | {"runningtime": "0.07", "resultsets": [{"rowcount": 0, "headers": ["user_name"]}]} | 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": "0.06", "resultsets": [{"rowcount": 0, "headers": ["user_name"]}]} | null |
Show only relevant wikidata property changes on client wiki example | null | USE enwiki_p;
SELECT * FROM (
SELECT
rc_id as rc_id,
rc_title as page,
tl_title as template,
iwl_title as property,
comment_text
FROM
recentchanges,
templatelinks,
page,
iwlinks,
comment_recentchanges
WHERE
rc_namespace=0
AND rc_cur_id = tl_from
AND rc_source="... | {"runningtime": "1.81", "resultsets": [{"rowcount": 50, "headers": ["user_name"]}]} | null |
mswiki daily edits 2019 (mobile/all) | Based on query #50145. | use mswiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as day,
sum(ct_rev_id is not null) as mobile_revisions,
count(rev_id) as revisions,
concat(
if(
count(rev_id) = 0,
0,
format(... | {"runningtime": "0.10", "resultsets": [{"rowcount": 10, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]} | null |
Lionster draft | null | use hewiki_p;
select p.page_title from @category = "מדע וטכנולוגיה לפי מדינה";
limit 10; | {"runningtime": "0.67", "resultsets": [{"rowcount": 8, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 3, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Lionster draft | null | use hewiki_p;
select p.page_title from @category = "מדע וטכנולוגיה לפי מדינה";
limit 10; | {"runningtime": "30.94", "resultsets": [{"rowcount": 2482, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}]} | null |
Lionster draft | null | set @category = "ישראל";
use hewiki_p;
| {"runningtime": "23.12", "resultsets": [{"rowcount": 8, "headers": ["rc_logid", "rc_timestamp", "rc_namespace", "rc_title", "log_actor", "actor_name"]}]} | null |
ruwiki: Titles with Cyrillic and Latin characters | null | use ruwiki_p;
select
page_title,
page_namespace,
page_is_redirect
from page
where
page_namespace = 0 and
page_title regexp '[[:alpha:]]' and
(
instr(page_title, 'а') or instr(page_title, 'б') or instr(page_title, 'в') or instr(page_title, 'г') or instr(page_title, 'д') or instr(page_title, 'е') or ... | {"runningtime": "0.15", "resultsets": [{"rowcount": 4, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]} | 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": "0.12", "resultsets": [{"rowcount": 10, "headers": ["cat_title"]}]} | null |
ruwiki: Titles with Cyrillic and Latin characters | null | use ruwiki_p;
select
page_title,
page_namespace,
page_is_redirect
from page
where
page_namespace = 0 and
(
page_title regexp '[[:alpha:]][абвгдеёжзийклмнопрстуфъцчшщъыьэюяАБВГДЕёЖЗИЙКЛМНОПРСТУФЪЦЧШЩЪЫЬЭЮЯ]' or
page_title regexp '[абвгдеёжзийклмнопрстуфъцчшщъыьэюяАБВГДЕёЖЗИЙКЛМНОПРСТУФЪЦЧШЩЪЫЬ... | {"connection_id": 594480065} | 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... | {"connection_id": 594578290} | null |
تخصيص البذور حسب المقالات المشابهة حسب التصنيف | null | use arwiki_p;
select concat("#[[", p1.page_title,"]]--->",
group_concat(DISTINCT concat("<div class = \"stub-value ",cl4.cl_to,"\">", cl4.cl_to, "</div>") SEPARATOR ' '),"</br>")
from page p1
inner join categorylinks cl1
on cl1.cl_from = p1.page_id
inner join categorylinks cl2
on p1.page_id = cl2.cl_from
inn... | {"connection_id": 594985224} | null |
metawiki: Convenient Discussions script usage: total number of edits | null | use metawiki_p;
select *
from comment
join revision on comment_id = rev_comment_id
join actor on rev_actor = actor_id
where
rev_timestamp > "20200101000000" and
# having CD link in an edit summary
comment_text like "%JWBTH/CD%" | {"connection_id": 41958685} | 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": "67.93", "resultsets": [{"rowcount": 136, "headers": ["user", "img_count"]}]} | null |
jawb: タイトルに半角空白を含みリダイレクトであるページ | null | use jawikibooks_p;
select page_id, page_title, redirect.* from page, redirect where
page_namespace = 0
and page_is_redirect = 1
and rd_from = page_id
and page_title like '%!_%' escape '!'; | {"runningtime": "66.16", "resultsets": [{"rowcount": 136, "headers": ["user", "img_count"]}]} | null |
Reply Tool usage/user (hu.wiki) | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from huwiki_p.change_tag ct
inner join huwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join huwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join huwiki_p.change_tag_def
on ct_tag_i... | {"runningtime": "3.14", "resultsets": [{"rowcount": 6, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 3, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Article creations by user | null | use knwiki_p;
SET STATEMENT max_statement_time = 60 FOR
SELECT actor_name, page_title, log_timestamp as Time_of_Creation
FROM logging_logindex
JOIN actor_logging ON actor_id=log_actor
JOIN page ON page_id=log_page
WHERE log_namespace=0 AND log_type = 'create' AND log_action='create'
AND log_timestamp >= '20200701' AND ... | {"connection_id": 598722956} | null |
Files on ja in use or on commons | null | USE jawiki_p;
SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki, CONCAT("[[:File:", b.img_name, "]]") AS Commons, b.img_timestamp
FROM image a
INNER JOIN page p ON p.page_title = a.img_name AND p.page_namespace = 6
INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = "Locator_maps_of_municipalities_i... | {"runningtime": "1269.07", "resultsets": [{"rowcount": 109, "headers": ["wikitext"]}]} | null |
Files on ja also on Commons with filenames + diff + in use for maps | null | USE jawiki_p;
SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki#, CONCAT("[[:File:", b.img_name, "]]") AS Commons #, b.img_timestamp
#SELECT CONCAT("pwb.py image.py -lang:ja -family:wikipedia -putthrottle:0 -loose ¤", a.img_name, "¤ ¤", b.img_name, "¤") AS pywiki
FROM image a
INNER JOIN page p ON p.page_title = a... | {"connection_id": 599658834} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM actor INNER JOIN revision
ON revision.rev_actor = actor.actor_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev... | {"runningtime": "0.67", "resultsets": [{"rowcount": 1, "headers": ["SUM(cat_files)"]}]} | null |
Change tags | null | SELECT * FROM change_tag_def | {"runningtime": "0.15", "resultsets": [{"rowcount": 0, "headers": ["time", "user", "namespace", "page", "comment"]}]} | null |
RC reverts | null | SELECT rc_title, rc_timestamp
FROM recentchanges
WHERE rc_id IN (
SELECT ct_rc_id
FROM change_tag
LEFT JOIN recentchanges ON (rc_id = ct_rc_id)
WHERE ct_tag_id IN (1,8,582,590)
AND rc_timestamp > 20201129000000
GROUP BY rc_title
HAVING COUNT(rc_id) > 10
)
GROUP BY rc_title | {"connection_id": 44921049} | null |
RC Reverts 2 | null | SELECT rc_namespace, rc_title
FROM change_tag
LEFT JOIN recentchanges ON (rc_id = ct_rc_id)
WHERE ct_tag_id IN (1,8,582,590)
AND rc_timestamp > 20201129000000
AND rc_source = 'mw.edit'
GROUP BY rc_title
HAVING COUNT(rc_id) > 10 | {"connection_id": 44921052} | null |
New user of Kannada Wikisource event | null | use enwiki_p;
select user_name,DATE_FORMAT(user_registration, "%D/%M/%Y %H:%i:%s") from user where user_name in ("Yakshitha","Smnaazil","Jasmitha M J","Veeksha Shetty","Swathivishwakarma","Ashwini2001","Christal Pinto","Akasmita","Ashoka KG"); | {"connection_id": 601394269} | null |
New article created in the give timeline | null | use knwiki_p;
SET STATEMENT max_statement_time = 60 FOR
SELECT actor_name, page_title, log_timestamp as Time_of_Creation
FROM logging_logindex
JOIN actor_logging ON actor_id=log_actor
JOIN page ON page_id=log_page
WHERE log_namespace=0 AND log_type = 'create' AND log_action='create'
AND log_timestamp > '20201029'
AND ... | {"runningtime": "0.67", "resultsets": [{"rowcount": 202, "headers": ["page_title", "pl_title"]}]} | null |
New article created in the give timeline | null | use knwiki_p;
SET STATEMENT max_statement_time = 60 FOR
SELECT actor_name, page_title, log_timestamp as Time_of_Creation
FROM logging_logindex
JOIN actor_logging ON actor_id=log_actor
JOIN page ON page_id=log_page
WHERE log_namespace=0 AND log_type = 'create' AND log_action='create'
AND log_timestamp > '20201029'
AND ... | {"runningtime": "0.15", "resultsets": [{"rowcount": 0, "headers": ["page_title", "pl_title"]}]} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM actor INNER JOIN revision
ON revision.rev_actor = actor.actor_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev... | {"runningtime": "0.08", "resultsets": [{"rowcount": 0, "headers": ["pl_title"]}]} | null |
Uploaders of images in certain category by images count | Participants Wiki_Science_Competition_2020_in_Ukraine | SELECT A.actor_name, COUNT(1) as files
FROM commonswiki_p.image I
JOIN commonswiki_p.page P ON I.img_name = P.page_title
JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from
JOIN commonswiki_p.actor A ON I.img_actor = A.actor_id
WHERE P.page_namespace = 6
AND CL.cl_to = "Images_from_Wiki_Science_Competitio... | {"runningtime": "0.22", "resultsets": [{"rowcount": 0, "headers": ["pl_title", "page_title"]}]} | null |
Edit counts for a book on tewikisource | All edits for a book given main page and its index page | use tewikisource_p;
SELECT
actor_name,
COUNT(*) as Edits
FROM page
JOIN revision ON revision.rev_page = page.page_id
JOIN actor ON revision.rev_actor=actor.actor_id
WHERE (page_title LIKE 'కోనంగి%' OR page_title LIKE 'Konangi_by_Adavi_Bapiraju.pdf%')
GROUP BY actor_name
HAVING COUNT(*) > 0
ORDER BY ... | {"connection_id": 602439712} | null |
ruwiki | null | USE ruwiki_p;
SELECT
count(*) AS count,
p.page_title
FROM
page p, langlinks l1
where p.page_namespace = 0
and p.page_id = l1.ll_from
and not exists (select 1 from langlinks l2 where l1.ll_from=l2.ll_from and l2.ll_lang='uk')
group by p.page_id, p.page_title
order by count(*) desc... | {"runningtime": "0.55", "resultsets": [{"rowcount": 162, "headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace", "page_title"]}]} | null |
Sample usage of thanks stats | This query is a simple of the usage of the Thanks tables. It simply fetches, for each recorded "thanks entry", the user that has performed the action, the destination and when it was done.
It's then possible to edit this sample query to conduct further data analysis simply by editing the SQL code just below. | use ruwiki_p;
select log_timestamp as 'timestamp', log_user_text as 'from', log_title as 'to'
from logging
where log_type='thanks'
order by log_timestamp DESC
limit 1000 | {"runningtime": "0.08", "resultsets": [{"rowcount": 0, "headers": ["tl_title", "page_title"]}]} | null |
RC Reverts 2 | null | SELECT rc_namespace, rc_title
FROM change_tag
LEFT JOIN recentchanges ON (rc_id = ct_rc_id)
WHERE ct_tag_id IN (1,8,582)
AND rc_timestamp > 20201202110000
AND rc_source = 'mw.edit'
AND rc_namespace = 0
GROUP BY rc_title
HAVING COUNT(rc_id) > 5 | {"runningtime": "0.12", "resultsets": [{"rowcount": 7, "headers": ["tl_title", "page_title"]}]} | null |
WLE 2020 by the number of uploaders | null | SELECT A.actor_name, COUNT(1) as files
FROM commonswiki_p.image I
JOIN commonswiki_p.page P ON I.img_name = P.page_title
JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from
JOIN commonswiki_p.actor A ON I.img_actor = A.actor_id
WHERE P.page_namespace = 6
AND CL.cl_to = "Images_from_Wiki_Loves_Earth_2020"
... | {"connection_id": 46034186} | null |
Attempts at transcluding templates containing 'http' | Pages trying to transclude templates containing 'http' (case-insensitive) and starting with 'Ur', 'UR', 'Http', 'Web', or 'Cite web' (case-sensitive).
For [[WP:RAQ#Looking for broken templates containing URLs]] circa 2 December 2020. | SELECT page_namespace,
CONCAT('[[', CASE page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:'
... | {"runningtime": "0.10", "resultsets": [{"rowcount": 5, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]} | null |
One million Malayalam labels | One million Malayalam labels is a event organised by WikiProject Kerala to add and improve Malayalam labels in Wikidata. | USE wikidatawiki_p;
SELECT current_date;
SELECT actor_name as Username, COUNT(*) as Number_of_labels_added
FROM (
SELECT actor_name,
rc_title, comment_text
FROM recentchanges
LEFT JOIN comment ON comment.comment_id = recentchanges.rc_comment_id
LEFT JOIN actor on actor.actor_id = recentchanges.rc_actor
WHERE (co... | {"connection_id": 602868336} | null |
Number of Russian lexemes created per day | null | USE wikidatawiki_p;
SELECT count(page.page_title) as pages, DATE_FORMAT(revision.rev_timestamp, '%Y-%m-%d') AS date
FROM page
JOIN revision ON page.page_id=revision.rev_page
JOIN pagelinks ON page.page_id=pagelinks.pl_from
WHERE page.page_namespace=146
AND revision.rev_parent_id=0 # No parent rev = page creation
... | {"runningtime": "2697.91", "resultsets": [{"rowcount": 514339, "headers": ["rc_actor", "edits"]}]} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.