title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Users with the most added bytes 2019 | (Needs some fix) | USE kowiki_p;
SELECT CONCAT("[[User:",user_name,"|",user_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
JOIN revision rev
ON user_id = rev.rev_user
JOIN revision parent
ON rev.rev_parent_id = parent.rev_id
JOIN page
ON pa... | {"runningtime": "3.79", "resultsets": [{"rowcount": 6, "headers": ["linter_cat", "count(*)"]}]} | null |
Pages where title-with-en-dashes and title-with-ASCII-hypen aren't the same (ignoring fragments) | Chances are that something like "0-1" and "0–1" should have one redirect to the other or should both redirect to the same place. This lists titles where that is not the case.
It excludes namespaces where weird mismatches are probably ok (e.g. userspace, draftspace) or where redirects don't work as expected (e.g. modul... | SELECT
CONCAT(CASE p1.page_namespace & ~1 WHEN 0 THEN '' WHEN 4 THEN 'Wikipedia' WHEN 6 THEN 'File' WHEN 8 THEN 'MediaWiki' WHEN 10 THEN 'Template' WHEN 12 THEN 'Help' WHEN 100 THEN 'Portal' WHEN 108 THEN 'Book' WHEN 710 THEN 'TimedText' ELSE '???' END, CASE WHEN p1.page_namespace=0 THEN '' WHEN p1.page_namespace=1 T... | {"runningtime": "5.44", "resultsets": [{"rowcount": 13, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 7, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 6, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Pages where title-with-en-dashes and title-with-ASCII-hypen aren't the same | Chances are that something like "0-1" and "0–1" should have one redirect to the other or should both redirect to the same place. This lists titles where that is not the case.
It excludes namespaces where weird mismatches are probably ok (e.g. userspace, draftspace) or where redirects don't work as expected (e.g. modul... | SELECT
CONCAT(CASE p1.page_namespace & ~1 WHEN 0 THEN '' WHEN 4 THEN 'Wikipedia' WHEN 6 THEN 'File' WHEN 8 THEN 'MediaWiki' WHEN 10 THEN 'Template' WHEN 12 THEN 'Help' WHEN 100 THEN 'Portal' WHEN 108 THEN 'Book' WHEN 710 THEN 'TimedText' ELSE '???' END, CASE WHEN p1.page_namespace=0 THEN '' WHEN p1.page_namespace=1 T... | {"runningtime": "198.81", "resultsets": [{"rowcount": 85, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | null |
عناوين مقالات تحتوي مدة (مثل هـ) | null | use arwiki_p;
select page_title from page
where page_title like "%ـ%"
and page_title not like "%هـ%"
and page_namespace = 0
and page_is_redirect = 0; | {"runningtime": "0.14", "resultsets": [{"rowcount": 3, "headers": ["Tables_in_meta_p"]}]} | null |
أكثر الإداريين منعًا | null | USE metawiki_p;
SET @rank=0;
SELECT CONCAT('{{ويكيبيديا:إحصاءات العام/بطاقة جدول/عنصر|',@rank:=@rank+1,'|') AS "المركز", s.*
FROM (
select CONCAT('[[مستخدم:',user_name,'|',user_name,']]'), CONCAT("|",COUNT(user_name),"}}")
from logging
inner join user
on user.user_id = logging.log_user
where log_timestamp BETWEEN 20170... | {"runningtime": "0.16", "resultsets": [{"rowcount": 1, "headers": ["dbname", "lang", "name", "family", "url", "size", "slice", "is_closed", "has_echo", "has_flaggedrevs", "has_visualeditor", "has_wikidata", "is_sensitive"]}]} | null |
قائمة بالمراجعين | null | use metawiki_p;
SELECT
user_name,
ug_group
FROM `user`
JOIN user_groups
where ug_user = user_id
and (ug_group like "%steward%") /*and user_name in (select user_name FROM `user`
JOIN user_groups
where ug_user = user_id
and ug_group like "%autopatrol%" ))*/; | {"runningtime": "0.14", "resultsets": [{"rowcount": 1, "headers": ["dbname", "lang", "name", "family", "url", "size", "slice", "is_closed", "has_echo", "has_flaggedrevs", "has_visualeditor", "has_wikidata", "is_sensitive"]}]} | null |
نشاط البيروقراط | null | use metawiki_p;
select concat ("{{مس|",user_name,"}}") as "اسم المستخدم",
(select count(*) from logging
inner join actor on actor_id = log_actor
where actor_user = user_id and log_type = "rights" and
log_params like '%5::newgroups%"bot"%'
... | {"runningtime": "1488.00", "resultsets": [{"rowcount": 207, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]} | null |
نشاط المضيفين تجربة | null | use metawiki_p;
select concat ("{{u|",user_name,"}}") as "username",
(select count(*) from logging
inner join actor on actor_id = log_actor
where actor_user = user_id and log_type = "gblblock") as "+blocked",
(select count(*) from logging
inn... | {"runningtime": "2.09", "resultsets": [{"rowcount": 50, "headers": ["Files"]}]} | null |
Some Amire80's fork | null | use hewiki_p;
select
(
select rev_timestamp
from revision_userindex
join actor on rev_actor = actor_id
where user_id = actor_user
order by rev_timestamp desc
limit 1
) as 'latest edit time',
user_editcount,
user_name
from user u
where user_editcount between 75 and 85
order by 'latest e... | {"connection_id": 133490739} | null |
نشاط المضيفين + التعديلات في طلبات المضيفين | null | use metawiki_p;
select concat ("{{u|",user_name,"}}") as "username",
(select count(*) from logging
inner join actor on actor_id = log_actor
where actor_user = user_id and log_type = "gblblock") as "+blocked",
(select count(*) from logging
inn... | {"runningtime": "123.35", "resultsets": [{"rowcount": 412, "headers": ["\u0627\u0644\u0645\u0642\u0627\u0644\u0629"]}]} | null |
main namespace dab pages | For [[WP:VPT#Want a list of all categories, and a list of all articles]] circa 17 Jun 2020.
Forked to remove limit and see what happens | SELECT page_title
FROM page
WHERE page_namespace = 0 -- main namespace
AND page_is_redirect = 0 -- exclude redirects
AND EXISTS (SELECT 1
FROM categorylinks
WHERE cl_from = page_id
AND cl_to = 'All_article_disambiguation_pages') -- not in this category; change... | {"connection_id": 134720643} | null |
A magyar Wikipédia mérete | https://hu.wikipedia.org/wiki/Szerkesztő:Samat/A_magyar_Wikipédia_mérete | USE huwiki_p;
/* Real data */
SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page_id) AS articles, AVG(page_len) AS 'average (B)'
FROM page
WHERE page_namespace = 0 AND page_is_redirect = 0;
/* With redirects */
SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page... | {"connection_id": 135334175} | 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.17", "resultsets": [{"rowcount": 0, "headers": ["MID", "P7482", "Q74228490", "P973", "el_to", "CONCAT(\"File:\",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.12", "resultsets": [{"rowcount": 0, "headers": ["MID", "P7482", "Q74228490", "P973", "el_to", "CONCAT(\"File:\",page_title)"]}]} | null |
Bistum OR Diözese | null | USE dewiki_p;
SELECT COUNT(*) as cnt, CONCAT('[[', REPLACE(pl_title, '_', ' '), ']]') as title
FROM pagelinks LEFT JOIN page ON pl_title = page_title AND pl_namespace = page_namespace
WHERE page_id IS NULL
AND pl_namespace = 0
AND pl_from_namespace = 0
AND (pl_title LIKE "%Bistum%" OR "% Diözese%")
GROUP B... | {"runningtime": "84.57", "resultsets": [{"rowcount": 535, "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 |
MassMassage list creator:Active user of Indic Wikisource | Most active users by edits on Bengali Wikisource in last 3 months | USE orwikisource_p;
SELECT
CONCAT("* {{target | user =",actor_name,"| site = or.wikisource.org }}") 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 = 250
AND actor_user IS NOT NULL
AND rev_... | {"runningtime": "1232.47", "resultsets": [{"rowcount": 153, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | null |
Very long stubs | All pages in a category ending with "stubs" that are 50000 or more characters long.
For [[WP:VPR#Get rid of stub tags]] circa 22 Jun 2020. | SELECT page_len,
page_namespace,
page_title,
cl_to
FROM page
JOIN categorylinks ON cl_from = page_id
WHERE cl_to LIKE '%stubs'
AND page_len >= 50000
ORDER BY page_len DESC; | {"runningtime": "0.16", "resultsets": [{"rowcount": 0, "headers": ["Title", "Summary", "en"]}]} | null |
zhwp: delete log comment list short | null | USE zhwiki_p;
SELECT comment_text, COUNT(*) FROM (
SELECT log_timestamp, log_id, UCASE(CONVERT(comment_text USING latin1)) AS `comment_text`
FROM logging
LEFT JOIN comment ON log_comment_id = comment_id
WHERE log_type = "delete"
AND log_action = "delete"
AND comment_text REGEXP "^[A-Za-z][0-9]+$"
AND log_timesta... | {"runningtime": "0.15", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["el_to", "counting"]}]} | null |
RAQ | https://en.wikipedia.org/wiki/Wikipedia:Request_a_query#Users_matching_specfic_criteria | USE enwiki_p;
SELECT *
FROM actor_revision a1
JOIN `user` u1 ON a1.actor_user = u1.user_id
WHERE
u1.user_editcount >= 200
AND "bot" NOT IN (
SELECT ug_group
FROM user_groups
WHERE u1.user_id = ug_user
)
AND 1 <= (
SELECT COUNT(*)
FROM revision_userindex
WHERE rev_timesta... | {"runningtime": "3.06", "resultsets": [{"rowcount": 126, "headers": ["user_name", "user_editcount", "ug_group"]}]} | null |
Uploaded via Campaign:wsc18-ru [Commons] | Pages by author in Commons category ‘Uploaded via Campaign:wsc18-ru’ | USE commonswiki_p;
SELECT
rev_user_text,
COUNT(rev_user_text) AS total,
rev_comment,
rev_timestamp
FROM revision r
INNER JOIN page p ON page_id = r.rev_page
INNER JOIN categorylinks cl ON page_id = cl.cl_from
WHERE
p.page_namespace = 6 AND
r.rev_parent_id = 0 AND
cl.cl_to IN ("Uploaded_via_Campaign:w... | {"runningtime": "0.68", "resultsets": [{"rowcount": 127, "headers": ["user_name", "user_editcount", "ug_group"]}]} | null |
Hewiki most transcluded templates without TemplateData | null | use thwiki_p;
select tl_title as "template", count(tl_from) as "count" from templatelinks
where tl_namespace = 10
and not tl_title like "%/%"
and exists
(select * from page
where page_namespace = 10
and page_title = tl_title
and not exists
(select * from page_props
where pp_page = page_id
and pp_propname = "tem... | {"runningtime": "0.09", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | null |
Scope of edit-warring blocks | The last thousand blocks mentioning edit warring or reversions, and whether they were sitewide or partial.
For [[WT:BP#Partial blocks]] circa 22 June 2020. | SELECT CASE WHEN log_params LIKE '%sitewide";b:1%' THEN 'sitewide' ELSE 'partial' END AS 'scope',
log_timestamp,
log_title,
log_params,
actor_name,
comment_text
FROM logging
JOIN actor_logging ON actor_id = log_actor
JOIN comment_logging ON comment_id = log_comment_id
WHERE log_type =... | {"runningtime": "119.35", "resultsets": [{"rowcount": 100, "headers": ["user_name", "user_editcount", "ug_group", "timestamp"]}]} | null |
AfC review counts, last month * | null | use enwiki_p;
select count(rc_id) as reviews, actor_name,
concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / count(rc_id), 1), "%") as "accept %",
concat(round(SUM(comment_text like "Declining submission:%") * 100 / count(rc_id), 1), "%") as "decline %",
concat(round(SUM(comment_tex... | {"runningtime": "0.65", "resultsets": [{"rowcount": 10, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 5, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 5, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Very long stubs arwiki | All pages in a category ending with "stubs" that are 50000 or more characters long.
For [[WP:VPR#Get rid of stub tags]] circa 22 Jun 2020. | use arwiki_p;
SELECT page_len,
page_namespace,
page_title,
cl_to
FROM page
JOIN categorylinks ON cl_from = page_id
WHERE cl_to LIKE 'بذرة%'
AND page_len >= 50000
ORDER BY page_len DESC; | {"runningtime": "0.99", "resultsets": [{"rowcount": 9, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 5, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 5, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Article count ("link" method) | null | SELECT COUNT(DISTINCT page_id)
FROM 4637590
WHERE page_namespace=0 AND page_is_redirect=0; | {"connection_id": 145105812} | null |
Taxa by author subcats to translate to fa | null | use enwiki_p;
select
CONCAT('Category:', cl_to) as category_name,
count(*) as fawiki_counterparts
from (
select cl_to
from categorylinks
join page
on page_id = cl_from
join langlinks
on ll_from = cl_from
and ll_lang = 'fa'
where cl_to in (
select page_title
from categorylinks
join ... | {"runningtime": "0.80", "resultsets": [{"rowcount": 100, "headers": ["page_title", "el_to"]}]} | null |
Television_by_country | null | use enwiki_p;
select
CONCAT('Category:', cl_to) as category_name,
count(*) as fawiki_counterparts
from (
select cl_to
from categorylinks
join page
on page_id = cl_from
join langlinks
on ll_from = cl_from
and ll_lang = 'fa'
where cl_to in (
select page_title
from categorylinks
join ... | {"runningtime": "0.12", "resultsets": [{"rowcount": 0, "headers": ["CONCAT ('* [[',REPLACE(page_title,'_',' '),']]')"]}]} | null |
Wikiproject Cleanup Contributions (Copy) | null | use arwiki_p;
SET @rank=0;
SELECT CONCAT('{{إحصاءات مساهم في مشروع ويكي الصيانة|',@rank:=@rank+1,'|') AS rank, s.*
FROM (
SELECT
rev_user_text,
CONCAT('|',COUNT(*),'}}')
FROM revision_userindex
WHERE rev_comment like "%وب:م و ص%"
GROUP BY rev_user_text
ORDER BY COUNT(*) DESC) s; | {"runningtime": "178.96", "resultsets": [{"rowcount": 28, "headers": ["actor_name", "edits"]}]} | null |
Users without autoreview right on plwiki by last edit | null | USE plwiki_p;
SELECT CONCAT("{{Lw|",user_name,"}}") AS user_name, user_editcount, ug_group, COUNT(actor_id) AS recent_user_editcount
FROM user
LEFT OUTER JOIN actor ON actor_user = user_id
LEFT OUTER JOIN revision_actor_temp ON revactor_actor = actor_id
LEFT OUTER JOIN user_groups ON ug_user = actor_user
LEFT OUTER JOI... | {"connection_id": 148711061} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM actor INNER JOIN revision
ON revision.rev_actor = actor.actor_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev... | {"runningtime": "0.13", "resultsets": [{"rowcount": 1, "headers": ["@@VERSION"]}]} | null |
validated-Rabiyathulகுன்றக்குடிஅடிகளார்நூல்8 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "1.32", "resultsets": [{"rowcount": 7, "headers": ["title", "count"]}]} | null |
Kategóriaátirányítások | null | USE huwiki_p;
SELECT page_id
FROM categorylinks
RIGHT JOIN page
ON cl_from = page_id
WHERE page_namespace = 14
AND cl_to = 'Kategóriaátirányítások' | {"runningtime": "130.21", "resultsets": [{"rowcount": 22, "headers": ["log_id", "log_type", "log_action", "user_name", "user_editcount", "user_registration", "log_params"]}, {"rowcount": 241, "headers": ["log_id", "log_type", "log_action", "user_name", "user_editcount", "user_registration", "log_params"]}, {"rowcount":... | null |
Empty categories not marked as redirect with template on huwiki | null | # cl_to: Stores the name (excluding namespace prefix) of the desired category. Spaces are replaced by underscores (_)
USE huwiki_p;
SELECT distinct CONCAT('[[:Kategória:',cat_title,']]') AS cat_title#, cat_id, page_id
FROM category
inner join page
on page.page_title = category.cat_title
WHERE NOT EXISTS ( select 1 from... | {"runningtime": "0.33", "resultsets": [{"rowcount": 70, "headers": ["ips_site_page", "CONCAT('Q', d.ips_item_id)", "page_namespace"]}]} | null |
- 1רק עמוד מפנה ורק מרחב ראשי | https://quarry.wmflabs.org/query/43917 Uziel302M - שיחהM 14:02, 14 באפריל 2020 (IDT)
Uziel302M מה זה?--סוס פוניM - שיחה 14:26, 14 באפריל 2020 (IDT)
מה שביקשת, שאילתא שמציגה רק את העמוד המפנה ורק מהמרחב הראשי. Uziel302M - שיחהM 14:57, 14 באפריל 2020 (IDT) | use hewiki_p;
select p.page_title from redirect r
join page p on r.rd_from=p.page_id
where r.rd_namespace=0 and p.page_namespace=0 and p.page_title like 'A%'
limit 100000000; | {"runningtime": "753.16", "resultsets": [{"rowcount": 199, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]} | null |
- 1רק עמוד מפנה ורק מרחב ראשי | https://quarry.wmflabs.org/query/43917 Uziel302M - שיחהM 14:02, 14 באפריל 2020 (IDT)
Uziel302M מה זה?--סוס פוניM - שיחה 14:26, 14 באפריל 2020 (IDT)
מה שביקשת, שאילתא שמציגה רק את העמוד המפנה ורק מהמרחב הראשי. Uziel302M - שיחהM 14:57, 14 באפריל 2020 (IDT) | use hewiki_p;
select p.page_title from redirect r
join page p on r.rd_from=p.page_id
where r.rd_namespace=0 and p.page_namespace=0 and p.page_title like 'C%'
limit 100000000; | {"runningtime": "0.11", "resultsets": [{"rowcount": 0, "headers": ["MID", "P6305", "OTRS", "CONCAT(\"File:\",page_title)"]}]} | null |
Active admins in the last hour | null | SELECT count(DISTINCT rc_user) AS active
FROM recentchanges_compat
INNER JOIN user_groups ON ug_user = rc_user
WHERE rc_timestamp > now() - interval 1 hour
AND ug_group = "sysop"; | {"runningtime": "1620.37", "resultsets": [{"rowcount": 200, "headers": ["CONCAT(\"Q\",ips_item_id)", "Lbn", "CONCAT('\"',ips_site_page,'\"')"]}]} | null |
30日以内に編集した巻き戻し者 | null | use jawiki_p;
SELECT *
FROM change_tag;
SELECT COUNT(*) as `rollbacker in jawp`
FROM `user` as U, `user_groups` as UG
WHERE 1 = 1
and UG.ug_group = 'rollbacker'
and U.user_id = UG.ug_user;
/*
use enwiki_p;
SELECT COUNT(*) as `rollbacker in enwp`
FROM `user` as U, `user_groups` as UG
WHERE 1 = 1
and UG.ug_group = 'ro... | {"connection_id": 159010497} | null |
Self-links | Pages that link to themselves.
This only shows links from a page exactly to itself, that is, it won't see a link from a page to a redirect that points back at page. It will show links that are on a transcluded template (e.g. from [[Achilles]] back to itself via {{Characters in the Iliad}}), and there's no way to excl... | SELECT page_namespace, page_title
FROM page
JOIN pagelinks ON pl_from = page_id
WHERE pl_namespace = page_namespace
AND pl_title = page_title
LIMIT 10000; | {"runningtime": "18.49", "resultsets": [{"rowcount": 10, "headers": ["Title", "SUBSTRING(REGEXP_SUBSTR (comment_text,\"(=(.*?)&)\"), 2, LENGTH (REGEXP_SUBSTR (comment_text,\"(=(.*?)&)\"))-2)", "en"]}]} | null |
Self-links excluding templates | Pages that link to themselves, but don't transclude any templates that link to the page.
This only shows links from a page exactly to itself, that is, it won't see a link from a page to a redirect that points back at page. It also won't show a page that has both a transcluded and non-transcluded self-link.
For [[WP:... | SELECT p1.page_namespace, p1.page_title
FROM page p1
JOIN pagelinks pl1 ON pl1.pl_from = p1.page_id
WHERE pl1.pl_namespace = p1.page_namespace
AND pl1.pl_title = p1.page_title
AND NOT EXISTS (SELECT 1
FROM templatelinks
JOIN page p2 ON p2.page_namespace = tl_namespace AND p2.page... | {"runningtime": "340.94", "resultsets": [{"rowcount": 20, "headers": ["TitleTitle", "Target_link"]}]} | null |
- 1רק עמוד מפנה ורק מרחב ראשי | https://quarry.wmflabs.org/query/43917 Uziel302M - שיחהM 14:02, 14 באפריל 2020 (IDT)
Uziel302M מה זה?--סוס פוניM - שיחה 14:26, 14 באפריל 2020 (IDT)
מה שביקשת, שאילתא שמציגה רק את העמוד המפנה ורק מהמרחב הראשי. Uziel302M - שיחהM 14:57, 14 באפריל 2020 (IDT) | use hewiki_p;
select p.page_title from redirect r
join page p on r.rd_from=p.page_id
where r.rd_namespace=0 and p.page_namespace=0 and p.page_title like 'E%'
limit 100000000; | {"connection_id": 160281720} | null |
- 1רק עמוד מפנה ורק מרחב ראשי | https://quarry.wmflabs.org/query/43917 Uziel302M - שיחהM 14:02, 14 באפריל 2020 (IDT)
Uziel302M מה זה?--סוס פוניM - שיחה 14:26, 14 באפריל 2020 (IDT)
מה שביקשת, שאילתא שמציגה רק את העמוד המפנה ורק מהמרחב הראשי. Uziel302M - שיחהM 14:57, 14 באפריל 2020 (IDT) | use hewiki_p;
select p.page_title from redirect r
join page p on r.rd_from=p.page_id
where r.rd_namespace=0 and p.page_namespace=0 and p.page_title like 'G%'
limit 100000000; | {"runningtime": "397.97", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
990401 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": "8.96", "resultsets": [{"rowcount": 0, "headers": ["cat1", "cat2", "title"]}]} | null |
990401 # of fa articles | null | USE fawiki_p;
SELECT COUNT(page_id)
FROM page
WHERE page_is_redirect = 0
AND page_namespace = 0; | {"runningtime": "5.13", "resultsets": [{"rowcount": 401, "headers": ["cat1", "cat2", "title"]}]} | null |
990401 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": "3.57", "resultsets": [{"rowcount": 401, "headers": ["cat1", "cat2"]}]} | null |
990401 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": "3.62", "resultsets": [{"rowcount": 401, "headers": ["cat1", "cat2"]}]} | null |
990401 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": "3.27", "resultsets": [{"rowcount": 401, "headers": ["cat1", "cat2"]}]} | null |
Harvest Affiliate Members | Harvest affiliate members for all affiliates in Wikimedia. | # avoid duplicate user names
SELECT DISTINCT metawiki_p.pagelinks.pl_title AS "Affiliated Username",
p.page_title AS "Affiliates Group"
FROM metawiki_p.page AS p
JOIN metawiki_p.pagelinks ON metawiki_p.pagelinks.pl_from = p.page_id
# harvest from the a list of affiliates
WHERE p.page_title IN
(
"AfroCROWD_User_Group... | {"connection_id": 161323747} | null |
Links to NLA urls from en wikipedia | null | use enwiki_p;
select * from page
where page_title = 'Harold_Holt' | {"runningtime": "8488.19", "resultsets": [{"rowcount": 1635661, "headers": ["page_creation_timestamp", "page_title"]}]} | null |
King query | null | set @user = "King G.A";
use hewiki_p;
select replace(page_title, "_", " ") as "ערך", rev_timestamp as "תאריך" from page as c join revision
on page_id = rev_page
where page_title in
(select page_title from page as a join categorylinks
on cl_from = a.page_id
where cl_to = "ויקיפדיה:_ערכים_שמתקיים_לגביהם_דיון_חשיבות_אנצ... | {"runningtime": "213.39", "resultsets": [{"rowcount": 1908, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}]} | null |
- 1רק עמוד מפנה ורק מרחב ראשי | https://quarry.wmflabs.org/query/43917 Uziel302M - שיחהM 14:02, 14 באפריל 2020 (IDT)
Uziel302M מה זה?--סוס פוניM - שיחה 14:26, 14 באפריל 2020 (IDT)
מה שביקשת, שאילתא שמציגה רק את העמוד המפנה ורק מהמרחב הראשי. Uziel302M - שיחהM 14:57, 14 באפריל 2020 (IDT) | use hewiki_p;
select p.page_title from redirect r
join page p on r.rd_from=p.page_id
where r.rd_namespace=0 and p.page_namespace=0 and p.page_title like 'J%'
limit 100000000; | {"runningtime": "0.10", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"]}]} | null |
ruwiki: Pages with the biggest number of words | ruwiki: Sort templates by number of spaces | use ruwiki_p;
select
page_title,
page_namespace,
page_is_redirect,
LENGTH(page_title) - LENGTH(REPLACE(page_title, "_", "")) as Number_of_spaces
from page
where
INSTR(page_title, "_") > 0
order by Number_of_spaces desc
limit 1000 | {"runningtime": "3.85", "resultsets": [{"rowcount": 6, "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 |
ruwiki: Templates with the biggest number of words | ruwiki: Sort templates by number of spaces | use ruwiki_p;
select
page_title,
page_is_redirect,
LENGTH(page_title) - LENGTH(REPLACE(page_title, "_", "")) as Number_of_spaces
from page
where
page_namespace = 10 and
INSTR(page_title, "_") > 0
order by Number_of_spaces desc
limit 1000 | {"runningtime": "107.32", "resultsets": [{"rowcount": 1, "headers": ["CONCAT('# [[:File:', page_title, ']]')"]}]} | null |
Crimea Week New | List of articles created for the She Did It Challenge on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
created,
total_len,
articles
FROM
(
SELECT
CONCAT(actor_name) as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as total_len,
GROUP_CONCAT(
DI... | {"connection_id": 170582139} | null |
Crimea Week Improved | List of articles created for the She Did It Challenge on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(article, 'Всього'),
user_number,
size_increase,
users
FROM
(
SELECT
CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') as article,
COUNT(1) AS user_number,
SUM(user_size_increase) as si... | {"runningtime": "287.71", "resultsets": [{"rowcount": 10, "headers": ["CONCAT(\"Q\",ips_item_id)", "Lbn", "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... | {"connection_id": 172086861} | null |
Contributions search by user, edit summary, date | [[User:Red Directors]]'s edits starting in Jan 2019 containing "specific category" in the edit summary.
| SELECT CONCAT('[[Special:Diff/', r1.rev_id, ']]') AS diff,
r1.rev_len-r2.rev_len AS delta,
r1.rev_timestamp,
CONCAT('[[{{ns:', page_namespace, '}}:', page_title, ']]') AS pagename,
comment_text
FROM revision_userindex r1
JOIN actor_revision ON actor_id = r1.rev_actor
LEFT JOIN page O... | {"connection_id": 173469248} | 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.20", "resultsets": [{"rowcount": 1, "headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"]}]} | null |
Largest pages (excl. lists) | CARE: this tool looks at the total page size in bytes. The returned results are not an accurate indicator of readable prose size. | SELECT page_namespace, page_title, page_len
FROM enwiki_p.page
WHERE page_namespace = 0
AND page_title NOT LIKE "%List%"
ORDER BY page_len DESC
LIMIT 100 | {"runningtime": "91.58", "resultsets": [{"rowcount": 0, "headers": ["Benutzerseite", "ist in Kategorie"]}]} | null |
enwiki:Most frequent red links | null | USE enwiki_p;
SELECT pl_title, COUNT(pl_title) AS counting
FROM pagelinks, page
WHERE pl_from = page_id
AND pl_from_namespace = 0
AND pl_namespace = 0
AND NOT EXISTS
(SELECT * FROM page AS p1
WHERE p1.page_title = pl_title
AND pl_namespace = 0
AND p1.page_namespace = 0)
GROUP BY pl_title
HAVING counting > 9
ORDER BY co... | {"runningtime": "0.11", "resultsets": [{"rowcount": 0, "headers": ["pagename", "creator", "ug_group", "ug_expiry"]}]} | null |
Oberflächenadmin-Aktionen | Letzte Aktion der Oberflächenadmins | USE dewiki_p;
SELECT user_name, page_title, page_namespace, rev_timestamp
FROM user, user_groups, actor LEFT JOIN revision
INNER JOIN page
ON rev_page = page_id
ON rev_id = (SELECT MAX(maxR.rev_id)
... | {"runningtime": "1.88", "resultsets": [{"rowcount": 6, "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 |
Recent uses of Twinkle on fawiki | null | use fawiki_p;
select rc_timestamp, rc_title, actor_name, rc_this_oldid, comment_text
from recentchanges
join comment
on rc_comment_id = comment_id
join actor
on rc_actor = actor_id
where comment_text like '%توینکل]]%'
order by rc_id desc
limit 1000; | {"runningtime": "0.98", "resultsets": [{"rowcount": 6, "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 |
WikiJar_SVE_2020 article sizes on skwiki | null | use skwiki_p;
select
replace(pa.page_title, '_', ' ') as title,
pa.page_len
from
page pt,
page pa
where
pt.page_id in (select tl_from from templatelinks where tl_from_namespace = 1 and tl_namespace = 10 and tl_title = 'WikiJar_SVE_2020') and
pa.page_title = pt.page_title and
pa.page_nam... | {"runningtime": "1253.23", "resultsets": [{"rowcount": 47, "headers": ["wikitext"]}]} | null |
Special:Nuke substitute | Nicely-formatted links to delete all pages where User:MagieRouge authored the first currently-non-deleted revision.
For [[WP:VPT#Special:Nuke only finding a few pages]] circa 29 June 2020. | SELECT CONCAT('*[{{fullurl:{{ns:', page_namespace, '}}:', page_title, '|action=delete}} delete] ',
'{{pagelinks|{{ns:', page_namespace, '}}:', page_title, '}}') AS 'paste me'
FROM page
JOIN revision_userindex r1 ON r1.rev_page = page_id
JOIN actor_revision ON actor_id = r1.rev_actor
WHERE r1.rev_timestamp... | {"runningtime": "790.93", "resultsets": [{"rowcount": 175535, "headers": ["file"]}]} | null |
Creation size and current size of fawiki articles | null | use fawiki_p;
select
page_title,
page_latest,
page_len,
rev_timestamp,
rev_len
from page
join revision
on page_id = rev_page
and rev_parent_id = 0
left join categorylinks
on page_id = cl_from
and cl_to = 'همه_صفحههای_ابهامزدایی'
where
page_namespace = 0
and page_is_redirect = 0
and cl_to is nu... | {"runningtime": "13.78", "resultsets": [{"rowcount": 2473, "headers": ["page_title", "el_to", "pp_value"]}]} | null |
Get all living persons without talk pages | Gets all pages with the category Living persons which don't have a talk page | USE arwiki_p;
SELECT CONCAT('نقاش:',page.page_title) AS page_title
FROM page
INNER JOIN categorylinks
ON categorylinks.cl_from = page.page_id
WHERE categorylinks.cl_to = "أشخاص_على_قيد_الحياة"
and page.page_namespace = "0"
and NOT EXISTS (SELECT NULL FROM page p2 WHERE p2.page_namespace = "1"
and p2.page_title =... | {"runningtime": "0.06", "resultsets": []} | null |
Pages with attached old map data | null | use enwiki_p;
SELECT page.page_title, templatelinks.tl_from
FROM page
INNER JOIN templatelinks ON templatelinks.tl_title = page.page_title
WHERE page.page_title LIKE "Map_data/%" AND page.page_namespace = 4 AND page.page_is_redirect = 0
| {"runningtime": "0.16", "resultsets": [{"rowcount": 10, "headers": ["eu_row_id", "eu_entity_id", "eu_aspect", "eu_page_id"]}]} | null |
lista redaktorów plwiktionary z ponad 10 edycjami w ostatnim roku | lista redaktorów plwikisource z ponad 10 edycjami w ostatnim roku | USE plwiktionary_p;
SELECT actor_name FROM
(SELECT COUNT(*) AS n, actor_name
FROM revision JOIN actor ON rev_actor = actor_id
JOIN user_groups ON actor_user = ug_user
JOIN page ON page_id = rev_page
WHERE ug_group = 'editor' AND rev_timestamp > '20190628000000' AND page_namespace % 2... | {"runningtime": "0.28", "resultsets": [{"rowcount": 10, "headers": ["eu_row_id", "eu_entity_id", "eu_aspect", "eu_page_id"]}]} | 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": "124.01", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('[[', page_title, ']]')"]}]} | null |
cast | null | SELECT CAST("Co" AS INT); | {"runningtime": "7.29", "resultsets": [{"rowcount": 72, "headers": ["page_id", "page_title", "page_len"]}]} | null |
Proofread-DeepaArulKaniyam-திருவிளையாடற்புராணம் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
#... | {"runningtime": "12.73", "resultsets": [{"rowcount": 72, "headers": ["page_id", "CONCAT(\"[[\",REPLACE(article.page_title,\"_\",\" \"),\"]]\")", "page_len"]}]} | null |
T2 speedies | Deletions of pages in the Template: namespace containing "T2" (as a distinct word) in the log comment.
For [[WT:CSD#RfC: Removing T2]] circa 16 June 2020. | SELECT DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:%i:%s') AS timestamp,
CONCAT('Template:', log_title) AS pagename,
comment_text
FROM logging
JOIN comment_logging ON comment_id = log_comment_id
WHERE log_type = 'delete'
AND log_action = 'delete'
AND log_namespace = 10 -- Template:
AND comment_text RLIK... | {"runningtime": "10.75", "resultsets": [{"rowcount": 72, "headers": ["page_id", "CONCAT(\"[[\",REPLACE(article.page_title,\"_\",\" \"),\"]]\")", "page_len"]}]} | null |
sortkey prefixx | null | use arwiki_p;
select page_title, cl_sortkey_prefix, COUNT(*)
#page_namespace, page_title, cl_sortkey_prefix, COUNT(*)
from categorylinks join page
on cl_from = page_id
where cl_to = "صفحات_بها_وصلات_إنترويكي_للإزالة"
group by cl_sortkey_prefix having count(*) > 1
ORDER BY COUNT(*) DESC
#imit 100
; | {"runningtime": "62.08", "resultsets": [{"rowcount": 545, "headers": ["page_id", "page_title"]}]} | null |
WLM-Kenya participants 2012, WLA-2014-17, 19-20, not active in WLE 2020 | null | 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_Africa_2014_in_Kenya",... | {"runningtime": "86.58", "resultsets": [{"rowcount": 1, "headers": ["CONCAT(\"# [[\",REPLACE(article.page_title,\"_\",\" \"),\"]] ([[:en:\",REPLACE(article.page_title,\"_\",\" \"),\"|en]])\")"]}]} | null |
WLE-Canada participants 2017-19, not active in WLE 2020 | null | 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_Earth_2017_in_Canada",... | {"runningtime": "138.40", "resultsets": [{"rowcount": 453, "headers": ["CONCAT(\"# [[\",REPLACE(article.page_title,\"_\",\" \"),\"]] ([[:en:\",REPLACE(article.page_title,\"_\",\" \"),\"|en]])\")"]}]} | null |
Disambiguated poets on Latin Wikipedia | Example query for User:Iustinus | select page_namespace, page_title from enwiki_p.page where page_title like '%falva'; | {"connection_id": 199084895} | null |
trwiki:New articles | null | USE trwiki_p;
SELECT CONCAT("# [[",page_title,"]]") AS page_title
FROM page
WHERE page_namespace = 0 AND page_is_new = 1; | {"runningtime": "0.22", "resultsets": [{"rowcount": 0, "headers": ["user_name", "user_editcount", "recent_user_editcount"]}]} | null |
wikidata: deleted items that were created by User:Edoderoo | null | USE wikidatawiki_p;
SELECT
archive.ar_title AS item,
archive.ar_timestamp AS item_creation_timestamp
FROM
archive JOIN actor_archive ON archive.ar_actor=actor_archive.actor_id
WHERE
archive.ar_namespace=0
AND archive.ar_parent_id=0
AND actor_archive.actor_name='Edoderoo'
ORDER BY
archive.ar_timestamp ... | {"connection_id": 199956872} | null |
wd: 模块-prefix | null | USE wikidatawiki_p;
SELECt *
FROM wb_items_per_site
WHERE ips_site_id LIKE 'zh%' AND ips_site_page LIKE '模块:%'
# LIMIT 10 | {"connection_id": 201850619} | null |
Play | null | use zhwiki_p;
-- select user_name, count(*) from revision join page on rev_page = page_id
-- join user_groups on ug_user = revision.rev_user join user on user_id = ug_user
-- where ug_group = 'patroller' and page_namespace = 4 and page_title like '頁面存廢討論/記錄/%'
-- group by revision.rev_user order by count(*) des... | {"runningtime": "0.11", "resultsets": [{"rowcount": 0, "headers": ["MIN(rev_id)", "rev_actor", "rev_timestamp", "page_title", "cl_to"]}]} | null |
WLE_Spain participants 2015-19, not active in WLE 2020 | null | 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_Earth_2015_in_Spain",
... | {"runningtime": "492.41", "resultsets": [{"rowcount": 156, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | null |
Exploring interlanguage links | null | SELECT ll_lang, ll_title FROM langlinks WHERE ll_from = 64001387 | {"runningtime": "216.00", "resultsets": [{"rowcount": 21, "headers": ["page_title"]}]} | null |
Deleted items created by salgo60 | copied from query 28636 by user Mahir256 | USE wikidatawiki_p;
SELECT
archive.ar_title AS item,
archive.ar_timestamp AS item_creation_timestamp,
comment.comment_text as reason
FROM
archive JOIN actor_archive ON archive.ar_actor=actor_archive.actor_id
JOIN logging on archive.ar_title=logging.log_title
JOIN comment on logging.l... | {"runningtime": "119.43", "resultsets": [{"rowcount": 23, "headers": ["page_title"]}]} | null |
94rain test | null | USE zhwiki_p;
SELECT page_title, page_id, rev_timestamp
FROM revision_userindex
LEFT JOIN page ON page_id = rev_page
WHERE page_namespace = 0
AND rev_parent_id = 0
AND rev_deleted = 0
AND page_is_redirect = 0; | {"runningtime": "270.63", "resultsets": [{"rowcount": 4, "headers": ["page_title"]}]} | null |
Looking for similar weird categorylinks | null | SELECT * FROM categorylinks WHERE cl_timestamp = "2015-06-01T22:41:23" LIMIT 50; | {"runningtime": "1.34", "resultsets": [{"rowcount": 1, "headers": ["page_title", "pl_title", "counting"]}]} | null |
Páginas de usuário movidas para outro domínio | null | USE ptwiki_p;
SELECT
log_timestamp,
actor_name USUÁRIO,
CONCAT('Usuário(a):', log_title) MOVEU_DE,
SUBSTRING_INDEX(SUBSTRING_INDEX(log_params, '"', 4), '"', -1) PARA
FROM logging
INNER JOIN actor ON log_actor = actor_id
WHERE log_type = 'move' AND log_namespace = 2 AND log_params NOT LIKE '%:"Usuári%'
ORDER BY log_... | {"runningtime": "289.81", "resultsets": [{"rowcount": 1300, "headers": ["rev_actor", "edits"]}]} | null |
Articles with curly quotes in title | Articles with curly quotes in title
| SELECT DISTINCT page_title
FROM page
JOIN templatelinks ON page_id=tl_from
WHERE page_namespace = 0
AND page_is_redirect = 0
AND page_title RLIKE '(\‘|\’|\`|\´)'
AND NOT tl_title = "Okina" | {"runningtime": "3.01", "resultsets": [{"rowcount": 0, "headers": ["pl_title", "counting", "pa_project_id"]}]} | null |
All mayor lists | null |
SELECT page.page_namespace, page.page_title, cl_to FROM categorylinks LEFT JOIN page ON cl_from=page_id RIGHT JOIN
(SELECT page_title FROM categorylinks LEFT JOIN page ON cl_from=page_id WHERE cl_to="Lists_of_mayors_of_places_in_the_United_States" and page_title LIKE "%places_in%") us_lists ON cl_to=us_lists.page_ti... | {"runningtime": "299.86", "resultsets": [{"rowcount": 1254, "headers": ["rev_actor", "edits"]}]} | null |
Q1: Dativ-e | My First Test | USE dewiktionary_p;
SELECT count(p1.page_id),
min(p1.page_title)
#p2.page_title,
#cl_from, cl_to
FROM page p1
JOIN categorylinks
on cl_from = p1.page_id
and cl_to in ('Deklinierte_Form_Dativ-e_(Deutsch)','Substantiv_(Deutsch)')
#join page p2
#on p2.page_title = left(p1.page_title,length(p1.page_title)-1)
#and p2.page... | {"connection_id": 212697193} | null |
Quota di contributi verificati nella Wikipedia in italiano | Patrolled edits on the Italian Wikipedia, it.wiki, it.wikipedia.
Quota giornaliera di modifiche modificate fra le ultime modifiche (30 giorni), sul totale e sulle solo modifiche effettuate da utenti non registrati. Sono escluse modifiche segnate come bot, modifiche fuori dal namespace 0, "finte" ultime modifiche (come ... | USE itwiki_p;
SELECT GIORNO, CONTRIBUTI, PATROLLED, CONCAT(ROUND(PATROLLED * 100 / CONTRIBUTI), ' %') AS PERCENTUALE, CONCAT(ROUND(ANONIMIPATROLLED * 100 / ANONIMI), ' %') AS SoloNonRegistrati
FROM (
SELECT SUBSTR(rc_timestamp, 1, 8) AS GIORNO,
SUM(rc_user > -1) AS CONTRIBUTI,
SUM(rc_patrolled) AS PATROLLED,
S... | {"runningtime": "0.13", "resultsets": [{"rowcount": 10, "headers": ["page_title", "rev_timestamp"]}]} | null |
Q3: Homonyme | null | USE dewiktionary_p;
SELECT p1.page_title,
count(cl_to),
min(cl_to),
max(cl_to)
FROM page p1
JOIN categorylinks
on cl_from = p1.page_id
and cl_to in ('Substantiv_m_(Deutsch)', 'Substantiv_f_(Deutsch)', 'Substantiv_n_(Deutsch)')
#Following does not work - why not?
#and cl_to regexp '^Substantiv_[mfn]_\(Deutsch\)$'
WHERE ... | {"runningtime": "247.62", "resultsets": [{"rowcount": 787, "headers": ["rev_page", "min_timestamp"]}]} | null |
WikiDaheim users 2020 | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count
FROM actor, image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND actor.actor_id = image.img_actor
AND image.img_name = page.page_title
AND categorylinks.cl_to = "... | {"runningtime": "0.98", "resultsets": [{"rowcount": 5, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 3, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 3, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Labels and sitelinks by label | null | use wikidatawiki_p;
select term_entity_id,term_text,ips_site_id,ips_site_page from wb_terms,wb_items_per_site WHERE term_language='en' AND term_entity_type='item' AND term_type='label' AND ips_item_id=term_entity_id
AND term_text IN ('Cambridge') | {"runningtime": "526.03", "resultsets": [{"rowcount": 1366, "headers": ["rev_actor", "edits"]}]} | null |
count of interwiki links by prefix, excluding most wiki domains | Total: 37,735 links (2019-03-13) | select iwl_prefix, count(distinct page_id, iwl_title) as cnt from iwlinks
right join page on iwlinks.iwl_from = page.page_id
where page_namespace = 0
and iwl_prefix in ("ruwiki")
group by iwl_prefix order by count(distinct page_id, iwl_title) desc; | {"connection_id": 213184912} | null |
Find lexemes by language and lexical category | This query searches for lexemes which link to two items, which may be the language and the lexical category of the lexeme (but any other link, e. g. in statements, will also be included). Change the item IDs in lines 10 and 18 to search for different item IDs (Q188 = German, Q24905 = verb).
Note that the results will ... | SHOW TABLES FROM wikidatawiki_p;
USE wikidatawiki_p;
SELECT page.page_title AS "lexeme ID", lexical_category.pl_title
FROM page
JOIN (
SELECT pl_from, pl_title
FROM pagelinks
WHERE pl_from_namespace = 146#Lexeme
AND pl_namespace = 0
AND pl_title = 'Q5885'#Tamil
) language
ON language.pl_from = page.page_id
J... | {"runningtime": "0.23", "resultsets": [{"rowcount": 10, "headers": ["rev_page", "rev_timestamp"]}]} | null |
Titles with colon-number pattern | These titles contains a pattern that makes PHP's native parse_url() function to fail to parse urls that contain them (in relative form). More details at https://phabricator.wikimedia.org/T256831. | USE enwiki_p;
SELECT page_title
FROM page
WHERE page_namespace = 0
AND page_title
REGEXP '[^0-9][^:]:{1}[1-9]{1,}$';
| {"connection_id": 218436575} | null |
all revisions | null | USE enwiki_p;
SELECT revision.rev_id, revision.rev_actor,
revision.rev_timestamp, revision.rev_parent_id,
page.page_title
#pagelinks.pl_title
# revision.rev_minor_edit, revision.rev_deleted,
# page.page_namespace,
FROM revision
JOIN page ON revision.rev_page=page.page_id
#RIGHT JOIN pagelinks ON revision.rev_page=p... | {"runningtime": "857.06", "resultsets": [{"rowcount": 160, "headers": ["edits", "actor_name"]}]} | null |
Q4: Text | null | #SHOW databases LIKE "de%";
use dewiktionary_p;
select count(*) from page;
| {"runningtime": "120.51", "resultsets": [{"rowcount": 150, "headers": ["CONCAT(\"\u0160ablona:\",SUBSTRING_INDEX(templates.page_title, '/', 1))", "disambigs", "uses"]}]} | 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.31", "resultsets": [{"rowcount": 1000, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_text_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "ar_content_model", "ar_content_form... | null |
RoySmith's RfA | null | select * from logging_userindex
where
log_type = 'rights'
-- and log_timestamp > 20051009000000
-- and log_timestamp < 20051010000000
and log_title = 'RoySmith'
limit 10;
| {"connection_id": 694101} | null |
RoySmith's RfA | null | select * from logging inner join comment on comment.comment_id = logging.log_comment_id
where
log_type = 'rights'
-- and log_timestamp > 20051009000000
-- and log_timestamp < 20051010000000
and log_title = 'RoySmith'
limit 1;
| {"runningtime": "592.43", "resultsets": [{"rowcount": 97, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.