title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
নিবন্ধের সংখ্যা অনুযায়ী উইকিপিডিয়ানদের তালিকা | 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 r... | {"runningtime": "0.82", "resultsets": [{"rowcount": 0, "headers": ["Title", "user", "comment"]}]} | null |
T232451 | null | use enwiki_p;
select *
from actor
where actor_name like '%\_'; | {"runningtime": "0.14", "resultsets": [{"rowcount": 10, "headers": ["page_title"]}]} | null |
أكثر المستخدمين إنشاءً للمقالات ضمن مشروع ويكي طب | null | use arwiki_p;
SELECT rev_user_text, count(rev_user_text)
FROM revision
INNER JOIN page ON rev_page = page_id
WHERE page_namespace = 0
AND rev_parent_id = 0
and rev_timestamp BETWEEN 20170101000000 AND 20181231235959
AND page.page_is_redirect = 0
AND page.page_id in (select cl_from from categorylinks where cl_from = pag... | {"runningtime": "3.05", "resultsets": [{"rowcount": 100, "headers": ["page_title", "rd_from"]}]} | null |
أكثر المستخدمين تعديلًا في مشروع ويكي طب | null | use arwiki_p;
select actor_name, count(rev_id)
from revision
inner join actor
on actor_id = rev_actor
inner join page p1
on p1.page_id = rev_page
where (select p2.page_id from page p2
where p2.page_title = p1.page_title
and p2.page_namespace = (p1.page_namespace+1)
and p2.page_is_redirect = 0) ... | {"runningtime": "0.32", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), ']]')"]}]} | null |
990601 mp1 # of DAB pages with direct link (pages) | null | USE fawiki_p;
SELECT COUNT(DISTINCT(page_title))
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_nam... | {"runningtime": "2.55", "resultsets": [{"rowcount": 149, "headers": ["Title", "user", "comment"]}]} | null |
990601 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'); | {"runningtime": "2.37", "resultsets": [{"rowcount": 94, "headers": ["Title", "user", "comment"]}]} | null |
990601 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 ... | {"runningtime": "2.90", "resultsets": [{"rowcount": 264, "headers": ["Title", "user", "comment"]}]} | null |
990601 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... | {"runningtime": "2.51", "resultsets": [{"rowcount": 329, "headers": ["Title", "user", "comment"]}]} | null |
Philosophy Project Network Data | null | SELECT
pl_from, pl_title, page_title, page_is_redirect, pa_class, pa_importance
from
pagelinks
JOIN
page_assessments on pa_page_id = pl_from
LEFT JOIN
page on page_id = pa_page_id
WHERE
pa_project_id = 98
| {"runningtime": "0.22", "resultsets": [{"rowcount": 4, "headers": ["page_title"]}]} | null |
nlwiki_p Pages without content category | Pages without any categories or with only maintenance categories.
Query breakdown:
1. articles = a list of recently edited article pages that are not nominated for deletion and older than 24 hours
2. hc = a list of maintenance categories, meaning the titles of category pages with the __HIDDENCAT__ or __EXPECTUNUSEDCAT... | USE glwiki_p;
SELECT page_title, rev_timestamp
FROM (
# recent bewerkte artikelen die niet genomineerd zijn en ouder dan 24 uur
SELECT DISTINCT page_id, page_title, rev_timestamp
FROM page, revision
WHERE
page_namespace=0 AND
page_is_redirect=0 AND
NOT EXISTS (
SELECT *
FROM p... | {"runningtime": "0.26", "resultsets": [{"rowcount": 4, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 1, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Index pages by authors born or died a multiple of 100 years ago | List of index pages (from Italian Wikisource) for books written by authors who were born or died an exact number of centuries ago | use itwikisource_p;
select
concat('[[Indice:', replace(indice.page_title, '_', ' '), ']]') Indice,
(select replace(cat_title, 'Pagine_indice_SAL_', '')
from category join categorylinks on cat_title = cl_to
where cl_from = indice.page_id and cat_title like 'Pagine_indice_SAL_%') SAL,
concat('[[Au... | {"runningtime": "0.65", "resultsets": [{"rowcount": 4, "headers": ["page_title", "rd_title"]}]} | null |
All edits made by participants in the 2019 Indian Independence Day datathon | (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": "0.86", "resultsets": [{"rowcount": 0, "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", "pa... | null |
ukwiki pages with disambiguation and redirect information | null | use ukwiki_p;
select
page_id,
page_title,
page_is_redirect,
rd_title as redirect_target,
pp_propname as disambiguation
from page p
left join redirect r
on rd_from = page_id
and rd_namespace = 0
and rd_fragment = '' # Issue #1
and rd_interwiki = ''
left join page_props
on page_id = pp_page
and... | {"runningtime": "55.95", "resultsets": [{"rowcount": 164, "headers": ["concat(\"* [[User:\",user_name,\"]]\")"]}]} | null |
List of "Media from BEIC" files | List of filenames mostly for usage in mediacounts-stats.py | USE commonswiki_p;
SELECT page_title
FROM page
JOIN categorylinks
ON cl_from = page_id
AND cl_to = "Media_from_BEIC"
AND page_namespace = 6; | {"runningtime": "0.48", "resultsets": [{"rowcount": 6, "headers": ["lexeme ID"]}, {"rowcount": 1, "headers": ["as of"]}]} | null |
Random 750 sample of Wikidata items across different size strata, plus Wikidata low Q-ID items | Generates a stratified random sample of Wikidata items by byte-length size of the JSON blobs. Additionally, the query generates low Q-ID Wikidata items. Redirects are removed. | use wikidatawiki_p;
(SELECT page_latest AS rev_id, page_title, page_len, "1024" as strata
FROM page
WHERE page_namespace = 0 AND page_len BETWEEN 0 AND 1024 AND page_is_redirect = 0
ORDER BY RAND() LIMIT 150)
UNION ALL
(SELECT page_latest AS rev_id, page_title, page_len, "8192" as strata
FROM page
WHERE page_namespa... | {"runningtime": "18.62", "resultsets": [{"rowcount": 2160, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}]} | null |
Lexeme pagelinks to redirected Items | Pagelinks from Lexeme pages to Items that are now redirects. | USE `wikidatawiki_p`;
SELECT `pl_title`, COUNT(*) AS `count`
FROM `pagelinks`
JOIN `page` ON `pl_title` = `page_title`
WHERE `pl_from_namespace` = 146
AND `pl_namespace` = 0
AND `page_namespace` = 0
AND `page_is_redirect` = 1
GROUP BY `pl_title`
ORDER BY `count` DESC; | {"runningtime": "97.57", "resultsets": [{"rowcount": 0, "headers": ["concat(\"* [[User:\",user_name,\"]]\")"]}]} | null |
Lexeme pagelinks to redirected Items | Pagelinks from Lexeme pages to Items that are now redirects, and were not touched within the last 7 days (i. e. we can consider the redirect “stable”). | USE `wikidatawiki_p`;
SELECT `pl_title`, COUNT(*) AS `count`
FROM `pagelinks`
JOIN `page` ON `pl_title` = `page_title`
WHERE `pl_from_namespace` = 146
AND `pl_namespace` = 0
AND `page_namespace` = 0
AND `page_is_redirect` = 1
AND `page_touched` < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 7 DAY), '%Y%m%d%H%i%s')
GROUP BY `p... | {"runningtime": "67.32", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | null |
Category count on enwiki | null | select count(*) from category;
| {"runningtime": "2.52", "resultsets": [{"rowcount": 1, "headers": ["count(page.page_title)"]}]} | null |
Edições revertidas em agosto de 2020 | null | USE ptwiki_p;
SELECT
EDIÇÕES_REG,
CONCAT(r_reg, ' (', ROUND(r_reg * 100 / EDIÇÕES_REG, 1) , '%)') REG_REVERTIDAS,
EDIÇÕES_IP,
CONCAT(r_ip, ' (', ROUND(r_ip * 100 / EDIÇÕES_IP, 1) , '%)') IP_REVERTIDAS
FROM
(SELECT
COUNT(actor_user) EDIÇÕES_REG,
SUM(actor_user IS NULL) EDIÇÕES_IP
FROM revision
INNER JOIN ... | {"connection_id": 251517125} | null |
Uploaders of images in certain category by images count [Unpleasant Discoveries WLE 2020] | 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 = "Unpleasant_Discoveries_Special_Nomi... | {"runningtime": "0.29", "resultsets": [{"rowcount": 88, "headers": ["Tables_in_mkwikimedia_p"]}]} | null |
categorize | null | select rc.rc_id, rc.rc_timestamp, rc.rc_actor, rc.rc_title, rc.rc_comment_id, rc.rc_new, rc.rc_cur_id, rc.rc_type, rc.rc_source, rc.rc_ip, rc.rc_old_len, rc.rc_new_len, rc.rc_deleted, rc.rc_logid, rc.rc_log_type, ac.actor_user, ac.actor_name
from recentchanges as rc
join actor as ac on ac.actor_id=rc.rc_actor
where rc... | {"runningtime": "119.94", "resultsets": [{"rowcount": 481, "headers": ["cl_to", "count_cl_to"]}]} | null |
source_1 | null | select rc.rc_id, rc.rc_timestamp, rc.rc_actor, rc.rc_title, rc.rc_comment_id, rc.rc_bot, rc.rc_new, rc.rc_cur_id, rc.rc_type, rc.rc_source, rc.rc_ip, rc.rc_old_len, rc.rc_new_len, rc.rc_deleted, rc.rc_logid, rc.rc_log_type, ac.actor_user, ac.actor_name, pg.page_title
from recentchanges as rc
join actor as ac on ac.acto... | {"runningtime": "138.67", "resultsets": [{"rowcount": 481, "headers": ["cl_to", "count_cl_to"]}]} | 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-de... | {"runningtime": "151.50", "resultsets": [{"rowcount": 465, "headers": ["cl_to", "count_cl_to"]}]} | null |
Wikidata - tables - wb_terms - describe table, sample data | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_terms;
SELECT DISTINCT term_entity_type from wb_terms;
SELECT * from wb_terms WHERE term_entity_id = 5 AND term_language = 'en' LIMIT 10;
# SELECT term_entity_type, count(*) FROM wb_terms GROUP BY term_entity_type;
SELECT term_type, count(*) FROM wb_terms... | {"runningtime": "0.16", "resultsets": [{"rowcount": 30, "headers": ["rev_id", "rev_actor", "rev_timestamp", "rev_parent_id", "page_title"]}]} | 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 T208425_wb_terms
WHERE term_language IN (
'as', 'bn', 'gom... | {"runningtime": "0.35", "resultsets": [{"rowcount": 112, "headers": ["page_title"]}]} | null |
Analysis of move actions by Pi.1415926535 | null | USE commonswiki_p;
SELECT l.log_title, page_title, l.log_timestamp
FROM page
JOIN logging_userindex AS l ON l.log_actor = 3012 AND l.log_type = "move" AND l.log_page = page_id
WHERE l.log_timestamp > 20100101000000; | {"runningtime": "4.10", "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", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new"... | null |
Statistics of editing MediaWiki JS/CSS in ruwiki | Считает количество правок в Media Wiki *.css и *.js по пользователям, в поле Random Page одна из страниц, которую правил пользователь | USE ruwiki_p;
SELECT actor_name AS 'User', page_title AS 'Random Page', COUNT(*) AS 'Edits'
FROM revision_userindex
JOIN page ON page_id = rev_page
JOIN actor ON rev_actor = actor_id
WHERE rev_timestamp >= "20181001"
GROUP BY actor_name
ORDER BY COUNT(*) DESC; | {"runningtime": "234.72", "resultsets": [{"rowcount": 34, "headers": ["page_title"]}]} | null |
scowiki_p ns0 all | null | USE scowiki_p;
SELECT count(page_id)
FROM page
WHERE page_namespace = 0 | {"connection_id": 260856167} | null |
scowiki_p empty categories | null | USE scowiki_p;
SELECT
page_title,
page_len
FROM categorylinks
RIGHT JOIN page ON cl_to = page_title
WHERE page_namespace = 14
AND page_is_redirect = 0
AND cl_to IS NULL
| {"runningtime": "2.05", "resultsets": [{"rowcount": 136, "headers": ["\u0639\u062f\u062f \u0627\u0644\u0635\u0641\u062d\u0627\u062a", "\u0627\u0644\u0639\u0646\u0648\u0627\u0646"]}]} | null |
scowiki_p very short articles | null | USE scowiki_p;
SELECT page_title, page_len
FROM page
WHERE page_is_redirect = 0
AND page_namespace = 0
AND page_len < 250 | {"runningtime": "0.51", "resultsets": [{"rowcount": 87, "headers": ["\u0639\u062f\u062f \u0627\u0644\u0635\u0641\u062d\u0627\u062a", "\u0627\u0644\u0639\u0646\u0648\u0627\u0646"]}]} | null |
scowiki_p very short articles - not disambigs | null | # nb this list is almost but not quite the same as https://sco.wikipedia.org/wiki/Category:Aw_airticle_disambiguation_pages
USE scowiki_p;
SELECT page_title, page_len, page_id
FROM page
WHERE page_is_redirect = 0
AND page_namespace = 0
AND page_id IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'dis... | {"runningtime": "57.42", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 212, "headers": ["wikipage"]}]} | null |
scowiki_p very long articles | null | USE scowiki_p;
SELECT page_title, page_len
FROM page
WHERE page_is_redirect = 0
AND page_namespace = 0
AND page_len > 25000 | {"runningtime": "11.10", "resultsets": [{"rowcount": 1000, "headers": ["ll_count", "title_en", "title_zh", "title", "wb_item"]}]} | null |
2020 fawiki eligible voter | null | use fawiki_p;
select
concat('[[User:', user_name, '|]]'),
concat(left(log_timestamp, 4), '-', mid(log_timestamp, 5, 2), '-', mid(log_timestamp, 7, 2)) as acct_created,
concat(left(first_timestamp, 4), '-', mid(first_timestamp, 5, 2), '-', mid(first_timestamp, 7, 2)) as first_edit,
concat('{{formatnum:', fivehun... | {"runningtime": "4.00", "resultsets": [{"rowcount": 19, "headers": ["actor_name", "COUNT(actor_name)", "page_title", "rev_timestamp"]}]} | null |
French description | 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": "11.54", "resultsets": [{"rowcount": 1000, "headers": ["ll_count", "title_en", "title_zh", "title", "wb_item"]}]} | null |
2020 fawiki eligible voter | null | use fawiki_p;
select
concat('[[User:', user_name, '|]]'),
concat(left(log_timestamp, 4), '-', mid(log_timestamp, 5, 2), '-', mid(log_timestamp, 7, 2)) as acct_created,
concat(left(first_timestamp, 4), '-', mid(first_timestamp, 5, 2), '-', mid(first_timestamp, 7, 2)) as first_edit,
concat('{{formatnum:', fivehun... | {"connection_id": 263972728} | null |
Pages without external links | Get all pages from page 0 ns which do not use external link | use frwiki_p;
SELECT
COUNT(*),
TRIM(LEADING 'www.' FROM SUBSTRING_INDEX(SUBSTRING_INDEX(el_to, '/', 3),'/',-1)) AS site
FROM externallinks, page
WHERE el_from = page_id
AND page_namespace = 0
GROUP BY 2
HAVING COUNT(*) >= 49
ORDER BY COUNT(*) DESC ; | {"runningtime": "53.65", "resultsets": [{"rowcount": 2, "headers": ["page_title", "rev_id", "delta", "rev_timestamp"]}]} | null |
Most used external links on frwiki | null | use frwiki_p;
SELECT
COUNT(*),
TRIM(LEADING 'www.' FROM SUBSTRING_INDEX(SUBSTRING_INDEX(el_to, '/', 3),'/',-1)) AS site
FROM externallinks, page
WHERE el_from = page_id
AND page_namespace = 0
GROUP BY 2
HAVING COUNT(*) >= 100
ORDER BY COUNT(*) DESC ;
LIMIT 500 | {"runningtime": "0.54", "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 |
Files on hi no file page | null | USE hiwiki_p;
#SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki, CONCAT("[[:File:", b.img_name, "]]") AS Commons #, b.img_timestamp
SELECT CONCAT("# [[:File:", a.img_name, "]]") AS File
FROM image a
LEFT JOIN page p ON p.page_title = a.img_name AND p.page_namespace = 6
WHERE p.page_title IS NULL
#INNER JOIN cate... | {"connection_id": 266797873} | null |
Non-free files used outside articles (hi) | null | USE hiwiki_p;
SELECT DISTINCT CONCAT('# [[:File:', p.page_title, ']]') FROM page p
INNER JOIN categorylinks c ON p.page_id = c.cl_from
INNER JOIN (imagelinks i LEFT JOIN redirect r ON i.il_from = r.rd_from) ON p.page_title = i.il_to
WHERE c.cl_to = "सभी_ग़ैर-मुक्त_मीडिया"
AND i.il_from_namespace != 0
AND r.rd_from IS N... | {"runningtime": "12.85", "resultsets": [{"rowcount": 1, "headers": ["count(page_id)"]}]} | null |
Part 1 | null | select count(*)
from user
join actor_logging
on actor_user = user_id
left join logging_userindex
on log_actor = actor_id
and log_type = 'newusers'
and log_action in ('create', 'autocreate') -- creating main account
and log_timestamp < '20200712000000' -- occured 3 or more months prior to nomination start date... | {"runningtime": "102.60", "resultsets": [{"rowcount": 162, "headers": ["page_title", "actor_name", "comment_text"]}]} | null |
Part 2 | null | select count(*)
from user
join actor_logging
on actor_user = user_id
left join logging_userindex
on log_actor = actor_id
and log_type = 'newusers'
and log_action in ('create', 'autocreate') -- creating main account
and log_timestamp < '20200712000000' -- occured 3 or more months prior to nomination start date... | {"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]} | null |
Part 3 | null | select count(*)
from user
join actor_logging
on actor_user = user_id
left join logging_userindex
on log_actor = actor_id
and log_type = 'newusers'
and log_action in ('create', 'autocreate') -- creating main account
and log_timestamp < '20200712000000' -- occured 3 or more months prior to nomination start date... | {"runningtime": "0.13", "resultsets": [{"rowcount": 16, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]} | null |
First Part | null | use fawiki_p;
select
user_id,
user_name
from user
join actor
on actor_user = user_id
join
(
select rev_actor
from revision_userindex
join page
on page_id = rev_page
where
page_namespace = 0
and rev_timestamp > '20191012000000' -- last 12 months leading to nomination start date
and rev_tim... | {"runningtime": "0.11", "resultsets": [{"rowcount": 8, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]} | null |
Bad disambiguation page titles (eswiki) | Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki). | use eswiki_p;
select page_title as main_title
from (page join redirect on page_id = rd_from)
where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
| {"runningtime": "0.08", "resultsets": [{"rowcount": 4, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]} | null |
Count | null | USE hiwiki_p;
SELECT img_name, COUNT(img_timestamp)
FROM image
GROUP BY img_name
ORDER BY COUNT(img_timestamp) DESC
#This is not working because old versions are in another table | {"runningtime": "440.40", "resultsets": [{"rowcount": 1273, "headers": ["page_title", "cl_to"]}]} | null |
Second Part | null | use fawiki_p;
select
user_id,
user_name
from user
join actor
on actor_user = user_id
join
(
select
rev_actor
from revision_userindex
join page
on page_id = rev_page
where
page_namespace = 0
and rev_timestamp < '20201012000000' -- edits prior to nomination start date
group by rev_actor
... | {"runningtime": "47.38", "resultsets": [{"rowcount": 118, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]} | null |
Files on hi.wiki with old versions | null | USE hiwiki_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 = "सभी_ग़ैर-मुक्त_मीडिया" #Non-free files
#INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = "सभी_मु... | {"runningtime": "0.10", "resultsets": [{"rowcount": 10, "headers": ["page_title", "page_len"]}]} | null |
WikiDaheim users 2020 (by first revision, by uploader) | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count
FROM actor, revision, image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND actor.actor_id = revision.rev_actor
AND image.img_name = page.page_title
and revision.r... | {"runningtime": "0.47", "resultsets": [{"rowcount": 16, "headers": ["date", "images"]}]} | null |
1st Parliament of the 2nd Republic of Ghana Wikipedia Edit Count in Time Frame | This query was used to determine participants with the highest Wikipedia edit count in the 3rd Parliament of Ghana Challenge that run from 1 September 2020 UTC to 15 September 2020 UTC. See: https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Ghana/Parliament_of_Ghana/Members_of_the_3rd_Parliament_of_the_4th_Republi... | 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",
"Shahadusadik",
"Celestinesucess",
"Nana yaa series",
"Sunkanmi12",
"Kinvidia",
"Piousmaiden",
"Mwintirew",
"Rosy86",
... | {"runningtime": "2.06", "resultsets": [{"rowcount": 29, "headers": ["user", "edit_count"]}]} | null |
Death page titles | null | SELECT COUNT(*) FROM page
WHERE page_namespace = 0
AND page_title LIKE 'Killing_of%'
AND page_is_redirect = 0 | {"runningtime": "26.22", "resultsets": [{"rowcount": 8552, "headers": ["log_actor", "log_type", "log_action", "log_timestamp", "actor_id", "actor_user", "user_id", "user_name", "user_registration", "user_editcount"]}]} | null |
Categories containing themselves | null | select cl_to
from categorylinks
join page on page_namespace = 14 and page_title = cl_to
where cl_from = page_id | {"runningtime": "195.59", "resultsets": [{"rowcount": 52132, "headers": ["log_actor", "log_type", "log_action", "log_timestamp", "actor_id", "actor_user", "user_id", "user_name", "user_registration", "user_editcount"]}]} | null |
All parentcat-subcat connections | null | select cl_from as parent, page_id as subcat
from categorylinks
join page on page_namespace = 14 and page_title = cl_to
where cl_type = 'subcat' | {"runningtime": "16.86", "resultsets": [{"rowcount": 19, "headers": ["Date", "Comment", "Page"]}]} | null |
CAT edits made via manual tagging | null | use commonswiki_p;
SELECT
SUBSTR(rev_timestamp, 1, 6) AS MONTH,
COUNT(rev_id) AS edits
FROM change_tag
JOIN revision_userindex ON rev_id = ct_rev_id
JOIN user ON rev_actor = user_id
WHERE ct_tag_id = 461 # Magic number - corresponds to 'computer-aided-tagging' but the text version isn't available
GROUP BY MONTH; | {"runningtime": "238.26", "resultsets": [{"rowcount": 600, "headers": ["page_title", "cl_to"]}]} | null |
CAT edits made via suggested tags | null | use commonswiki_p;
SELECT
SUBSTR(rev_timestamp, 1, 6) AS MONTH,
COUNT(rev_id) AS edits
FROM change_tag
JOIN revision_userindex ON rev_id = ct_rev_id
JOIN user ON rev_actor = user_id
WHERE ct_tag_id = 435 # Magic number - corresponds to 'computer-aided-tagging' but the text version isn't available
GROUP BY MONTH; | {"runningtime": "2.22", "resultsets": [{"rowcount": 33, "headers": ["user", "img_count"]}]} | null |
Contributors newiki | null | USE newiki_p;
SET @row_number = 0;
SELECT
(@row_number:=@row_number + 1) AS rank,
user_id,
user_name,
user_editcount
FROM user
WHERE user_editcount > 0 AND
(user_name NOT IN (SELECT
user_name
FROM user
JOIN user_groups
... | {"runningtime": "61.48", "resultsets": [{"rowcount": 1496, "headers": ["COUNT(*)", "site"]}]} | null |
frwiki: weblinks | null | USE frwiki_p;
SELECT COUNT(*) AS cnt_http_club FROM externallinks WHERE el_index LIKE 'http://fr.lemonde.%';
SELECT COUNT(*) AS cnt_https_club FROM externallinks WHERE el_index LIKE 'https://fr.lemonde.%';
SELECT COUNT(*) AS cnt_http_space FROM externallinks WHERE el_index LIKE 'http://fr.lefigaro.%';
SELECT COUNT(*) ... | {"runningtime": "0.13", "resultsets": [{"rowcount": 8, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]} | null |
wiki covid | null | surf | {"runningtime": "0.09", "resultsets": [{"rowcount": 8, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]} | null |
specieswiki_p: AND page_title LIKE "%et_al.,2%" | null | USE specieswiki_p;
#SELECT CONCAT(page_title)
SELECT page_title
FROM page
WHERE page_namespace = 0
AND page_is_redirect = 0
AND page_title LIKE "A%"
#AND page_is_redirect = 1
#AND (page_title LIKE "%peopel%" OR page_title LIKE "%Peopel%")
#ORDER BY page_title ASC
LIMIT 99999; | {"runningtime": "308.56", "resultsets": [{"rowcount": 1, "headers": ["Count", "Size_GB"]}]} | null |
WikiDaheim users 2020 (by first revision, by uploader) | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count
FROM actor, revision, image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND actor.actor_id = revision.rev_actor
AND image.img_name = page.page_title
and revision.r... | {"connection_id": 279975416} | null |
مقالات مختارة | null | USE arwiki_p;
SELECT CONCAT('# [[:تصنيف:',cl_to,']]') AS cl_to, COUNT(*) AS count_cl_to
FROM page, categorylinks
WHERE page_id = cl_from
#AND page_namespace = 0
AND cl_to LIKE '%مقالات_مختارة_منذ%'
AND NOT EXISTS
(SELECT * FROM page AS p1
WHERE cl_to = p1.page_title
AND p1.page_namespace = 14)
GROUP BY cl_to
ORDER BY c... | {"runningtime": "1.75", "resultsets": [{"rowcount": 0, "headers": ["ipb_id", "ipb_address", "ipb_timestamp", "comment_text"]}]} | 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... | {"runningtime": "0.16", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | null |
تصنيفات المحتوى المتميز غير الموجودة حسب التاريخ | null | USE arwiki_p;
SELECT CONCAT('# [[:تصنيف:',cl_to,']]') AS cl_to, COUNT(*) AS count_cl_to
FROM page, categorylinks
WHERE page_id = cl_from
#AND page_namespace = 0
AND cl_to LIKE '%محتوى_ويكيبيديا_المتميز_منذ%' #since
AND NOT EXISTS
(SELECT * FROM page AS p1
WHERE cl_to = p1.page_title
AND p1.page_namespace = 14)
GROUP BY... | {"runningtime": "142.30", "resultsets": [{"rowcount": 402, "headers": ["cl_to", "count_cl_to"]}]} | null |
مقالات جيدة | null | USE arwiki_p;
SELECT CONCAT('# [[:تصنيف:',cl_to,']]') AS cl_to, COUNT(*) AS count_cl_to
FROM page, categorylinks
WHERE page_id = cl_from
AND page_namespace = 0
AND cl_to LIKE '%مقالات_جيدة_منذ%'
AND NOT EXISTS
(SELECT * FROM page AS p1
WHERE cl_to = p1.page_title
AND p1.page_namespace = 14)
GROUP BY cl_to
ORDER BY coun... | {"runningtime": "0.35", "resultsets": [{"rowcount": 12, "headers": ["page_id", "page_namespace", "page_title"]}]} | null |
Most used external links with .gouv.fr on frwiki | null | USE frwiki_p;
SELECT *
FROM externallinks, page
WHERE el_from = page_id
AND page_namespace = 0
AND SUBSTRING_INDEX(SUBSTRING_INDEX(el_to, '/', 3), '.', -2) = 'gouv.fr'
LIMIT 1; | {"runningtime": "0.11", "resultsets": [{"rowcount": 14, "headers": ["concat(\"# [[:\u062a\u0635\u0646\u064a\u0641:\",page_title,\"]]\")"]}]} | null |
WMUA-WLM-UA Photo Competition participants 2012-2020 not active in WLM-UA 2019 | WLE-UA Photo Competition participants 2013-2017 not active in 2018 | use commonswiki_p;
SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line
FROM revision r_prev
join categorylinks on rev_page = cl_from
join actor on rev_actor = actor_id and actor_user is not null
WHERE rev_parent_id = 0
and cl_to IN (
"Images_from_Wiki_Loves_Monuments_2012_in_Ukra... | {"runningtime": "0.11", "resultsets": [{"rowcount": 10, "headers": ["revactor_rev", "revactor_actor", "revactor_timestamp", "revactor_page"]}]} | null |
Most used external links with .ca 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) = 'ca'
GROUP BY sito
HAVING COUNT(*) > 10
ORDER BY 1 DESC; | {"runningtime": "133.67", "resultsets": [{"rowcount": 15, "headers": ["wikitext"]}]} | null |
Most frequent domains (frwiki) | This query compiles a list of 10 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(*) > 10000
OR... | {"runningtime": "1.72", "resultsets": [{"rowcount": 3, "headers": ["page_title", "rev_timestamp"]}]} | null |
قوائم مختارة | null | USE arwiki_p;
SELECT CONCAT('# [[:تصنيف:',cl_to,']]') AS cl_to, COUNT(*) AS count_cl_to
FROM page, categorylinks
WHERE page_id = cl_from
#AND page_namespace = 0
AND cl_to LIKE '%قوائم_مختارة_منذ%'
AND NOT EXISTS
(SELECT * FROM page AS p1
WHERE cl_to = p1.page_title
AND p1.page_namespace = 14)
GROUP BY cl_to
ORDER BY co... | {"runningtime": "13.48", "resultsets": [{"rowcount": 0, "headers": ["concat (\"\u0646\u0642\u0627\u0634:\",page_title)"]}]} | null |
Most used external links with .com 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) = 'com'
GROUP BY sito
HAVING COUNT(*) > 1000
ORDER BY 1 DESC; | {"runningtime": "0.89", "resultsets": [{"rowcount": 11, "headers": ["page_id", "page_namespace", "page_title"]}]} | 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": "0.07", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_title"]}]} | null |
frwiki blocks per day | selecting the distinct number of users and IP addresses | select SUBSTRING(log_timestamp,1,8) as day, count(distinct log_title) as num_blocks
from frwiki_p.logging
where log_action = 'block' and log_timestamp > 20161101000000
group by 1 order by 2; | {"runningtime": "77.66", "resultsets": [{"rowcount": 2, "headers": ["page_title", "page_id", "page_namespace"]}, {"rowcount": 200, "headers": ["pl_title"]}]} | null |
frwiki blocks per day | selecting the distinct number of users and IP addresses | select SUBSTRING(log_timestamp,1,8) as day, count(distinct log_title) as num_blocks
from frwiki_p.logging
where log_action = 'block' and log_timestamp > 20001101000000
group by 1 order by 2; | {"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["pl_title"]}]} | null |
بوابات مختارة | null | USE arwiki_p;
SELECT CONCAT('# [[:تصنيف:',cl_to,']]') AS cl_to, COUNT(*) AS count_cl_to
FROM page, categorylinks
WHERE page_id = cl_from
#AND page_namespace = 0
AND cl_to LIKE '%بوابات_مختارة_منذ%'
AND NOT EXISTS
(SELECT * FROM page AS p1
WHERE cl_to = p1.page_title
AND p1.page_namespace = 14)
GROUP BY cl_to
ORDER BY c... | {"runningtime": "16.00", "resultsets": [{"rowcount": 1000, "headers": ["files"]}]} | null |
Number of review of article in bnwiki | null | USE bnwiki_p;
SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="review"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "98.59", "resultsets": [{"rowcount": 1000, "headers": ["files"]}]} | null |
number of upload in bnwiki | একই ফাইল যতবার আপলোড করা হয়েছে | USE bnwiki_p;
SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="upload"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "0.03", "resultsets": []} | null |
Most active users by edits (timestamp) on bnwiki | বিগত ৩ মাসে সবচেয়ে বেশি অবদান রাখা ব্যবহারকারীগণ।
বিঃদ্রঃ পরবর্তীতে এটি হালনাগাদ করতে চাইলে timestamp পরিবর্তন করতে হবে।
timestamp শুরু ও শেষের তারিখ yymmddhhmmss আকারে, অর্থাৎ বছর-মাস-দিন-ঘণ্টা-মিনিট-সেকেন্ড আকারে রয়েছে। | USE bnwiki_p;
SELECT
CONCAT("#") AS number, actor_user,
CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount/*,
user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE page_namespace = 0
AND actor_user IS NOT NULL
AND r... | {"runningtime": "0.48", "resultsets": [{"rowcount": 5, "headers": ["page_title"]}]} | null |
top reviewers by timestamp on bnwiki | সময় অনুযায়ী অমীমাংসিত সম্পাদনা পর্যালোচনা সংখ্যা।
বর্তমান তালিকাটির সময়: জানুয়ারি ২০২০ থেকে ১৮ সেপ্টেম্বর ২০২০ পর্যন্ত দেওয়া হয়েছে
বিঃদ্রঃ হালনাগাদ করতে চাইলে অবশ্যই timestamp সঠিকভাবে পরিবর্তন করতে হবে।
এই পর্যন্ত সবচেয়ে বেশি অমীমাংসিত সম্পাদনা পর্যালোচনাকারীর তালিকা দেখতে https://quarry.wmflabs.org/query/48290 এ ... | USE bnwiki_p;
-- Re-format wikitable: `(\d+)\.0\|\|(\S[^|]+)`
-- Replace: `$1 || [[User:$2|$2]] `
SELECT actor_name, review_count
, review_count_i as review_count_intial
, (review_count + review_count_i) as review_count_total
FROM
-- next reviews
(
SELECT actor_name, review_count, IFNULL(review_count_i, 0) as revie... | {"runningtime": "0.10", "resultsets": [{"rowcount": 8, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]} | null |
missing listerialist wikidata links | null | use fiwiki_p;
select iwl1, wbx1.wbx_text, wbx2.wbx_text from (
select
iwl1.iwl_title as iwl1,
iwl2.iwl_title as iwl2
from iwlinks as iwl1
LEFT JOIN (
select iwlinks.*
from iwlinks,categorylinks
where
cl_from=iwl_from
and cl_to="Luettelot_Helsingin_rakennuksista_ja_rakennelmista"
) as iwl2
ON... | {"runningtime": "0.10", "resultsets": [{"rowcount": 8, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]} | null |
Active enwiki users | বিগত ৩ মাসে সবচেয়ে বেশি অবদান রাখা ব্যবহারকারীগণ।
বিঃদ্রঃ পরবর্তীতে এটি হালনাগাদ করতে চাইলে timestamp পরিবর্তন করতে হবে।
timestamp শুরু ও শেষের তারিখ yymmddhhmmss আকারে, অর্থাৎ বছর-মাস-দিন-ঘণ্টা-মিনিট-সেকেন্ড আকারে রয়েছে। | USE enwiki_p;
SELECT
CONCAT("#") AS number, actor_user,
CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount/*,
user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE page_namespace = 0
AND actor_user IS NOT NULL
AND r... | {"connection_id": 444395342} | null |
Most used external links with .re 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) = 're'
GROUP BY sito
HAVING COUNT(*) > 10
ORDER BY 1 DESC; | {"runningtime": "8.73", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 4, "headers": ["wpage"]}]} | null |
Most used external links with .pm 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) = 'pm'
GROUP BY sito
HAVING COUNT(*) > 10
ORDER BY 1 DESC; | {"runningtime": "2.24", "resultsets": [{"rowcount": 566, "headers": ["page_title"]}]} | null |
Most used external links with .tf 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) = 'tf'
GROUP BY sito
HAVING COUNT(*) > 10
ORDER BY 1 DESC; | {"runningtime": "0.19", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 1, "headers": ["wpage"]}]} | null |
Most used external links with .yt 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) = 'yt'
GROUP BY sito
HAVING COUNT(*) > 10
ORDER BY 1 DESC; | {"runningtime": "0.56", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 1, "headers": ["wpage"]}]} | null |
Most used external links with .wf 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) = 'wf'
GROUP BY sito
HAVING COUNT(*) > 10
ORDER BY 1 DESC; | {"runningtime": "0.26", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 16, "headers": ["wpage"]}]} | null |
JSTOR/Stable Link Search (TWL) | For getting link numbers for JSTOR now that Special:LinkSearch has a cap. | USE frwiki_p;
select count(*)
from page, externallinks, categorylinks
where page_id = el_from
and page_namespace = 0
and cl_to in ('Article_avec_modèle_Infobox_Commune_de_France')
and el_index like 'https://fr.insee.www./%' | {"runningtime": "66.43", "resultsets": [{"rowcount": 22257, "headers": ["page_title"]}]} | null |
Most active users by edits (timestamp) on bnwiki | বিগত ৩ মাসে সবচেয়ে বেশি অবদান রাখা ব্যবহারকারীগণ।
বিঃদ্রঃ পরবর্তীতে এটি হালনাগাদ করতে চাইলে timestamp পরিবর্তন করতে হবে।
timestamp শুরু ও শেষের তারিখ yymmddhhmmss আকারে, অর্থাৎ বছর-মাস-দিন-ঘণ্টা-মিনিট-সেকেন্ড আকারে রয়েছে। | USE hywiki_p;
SELECT
CONCAT("#") AS number, actor_user,
CONCAT("actor_name") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount/*,
user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE page_namespace = 0
AND actor_user IS NOT NULL
AND rev_timestamp BETWEEN 2020061... | {"runningtime": "487.37", "resultsets": [{"rowcount": 505, "headers": ["page_title", "cl_to"]}]} | null |
Most active users by edits (timestamp) on hywiki | null | USE hywiki_p;
SELECT
CONCAT("#") AS number, actor_user,
CONCAT("actor_name") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount/*,
user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE page_namespace = 0
AND actor_user IS NOT NULL
AND rev_timestamp BETWEEN 2020061... | {"runningtime": "3.60", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 14, "headers": ["wpage"]}, {"rowcount": 3, "headers": ["gil_wiki", "gil_page", "gil_page_namespace_id", "gil_page_namespace", "gil_page_title", "gil_to"]}]} | null |
Most active users by edits (timestamp) on hywiki | null | USE hywiki_p;
SELECT
CONCAT("#") AS number, actor_user,
CONCAT("[[user:actor_name|actor_name]]") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount/*,
user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE page_namespace = 0
AND actor_user IS NOT NULL
AND rev_times... | {"runningtime": "240.81", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 100, "headers": ["wpage"]}, {"rowcount": 3, "headers": ["gil_wiki", "gil_page", "gil_page_namespace_id", "gil_page_namespace", "gil_page_title", "gil_to"]}]} | null |
Most active users by edits (timestamp) on hywiki | null | USE hywiki_p;
SELECT
CONCAT("#") AS number, actor_user,
CONCAT("[[user:actor_name|actor_name]]") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount/*,
user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE page_namespace = 0
AND actor_user IS NOT NULL
AND rev_times... | {"runningtime": "0.31", "resultsets": [{"rowcount": 100, "headers": ["case rev_id when rev_id%2=0 then 'even'\nwhen rev_id%2=1 then 'odd'\nend"]}]} | null |
Most used external links on biographies | External links from articles of a specific WikiProject | USE frwiki_p;
SELECT site, COUNT(*) AS LINKS
FROM (SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to) + 3), '/', 1) AS site
FROM page tp
JOIN page mp ON mp.page_namespace = 0 AND mp.page_title = tp.page_title
JOIN externallinks ON el_from = mp.page_id
JOIN categorylinks ON cl_from = tp... | {"runningtime": "1.12", "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 |
Most used external links from WikiProject Cinéma | External links from articles of a specific WikiProject | USE frwiki_p;
SELECT site, COUNT(*) AS LINKS
FROM (SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to) + 3), '/', 1) AS site
FROM page tp
JOIN page mp ON mp.page_namespace = 0 AND mp.page_title = tp.page_title
JOIN externallinks ON el_from = mp.page_id
JOIN categorylinks ON cl_from = tp... | {"runningtime": "92.34", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | null |
Most used external links from WikiProject Économie | External links from articles of a specific WikiProject | USE frwiki_p;
SELECT site, COUNT(*) AS LINKS
FROM (SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to) + 3), '/', 1) AS site
FROM page tp
JOIN page mp ON mp.page_namespace = 0 AND mp.page_title = tp.page_title
JOIN externallinks ON el_from = mp.page_id
JOIN categorylinks ON cl_from = tp... | {"runningtime": "0.85", "resultsets": [{"rowcount": 12, "headers": ["page_title"]}]} | null |
Most used external links from WikiProject MH | External links from articles of a specific WikiProject | USE frwiki_p;
SELECT site, COUNT(*) AS LINKS
FROM (SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to) + 3), '/', 1) AS site
FROM page tp
JOIN page mp ON mp.page_namespace = 0 AND mp.page_title = tp.page_title
JOIN externallinks ON el_from = mp.page_id
JOIN categorylinks ON cl_from = tp... | {"runningtime": "0.24", "resultsets": [{"rowcount": 9, "headers": ["page_title"]}]} | null |
Article moves at trwiki | null | USE trwiki_p;
SELECT actor_name,
log_timestamp,
log_title,
log_params,
log_page,
comment_text
FROM logging
JOIN comment
ON log_comment_id = comment_id
JOIN actor
ON log_actor = actor_id
WHERE log_type = 'move'
AND log_namespace =... | {"runningtime": "0.12", "resultsets": [{"rowcount": 1, "headers": ["comment_id", "comment_hash", "comment_text", "comment_data"]}]} | null |
Featured pictures on Wikipedia, Arabic | null | USE commonswiki_p;
SELECT COUNT(img_name)
FROM image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND image.img_name = page.page_title
AND categorylinks.cl_to LIKE "Featured_pictures_on_Wikipedia,_Arabic"; | {"runningtime": "0.56", "resultsets": [{"rowcount": 33, "headers": ["actor_name", "edits", "last_edit", "logs", "last_log"]}]} | null |
Pages in English Wikipedia containing "Kiev" in their title | See also https://quarry.wmflabs.org/query/48261 - Categories in Wikimedia Commons containing "Kiev" in their title | SELECT P.page_title, P.page_namespace
FROM enwiki_p.page P
WHERE P.page_title LIKE "%Kiev%"
AND (P.page_namespace = 0 OR P.page_namespace = 10 OR P.page_namespace = 14)
AND P.page_is_redirect = 0
ORDER BY P.page_namespace, P.page_title ASC | {"runningtime": "106.17", "resultsets": [{"rowcount": 742, "headers": ["page_title"]}]} | null |
Categories in Wikimedia Commons containing "Kiev" in their title | See also https://quarry.wmflabs.org/query/48259 - Pages in English Wikipedia containing "Kiev" in their title | SELECT CAT.page_title
FROM commonswiki_p.page CAT
WHERE CAT.page_title LIKE "%Kiev%"
AND CAT.page_namespace = 14
AND CAT.page_is_redirect = 0 | {"runningtime": "97.02", "resultsets": [{"rowcount": 481, "headers": ["page_title"]}]} | null |
Non autopatrollers in rollbacker group (bnwiki) | null | USE bnwiki_p;
SELECT frst.ug_user,user_name,frst.ug_group
FROM user_groups AS frst JOIN user ON user_id=ug_user
WHERE frst.ug_group = 'rollbacker'
AND frst.ug_user NOT IN (
SELECT scnd.ug_user
FROM user_groups AS scnd
WHERE (
scnd.ug_group='autopatrolled'
OR scnd.ug_group='sysop'
)
); | {"runningtime": "913.94", "resultsets": [{"rowcount": 279237, "headers": ["log_actor"]}]} | null |
bnwiki editors by number of file upload | null | USE bnwiki_p;
SELECT actor_name, COUNT(*)
FROM logging
JOIN actor ON log_actor=actor_id
WHERE log_type="upload"
GROUP BY actor_name
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "0.09", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | null |
protect action on bnwiki | প্রশাসক নয় এমন ব্যবহারকারীসহ | USE bnwiki_p;
SELECT actor_name, COUNT(*)
FROM logging
JOIN actor ON log_actor=actor_id
WHERE log_type="protect"
GROUP BY actor_name
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "0.62", "resultsets": [{"rowcount": 1, "headers": ["@dbname", "New CX articles", "New non-CX articles", "Deleted CX articles", "Deleted non-CX articles", "Deleted CX %", "Deleted non-CX %", "Deletion % difference"]}]} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.