title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Articles created with 2-3 edits of just that user or bots | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp as "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE u.rev_parent_id IN (
select distinct
r.rev_id
from
revision_userindex r
where
r.rev_actor = 40
and
... | {"runningtime": "0.37", "resultsets": [{"rowcount": 55, "headers": ["Indice", "Autore"]}]} | null |
[super massive] Articles with 1-6 edits from a set of bots + users | null | /* Users:
40 - AG
4114 - Fixer88
4379 - Cekli829
54357 - Mock wurzel soup
95806 - Lee Vilenski
12135 - Vanished
89955 - Minorax
79723 - MJL
139384 - James Salsman
7440 - Jimjom
7699 - Varlaam
Bots:
178 - EmausBot
191 - Chobot
488 - CommonsDelinker
1115 - Dexbot
2031 - YiFeiBot
2579 - JAnDbot
2905 - TohaomgBot
2710 - Me... | {"runningtime": "0.47", "resultsets": [{"rowcount": 55, "headers": ["Indice", "SAL", "Autore", "Nascita", "Morte"]}]} | null |
[massive] Articles with 1 edit from a set of bots + users | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp AS "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE p.page_latest in (
select distinct
v.rev_id
from
revision_userindex v
join page e ON e.page_id = v.rev_page
w... | {"runningtime": "0.99", "resultsets": [{"rowcount": 322, "headers": ["page_title"]}]} | null |
[massive] Articles with 4 edits from a set of bots + users | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp AS "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE p.page_latest in (
select distinct
v.rev_id
from
revision_userindex v
join page e ON e.page_id = v.rev_page
w... | {"runningtime": "1.08", "resultsets": [{"rowcount": 322, "headers": ["page_title"]}]} | null |
[massive] Articles with 5 edits from a set of bots + users | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp AS "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE p.page_latest in (
select distinct
v.rev_id
from
revision_userindex v
join page e ON e.page_id = v.rev_page
w... | {"runningtime": "1273.42", "resultsets": [{"rowcount": 21, "headers": ["CONCAT('[[', page_title, ']]')"]}]} | null |
[massive] Articles with 6 edits from a set of bots + users | null | /* Users:
40 - AG
4114 - Fixer88
4379 - Cekli829
54357 - Mock wurzel soup
95806 - Lee Vilenski
12135 - Vanished
89955 - Minorax
79723 - MJL
139384 - James Salsman
7440 - Jimjom
7699 - Varlaam
Bots:
178 - EmausBot
191 - Chobot
488 - CommonsDelinker
1115 - Dexbot
2031 - YiFeiBot
2579 - JAnDbot
2905 - TohaomgBot
2710 - Me... | {"runningtime": "1641.55", "resultsets": [{"rowcount": 133, "headers": ["CONCAT('# [[',REPLACE(page_title,'_',' '),']]')"]}]} | null |
[massive] Articles with 7 edits from a set of bots + users | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp AS "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE p.page_latest in (
select distinct
v.rev_id
from
revision_userindex v
join page e ON e.page_id = v.rev_page
w... | {"runningtime": "993.38", "resultsets": [{"rowcount": 58, "headers": ["File name", "Date", "Size", "Uploader's name"]}]} | null |
Actor_id lookup | null | USE scowiki_p;
SELECT
actor_name,
actor_id
FROM
actor
WHERE
actor_id BETWEEN 1 AND 500 | {"runningtime": "0.08", "resultsets": [{"rowcount": 6, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]} | null |
All edits made by participants in the 2020 Bengali cinema 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... | {"connection_id": 494680458} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"runningtime": "0.09", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
top reviewer in bnwiki of all time | বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি অমীমাংসিত সম্পাদনা পর্যালোচনাকারী | 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.14", "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 |
সবচেয়ে বেশি ব্যবহৃত টেমপ্লেট যেগুলো সুরক্ষিত নয় | null | use bnwiki_p;
select page_title from page
where (select count(*) from templatelinks where tl_title = page_title and tl_namespace = 10) > 5000
and (select count(*) from page_restrictions where pr_page = page_id) = 0
and page_namespace = 10
and page_is_redirect = 0
; | {"connection_id": 495354645} | null |
[Copy] Label/description/alias stats for 8th Schedule tongues | THIS QUERY NO LONGER WORKS--SEE https://www.wikidata.org/wiki/User:Mr._Ibrahem/Language_statistics_for_items INSTEAD!
(Had to split the query since it kept getting killed lately. The rest of the languages are tracked in query #31655.)
Thanks, Pasleim, for the original query! | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT
term_entity_type,
term_language,
count(if(term_type = 'label',1,null)) as labels,
count(if(term_type = 'description',1,null)) as descriptions,
count(if(term_type = 'alias',1,null)) as aliases
FROM wb_terms
WHERE term_language IN (
'as', 'bn', 'gom', 'gom-... | {"runningtime": "613.31", "resultsets": [{"rowcount": 2, "headers": ["Title"]}]} | null |
interwiki | null | USE ruwiki_p;
SELECT
count(*) AS count,
p.page_title
FROM
page p, langlinks l1
where p.page_namespace = 0
and p.page_id = l1.ll_from
and not exists (select 1 from langlinks l2 where l1.ll_from=l2.ll_from and l2.ll_lang='en')
group by p.page_id, p.page_title
order by count(*) desc... | {"runningtime": "77.68", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_title", "rd_namespace", "rd_title"]}]} | null |
Files with same names on Serbian Wikipedia and Wikimedia Commons | null | USE srwiki_p;
SELECT concat("* [[:File:",REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '),"]]") FROM page p
INNER JOIN (image e JOIN commonswiki_p.image c ON c.img_name = e.img_name) ON e.img_name = p.page_title
#LEFT JOIN categorylinks c1 ON c1.cl_from = p.page_id AND c1.cl_to = 'All_Wikipedia_files_wi... | {"runningtime": "13.46", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]} | null |
Duplicates of files on Serbian Wikipedia and Wikimedia Commons | null | USE srwiki_p;
SELECT concat("* [[:File:",REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '),"]]") FROM page p
INNER JOIN (image e JOIN commonswiki_p.image c ON c.img_sha1 = e.img_sha1) ON e.img_name = p.page_title
#LEFT JOIN categorylinks c1 ON c1.cl_from = p.page_id AND c1.cl_to = 'All_Wikipedia_files_wi... | {"runningtime": "50.41", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]} | null |
WSC-UK previous years' participants 2020 | WSC-UK previous years' participants not active this year | use commonswiki_p;
SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line
FROM revision r_prev
join categorylinks on rev_page = cl_from
join actor on rev_actor = actor_id and actor_user is not null
WHERE rev_parent_id = 0
and cl_to IN (
"Images_from_European_Science_Photo_Competitio... | {"runningtime": "1.28", "resultsets": [{"rowcount": 1, "headers": ["COUNT(page_id)"]}]} | null |
WLM 2020 participants | All participants to WLM 2020 | use commonswiki_p;
SELECT DISTINCT actor_name
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_2020"
) | {"connection_id": 504077390} | null |
নিবন্ধ ছাড়া নতুন আলাপ পাতা | null | SET @ns = 1; # Talk namespace number to search
SET @prefix = ''; # Namespace prefix for links (prepended to 'talk:')
USE bnwiki_p;
SELECT CONCAT( '# [[', @prefix, 'আলাপ:', pg.page_title, ']]') AS 'Title' FROM page pg
WHERE pg.page_is_redirect = 0
AND pg.page_namespace = @ns
AND pg.page_title NOT IN (SELECT pg2.page_ti... | {"runningtime": "2.33", "resultsets": [{"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 1, "headers": ["COUNT(*)"]}]} | null |
List of talk pages created by a bot with no edits since | null | USE bnwiki_p;
SELECT
page_title,
rev_timestamp
FROM
revision_userindex
JOIN page ON page_id = rev_page
WHERE page_latest IN (
select distinct
rev_id
from
revision_userindex
where
rev_actor = 294
and
rev_parent_id = 0
and
page_is_redirect = 0
... | {"runningtime": "2.03", "resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}]} | null |
most active editors on bnwikivoyage by edits | সর্বশেষ হালনাগাদ ৯ নভেম্বর ২০২০ | USE bnwikivoyage_p;
SET @counter:=0; SELECT CONCAT("|",@counter:=@counter+1,"") AS rank, CONCAT("[[ব্যবহারকারী:",user_name,"|",user_name,"]]") AS user_name, user_editcount
FROM user
WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot')
AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)"
ORDER BY us... | {"runningtime": "0.18", "resultsets": [{"rowcount": 10, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "p... | null |
rights action by bnwiki admin | null | USE bnwiki_p;
SELECT actor_name, COUNT(*)
FROM logging
JOIN actor ON log_actor=actor_id
WHERE log_type="rights"
GROUP BY actor_name
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "1.79", "resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}]} | null |
Number of articles without images in bnwiki | null | USE bnwiki_p;
select count(page_id)
from page
where page_namespace=0
and page_is_redirect=0
and page_id not in (select il_from FROM imagelinks WHERE il_from_namespace=0 and il_to not like '%.svg')
and page_id not in (select pp_page FROM page_props WHERE pp_propname='page_image_free' or pp_propname='page_image')
| {"connection_id": 504109179} | 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": "215.03", "resultsets": [{"rowcount": 50642, "headers": ["page_title"]}]} | null |
trwiki:Likely Article of the Year 2020 size criteria satisfaction for Vikiproje Felsefe | null | USE trwiki_p;
SELECT page_latest, MAX(prev.rev_id), page_title, prev.rev_len, page_len, IFNULL(((CAST(page_len AS SIGNED)-CAST(prev.rev_len AS SIGNED))/CAST(prev.rev_len AS SIGNED)),1) as delta
FROM page
INNER JOIN trwiki_p.page_assessments ON pa_page_id=page_id AND pa_project_id=264
JOIN revision AS cur ON cur.rev_pag... | {"runningtime": "3.75", "resultsets": [{"rowcount": 10, "headers": ["rc_logid", "rc_timestamp", "rc_namespace", "rc_title", "log_actor", "actor_id", "actor_user", "actor_name", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_u... | null |
trwiki:Likely Article of the Year 2020 size criteria satisfaction for Vikiproje Bilim tarihi | null | USE trwiki_p;
SELECT page_latest, MAX(prev.rev_id), page_title, prev.rev_len, page_len, IFNULL(((CAST(page_len AS SIGNED)-CAST(prev.rev_len AS SIGNED))/CAST(prev.rev_len AS SIGNED)),1) as delta
FROM page
INNER JOIN trwiki_p.page_assessments ON pa_page_id=page_id AND pa_project_id=78
JOIN revision AS cur ON cur.rev_page... | {"runningtime": "0.41", "resultsets": [{"rowcount": 10, "headers": ["rc_logid", "rc_timestamp", "rc_namespace", "rc_title", "log_actor", "actor_name"]}]} | null |
trwiki:Likely Article of the Year 2020 size criteria satisfaction | null | USE trwiki_p;
SELECT page_latest, MAX(prev.rev_id), page_title, prev.rev_len, page_len, IFNULL(((CAST(page_len AS SIGNED)-CAST(prev.rev_len AS SIGNED))/CAST(prev.rev_len AS SIGNED)),1) as delta
FROM page
JOIN revision AS cur ON cur.rev_page = page_id
LEFT JOIN revision AS prev ON prev.rev_page = cur.rev_page
AND pr... | {"runningtime": "57.13", "resultsets": [{"rowcount": 19, "headers": ["page_title"]}]} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM actor INNER JOIN revision
ON revision.rev_actor = actor.actor_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev... | {"runningtime": "0.74", "resultsets": [{"rowcount": 50, "headers": ["page_title", "GROUP_CONCAT(cl_to)"]}]} | null |
most thanked users in bnwiki | বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী | USE bnwiki_p;
SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="thanks"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "205.87", "resultsets": [{"rowcount": 1, "headers": ["EDI\u00c7\u00d5ES_REG", "REG_REVERTIDAS", "EDI\u00c7\u00d5ES_IP", "IP_REVERTIDAS"]}]} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"runningtime": "0.09", "resultsets": [{"rowcount": 0, "headers": ["img_name", "img_timestamp", "cl_to"]}]} | 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.10", "resultsets": [{"rowcount": 10, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"runningtime": "0.58", "resultsets": [{"rowcount": 10, "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", "pl_from", "pl_namespace", "pl_title",... | null |
Get nlwiki page schema | null | DESCRIBE enwiki_p.page; | {"runningtime": "37.12", "resultsets": [{"rowcount": 1832, "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 |
DESCRIBE pagelinks | null | SCHEMA pagelinks; | {"runningtime": "17.83", "resultsets": [{"rowcount": 301, "headers": ["page_namespace", "page_title", "displaytitle", "LOWER(LEFT(CONVERT(page_title USING utf8mb4), 1))"]}]} | null |
a random user | null | SELECT *
FROM user
WHERE user_id = 40546682; | {"runningtime": "0.10", "resultsets": [{"rowcount": 1, "headers": ["max(rev_timestamp)"]}]} | null |
[George_Washington] | null | SELECT *
FROM
page
WHERE
page_namespace = 0
AND page_title = 'George_Washington'
LIMIT 25; | {"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["max(rev_timestamp)"]}]} | null |
Paolo Monti photos and data | null | USE commonswiki_p;
SELECT img_name, img_size, img_width, img_height, img_bits, img_minor_mime, img_sha1, img_metadata
FROM image
WHERE img_name LIKE "Paolo_Monti%"; | {"runningtime": "0.12", "resultsets": [{"rowcount": 1, "headers": ["max(rev_timestamp)"]}]} | null |
top bnwiki users by block log of all time | সংখ্যা অনুযায়ী বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি বাধাপ্রাপ্ত ব্যবহারকারী | USE bnwiki_p;
SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="block"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "1567.98", "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 |
Most thank sender in bnwiki | null | USE bnwiki_p;
SELECT actor_name, COUNT(*)
FROM logging
JOIN actor ON log_actor=actor_id
WHERE log_type="thanks"
GROUP BY actor_name
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "0.13", "resultsets": [{"rowcount": 1, "headers": ["max(rev_timestamp)"]}]} | null |
Unregistered users page or subpage:bnwiki | তালিকায় কয়েকটি নিবন্ধিত একাউন্টও থাকতে পারে... | USE bnwiki_p;
SELECT
page_namespace,
CONCAT("[[ব্যবহারকারী:",page_title,"|",page_title,"]]") AS page_title,
GROUP_CONCAT(REPLACE(cl_to,'_',' ') SEPARATOR ' | ') AS cl_to
FROM `page` LEFT JOIN `categorylinks` ON page_id=cl_from
WHERE
page_is_redirect=0 AND
page_namespace IN (2, 3) AND
page_title NOT REGEX... | {"runningtime": "28.38", "resultsets": [{"rowcount": 1255, "headers": ["reviews", "rc_title", "accepted", "accept %", "declined", "decline %"]}]} | null |
trwiki:Top 1000 editors by bytes | null | USE trwiki_p;
/*SELECT actor_name, SUM(rev_len) as bytes
FROM revision
JOIN actor_revision ON rev_actor = actor_id
JOIN page ON rev_page = page_id
WHERE
rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect=0
AND rev_deleted=0
GROUP BY actor_id
ORDER BY bytes DESC
LIMIT 1000;
SELECT actor_name,
... | {"runningtime": "0.11", "resultsets": [{"rowcount": 16, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]} | null |
trwiki:Interwiki links in articles | null | USE trwiki_p;
SELECT page_title, COUNT(iwl_from) AS num_links, GROUP_CONCAT(CONCAT("[[:",iwl_prefix,":",iwl_title,"]]") SEPARATOR ", ") FROM iwlinks
JOIN page ON iwl_from=page_id AND page_namespace=0 AND (iwl_prefix REGEXP "^[a-z]{2,3}(?:_[a-z]{2,3})?$" OR iwl_prefix="w") AND iwl_prefix NOT IN ("rfc","doi","wmf","mw","... | {"connection_id": 521924487} | 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.10", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]} | null |
Trwikibooks users by number of edits | null | SELECT user_name, user_editcount
FROM trwikibooks_p.user
WHERE user_editcount >= 50
ORDER BY user_editcount ASC | {"runningtime": "131.39", "resultsets": [{"rowcount": 5, "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 |
List of pages with "Infobox musical artist" template transclusion | You can add any infobox in tl_title (see https://en.wikipedia.org/wiki/Wikipedia:List_of_infoboxes), just replace spaces with underscores. | SELECT page_title FROM templatelinks
LEFT JOIN page ON templatelinks.tl_from=page.page_id
WHERE tl_title = 'Infobox_musical_artist' AND tl_namespace = 10
LIMIT 100; | {"connection_id": 523469552} | 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": "1.01", "resultsets": [{"rowcount": 27, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 7, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 9, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
2000's copyvio patrolling | https://quarry.wmflabs.org/run/506360/output/0/html
https://quarry.wmflabs.org/run/506415/output/0/html
https://quarry.wmflabs.org/run/506416/output/0/html | USE trwiki_p;
SELECT CONCAT("[[",page_title,"]]") as Madde, CONCAT("[",el_to,"]") as Link, CONCAT("[[Özel:Fark/",rev_id,"]]") as "Sürüm"
FROM revision_userindex
JOIN page ON rev_page = page_id
join externallinks
on (page_id=el_from)
WHERE page_namespace = 1
AND rev_actor=3947
AND rev_id NOT IN ('66917','98216... | {"runningtime": "556.10", "resultsets": [{"rowcount": 330, "headers": ["page_title", "cl_to"]}]} | null |
Articles which might contain unreliable sources by external link (arwiki)) | https://quarry.wmflabs.org/query/16346 | use arwiki_p;
SET sql_mode='PIPES_AS_CONCAT';
select '# [['||el_to ||']]' as el_to, CONCAT('# ',GROUP_CONCAT(page_title SEPARATOR ' '),'') as page, COUNT(el_to) as cnt
from externallinks
inner join page
on (page_id=el_from)
where page_namespace =0
and (el_to like '%.blogspot.%'
or el_to like '%.tumblr.%'
... | {"runningtime": "465.95", "resultsets": [{"rowcount": 330, "headers": ["page_title", "cl_to"]}]} | null |
majavahbot task 6 | null | select
page_id,
page_title
from page
where
page_namespace = 1
and page_title not in (
select pl_title
from pagelinks
where pl_from = 65539331 -- User:MajavahBot/DYK blurb not found
and pl_namespace = 1
)
and exists (
select 1
from categorylinks
... | {"runningtime": "0.16", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
Disambigue per numero di collegamenti in ingresso | null | USE itwikiquote_p;
SELECT CONCAT('# [[', page_title, ']] (', COUNT(*), ')')
FROM page, pagelinks
WHERE pl_title = page_title
AND page_namespace = 0
AND page_is_redirect = 0
AND pl_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
... | {"runningtime": "0.11", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
2000's copyvio patrolling, extended | https://quarry.wmflabs.org/run/506563/output/0/html
https://quarry.wmflabs.org/run/506937/output/0/html
https://quarry.wmflabs.org/run/506952/output/0/html
https://quarry.wmflabs.org/run/506958/output/0/html | USE trwiki_p;
/*SELECT CONCAT("[[",page_title,"]]") as Madde, GROUP_CONCAT(CONCAT("[",el_to,"]") SEPARATOR ', ') as Link#, CONCAT("[[Özel:Fark/",rev_id,"]]") as "Sürüm"
FROM revision_userindex
JOIN page ON rev_page = page_id
join externallinks
on (page_id=el_from)
WHERE page_namespace = 0
AND rev_actor<5000
... | {"runningtime": "845.90", "resultsets": [{"rowcount": 34, "headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"]}]} | null |
Drafts covering a protected title | null | SELECT * FROM page draft
WHERE page_namespace = 118
AND EXISTS (SELECT 1 FROM protected_titles title WHERE pt_namespace = 0 AND pt_title = draft.page_title) | {"runningtime": "0.63", "resultsets": [{"rowcount": 4, "headers": ["ID", "IP", "Permite editar registrado", "Permite criar conta", "Expira em", "P\u00e1gina ou dom\u00ednio?", "Alvo de bloqueio"]}]} | null |
Bloqueados por CPU ou CPV por dia | null | USE ptwiki_p;
SELECT
SUBSTR(log_timestamp, 1, 8) DIA,
COUNT(*)
FROM logging
INNER JOIN comment ON log_comment_id = comment_id
WHERE
log_timestamp > 20200900000000
AND log_type = 'block'
AND log_action = 'block'
AND comment_text RLIKE 'WP:CP[UV]'
GROUP BY DIA; | {"runningtime": "1.35", "resultsets": [{"rowcount": 100, "headers": ["CONCAT('# [[:File:', REPLACE (wi.img_name, '_', ' '), ']]')"]}]} | null |
ruwiki: Page names ending with ";" | null | use ruwiki_p;
select
page_title,
page_namespace,
page_is_redirect
from page
where
right(page_title, 1) = ";"
order by page_namespace, page_is_redirect | {"runningtime": "13.79", "resultsets": [{"rowcount": 1, "headers": ["ss_total_edits"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}, {"rowcount": 816, "headers": ["userid", "name", "editcount", "admin", "bot"]}]} | null |
*.js-Seiten von infinite gesperrten Benutzern | null | USE dewiki_p;
SELECT ipb_address, GROUP_CONCAT(CONCAT('[[Benutzer:', page_title, ']]') SEPARATOR ', ')
FROM page STRAIGHT_JOIN ipblocks
WHERE ipb_expiry = 'infinity'
/* AND ipb_timestamp BETWEEN '20201110000000' AND '20210000000000' */
AND page_content_model = 'javascript'
AND page_namespace = 2
AND page... | {"connection_id": 534906025} | 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": "34.34", "resultsets": [{"rowcount": 100, "headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"]}]} | 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.10", "resultsets": [{"rowcount": 10, "headers": ["fr_page_id", "fr_rev_id", "fr_user", "fr_timestamp", "fr_comment", "fr_quality", "fr_tags", "fr_text", "fr_flags", "fr_img_name", "fr_img_timestamp", "fr_img_sha1", "fr_rev_timestamp"]}]} | 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": "270.79", "resultsets": [{"rowcount": 100000, "headers": ["user_id", "user_editcount"]}]} | null |
Pages per namespace (dewiki) | null | USE dewiki_p;
SELECT CONCAT('{{ns:', page_namespace, '}}'), COUNT(page_id)
FROM page
GROUP BY page_namespace | {"connection_id": 540268612} | null |
Mrwp talk with no articles | null | SET @ns = 1; # Talk namespace number to search
SET @prefix = ''; # Namespace prefix for links (prepended to 'talk:')
USE mrwiki_p;
SELECT CONCAT( '# [[', @prefix, 'चर्चा:', pg.page_title, ']]') AS 'Title'
FROM page pg
WHERE pg.page_is_redirect = 0
AND pg.page_namespace = @ns
AND pg.page_title NOT IN (SELECT pg2.page_t... | {"runningtime": "80.88", "resultsets": [{"rowcount": 100, "headers": ["rev_user_text", "recent_user_editcount"]}]} | null |
Rc mrwp | null | SELECT
rc_actor,
COUNT(1) AS num_contribs
from mrwiki_p.recentchanges
WHERE
rc_logid = 0 AND rc_actor != 0
and rc_bot = 0 and rc_actor != "Salebot"
and rc_actor != "MediaWiki message delivery"
and rc_actor != "CommonsDelinker"
GROUP BY rc_actor
Having COUNT(1) > 4
ORDER BY num_contribs DESC
limit ... | {"runningtime": "193.34", "resultsets": [{"rowcount": 100, "headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass... | null |
most thanked users in bnwiki | বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী | USE bnwiki_p;
SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="thanks"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "1.31", "resultsets": [{"rowcount": 114, "headers": ["page_title"]}]} | null |
I thought there were more of such strange pages | null | SELECT distinct page_title from page
WHERE CONTAINS(page_title,"〖")
OR CONTAINS(page_title,"〗"); | {"runningtime": "1.48", "resultsets": [{"rowcount": 287, "headers": ["actor_name", "files"]}]} | null |
WLM Puglia 2020 Participants | Partecipanti a Wiki Loves Puglia 2020 | use commonswiki_p;
SELECT CONCAT("# {{target| user = ", actor_name, "|site = commons.wikimedia.org }}") as line
FROM revision r_prev
join categorylinks on rev_page = cl_from
join actor on rev_actor = actor_id and actor_user is not null
WHERE rev_parent_id = 0
and cl_to IN (
"Images_from_Wiki_Loves_Monuments_2020_in... | {"runningtime": "17.80", "resultsets": [{"rowcount": 100, "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", "el_id", "el_from", "el_to", "el_ind... | null |
Assessment templates, including redirects to them | null | SELECT DISTINCT page.page_title, redirectpage.page_title
FROM categorylinks
INNER JOIN page ON page.page_id = categorylinks.cl_from
LEFT OUTER JOIN redirect ON redirect.rd_title = page.page_title
INNER JOIN page redirectpage ON redirectpage.page_id = redirect.rd_from
WHERE categorylinks.cl_to = "WikiProject_banners_wit... | {"runningtime": "7.67", "resultsets": [{"rowcount": 10, "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", "el_id", "el_from", "el_to", "el_index... | 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": "64.12", "resultsets": [{"rowcount": 21244, "headers": ["img_name", "actor_name", "img_timestamp"]}]} | null |
Debug mysterious categories | null | SELECT categorylinks.cl_to, categorylinks.cl_timestamp
FROM categorylinks
WHERE categorylinks.cl_from = 58290179 | {"connection_id": 5225975} | null |
Recently active cswiki editors (>1000 edits) | null | USE cswiki_p;
-- Policy: https://sk.wikipedia.org/wiki/Wikip%C3%A9dia:Pravidl%C3%A1/Hlasovanie
-- Date and time (UTC) to list eligible voters to, e.g. start of a voting:
SELECT @t := now();
SELECT
user_name, user_registration, user_editcount
FROM
user
WHERE
(user_registration IS NULL OR user_registra... | {"runningtime": "25.88", "resultsets": [{"rowcount": 100, "headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"]}]} | null |
Videos used in sandboxes | null | USE commonswiki_p;
SELECT *
FROM globalimagelinks
WHERE gil_page_namespace_id = 2
AND gil_page_title LIKE '%sandbox%'
AND (
gil_to LIKE '%.webm' OR
gil_to LIKE '%.ogv'
); | {"runningtime": "0.09", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]} | null |
Videos used in sandboxes | null | USE commonswiki_p;
SELECT *
FROM globalimagelinks
WHERE gil_wiki = 'euwiki'
AND gil_page_namespace_id = 2
AND gil_page_title LIKE '%Proba_orria%'
AND (
gil_to LIKE '%.webm' OR
gil_to LIKE '%.ogv'
); | {"runningtime": "0.02", "resultsets": []} | 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.10", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"]}]} | null |
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": "15.95", "resultsets": [{"rowcount": 110, "headers": ["user", "img_count"]}]} | 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.07", "resultsets": [{"rowcount": 0, "headers": ["site", "LINKS"]}]} | null |
Select all articles that have images but don't have a page image | null | use simplewiki_p;
select distinct(page_id),concat('https://simple.wikipedia.org/wiki/',page_title)
from page
join imagelinks
on il_from=page_id
where page_id not in (select pp_page from page_props
where pp_propname='page_image' or pp_propname='page_image_free'
)
and page_namespace=0
and page_is_redirect=0
and il_from_n... | {"runningtime": "0.68", "resultsets": [{"rowcount": 31, "headers": ["actor_name", "COUNT(*)"]}]} | null |
sin es | null | USE ukwiki_p;
SELECT
count(*) AS count,
p.page_title
FROM
page p, langlinks l1
where p.page_namespace = 0
and p.page_id = l1.ll_from
and not exists (select 1 from langlinks l2 where l1.ll_from=l2.ll_from and l2.ll_lang='es')
group by p.page_id, p.page_title
order by count(*) desc... | {"runningtime": "80.03", "resultsets": [{"rowcount": 25867, "headers": ["img_name", "actor_name", "img_timestamp"]}]} | null |
Files pages without content (arwiki) | null | USE arwiki_p;
SELECT concat("# [[File:",page_title,"]]") AS page_title
FROM arwiki_p.page
WHERE page_namespace = 6 AND page_size = 0
ORDER BY page_title; | {"connection_id": 560344772} | null |
Files bigger than 110b | null | USE arwiki_p;
SELECT concat("# [[File:",img_name,"]]") AS img_name
FROM arwiki_p.image
WHERE img_size >= 110
ORDER BY img_size
LIMIT 10; | {"runningtime": "0.14", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | null |
Doppeltes http im Link | Wahrscheinlich nicht so ganz richtige URLs, siehe https://de.wikipedia.org/w/index.php?title=Wikipedia:Fragen_zur_Wikipedia&oldid=205633915#Doppel-URLs | USE dewiki_p;
SELECT page_title, el_to
FROM page, externallinks
WHERE el_to LIKE "http%://%http%://%"
AND el_to NOT LIKE "https://web.archive.org/web/%"
AND el_to NOT LIKE "http://web.archive.org/web/%"
AND el_to NOT LIKE "https://giftbot.toolforge.org/deref.fcgi%"
AND el_to NOT LIKE "http://timetravel.m... | {"runningtime": "983.85", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]} | null |
টিটোর কমন্স আপলোড তালিকা, ১ নভেম্বর থেকে ১৫ নভেম্বর (২০২০) | Titodutta (id=5449) files timestamped between 2020-11-01 00:00:00 hours and 2020-11-15 23:59:00 hours, time in UTC | USE commonswiki_p;
SELECT img_name
FROM image
WHERE img_actor = 5449 AND
img_timestamp BETWEEN "20201101000000" AND "20201115235959"
ORDER BY img_timestamp; | {"connection_id": 563126126} | null |
Edit count in past month | null | use svwiktionary_p;
select actor_name, count(*) as edits from revision
join actor on actor_id = rev_actor
where rev_timestamp > subdate(curdate(), interval 1 month)
group by rev_actor;
| {"runningtime": "0.14", "resultsets": [{"rowcount": 1, "headers": ["actor_id"]}]} | null |
Edit count in past month | null | use mgwiktionary_p;
select actor_name, count(*) as edits from revision
join actor on actor_id = rev_actor
where rev_timestamp > subdate(curdate(), interval 1 month)
group by rev_actor;
| {"connection_id": 13164531} | null |
Chinese creators Wiktionary (naive) | null | use enwiktionary_p;
select actor_name, count(*) as `articles created` from categorylinks
join revision on rev_page = cl_from
join actor on actor_id = rev_actor and rev_parent_id = 0
where cl_to in ('Chinese_lemmas', 'Chinese_non-lemma_forms')
and cl_type = 'page'
group by actor_id
order by `articles created` desc; | {"runningtime": "0.38", "resultsets": [{"rowcount": 10, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 2, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 6, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Find fiwiki articles with P373 value, but without commonscat template | Query finds fiwiki Find articles with P373 value, but without link commons (=commonscat template). Filter out commons categories without least 50 files. | USE fiwiki_p;
SELECT
p.page_title,
pp.pp_value,
d_pl.pl_title,
iwl.iwl_title,
c_cat.cat_title,
c_cat.cat_pages
FROM page AS p
LEFT JOIN iwlinks AS iwl ON p.page_id=iwl.iwl_from AND iwl.iwl_prefix="commons",
page_props AS pp,
wikidatawiki_p.page AS d_p,
wikidatawiki_p.... | {"runningtime": "0.68", "resultsets": [{"rowcount": 8, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 2, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 5, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
inactive bots | null | null | {"runningtime": "0.08", "resultsets": [{"rowcount": 10, "headers": ["page_title", "rd_title"]}]} | null |
inactive bots | null | null | {"runningtime": "0.15", "resultsets": [{"rowcount": 25, "headers": ["page_title", "rd_title"]}]} | null |
inactive bots | null | DESCRIBE revision_userindex | {"runningtime": "139.86", "resultsets": [{"rowcount": 1, "headers": ["page_title", "rev_timestamp"]}]} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"runningtime": "1.81", "resultsets": [{"rowcount": 55, "headers": ["concat(SAL, ' ', Indice, ' di ', Autore, ' (', Nascita, '-', Morte, ')')"]}]} | null |
Edit count in past month | null | use azwiktionary_p;
select actor_name, count(*) as edits from revision
join actor on actor_id = rev_actor
where rev_timestamp > subdate(curdate(), interval 1 month)
group by rev_actor;
| {"runningtime": "0.04", "resultsets": []} | null |
Ruwiki IWRM.js usage → wikitable | null | USE ruwiki_p;
SELECT
CONCAT('[[User:', actor_name, '|]]') AS User,
COUNT(rev_id) AS Edits
FROM revision
JOIN actor ON rev_actor = actor_id
JOIN change_tag ON ct_rev_id = rev_id
JOIN change_tag_def ON ct_tag_id = ctd_id
WHERE ctd_name = 'iwrm'
GROUP BY rev_actor
ORDER BY edits DESC; | {"runningtime": "11.36", "resultsets": [{"rowcount": 3551, "headers": ["base_id", "id", "page_title"]}]} | null |
Ruwiki IWRM.js usage → wikitable | null | USE ruwiki_p;
SELECT
CONCAT('[[User:', actor_name, '|]]') AS User,
COUNT(rev_id) AS Edits
FROM revision
JOIN actor ON rev_actor = actor_id
JOIN change_tag ON ct_rev_id = rev_id
JOIN change_tag_def ON ct_tag_id = ctd_id
WHERE ctd_name = 'iwrm'
GROUP BY rev_actor
ORDER BY edits DESC; | {"connection_id": 567261382} | null |
Testing splitting joins - enwiki last week's uploaded images not marked as shadows_commons | null | -- Playing with splitting https://github.com/greencardamom/Shadows/blob/master/shadows.sql
USE enwiki_p;
SELECT page_id, CONCAT("File:", page_title) as page_title, img_name, img_sha1 FROM image
INNER JOIN page ON page_title = img_name AND page_namespace = 6
LEFT JOIN templatelinks ON tl_from = page_id AND tl_namespace ... | {"runningtime": "26.86", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('# [[:File:', page_title, ']]')"]}]} | null |
Image Sample Set | null | use commonswiki;
select *
from image
order by rand() limit 10; | {"runningtime": "30.70", "resultsets": [{"rowcount": 510, "headers": ["page_title"]}]} | null |
Manual join selecting from commons with the keys from a enwiki query | null | -- Getting results from commons joined the en wiki results from https://quarry.wmflabs.org/query/49931
-- We ask commons for the img_name's based on the enwiki query, and then with the results the application code
-- will have to compare the sha1 (originally `ci.img_sha1 != wi.img_sha1`) or other cross-join conditions
... | {"runningtime": "32.32", "resultsets": [{"rowcount": 114, "headers": ["user", "img_count"]}]} | null |
page_title LIKE ".midi" | null | USE commonswiki_p;
SELECT CONCAT("File",page_title,"")
FROM page AS page
WHERE page_namespace = 6
AND (page_title LIKE "%.midi" OR page_title LIKE "%.Midi" OR page_title LIKE "%.MIDI")
LIMIT 999; | {"runningtime": "75.84", "resultsets": [{"rowcount": 349, "headers": ["user", "articles created"]}]} | null |
frwiki:Pages in projet Histoire des sciences with trwiki interwikis and not in trwiki Vikiproje Bilim tarihi (page_assessments table) | null | USE frwiki_p;
SELECT CONCAT("# [[",tr.ll_title,"]] ([[:fr:",REPLACE(page_title,"_"," "),"|fr]])"),
(CASE
WHEN pa_importance="maximum" THEN "En"
WHEN pa_importance="élevée" THEN "Çok"
WHEN pa_importance="moyenne" THEN "Orta"
WHEN pa_impor... | {"runningtime": "728.15", "resultsets": [{"rowcount": 639, "headers": ["title"]}]} | null |
frwiki:Pages in projet Fem% and projet Philosophie without trwiki interwikis (page_assessments table) | null | USE frwiki_p;
SELECT DISTINCT page_title, page_len, (CASE
WHEN as2.pa_importance="maximum" THEN "En"
WHEN as2.pa_importance="élevée" THEN "Çok"
WHEN as2.pa_importance="moyenne" THEN "Orta"
WHEN as2.pa_importance="faible" THEN "Az"
... | {"runningtime": "222.78", "resultsets": [{"rowcount": 44, "headers": ["ipb_address", "actor_name", "comment_text"]}]} | null |
India 360 | India360 | select distinct p.page_title as "title", concat( 'https://en.wikipedia.org/wiki',p.page_title)
as "link" from page p
INNER JOIN revision r
ON p.page_latest = r.rev_id
where page_title like '%India%'
| {"runningtime": "0.95", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_full_title", "page_len"]}]} | null |
Images uploaded to enwiki in the last X time | null | USE enwiki_p;
SELECT count(*) FROM image
INNER JOIN page ON page_title = img_name AND page_namespace = 6
LEFT JOIN templatelinks ON tl_from = page_id AND tl_namespace = 10 AND tl_title = 'Deletion_template_tag'
WHERE tl_from IS NULL
AND img_timestamp > UTC_TIMESTAMP() - INTERVAL 1 SECOND
AND img_timestamp < UTC_TIMESTA... | {"runningtime": "72.34", "resultsets": [{"rowcount": 1, "headers": ["count(page_id)"]}]} | null |
Images uploaded to commons in the last X time | null | USE commonswiki_p;
SELECT count(*)
FROM image
JOIN page ON page_title = img_name AND page_namespace = 6
WHERE
img_timestamp > 20201119160000
AND img_timestamp < 20201119160001
AND page_id NOT IN (
SELECT tl_from
FROM templatelinks
WHERE tl_namespace = 10
AND tl_title = 'Deletion_templ... | {"runningtime": "133.13", "resultsets": [{"rowcount": 100, "headers": ["page_title", "page_len", "rev_actor", "actor_name"]}]} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.