title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
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.03", "resultsets": []} | null |
Image distribution sampling | null | use itwiki_p;
select il_from, il_to
from imagelinks
order by rand() limit 200; | {"runningtime": "111.17", "resultsets": [{"rowcount": 14, "headers": ["page_title", "rev_timestamp"]}]} | 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.92", "resultsets": [{"rowcount": 7, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 3, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 5, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Number of local vs. Commons images used on enwiki | Counts each image once. | USE enwiki_p;
SELECT COUNT(DISTINCT il_to) AS local_images FROM imagelinks WHERE il_from_namespace = 0;
USE commonswiki_p;
SELECT COUNT(DISTINCT gil_to) AS commons_images FROM globalimagelinks WHERE gil_wiki = 'enwiki' AND gil_page_namespace = 0; | {"runningtime": "1834.06", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 500, "headers": ["CONCAT('# [[:Category:', REPLACE(c.page_title,'_',' '), ']]',\n IF (c.page_len < 5,\" \u2192 '''blank'''\",''),\n IF (c.page_title LIKE '%_monument%', ' \u2192 consider adding {{... | null |
Number of local vs. Commons images displayed on enwiki | Counts each use of each image separately. | USE enwiki_p;
SELECT COUNT(*) AS local_images FROM imagelinks WHERE il_from_namespace = 0;
USE commonswiki_p;
SELECT COUNT(*) AS commons_images FROM globalimagelinks WHERE gil_wiki = 'enwiki' AND gil_page_namespace = 0; | {"runningtime": "0.08", "resultsets": [{"rowcount": 7, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]} | null |
Problem pages | Count of templates referring to problems. | use ruwiki_p;
SELECT count(*) FROM templatelinks WHERE (tl_title = 'Rq' OR tl_title ='Значимость' OR tl_title ='Нет_ссылок' OR tl_title ='Нет_сносок' OR tl_title ='Проверить_нейтральность' OR tl_title ='Дописать' OR tl_title ='Нет_даты_рождения' OR tl_title ='Нет_места_рождения' OR tl_title ='Нет_даты_смерти' OR tl_tit... | {"connection_id": 520268535} | null |
specieswiki red links | output for https://de.wikipedia.org/wiki/Wikipedia:Fehlende_Artikel | use specieswiki_p;
select pl_title
FROM page
INNER JOIN pagelinks AS pl ON pl_from = page_id
WHERE page_namespace = 0
AND pl_namespace = 0
AND pl_title NOT IN (SELECT page_title FROM page WHERE page_namespace = 0)
#AND page_title IS NULL
ORDER BY RAND()
LIMIT 9999;
| {"runningtime": "0.12", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | null |
Expiring G13 drafts | null | SELECT DISTINCT page_title
FROM page
WHERE page_namespace = 118
AND page_is_redirect = 0
AND NOT EXISTS (
SELECT 1
FROM revision
WHERE revision.rev_page = page.page_id
AND revision.rev_minor_edit = 0
AND revision.rev_timestamp > 20200427000000
) | {"runningtime": "18.82", "resultsets": [{"rowcount": 5, "headers": ["page_title", "page_len"]}]} | null |
Find most recent changes on Wikidata to stuff in Bengali | (Ripped from wdvd's code and modified a bit.)
Thanks, Adam, for further modifications! | USE wikidatawiki_p;
SELECT rc_id, rc_timestamp, 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 (
comment_text REGEXP 'wbsetdescription-(add|set|remove)...(bn)'
OR comment_text... | {"runningtime": "0.82", "resultsets": [{"rowcount": 10, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 3, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 6, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Expiring G13 drafts (3) | null | SELECT DISTINCT page_title
FROM page
WHERE page_namespace = 118
AND page_is_redirect = 0
AND NOT EXISTS (
SELECT 1
FROM revision
JOIN actor ON (actor.actor_id = revision.rev_actor)
JOIN user_groups ON (user_groups.ug_user = actor.actor_user AND user_groups.ug_grou... | {"runningtime": "13.10", "resultsets": [{"rowcount": 0, "headers": ["page_title", "rev_timestamp", "page_latest"]}]} | null |
Video usages on Basque Wikipedia | null | USE `commonswiki_p`;
SELECT COUNT(*) AS `videos`, COUNT(DISTINCT `gil_page_title`) AS `articles`
FROM `globalimagelinks`
WHERE `gil_wiki` = 'euwiki' -- select different target wiki here (warning: probably prohibitively slow for very large wikis)
AND `gil_page_namespace_id` = 0
AND (`gil_to` LIKE '%.webm' OR `gil_to` L... | {"runningtime": "2.94", "resultsets": [{"rowcount": 902, "headers": ["el_id", "el_from", "el_to", "el_index", "el_index_60"]}]} | null |
كثافة المقالات في ويكيبيديا العربية منذ 2018 | null | use arwiki_p;
SELECT concat(year(rev_timestamp), "-", month(rev_timestamp)),count(*)
from revision
inner join page
on page_id = rev_page
where (rev_timestamp like "2019%" or rev_timestamp like "2018%" or rev_timestamp like "2020%")
and rev_parent_id = 0
and page_namespace = 0
and page_is_redirect = 0
group by year(rev... | {"runningtime": "0.65", "resultsets": [{"rowcount": 4, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 2, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 3, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
People without defaultsort | 352594 - Dalībnieks:Edgars2007/Cilvēku raksti | use enwikinews_p;
select p.page_title, pp.pp_value
from page p
left join page_props pp on p.page_id = pp.pp_page and pp.pp_propname="defaultsort"
where p.page_namespace=14 and pp.pp_value is null
#and page_title in (select pl_title from pagelinks pl
# where pl.pl_from=352594 and pl.pl_namespace=0) | {"runningtime": "0.25", "resultsets": [{"rowcount": 10, "headers": ["slot_revision_id", "slot_role_id", "slot_content_id", "slot_origin", "content_id", "content_size", "content_sha1", "content_model", "content_address"]}]} | null |
[enwn] Redirecting talk page with non-redirecting article | List of [[Foo]] where [[Talk:Foo]] redirects to [[Talk:Bar]]. | use enwikinews_p;
select page_title
from page p
where page_namespace = 1
and page_is_redirect = 1
and exists (
select null
from page
where page_namespace = 0
and page_title = p.page_title
and page_is_redirect = 0
)
; | {"runningtime": "0.14", "resultsets": [{"rowcount": 10, "headers": ["slot_revision_id", "slot_role_id", "slot_content_id", "slot_origin", "content_id", "content_size", "content_sha1", "content_model", "content_address", "ExtractString"]}]} | null |
Redirecting article with non-redirecting talkpage | null | use enwikinews_p;
select page_title
from page p
where page_namespace = 0
and page_is_redirect = 1
and exists (
select null
from page
where page_namespace = 1
and page_title = p.page_title
and page_is_redirect = 0
)
; | {"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["slot_revision_id", "slot_role_id", "slot_content_id", "slot_origin", "content_id", "content_size", "content_sha1", "content_model", "content_address", "ExtractString"]}]} | null |
specieswiki red links | output for https://de.wikipedia.org/wiki/Wikipedia:Fehlende_Artikel | use enwikinews_p;
select pl_title
FROM page
INNER JOIN pagelinks AS pl ON pl_from = page_id
WHERE page_namespace = 0
AND pl_namespace = 0
AND pl_title NOT IN (SELECT page_title FROM page WHERE page_namespace = 0);
| {"runningtime": "1.13", "resultsets": [{"rowcount": 4, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 2, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 3, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Orphaned fair use images (en) | Returns the list of fair use images that are not presently used in any articles | USE enwikinews_p;
SELECT CONCAT('*{{lf|', 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.c... | {"runningtime": "414.68", "resultsets": [{"rowcount": 3, "headers": ["img_name"]}]} | null |
Genes | null | USE wikidatawiki_p;
SELECT
wbit_item_id as id,
wby_name as type,
wbxl_language as language,
wbx_text as text
FROM wbt_item_terms
LEFT JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id
LEFT JOIN wbt_type ON wbtl_type_id = wby_id
LEFT JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id
LEFT JOIN wbt_t... | {"runningtime": "0.03", "resultsets": []} | null |
Video nomination in 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 = "Video_Special_Nomination_for_WLE_20... | {"connection_id": 451185655} | null |
Expiring G13 drafts | null | SELECT DISTINCT page_title
FROM page
WHERE page_namespace = 118
AND page_is_redirect = 0
AND NOT EXISTS(
SELECT 1
FROM revision
WHERE revision.rev_page = page.page_id
AND revision.rev_timestamp > 20200427000000
AND NOT EXISTS(SELECT 1
FROM actor
... | {"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["Username", "rev_timestamp"]}]} | null |
Articles created with 2 edits of Fixer88 and related accounts/IPs, plus bots, plus AG | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp as "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE u.rev_parent_id IN (
select distinct
r.rev_id
from
revision_userindex r
where
r.rev_actor = 40
and
... | {"runningtime": "21.31", "resultsets": [{"rowcount": 100, "headers": ["Username", "Edits_since_20200101"]}]} | null |
Articles created with 2 edits of Fixer88 and related accounts/IPs, plus bots | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp as "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE u.rev_parent_id IN (
select distinct
r.rev_id
from
revision_userindex r
where
r.rev_actor = 40
and
... | {"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["Username", "Edits_since_20200101"]}]} | null |
image distribution sampling 3 | null | /*use itwiki_p;
select B.il_from, B.il_to
from (select il_from, il_to
from imagelinks) as B
join (select val
from (VALUES("Double-headed_eagle_of_the_Greek_Orthodox_Church.svg"),("GClef.svg")) t1(val) ) as A
ON B.il_to = A.val;*/
use itwiki_p;
select * from values(('Double-headed_eagle_of_the_Greek_... | {"runningtime": "110.48", "resultsets": [{"rowcount": 1, "headers": ["current_date"]}, {"rowcount": 27891, "headers": ["page_title", "cat_files", "cat_subcats"]}]} | null |
All revisions tagged congressedits | For [[WP:VPT#Possible to search for revisions by tags?]] circa 28 October 2020.
This omits tags attached to log entries, but not tags where the revision no longer exists or is no longer visible (although all you can see for those is the revision id). | SET @tagid = 'congressedits';
SELECT CONCAT('[[Special:Diff/',ct_rev_id,']]') AS diff,
CONCAT('[[',
CASE page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'U... | {"runningtime": "57.13", "resultsets": [{"rowcount": 6, "headers": ["pl_from", "pl_title"]}]} | null |
ruwiki: Convenient Discussions script usage: total number of edits (Oct 2020) | null | use ruwiki_p;
select
(
select count(*)
from revision
join change_tag on rev_id = ct_rev_id
where
# marked by tag "convenient-discussions"
ct_tag_id = 79
) +
(
select count(*)
from comment
join revision on comment_id = rev_comment_id
where
# having CD link in an edit summary
comm... | {"runningtime": "0.10", "resultsets": [{"rowcount": 1, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"]}]} | null |
specieswiki red links | output for https://de.wikipedia.org/wiki/Wikipedia:Fehlende_Artikel | use specieswiki_p;
select pl_title
FROM page
INNER JOIN pagelinks AS pl ON pl_from = page_id
WHERE page_namespace = 14
AND pl_namespace = 0
AND pl_title NOT IN (SELECT page_title FROM page WHERE page_namespace = 0)
#AND page_title IS NULL
ORDER BY RAND()
LIMIT 999;
| {"runningtime": "4.75", "resultsets": [{"rowcount": 902, "headers": ["page_title", "el_to", "page_len", "el_index"]}]} | null |
add txt | null | USE arwiki_p;
SELECT CONCAT(actor_name) AS user_name, SUM(CAST(rev.rev_len as signed)-CAST(parent.rev_len as signed)) AS byte_count, COUNT(rev.rev_id) as edit_count
FROM user
INNER JOIN revision rev ON user.user_id = rev.rev_actor
INNER JOIN actor ON rev.rev_actor = actor.actor_id
INNER JOIN revisi... | {"runningtime": "0.34", "resultsets": [{"rowcount": 47, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "p... | null |
Malayalam labels | null | USE wikidatawiki_p;
DESCRIBE wb_terms;
SELECT COUNT(*) FROM wb_terms
WHERE term_type = 'label' AND term_language = "ml"; | {"runningtime": "0.25", "resultsets": [{"rowcount": 30, "headers": ["cl_to"]}]} | null |
trwiki:Top 1000 editors by article count | null | USE trwiki_p;
SELECT actor_id, actor_name, COUNT(rev_page) as articles
FROM revision
JOIN actor_revision ON rev_actor = actor_id
JOIN page ON rev_page = page_id
WHERE
rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect=0
AND rev_deleted=0
GROUP BY actor_id
ORDER BY articles DESC
LIMIT 1000; | {"runningtime": "27.63", "resultsets": [{"rowcount": 176, "headers": ["page_title"]}]} | null |
pages in enwiki project: | null | use enwiki_p;
SELECT COUNT(*)
FROM page
WHERE page_namespace = 4 | {"runningtime": "1103.86", "resultsets": [{"rowcount": 500, "headers": ["CONCAT(\"Q\",ips_item_id)", "Lar", "CONCAT('\"',ips_site_page,'\"')"]}]} | null |
BAG Activity - with status | null | SELECT
user_name,
Max(rev_timestamp) as "last edit"
FROM
user
JOIN actor ON user_id = actor_user
JOIN revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
WHERE
(
page_title LIKE "Bots/Requests_for_approval%"
OR page_title = "Bot Approvals Group"
OR page_title = "Bot_Approvals_Grou... | {"runningtime": "139.33", "resultsets": [{"rowcount": 201, "headers": ["cl_to", "count_cl_to"]}]} | null |
pages in enwiki project: | null | use enwiki_p;
SELECT COUNT(*)
FROM page
WHERE page_namespace = 1 | {"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["pi_property_id", "pi_type", "pi_info", "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 |
Pages that don't have Malayalam label at Wikidata (2020) | করতে হবে | USE wikidatawiki_p;
SELECT CONCAT("Q",ips_item_id), "Lml", CONCAT('"',ips_site_page,'"')
FROM wb_items_per_site
WHERE ips_site_id='mlwiki'
AND NOT EXISTS (
SELECT wbit_item_id FROM wbt_item_terms
INNER JOIN wbt_term_in_lang
ON wbtl_id = wbit_term_in_lang_id
INNER JOIN wbt_text_in_lang
ON wbxl_id = wbtl_... | {"runningtime": "0.16", "resultsets": [{"rowcount": 1, "headers": ["CURRENT_DATE"]}, {"rowcount": 0, "headers": ["term_entity_type", "term_language", "labels", "descriptions", "aliases"]}]} | null |
WLM-UK competition participants 2013-14 & 2016-18, not active so far in 2019 | WLM-UK competition participants 2013-14 & 2016-18, not active so far in 2019 | use commonswiki_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 (
"Images_from_Wiki_Loves_Monuments_2019_in_the_United_States"
) and n... | {"runningtime": "524.87", "resultsets": [{"rowcount": 82897, "headers": ["site", "LINKS"]}]} | null |
jawikiにおける最多投稿者 | null | use jawiki_p;
select user_name as 利用者名, user_editcount as 投稿回数,
ifnull(date_format( date( user_registration ), "%Y-%m-%d" ), "2005-12-22以前") as 登録日,
group_concat( distinct ug_group order by case ug_group WHEN "sysop" THEN 1
WHEN "checkuser" THEN 2
... | {"connection_id": 458881417} | null |
WikiDaheim 2020 media and revisions uploaded not in competition time | null | USE commonswiki_p;
#describe image;
#describe revision;
SELECT /* SLOW_OK */ DATE_FORMAT(DATE_ADD(img_timestamp, INTERVAL 2 Hour),'%Y-%m-%d') AS date, img_name
FROM image, page, revision, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND image.img_name = page.page_title
and revision.r... | {"runningtime": "1773.60", "resultsets": [{"rowcount": 3476, "headers": ["output"]}]} | null |
jawikiにおけるRfBのバイト数 | null | USE jawiki_p;
SELECT concat("{{w|Wikipedia:", page_title, "}}") AS RfB名, page_len AS バイト数 , DATE(MIN(rev_timestamp)) AS 提出日
FROM page INNER JOIN revision_userindex AS rev ON page_id = rev_page
WHERE page_title LIKE "投稿ブロック依頼/%" AND page_namespace = 4 AND page_len >= 70000
GROUP BY page_id, page_title, page_len
ORDER BY... | {"runningtime": "792.42", "resultsets": [{"rowcount": 4, "headers": ["File name", "Date", "Size", "Uploader's name"]}]} | null |
Reply Tool usage/user (it.wiki) | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from itwiki_p.change_tag ct
inner join itwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join itwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join itwiki_p.change_tag_def
on ct_tag_i... | {"runningtime": "0.31", "resultsets": [{"rowcount": 110, "headers": ["Tables_in_enwiki_p"]}]} | 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.08", "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 |
Top article creator of BNWiKi | null | USE bnwiki_p;
SELECT
CONCAT("* {{target | user =",actor_name,"| site = bn.wikipedia.org }}") AS rev_user_text,
COUNT(rev_id) AS user_editcount
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_nam... | {"runningtime": "58.71", "resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 0, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]} | null |
Tests | (Ripped from wdvd's code and modified a bit.)
Thanks, Adam, for further modifications! | USE wikidatawiki_p;
select now();
SELECT rev_id, rc_timestamp, 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
LEFT JOIN revision on revision.rev_id = recentchanges.rc_this_oldid
WHER... | {"runningtime": "69.51", "resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 0, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]} | null |
List of requests for comment on jawp | ウィキペディア日本語版におけるコメント依頼の一覧。表に無かったので作ってみたけどどこかにあるのかな? | USE jawiki_p;
SELECT concat("Wikipedia:", page_title) AS ページ名, DATE(MIN(rev_timestamp)) AS 提出日
FROM page INNER JOIN revision_userindex AS rev ON page_id = rev_page
WHERE page_title LIKE "コメント依頼/%" AND page_namespace = 4
GROUP BY page_id, page_title, page_len
ORDER BY rev_timestamp ASC | {"runningtime": "21.52", "resultsets": [{"rowcount": 1, "headers": ["current_date"]}, {"rowcount": 6, "headers": ["Username", "Number_of_labels_added"]}]} | null |
Malayalam description stating with "ഒരു..." | null | USE wikidatawiki_p;
SELECT wbit_item_id, wbx_text
FROM wbt_item_terms
JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id
JOIN wbt_type ON wbtl_type_id = wby_id
JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id
JOIN wbt_text ON wbxl_text_id = wbx_id
LEFT JOIN enwiki_p.wbc_entity_usage ON eu_en... | {"runningtime": "1.02", "resultsets": [{"rowcount": 107, "headers": ["actor_name", "antal_2011"]}]} | null |
Label/description/alias stats for 8th Schedule tongues | (Had to split the query since it kept getting killed lately. The rest of the languages are tracked in query #31655.)
Thanks, Pasleim, for the original query! | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT
term_entity_type,
term_language,
count(if(term_type = 'label',1,null)) as labels,
count(if(term_type = 'description',1,null)) as descriptions,
count(if(term_type = 'alias',1,null)) as aliases
FROM wb_terms
WHERE term_language IN (
'as', 'bn', 'gom', 'gom-... | {"runningtime": "0.11", "resultsets": [{"rowcount": 0, "headers": ["actor_name", "antals_2011"]}]} | null |
Apostrophe in French labels | null | USE wikidatawiki_p;
SELECT wbit_item_id, wbx_text
FROM wbt_item_terms
JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id
JOIN wbt_type ON wbtl_type_id = wby_id
JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id
JOIN wbt_text ON wbxl_text_id = wbx_id
LEFT JOIN enwiki_p.wbc_entity_usage ON eu_en... | {"runningtime": "19.21", "resultsets": [{"rowcount": 2, "headers": ["rd_from", "rd_namespace", "rd_title", "rd_interwiki", "rd_fragment", "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", "pa... | null |
test20201031 | null | use zhwiki_p;
select page_title from page where page_namespace = 0 and page_title in (select pla.page_title
from categorylinks cla
join page pla on cla.cl_from=pla.page_id
where pla.page_namespace=0 and cla.cl_type="page" and
... | {"runningtime": "277.83", "resultsets": [{"rowcount": 1000, "headers": ["pl_namespace", "pl_title", "nlinks"]}]} | null |
Wikidata Lexeme Forms most-used templates | The templates of the Wikidata Lexeme Forms tool that are used most often, as tracked in the edit summary. | USE wikidatawiki_p;
SELECT REGEXP_REPLACE(comment_text, '.*\\|([^[]*)]].*', '\\1') AS template, SUM(count) AS total
FROM comment
JOIN (
SELECT rev_comment_id, COUNT(*) AS count
FROM change_tag
JOIN revision ON ct_rev_id = rev_id
WHERE ct_tag_id IN (
SELECT ctd_id
FROM change_tag_def
WHERE ctd_name ... | {"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["user_id"]}]} | null |
hivatkozott nem létező sablonok | null | use huwiki_p;
SELECT pl_title, COUNT(pl_title) AS hivas_db FROM pagelinks
left JOIN page ON pl_title = page_title
where pl_namespace=10 and pl_from_namespace=0 and page.page_title IS NULL
GROUP BY pl_title
ORDER BY hivas_db DESC
LIMIT 1000;
| {"runningtime": "0.09", "resultsets": [{"rowcount": 1, "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_tim... | null |
Expiring G13 drafts | null | SELECT DISTINCT page_title
FROM page
WHERE page_namespace = 118
AND page_is_redirect = 0
AND NOT EXISTS(
SELECT 1
FROM revision
WHERE revision.rev_page = page.page_id
AND revision.rev_timestamp > 20200501000000
AND NOT EXISTS(SELECT 1
FROM actor
... | {"runningtime": "0.08", "resultsets": [{"rowcount": 1, "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_tim... | 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": 19, "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 |
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": "91.02", "resultsets": [{"rowcount": 6, "headers": ["pl_from", "pl_title"]}]} | null |
WT:Social | null | SELECT DISTINCT *
FROM page
JOIN revision ON rev_id = page_latest
WHERE page_namespace = 118
AND page_is_redirect = 0
AND rev_timestamp < "20200501000000"
| {"runningtime": "8.52", "resultsets": [{"rowcount": 45, "headers": ["Lp", "U\u017cytkownik", "Liczba edycji"]}]} | null |
WT:Social | null | SELECT DISTINCT *
FROM page
JOIN revision ON rev_id = page_latest
WHERE page_namespace = 118
AND page_is_redirect = 0
AND rev_timestamp < "20200501000000"
| {"runningtime": "0.60", "resultsets": [{"rowcount": 61, "headers": ["actor_name", "files"]}]} | 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": 469197922} | 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": 469223267} | null |
990801 mp1 # of direct links to DAB pages (pages) | null | USE fawiki_p;
SELECT COUNT(page_id)
FROM pagelinks JOIN page
WHERE page_is_redirect=0
AND page_namespace=0
AND page_id IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'
)
AND pl_from IN (
SELECT page_id
FROM page
WHERE page_is_redirect=0
)
AND pl_title=page_title
AND pl_namespace ... | {"runningtime": "27.18", "resultsets": [{"rowcount": 6, "headers": ["CONCAT('File:', p.page_title)"]}]} | null |
990801 mp1 # of DAB pages | null | USE fawiki_p;
SELECT COUNT(page_title)
FROM page
WHERE page_id IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'); | {"connection_id": 469329105} | null |
990801 # of fa articles | null | USE fawiki_p;
SELECT COUNT(page_id)
FROM page
WHERE page_is_redirect = 0
AND page_namespace = 0; | {"runningtime": "59.01", "resultsets": [{"rowcount": 1, "headers": ["current_date"]}, {"rowcount": 12, "headers": ["Username", "Number_of_labels_added"]}]} | null |
990801 mp1 # of redirected links to DAB pages (pages) | null | USE fawiki_p;
SELECT COUNT(pl_title)
FROM pagelinks
LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title
LEFT JOIN redirect ON page_id = rd_from
WHERE page_is_redirect = 1
AND page_namespace = 0
AND rd_namespace = 0
AND pl_from IN (
SELECT page_id
FROM page
WHERE page_is_redirect=0
AND ... | {"connection_id": 469467451} | null |
990801 mp1 # of DAB pages with redirected link (pages) | null | USE fawiki_p;
SELECT COUNT(DISTINCT(page_title))
FROM pagelinks
LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title
LEFT JOIN redirect ON page_id = rd_from
WHERE page_is_redirect = 1
AND page_namespace = 0
AND rd_namespace = 0
AND pl_from IN (
SELECT page_id
FROM page
WHERE page_is_redir... | {"connection_id": 469530883} | null |
990801 owp1 All orphan articles | null | USE fawiki_p;
SELECT concat('# [[',p1.page_title,']]')
FROM page AS p1
WHERE p1.page_is_redirect = 0
AND p1.page_namespace = 0
# not a DAB page
AND p1.page_id NOT IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'
)
# not receiving direct link
AND NOT (
p1.page_title IN (
SELECT pl1.... | {"runningtime": "1842.88", "resultsets": [{"rowcount": 51, "headers": ["File name", "Date", "Size", "Uploader's name"]}]} | null |
My Northern Achiever Challenge Dagbani (Incubator) edit count | null | select actor_name, count(*) as edits
from incubatorwiki_p.revision_userindex r
join incubatorwiki_p.actor a on r.rev_actor = a.actor_id
join incubatorwiki_p.page p on r.rev_page = p.page_id
where actor_name in (
"Masssly",
"Abubakari Khadijah",
"Shahadusadik",
"Dnshitobu",
"SalimQuo",
"Alhassan Mohammed Awal",
"Din-nan... | {"runningtime": "160.12", "resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 26841, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]} | null |
My Northern Achiever Challenge Wikipedia edit count in time frame | null | select actor_name, count(*) as edits
from enwiki_p.revision_userindex r
join enwiki_p.actor a on r.rev_actor = a.actor_id
join enwiki_p.page p on r.rev_page = p.page_id
where actor_name in (
"Masssly",
"Abubakari Khadijah",
"Shahadusadik",
"Dnshitobu",
"SalimQuo",
"Alhassan Mohammed Awal",
"Din-nani1",
"Zak Raha",
"Hid... | {"runningtime": "37.08", "resultsets": [{"rowcount": 10000, "headers": ["rc_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]} | null |
My Northern Achiever Challenge Wikidata edit count | null | select actor_name, count(*) as edits
from wikidatawiki_p.revision_userindex r
join wikidatawiki_p.actor a on r.rev_actor = a.actor_id
join wikidatawiki_p.page p on r.rev_page = p.page_id
where actor_name in (
"Masssly",
"Abubakari Khadijah",
"Shahadusadik",
"Dnshitobu",
"SalimQuo",
"Alhassan Mohammed Awal",
"Din-nani1"... | {"runningtime": "45.28", "resultsets": [{"rowcount": 10000, "headers": ["rc_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}]} | null |
max links in a wiki article | null | use enwiki_p;
select * from `wikibase_item` limit 10; | {"runningtime": "327.97", "resultsets": [{"rowcount": 111815, "headers": ["CONCAT(\"Q\",ips_item_id)", "CONCAT(\"Lml\")", "CONCAT('\"',ips_site_page,'\"')"]}]} | 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": "3.61", "resultsets": [{"rowcount": 4, "headers": ["count", "i"]}]} | null |
Active Reply Tool users (weekly) | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from enwiki_p.change_tag ct
inner join enwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join enwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join enwiki_p.change_tag_def
on ct_tag_i... | {"connection_id": 474027584} | null |
Wikilinks mit Zeichen am Ende | gesucht werden Rotlinks nach dem Schema "BlubbZeichen" wobei "Blubb" als Blaulink existiert (also einem Zeichen, meist ein Punkt, Komma, etc. am Ende zusätzlich) | USE dewiki_p;
SELECT CONCAT('[[', REPLACE(Artikel.page_title, '_', ' '), ']]') AS "Artikelchen",
REPLACE(pl_title, '_', ' ') AS "eventüll karpotter Link",
SUBSTRING(REPLACE(pl_title, '_', ' '), 1, LENGTH(pl_title) - 1) AS "Vorschlag"
from pagelinks, page AS Artikel, page AS Blaulink
WHERE Artikel.page_... | {"connection_id": 474544971} | null |
Testi SAL 25% | null | use itwikisource_p;
select concat(autore, ' (', ifnull(nascita, '?'), '-', ifnull(morte, ' '), ')')
from (
select
concat('[[Autore:', autori.page_title, ']]') autore,
(select replace(cat_title, 'Nati_nel_', '')
from category join categorylinks on cat_title = cl_to
where cl_from = page_id ... | {"runningtime": "0.12", "resultsets": [{"rowcount": 2, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]} | null |
pages on dewiktionary to be touched | null | USE dewiktionary_p;
SELECT CONCAT('* [[wikt:de:', REPLACE (page_title,'_',' '), ']] → [[:File:', REPLACE (il_to,'_',' '), ']]') FROM imagelinks
INNER JOIN page wp ON wp.page_id = il_from AND wp.page_namespace = 0
INNER JOIN templatelinks ON tl_from = il_from AND tl_from_namespace = 0 AND tl_namespace = 10 AND tl_title ... | {"runningtime": "4.48", "resultsets": [{"rowcount": 1018, "headers": ["CONCAT(\n 'https://commons.wikimedia.org/wiki/Commons:',\n page_title\n )", "REPLACE(page_title, '_', ' ')", "comment_text"]}]} | null |
Rotlink-Nester | Seiten mit mehr als 100 Rotlinks | USE dewiki_p;
SELECT CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') AS "Artikel", COUNT(*) AS 'Anzahl Rotlinks'
FROM page, pagelinks
WHERE page_id = pl_from
AND page_namespace = 0
AND NOT EXISTS ( SELECT 1
FROM page AS Linkziel
WHERE Linkziel.page_title = pl_title
... | {"runningtime": "3.90", "resultsets": [{"rowcount": 65, "headers": ["date", "images"]}]} | 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.32", "resultsets": [{"rowcount": 90, "headers": ["Tables_in_enwiktionary_p"]}]} | 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": "5.84", "resultsets": [{"rowcount": 102, "headers": ["concat('* [[:\u0646\u0642\u0627\u0634_\u0627\u0644\u062a\u0635\u0646\u064a\u0641:',page_title,']]')"]}]} | null |
Wikiquote Edit-athon in Côte d'Ivoire (2020) | null | SET @participants = ("Aristidek5maya,Petrus yh,Audrey Ingrid,Dakfabrice,Nanoque,Mariefrancebanga,Kouakou trika,Affoue.yoboue,Safouu,Akissi.kouakou,Boidourita,Adolphe Yao,Dezkouame,Micaelngb,Aman ADO,Aissata Bah,Babawabewa,PriscilleKouame,Dassi coucou,Mouna k,Durand ndry,Kahoutoure");
SET @startDate = ("20200504000001")... | {"runningtime": "988.13", "resultsets": [{"rowcount": 44, "headers": ["File name", "Date", "Size", "Uploader's name"]}]} | null |
Rotlinks auf [[Tag. Monat]] | Falsch verlinkte Tage.
Gesucht wird nach der Zeichenfolge Ziffer gefolgt von Monatsnamen mit einer Rot-Verlinkung. Dadurch gibt es einige Falsch-Positive | USE dewiki_p;
SELECT CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') AS "Artikel", pl_title AS Rotlink
FROM page, pagelinks
WHERE page_id = pl_from
AND page_namespace = 0
AND pl_title REGEXP '[0-9].*(Januar|Jänner|January|Februar|Feber|February|März|March|April|Mai|May|Juni|June|Juli|July|August|September|Ok... | {"runningtime": "16.25", "resultsets": [{"rowcount": 4302, "headers": ["img_name", "actor_name", "img_timestamp"]}]} | null |
enwp interwiki links from wikidata where the article no longer exists | null | USE eswiki_p;
SELECT CONCAT('Q', ips_item_id), ips_site_id, ips_site_page
FROM wikidatawiki_p.wb_items_per_site
LEFT JOIN page ON REPLACE(ips_site_page, ' ', '_') = page_title AND page_namespace = 0
WHERE page_title IS NULL
AND ips_site_id = 'eswiki'
AND ips_site_page NOT LIKE '%:%'; | {"runningtime": "168.82", "resultsets": [{"rowcount": 2, "headers": ["page_title", "rev_timestamp"]}]} | null |
Created pages in bcl since May 2015 | null | use bclwiki_p;
select
page_title,
rev_timestamp
from
revision,
page
where
rev_page = page_id and
page_namespace = 0 and
rev_parent_id = 0 and
rev_timestamp > 20150500000000
order by
rev_timestamp asc; | {"runningtime": "364.41", "resultsets": [{"rowcount": 17, "headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"]}]} | null |
Videos on commons | null | USE `commonswiki_p`;
SELECT COUNT(*) AS `videos`
FROM `image`
WHERE img_media_type = 'AUDIO' | {"runningtime": "0.11", "resultsets": [{"rowcount": 1, "headers": ["actor_id", "actor_user", "actor_name"]}]} | null |
Video usages on Swedish Wikipedia | null | USE `commonswiki_p`;
SELECT COUNT(*) AS `videos`, COUNT(DISTINCT `gil_page_title`) AS `articles`
FROM `globalimagelinks`
WHERE `gil_wiki` = 'svwiki' -- select different target wiki here (warning: probably prohibitively slow for very large wikis)
AND `gil_page_namespace_id` = 0
AND (`gil_to` LIKE '%.oga' OR `gil_to` LI... | {"runningtime": "14.20", "resultsets": [{"rowcount": 1, "headers": ["ss_total_edits"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}, {"rowcount": 816, "headers": ["userid", "name", "editcount", "admin", "bot"]}]} | null |
Videos on Swedish Wikipedia | Which videos ar used on Swedish Wikipedia. | USE commonswiki_p;
SELECT gil_page_title, gil_to FROM globalimagelinks AS gi
JOIN image AS im on im.img_name = gi.gil_to
WHERE gil_wiki = 'svwiki'
AND gil_page_namespace_id = 0
AND img_media_type = 'AUDIO' | {"runningtime": "758.50", "resultsets": [{"rowcount": 25, "headers": ["File name", "Date", "Size", "Uploader's 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... | {"connection_id": 537634623} | null |
Most redirected redirects | Based on https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Redirect/Most_redirected#Regenerating_this_report | CREATE TABLE manyredirects (
pl_namespace int(11) NOT NULL,
pl_title varbinary(255) NOT NULL,
c int(11) unsigned,
PRIMARY KEY( pl_namespace, pl_title )
);
INSERT INTO manyredirects
SELECT /* SLOW_OK */ rd_namespace, rd_title, count(*)
FROM enwiki_p.redirect
GROUP BY rd_namespace, rd_title
HAVING count(*) > 5;
... | {"runningtime": "73.30", "resultsets": [{"rowcount": 36, "headers": ["user_name"]}]} | null |
G13 eligible drafts (2) | null | SELECT DISTINCT page_title
FROM page
WHERE page_namespace = 118
AND page_is_redirect = 0
AND NOT EXISTS (
SELECT 1
FROM revision
WHERE revision.rev_page = page.page_id
AND revision.rev_timestamp > 20200505000000
AND NOT EXISTS (SELECT 1 FROM actor
INNER ... | {"runningtime": "46.14", "resultsets": [{"rowcount": 2, "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.09", "resultsets": [{"rowcount": 0, "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... | {"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["upper('abcde')"]}]} | null |
2nd Parliament Wikipedia Edit Count in Time Frame | This query was used to determine participants with the highest Wikipedia edit count in the 2nd Parliament of Ghana Challenge that run from 1 October 2020 UTC to 30 October 2020 UTC. See: https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Ghana/Parliament_of_Ghana/Members_of_the_2nd_Parliament_of_the_4th_Republic_of... | select actor_name, count(*) as edits
from enwiki_p.revision_userindex r
join enwiki_p.actor a on r.rev_actor = a.actor_id
join enwiki_p.page p on r.rev_page = p.page_id
where actor_name in (
"Celestinesucess",
"Nana yaa series",
"Sunkanmi12",
"Kinvidia",
"Piousmaiden",
"Mwintirew",
"Rosy86",
"DaSupremo",
"Amoaniwaa",
"... | {"runningtime": "0.10", "resultsets": [{"rowcount": 1, "headers": ["upper('Chandandolui') LIKE '%chandandolui%'"]}]} | null |
2nd Parliament Wikidata Edit Count in Time Frame | This query was used to determine participants with the highest Wikidata edit count in the 2nd Parliament of Ghana Challenge that run from 1 October 2020 UTC to 30 October 2020 UTC. See: https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Ghana/Parliament_of_Ghana/Members_of_the_2nd_Parliament_of_the_4th_Republic_of_... | select actor_name, count(*) as edits
from wikidatawiki_p.revision_userindex r
join wikidatawiki_p.actor a on r.rev_actor = a.actor_id
join wikidatawiki_p.page p on r.rev_page = p.page_id
where actor_name in (
"Celestinesucess",
"Nana yaa series",
"Sunkanmi12",
"Kinvidia",
"Piousmaiden",
"Mwintirew",
"Rosy86",
"DaSuprem... | {"runningtime": "81.77", "resultsets": [{"rowcount": 2, "headers": ["user_name"]}]} | null |
Templates using Vorlage:Erweiterte Navigationsleiste | null | USE dewiki_p;
SELECT CONCAT('Vorlage:', page_title)
FROM page
INNER JOIN templatelinks ON tl_from = page_id
WHERE tl_from_namespace = 10
AND tl_title = 'Erweiterte_Navigationsleiste'
AND tl_namespace = 10 | {"runningtime": "144.37", "resultsets": [{"rowcount": 10, "headers": ["img_name"]}]} | null |
First requests for last entries | null | SELECT page_id, page_title FROM page WHERE page_is_new = 1; | {"runningtime": "5.52", "resultsets": [{"rowcount": 1496, "headers": ["File", "img_timestamp", "actor_name"]}]} | null |
עמד draft | null | use hewiki_p;
select * from page
where page_namespace = 0
and page_title like "%(%)%"
and not page_is_redirect
and exists
(select * from templatelinks
where tl_from = page_id
and tl_title = "פירוש_נוסף"
and tl_namespace = 10)
| {"runningtime": "0.02", "resultsets": []} | null |
Recent en.wiki hoax articles | null | SELECT log_timestamp, log_namespace, log_title FROM logging
INNER JOIN comment ON logging.log_comment_id = comment.comment_id
WHERE logging.log_timestamp > "2020-11-01"
AND logging.log_namespace = 0
AND logging.log_type="delete"
AND comment.comment_text = "[[WP:CSD#G3|G3]]: Blatant [[WP:Do not create hoaxes|hoax]]" | {"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["page_namespace", "page_title", "tl_namespace", "tl_title"]}]} | null |
Wikidata Edit Count in time frame | This query was used to determine participants with the highest Wikidata edit count in the Parliament of Ghana Challenge that run from 25 January 2020 UTC to 24 February 2020 UTC. See: https://w.wiki/G6n | select actor_name, count(*) as edits
from wikidatawiki_p.revision_userindex r
join wikidatawiki_p.actor a on r.rev_actor = a.actor_id
join wikidatawiki_p.page p on r.rev_page = p.page_id
where actor_name in (
"GD.Google.Developer",
"Grudzio240",
"Fjjulien",
"Naleksuh",
"HelsKRW",
"Vlakovod",
"Bangalamania",
"Jan Myšák"... | {"runningtime": "30.25", "resultsets": [{"rowcount": 10000, "headers": ["page_namespace", "page_title", "tl_namespace", "tl_title"]}]} | null |
Wikidata Edit Count in time frame | This query was used to determine participants with the highest Wikidata edit count in the Parliament of Ghana Challenge that run from 25 January 2020 UTC to 24 February 2020 UTC. See: https://w.wiki/G6n | select actor_name, count(*) as edits
from wikidatawiki_p.revision_userindex r
join wikidatawiki_p.actor a on r.rev_actor = a.actor_id
join wikidatawiki_p.page p on r.rev_page = p.page_id
where actor_name in (
"GD.Google.Developer",
"Grudzio240",
"Fjjulien",
"Naleksuh",
"HelsKRW",
"Vlakovod",
"Bangalamania",
"Jan Myšák"... | {"runningtime": "82.20", "resultsets": [{"rowcount": 6, "headers": ["pl_from", "pl_title"]}]} | null |
Unregistered users page or subpage:bnwiki | তালিকায় কয়েকটি নিবন্ধিত একাউন্টও থাকতে পারে... | USE bnwiki_p;
SELECT
page_namespace,
CONCAT("[[ব্যবহারকারী:",page_title,"|",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 REGEX... | {"runningtime": "0.13", "resultsets": [{"rowcount": 1, "headers": ["el_to", "page_title", "page_len"]}]} | 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": "265.42", "resultsets": [{"rowcount": 171, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | null |
Page: pages not transcluded in French Wikisource | Filtered by a given index title | USE frwikisource_p;
SELECT DISTINCT index_page.pl_title
FROM page AS ind, page, pagelinks AS index_page
LEFT JOIN templatelinks AS main_page
ON
main_page.tl_namespace = 104 AND
main_page.tl_title = index_page.pl_title AND
main_page.tl_from_namespace = 0
WHERE
ind.page_namespace = 112 AND
ind.page_title... | {"runningtime": "0.58", "resultsets": [{"rowcount": 193, "headers": ["page_title"]}]} | null |
Page: pages not transcluded in French Wikisource | Filtered by a given index title | USE frwikisource_p;
SELECT DISTINCT index_page.pl_title
FROM page AS ind, page, pagelinks AS index_page
LEFT JOIN templatelinks AS main_page
ON
main_page.tl_namespace = 104 AND
main_page.tl_title = index_page.pl_title AND
main_page.tl_from_namespace = 0
WHERE
ind.page_namespace = 112 AND
ind.page_title... | {"runningtime": "0.70", "resultsets": [{"rowcount": 193, "headers": ["concat('Libri di ', author.page_title)"]}]} | 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.33", "resultsets": [{"rowcount": 21, "headers": ["cat_title"]}]} | null |
Page: pages not transcluded in French Wikisource | Filtered by a given index title | USE frwikisource_p;
SELECT DISTINCT index_page.pl_title
FROM page AS ind, page, pagelinks AS index_page
LEFT JOIN templatelinks AS main_page
ON
main_page.tl_namespace = 104 AND
main_page.tl_title = index_page.pl_title AND
main_page.tl_from_namespace = 0
WHERE
ind.page_namespace = 112 AND
ind.page_title... | {"runningtime": "0.41", "resultsets": [{"rowcount": 55, "headers": ["indice"]}]} | 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.44", "resultsets": [{"rowcount": 55, "headers": ["indice", "autore"]}]} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.