title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Ruwiki templates with maximum amount of links | null | USE ruwiki_p;
SELECT
page_title,
COUNT(*) AS number
FROM pagelinks
JOIN page ON pl_from = page_id
WHERE pl_from_namespace = 10
AND pl_namespace = 0
GROUP BY page_title
ORDER BY number DESC; | {"connection_id": 172770860} | null |
Articles with {{Good article}} without a GA review | null | /* I also would like to check for GA reassessment without a GA review */
/* Ah, will I have to have an OR to account for all the redirects to the template? I'll have to check. */
/* This is a slow query when just collecting pages with the template, probably because of all the columns it's collecting from each row. */
/... | {"runningtime": "628.90", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Longest file names on Wikimedia Commons | null | USE commonswiki_p;
SELECT * FROM image WHERE length(img_name) > 255 LIMIT 100;
| {"runningtime": "784.93", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Proof-read pages for book மகாபாரதம்-அறத்தின் குரல் by booklover | Change the rev_user_text and page_title for your search | use tawikisource_p;
SELECT distinct page_title, rev_user_text, page_content_model as count
FROM revision
join page ON page_id = rev_page
where rev_comment_id = 10076
and rev_user_text = "Booklover kaniyam" and rev_page IN (
select page_id from page where page_title like "மகாபாரதம்-அறத்தின்_குரல்.pdf%")
#limit 10;
| {"runningtime": "513.74", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
File pages in a Commons category | File pages in a Commons category | use commonswiki_p;
SELECT p1.page_title
FROM categorylinks AS c1
JOIN page AS p1 ON c1.cl_from=p1.page_id AND p1.page_namespace=6 AND p1.page_is_redirect=0
WHERE c1.cl_to='Old_maps_of_Scotland'
# LIMIT 10 | {"runningtime": "502.65", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
fix Mark people in arwiki | null | select
CONCAT('* [[:',ll_title, ']]>') AS cat1
, REPLACE(CONCAT( '[[:' , ll_title , ']]' ) , 'علامة'
, 'مارك' ) AS vv
from page AS p1, langlinks
where p1.page_title like "%Mark%"
AND ll_title like "%علامة%"
AND p1.page_id = ll_from
AND ll_lang = "ar"
AND p1.page_namespace = 0
LIMIT 100
; | {"runningtime": "501.18", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
zhwiki page_restrictions long time in ns 0/4 | null | USE zhwiki_p;
SELECT CONCAT("[[Special:Redirect/page/", pr_page, "|{{subst:#ifeq:", page_namespace, "|0||{{subst:ns:", page_namespace, "}}:}}", page_title, "]]") AS "頁面",
CONCAT("[{{fullurl:Special:日志/protect|page={{subst:#ifeq:", page_namespace, "|0||{{subst:ns:", page_namespace, "}}:}}", page_title, "}} 保護日誌]") AS "保... | {"runningtime": "1.29", "resultsets": [{"headers": ["COUNT(*)"], "rowcount": 11}]} | null |
Templates with a specific string in the title | null | # Previous:
# * "Danger"
# * "icon"
SET @in_string = "GA";
USE enwiki_p;
SELECT *
FROM page
WHERE
page_namespace = 10
AND page_title LIKE CONCAT("%", @in_string, "%")
AND NOT EXISTS (
SELECT 1
FROM categorylinks
WHERE cl_from = page_id
AND cl_to IN (
"Wikipedia_GA_templates",
# ... | {"runningtime": "0.16", "resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]} | null |
Wikidata - English descriptions starting with "a .." | null | #See https://www.wikidata.org/wiki/Help:Description#No_initial_articles_.28a.2C_an.2C_the.29
#Initial run: about 13000, later 8000
#run on 2017-09-07: 26,952
SELECT CURRENT_DATE;
use wikidatawiki_p;
SELECT
CONCAT('Q', term_entity_id) As item,
CONCAT('D', term_language) As tr,
CONCAT('"', term_text, '"') As c... | {"runningtime": "554.74", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Stimmberechtigungstest | null | USE dewiki_p;
SELECT user_name, stb_all_edits FROM
(SELECT rev_user as stb_user,
COUNT(rev_id) AS stb_all_edits
FROM revision_userindex INNER JOIN page on rev_page=page_id
WHERE rev_user IN (SELECT user_id FROM user WHERE user_name in ('Wadis', 'A.Savin', 'Aalfons', 'Achim', 'AchimP', 'AFBorchert', 'Agathenon', 'Alb... | {"runningtime": "0.13", "resultsets": [{"headers": ["CONCAT(term_full_entity_id)", "concat(\"Dar\")", "CONCAT('\"','\u062a\u0635\u0646\u064a\u0641 \u0648\u064a\u0643\u064a\u0645\u064a\u062f\u064a\u0627','\"')"], "rowcount": 0}]} | null |
Uncategorized GA templates | null | # TODO: make this work lik my section templates query, following redirects and utilizing the main article's categorization.
SET @in_string = "GA";
USE enwiki_p;
SELECT *
FROM page
WHERE
page_namespace = 10
AND page_title LIKE CONCAT("%", @in_string, "%")
AND page_title NOT LIKE "%/doc"
AND page_title NOT LIKE ... | {"runningtime": "0.16", "resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]} | null |
Finding comments | Identifies revisions that were done citing violations of doxing policies to get some idea of their prevalence. | Use enwiki_p;
SELECT * from comment where comment_text RLIKE '[[:<:]]WP:(OUTING|PRIVACY|DOX)[[:>:]]' LIMIT 10; | {"runningtime": "653.71", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
zhwiki page_restrictions inf in ns 0 | null | USE zhwiki_p;
SELECT CONCAT("[[Special:Redirect/page/", pr_page, "|{{subst:#ifeq:", page_namespace, "|0||{{subst:ns:", page_namespace, "}}:}}", page_title, "]]") AS "頁面",
CONCAT("[{{fullurl:Special:日志/protect|page={{subst:#ifeq:", page_namespace, "|0||{{subst:ns:", page_namespace, "}}:}}", page_title, "}} 保護日誌]") AS "保... | {"runningtime": "664.56", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
empty | null | use ruwiki_p;
select * from change_tag_def; | {"runningtime": "612.07", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Unused Templates first 5000 | null | SELECT page_title, r.rev_timestamp
FROM page
LEFT JOIN revision r
on r.rev_page = page.page_id
AND r.rev_timestamp = (
SELECT min(rev_timestamp) from revision
where rev_page = page_id
)
LEFT JOIN templatelinks t1
ON t1.tl_namespace=10 AND t1.tl_title=page_title
WHERE page_namespace=10
AND r.re... | {"runningtime": "753.60", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Find Redlinks in Category | Finds All red links in pages from a certain category. Change "Garage_door_opener_manufacturers" to the category you want, and adjust the limit as needed. | SELECT
page_title AS "Page", pl_title AS "Redlink"
FROM page
JOIN pagelinks
ON pl_from = page_id
JOIN categorylinks
ON cl_from = page_id
WHERE cl_to = "Garage_door_opener_manufacturers"
AND pl_namespace = 0
AND (NOT EXISTS(
SELECT
*
FROM enwiki_p.page
WHERE page_title = pl_title
AND page_namespace = 0))
AND ... | {"runningtime": "9.46", "resultsets": [{"headers": ["page_title"], "rowcount": 1000}]} | null |
Find Redlinks in Category | Finds All red links in pages from a certain category. Change "Garage_door_opener_manufacturers" to the category you want, and adjust the limit as needed. | SELECT
page_title AS "Page", pl_title AS "Redlink"
FROM page
JOIN pagelinks
ON pl_from = page_id
JOIN categorylinks
ON cl_from = page_id
WHERE cl_to = "Caldecott Medal"
AND pl_namespace = 0
AND (NOT EXISTS(
COUNT
*
FROM enwiki_p.page
WHERE page_title = pl_title
AND page_namespace = 0))
AND page_namespace = 0... | {"runningtime": "578.06", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
enwiki pagetriage_tags | null | SELECT * FROM pagetriage_tags; | {"runningtime": "12.50", "resultsets": [{"headers": ["Suspicious_file_title"], "rowcount": 28}]} | null |
Find Redlinks in Category | Finds All red links in pages from a certain category. Change "Garage_door_opener_manufacturers" to the category you want, and adjust the limit as needed. | SELECT
page_title AS "Page", pl_title AS "Redlink"
FROM page
JOIN pagelinks
ON pl_from = page_id
JOIN categorylinks
ON cl_from = page_id
WHERE cl_to = "Caldecott Medal"
AND pl_namespace = 0
AND (NOT EXISTS(
SELECT
*
FROM enwiki_p.page
WHERE page_title = pl_title
AND page_namespace = 0))
AND page_namespace = ... | {"runningtime": "551.88", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Find Redlinks in Category | Finds All red links in pages from a certain category. Change "Garage_door_opener_manufacturers" to the category you want, and adjust the limit as needed. | SELECT
page_title AS "Page", pl_title AS "Redlink"
FROM page
JOIN pagelinks
ON pl_from = page_id
JOIN categorylinks
ON cl_from = page_id
WHERE cl_to = "Caldecott_Medal"
AND pl_namespace = 0
AND (NOT EXISTS(
COUNT(
FROM enwiki_p.page
WHERE page_title = pl_title
AND page_namespace = 0)))
AND page_namespace = 0
l... | {"runningtime": "22.08", "resultsets": [{"headers": ["replace(page_title,\"_\",\"\")"], "rowcount": 261}]} | null |
Find Redlinks in Category | Finds All red links in pages from a certain category. Change "Garage_door_opener_manufacturers" to the category you want, and adjust the limit as needed. | SELECT
page_title AS "Page", pl_title AS "Redlink"
FROM page
JOIN pagelinks
ON pl_from = page_id
JOIN categorylinks
ON cl_from = page_id
WHERE cl_to = "Garage_door_opener_manufacturers"
AND pl_namespace = 0
AND (NOT EXISTS(
SELECT COUNT(*)
FROM enwiki_p.page
WHERE page_title = pl_title
AND page_namespace = 0)... | {"runningtime": "548.80", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Find Redlinks in cat | null | Select
page_title AS "Page", COUNT(page_title)
FROM page
JOIN pagelinks
ON pl_from = page_id
JOIN categorylinks
ON cl_from = page_id
WHERE cl_to = "Garage_door_opener_manufacturers"
AND pl_namespace = 0
AND (NOT EXISTS(
SELECT
*
FROM enwiki_p.page
WHERE page_title = pl_title
AND page_namespace = 0))
AND page_... | {"runningtime": "512.84", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Find Redlinks in Category | Finds All red links in pages from a certain category. Change "Garage_door_opener_manufacturers" to the category you want, and adjust the limit as needed. | SELECT
page_title AS "Page", pl_title AS "Redlink"
FROM page
JOIN pagelinks
ON pl_from = page_id
JOIN categorylinks
ON cl_from = page_id
WHERE cl_to = "Carnegie_Medal_'('literary_award')'"
AND pl_namespace = 0
AND (NOT EXISTS(
SELECT
*
FROM enwiki_p.page
WHERE page_title = pl_title
AND page_namespace = 0))
A... | {"runningtime": "532.27", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Redirecting disambiguation page talks on huwiki | null | USE huwiki_p;
SELECT page_title, CONCAT('Vita:', REPLACE(page_title, '_', ' ')) AS page_name FROM page
WHERE page_namespace = 1 AND page_is_redirect = 1 AND page_title LIKE '%(egyértelműsítő_lap)'; | {"connection_id": 179243677} | 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": [{"headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata", "img_bits", "img_media_type", "img_major_mime", "img_minor_mime", "img_description_id", "img_user", "img_user_text", "img_actor", "img_timestamp", "img_sha1"], "rowcount": 1}]} | null |
Treccani old (itwiki, ns0) - base | null | use itwiki_p;
SELECT CONCAT('# [[', page_title, ']]')
FROM externallinks, page
WHERE el_to like 'http://www.treccani.it/Portale/elements/categoriesItems.jsp'
AND page_namespace = 0
AND page_id = el_from
GROUP BY page_title | {"runningtime": "644.88", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
All dp's at the Dutch Wikipedia | null | use nlwiki_p;
SELECT `page`.`page_title` FROM `page` INNER JOIN `templatelinks` ON `page`.`page_id`=`templatelinks`.`tl_from` WHERE `templatelinks`.`tl_title`='Dp' AND `page`.`page_namespace`=0 AND `templatelinks`.`tl_namespace`=10; | {"runningtime": "523.50", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Unassessed articles tagged as stubs | null | SELECT
cat1.cl_from,
CONCAT('[[Talk:', pg1.page_title, ']]') AS page,
pg1.page_namespace,
pg1.page_id
FROM
categorylinks cat1
LEFT JOIN page pg1 ON pg1.page_id = cat1.cl_from
WHERE
cat1.cl_to = CONCAT('Unassessed_',
'Athletics', # The wikiproject
'_articles')
... | {"connection_id": 187090082} | null |
Files with duplicate extensions | Should be renamed | USE arwiki_p;
SELECT CONCAT('[[:File:', REPLACE(img_name, '_', ' '), ']]') AS FILE FROM image
WHERE img_name LIKE '%.png.png'
OR img_name LIKE '%.PNG.PNG'
OR img_name LIKE '%.jpg.jpg'
OR img_name LIKE '%.Jpg.Jpg'
OR img_name LIKE '%.JPG.JPG'
OR img_name LIKE '%.svg.svg'
OR img_name LIKE '%.SVG.SVG'
OR img_name LIKE '%.... | {"runningtime": "528.30", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Files with duplicate extensions | Should be renamed | USE arwiki_p;
SELECT CONCAT('[[:File:', REPLACE(img_name, '_', ' '), ']]') AS FILE FROM image
WHERE img_name LIKE '%.png.png'
OR img_name LIKE '%.PNG.PNG'
OR img_name LIKE '%.jpg.jpg'
OR img_name LIKE '%.Jpg.Jpg'
OR img_name LIKE '%.JPG.JPG'
OR img_name LIKE '%.svg.svg'
OR img_name LIKE '%.SVG.SVG'
OR img_name LIKE '%.... | {"runningtime": "16.27", "resultsets": [{"headers": ["Draft", "Article"], "rowcount": 1663}]} | 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.81", "resultsets": [{"headers": ["\u0639\u062f\u062f \u0627\u0644\u0635\u0641\u062d\u0627\u062a", "\u0627\u0644\u0639\u0646\u0648\u0627\u0646"], "rowcount": 36}]} | null |
HujiBot Query Upgrades | null | use fawiki_p;
SELECT
actor_name,
COUNT(rev_id) AS freq
FROM revision_userindex
JOIN actor
ON rev_actor = actor_id
JOIN user_groups
ON actor_user = ug_user
AND ug_group = 'sysop'
WHERE
rev_page = 147882
AND rev_timestamp > DATE_FORMAT(DATE_ADD(CURRENT_DATE(), INTERVAL -7 DAY), "%Y%m%d000000")
GROUP BY acto... | {"runningtime": "857.14", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Mimic of Special:AncientPages on cswiki (up to a defined timestamp of last change) | null | USE cswiki_p;
SELECT page_title, MAX(rev_timestamp) AS max_timestamp FROM page JOIN revision ON page_id = rev_page WHERE page_namespace = 0 AND page_is_redirect = 0 AND NOT EXISTS (SELECT 1 FROM page_props WHERE page_id = pp_page AND pp_propname = 'disambiguation') GROUP BY rev_page HAVING MAX(rev_timestamp) < '2010000... | {"runningtime": "613.03", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Users named like a log type | Investigation for Gerrit change 513736. Turns out this is an expensive query on the replicas, but in production it returned very quickly, with no results. | USE `metawiki_p`;
SELECT `user_id`
FROM `user`
WHERE `user_name` IN (
SELECT DISTINCT `log_type`
FROM `logging`
); | {"runningtime": "45.41", "resultsets": [{"headers": ["edits", "user_name"], "rowcount": 120}]} | null |
enwiki inactive special users | null | use enwiki_p;
SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', ug1.ug_group AS 'user_groups'
FROM `user`
LEFT JOIN user_groups ug1
ON user_id = ug1.ug_user AND ug1.ug_group IN ('sysop', 'abusefilter', 'abusefilter-helpter', 'templateeditor', 'accountcreator', 'bureaucrat', 'checkuser'... | {"connection_id": 190415291} | null |
WLE 2019 Files by date | null | USE commonswiki_p;
SELECT
page_title,
DATE( (
SELECT rev_timestamp
FROM revision r
WHERE rev_page = page_ID
ORDER BY rev_timestamp ASC
LIMIT 1
) ) as creation_date
FROM page p
JOIN categorylinks cl ON (page_id = cl_from)
WHE... | {"runningtime": "0.66", "resultsets": [{"headers": ["concat(\"[[User:\",replace(user_name,\"_\",\" \"),\"|\",replace(user_name,\"_\",\" \"),\"]]\")", "user_editcount"], "rowcount": 154}]} | null |
sortkey prefix football box | 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 = "صفحات_تستخدم_قالب:صندوق_كرة_قدم_مع_وسائط_غير_معروفة"
#where cl_to = "صفحات_بها_وسائط_مستغنى_عنها"
and page_namespace = 0
#and cl_sortkey... | {"runningtime": "0.10", "resultsets": [{"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"], "rowcount": 10}]} | null |
Influxsation of cashola | Account number and routing files | xxxixxx.dns.unv
Syntex.erick.clewis.account.number.routing.number | {"runningtime": "279.85", "resultsets": [{"headers": ["term_full_entity_id", "term_text"], "rowcount": 10000}]} | null |
Mega cash influxsation | Account number and routing files | xxxixxx.dns.unv
Syntex.erick.clewis.account.number.routing.number | {"connection_id": 191120642} | null |
Mega cash influxsation | Account number and routing files | xxxixxx.dns.unv
Syntex;EEE.1.erick.clewis.account.number.routing.number. | {"runningtime": "0.83", "resultsets": [{"headers": ["SUBSTRING_INDEX(img_metadata, \";s:8:\", 10)"], "rowcount": 200}]} | null |
Influxsation of cashola | Account number and routing files | ++i++?.dns.unv
Syntex//>.erick.clewis.account.number.routing.number.EEE.1.333.333.333 | {"runningtime": "0.74", "resultsets": [{"headers": ["SUBSTRING_INDEX(img_metadata, \";s:8:\", 1)"], "rowcount": 200}]} | null |
Query anonymous contributions | Query ip contributions | use wikidatawiki_p;
SELECT * FROM revision_actor_temp
JOIN actor ON actor_id = revactor_actor
JOIN revision on revactor_rev = rev_id
JOIN comment ON rev_comment_id = comment_id
WHERE actor_name = '157.246.37.191'; | {"runningtime": "0.10", "resultsets": [{"headers": ["img_metadata", "a2"], "rowcount": 5}]} | null |
ContentTranslation cleanup edits | List edits made by Framabot (Framawiki's bot) against CX errors
Available edit types:
"-espace superflu": unnecessary space
-"{{références}}": replace substed reference tags
-"div inutile dans une ref": unnecessary <div> tag in reference
-"cite dans une référence": unnecessary <cite> tag in reference
-"catégorie non t... | use frwiki_p;
select page_title as title, replace(comment_text, 'Bot: nettoyage traduction: ', '') as comment, date(rev_timestamp) as date, rev_parent_id
from revision_userindex
INNER JOIN comment ON rev_comment_id = comment_id
INNER JOIN page ON rev_page = page_id
INNER JOIN actor ON rev_actor = actor_id
where ... | {"runningtime": "0.15", "resultsets": [{"headers": ["a2", "cct"], "rowcount": 3}]} | null |
Tofawiki until June 4, 2019 | null | USE fawiki_p;
SELECT count(*)
FROM comment
WHERE comment_text LIKE '%به ویکیفا%'; | {"runningtime": "0.14", "resultsets": [{"headers": ["cl_from", "GROUP_CONCAT(cl_to)"], "rowcount": 10}]} | null |
Usage of اشتباهیاب in fawiki | null | USE fawiki_p;
SELECT count(*)
FROM comment
WHERE comment_text LIKE '%اشتباهیاب%'; | {"runningtime": "88.79", "resultsets": [{"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"], "rowcount": 1}]} | null |
Usage of اشتباهیاب in fawiki | null | USE fawiki_p;
SELECT count(*)
FROM comment
WHERE comment_text LIKE '%اشتباهیاب%'; | {"runningtime": "806.04", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Images of flags uploaded since given date | null | USE commonswiki_p;
SELECT CONCAT('File:', img_name) AS 'File name', DATE_FORMAT(img_timestamp, '%Y-%m-%d %T') AS 'Date', img_size AS 'Size',
CONCAT('User:', actor_user) AS 'Uploader\'s name' FROM image
INNER JOIN actor
ON img_actor = actor_id
WHERE img_timestamp>=20190528000000 AND (img_minor_mime='... | {"runningtime": "0.20", "resultsets": [{"headers": ["cl_from", "page_title"], "rowcount": 31}]} | null |
page_title LIKE 'Negoi%' | null | USE huwiki_p;
SELECT page_title FROM page
WHERE page_namespace = 0 AND page_title LIKE 'Negoi%'; | {"runningtime": "945.81", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Usage of اشتباهیاب in fawiki | null | USE fawiki_p;
SELECT comment_text
FROM comment
WHERE comment_text LIKE '%اشتباهیاب%'; | {"runningtime": "2.12", "resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 46}, {"headers": ["linter_cat", "count(*)"], "rowcount": 9}, {"headers": ["page_namespace", "count(*)"], "rowcount": 16}]} | null |
Get anonymous mainspace revisions to enwiki | null | use enwiki_p;
SELECT rc_timestamp, rc_actor, rc_title, rc_this_oldid, rc_old_len, rc_new_len, actor_name
FROM recentchanges
LEFT JOIN actor ON rc_actor = actor_id
WHERE rc_type = 0
AND rc_namespace = 0
AND actor_user IS null
LIMIT 1000000; | {"runningtime": "12.59", "resultsets": [{"headers": ["count(*)"], "rowcount": 1}]} | null |
STEM Women | null | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(user_name, 'Всього'),
created,
total_len,
articles
FROM
(
SELECT
CONCAT('[[Користувач:', rev_user_text, '|', rev_user_text, ']]') as user_name,
COUNT(1) AS created,
SUM(article.page_len... | {"runningtime": "7.97", "resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wpage", "commonscat"], "rowcount": 100}]} | null |
STEM Women | null | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(user_name, 'Всього'),
created,
total_len,
articles
FROM
(
SELECT
CONCAT('[[Користувач:', rev_user_text, '|', rev_user_text, ']]') as user_name,
COUNT(1) AS created,
SUM(article.page_len... | {"runningtime": "39.00", "resultsets": [{"headers": ["timestamp"], "rowcount": 1}, {"headers": ["wpage", "commonscat"], "rowcount": 100}]} | null |
ListeriaBot | null | SELECT * FROM revision_actor_temp
JOIN actor ON actor_id = revactor_actor
JOIN revision on revactor_rev = rev_id
JOIN comment ON rev_comment_id = comment_id
WHERE actor_name = 'ListeriaBot';
AND `page_namespace` = 0
LIMIT 25;
| {"connection_id": 193028413} | null |
Section variants of article message boxes (a.k.a. header templates) | null | USE enwiki_p;
SELECT
/* I need to make this namespace prefixing into a separate function, because I've used this twice. */
CASE page_namespace
WHEN 10 THEN CONCAT("Template:", page_title)
WHEN 11 THEN CONCAT("Template talk:", page_title)
END AS "Page title",
R,
/* I would like to generate a list of re... | {"runningtime": "0.75", "resultsets": [{"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", "page_latest", "pa... | null |
Stratified sample of articles by predicted quality (euwiki) | null | USE euwiki_p;
(SELECT rc_this_oldid AS rev_id, rc_title AS page_title, oresc_probability
FROM recentchanges
INNER JOIN ores_classification ON oresc_rev = rc_this_oldid
WHERE
oresc_model = 79 AND
rc_type IN (0, 1) AND
oresc_probability > 0.7)
UNION ALL
(SELECT rc_this_oldid AS rev_id, rc_title AS page_title, oresc... | {"connection_id": 193907854} | 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": "617.96", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Templates with similar names (v2) | null | USE enwiki_p;
SELECT unspaced_page_title, child_titles
FROM (
SELECT
unspaced_page_title,
COUNT(DISTINCT primary_page_title) AS num_child_titles, # Using DISTINCT primary_page_title excludes page titles that redirect to the same page.
GROUP_CONCAT(page_title SEPARATOR "; ") AS child_titles
FROM (
SELECT
pa... | {"runningtime": "380.86", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Templates with similar names (v1) | null | USE enwiki_p;
SELECT unspaced_page_title, child_titles
FROM (
SELECT
unspaced_page_title,
COUNT(DISTINCT primary_page_title) AS num_child_titles, # Using DISTINCT primary_page_title excludes page titles that redirect to the same page.
GROUP_CONCAT(page_title SEPARATOR "; ") AS child_titles
FROM (
SELECT
pa... | {"runningtime": "0.54", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_user", "rev_user_text", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 2}, {"headers": ["ar_id",... | null |
en.WP templates with semicolons in their titles | null | USE enwiki_p;
SELECT *
FROM page
WHERE
page_namespace = 10
AND LOCATE(";", page_title) != 0 | {"runningtime": "588.48", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
user_id to user_name and vice versa | null | USE fawiki_p;
#SELECT user_name
SELECT user_id
FROM user
WHERE user_name = "Saeidpourbabak"
#WHERE user_id = "12345"
#GROUP BY | {"runningtime": "0.14", "resultsets": [{"headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata", "img_bits", "img_media_type", "img_major_mime", "img_minor_mime", "img_description_id", "img_user", "img_user_text", "img_actor", "img_timestamp", "img_sha1"], "rowcount": 1}]} | null |
2019أكثر المستخدمين إنشاءً للمقالات ضمن مشروع ويكي طب | null | use arwiki_p;
SELECT actor_name, count(actor_name)
FROM revision
INNER JOIN page ON rev_page = page_id
LEFT JOIN actor ON rev_actor = actor_id
WHERE page_namespace = 0
AND rev_parent_id = 0
and rev_timestamp BETWEEN 20190101000000 AND 20191231235959
AND page.page_is_redirect = 0
AND page.page_id in (select cl_from from... | {"runningtime": "854.17", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
for wikiprize | null | use ttwiki_p;
select rev_user_text, count(*) c from revision join page on rev_page=page_id where page_namespace = 0 and rev_timestamp >= "20190101000000" and rev_timestamp < "20190506000000" group by rev_user order by c desc; | {"runningtime": "0.38", "resultsets": [{"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"], "rowcount": 50}]} | null |
for wikiprize | null | use sahwikisource_p;
select rev_user_text, count(*) c from revision join page on rev_page=page_id where page_namespace = 0 and rev_timestamp >= "20180101000000" and rev_timestamp < "20190101000000" group by rev_user order by c desc;
| {"runningtime": "501.43", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
for wikiprize | null | use sahwikisource_p;
select rev_user_text, count(*) c from revision join page on rev_page=page_id where page_namespace = 0 and rev_timestamp >= "20180101000000" and rev_timestamp < "20190101000000" group by rev_user order by c desc;
| {"runningtime": "541.50", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Турнирная таблица | null | use ruwiki_p;
select rev_user_text, count(*) c from revision join page on rev_page=page_id where rev_user in (select ug_user from user_groups where ug_group = "bot") and page_namespace = 0 and rev_timestamp >= "20190101000000" group by rev_user order by c desc;
| {"runningtime": "604.81", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Revisions and Undos per month (etwiki) | null | USE etwiki_p;
SELECT LEFT(rev_timestamp, 6) AS month, COUNT(*) AS revisions, SUM(comment_text LIKE "Eemaldatud muudatus%") AS undos, SUM(comment_text LIKE "%HG]]") AS huggles
FROM revision
INNER JOIN comment ON rev_comment_id = comment_id
WHERE rev_timestamp BETWEEN "201605" AND "201905"
GROUP BY 1; | {"runningtime": "0.38", "resultsets": [{"headers": ["img_name", "img_size"], "rowcount": 100}]} | 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.24", "resultsets": [{"headers": ["page_title", "count(*)"], "rowcount": 0}]} | null |
Hewiki fair use unused pictures 1 | null | use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists
(select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as
p2 where p2.page_namespace = 14 and p2.pag... | {"runningtime": "570.66", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Category sortkey maintenance | null | USE etwiki_p;
SELECT page_title, cl_sortkey_prefix, CONCAT('Kategorie:', cl_to)
FROM categorylinks
JOIN page ON page_id = cl_from
WHERE page_namespace = 0
AND SUBSTRING(cl_to, 1, 5) = SUBSTRING(IF(cl_sortkey_prefix <> '', cl_sortkey_prefix, page_title), 1, 5)
#AND cl_to NOT LIKE 'Doprava%'
AND cl_to NOT RLIKE '^[0-9]'
... | {"runningtime": "16.18", "resultsets": [{"headers": ["d", "l1_c", "sb_c", "ac"], "rowcount": 9}]} | null |
Translations needing review | null | use frwiki_p;
select ct_tag_id, ctd_name, ctd_count
from change_tag join change_tag_def on ct_tag_id=ctd_id
where ct_tag_id in (41,169, 522) group by ct_tag_id; | {"runningtime": "519.10", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Translations needing review | null | set @contenttranslation_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' );
set @contenttranslation_needcheck_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation-needcheck' );
set @contenttranslation_v2_tag_id = ( select ctd_id from change_tag_def where ct... | {"runningtime": "28.19", "resultsets": [{"headers": ["log_title", "ips_item_id"], "rowcount": 7320}]} | null |
Translations on each version | null | USE enwiki_p;
set @contenttranslation_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' );
set @contenttranslation_needcheck_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation-needcheck' );
set @contenttranslation_v2_tag_id = ( select ctd_id from change_t... | {"runningtime": "1.90", "resultsets": [{"headers": ["log_title", "term_full_entity_id"], "rowcount": 289}]} | null |
Translations Needing review per month on English Wikipedia | null | USE enwiki_p;
select year(cl_timestamp) as Year,MONTHNAME(cl_timestamp) as Month, count(*) as Unreviewed
from categorylinks
where cl_to='Pages_with_unreviewed_translations'
group by year(cl_timestamp),month(cl_timestamp)
order by cl_timestamp desc | {"runningtime": "1.01", "resultsets": [{"headers": ["page_title", "ips_item_id"], "rowcount": 12}]} | null |
Possible violations of global rights policy (last month) | This query looks for actions in the last month that should have been impossible, ignoring global groups. Many of these actions, therefore, are likely to violate the global rights policy of the English Wikipedia
Global false positives: staff, users who lost relevant user groups
Result set 1; Moves without redirect by u... | /* Moves by non-autoconfirmed (Not worth querying, debatable whether it is actually a violation)
use enwiki_p;
select log_id, log_type, log_action, user_name, user_editcount, user_registration from logging
join actor on actor_id = log_actor join user on user_id=actor_user where log_type="move"
and (user_editcount < 10... | {"runningtime": "19.64", "resultsets": [{"headers": ["current_date"], "rowcount": 1}, {"headers": ["concat(\"\u09aa\u09be\u09a4\u09be:\", page_title)", "page_len"], "rowcount": 3434}]} | null |
Template redirects where the doc page doesn't redirect | null | USE etwiki_p;
SELECT page_title
FROM page
INNER JOIN (
SELECT
SUBSTR(page_title, 1, CHAR_LENGTH(page_title) - 4) AS doc_page_title,
page_is_redirect AS doc_page_is_redirect,
page_len AS doc_page_len
FROM page
WHERE
page_namespace = 10
AND page_title LIKE "%/doc"
) AS doc_page ON doc_page_title... | {"runningtime": "540.96", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Sort users on zhwiki by edit count | null | USE zhwiki_p;
SELECT * FROM user ORDER BY user_editcount DESC LIMIT 100; | {"runningtime": "713.82", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Categories that have the highest number of orphan articles | null | use arwiki_p;
select DISTINCT cat_pages as "عدد الصفحات", cat_title as "التصنيف" ,COUNT(cl_from) as "عدد المقالات اليتيمة" from category
inner join page
on page.page_title = category.cat_title
inner join categorylinks
on categorylinks.cl_to = page.page_title
where cl_from in (select cl_from from categorylinks where... | {"runningtime": "9.43", "resultsets": [{"headers": ["replace(page_title,\"_\",\"\")"], "rowcount": 50}]} | null |
Hewiki fair use unused pictures 1 | null | use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists
(select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as
p2 where p2.page_namespace = 14 and p2.pag... | {"runningtime": "77.90", "resultsets": [{"headers": ["replace(page_title,\"_\",\"\")"], "rowcount": 50}]} | null |
Orphan talk pages in id.wikipedia | null | use idwiki_p;
SELECT page_namespace, page_title, page_len, page_is_redirect, page_is_new FROM page AS p1
WHERE
p1.page_namespace % 2 = 1
AND (SELECT COUNT(*) FROM page AS p2 WHERE p1.page_title = p2.page_title AND p2.page_namespace = (p1.page_namespace - 1)) = 0
AND p1.page_namespace != 3
| {"runningtime": "103.19", "resultsets": [{"headers": ["replace(page_title,\"_\",\"\")"], "rowcount": 10000}]} | null |
تخصيص البذرة من البوابة | null | use arwiki_p;
SELECT page_title,
(SELECT replace(replace(cl_to, "بوابة_", ""), "/مقالات_متعلقة", "")
FROM categorylinks
WHERE cl_from = page_id
AND cl_to LIKE"%/مقالات_متعلقة"
LIMIT 1) AS "stub"
FROM page
INNER JOIN categorylinks cl1 ON cl1.cl_from = page_id
WHERE cl1.cl_to = "مقالات_بذور_عامة"
AND
... | {"runningtime": "548.14", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Orphaned fair use images (id) | Returns the list of fair use images that are not presently used in any articles | USE idwiki_p;
SELECT CONCAT('Berkas:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), '') FROM page p
INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from
LEFT JOIN imagelinks i ON p.page_title = i.il_to # AND (i.il_from_namespace = 0)
WHERE c1.cl_to = "Gambar_berlisensi_penggunaan_wajar"
AND i.il_f... | {"runningtime": "544.12", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Modules on Mediawiki | null | USE mediawikiwiki_p;
SELECT user_name, COUNT(DISTINCT page_title) AS modules_edited
FROM page
LEFT JOIN revision ON rev_page = page_id
LEFT JOIN user ON user_id = rev_actor
WHERE
page_namespace = 828
GROUP BY user_id
ORDER BY modules_edited DESC | {"runningtime": "527.14", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Templates that should be substituted | ...but aren't automatically substituted | SELECT cl_from, page.page_title, COUNT(templatelinks.tl_from) AS 'Transclusion count' FROM categorylinks
LEFT JOIN page ON page_id = cl_from
LEFT JOIN templatelinks ON tl_title = page_title
WHERE cl_to = 'Wikipedia_substituted_templates'
AND page_namespace = 10
AND cl_from NOT IN (SELECT cl_from FROM categorylinks WHER... | {"runningtime": "1075.39", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
CKB list update | null | use ckbwiki_p;
select concat("[[",page_title,"]]"), concat("[[:en:",(select ll_title from langlinks
where ll_from = rev_page
and ll_lang = "en"
... | {"runningtime": "0.17", "resultsets": [{"headers": ["img_name", "img_width", "img_height", "img_media_type", "img_major_mime", "img_minor_mime"], "rowcount": 1}]} | null |
Number of lexeme pages with/without wbl-senses page prop | For T199611 and T224844. | USE `wikidatawiki_p`;
SELECT
`pp_page` IS NOT NULL AS `has_wbl_senses`,
COUNT(*) AS `count`
FROM `page`
LEFT JOIN `page_props`
ON `pp_page` = `page_id`
AND `pp_propname` = 'wbl-senses'
WHERE `page_namespace` = 146
GROUP BY `has_wbl_senses`; | {"runningtime": "0.14", "resultsets": [{"headers": ["img_name", "img_width", "img_height", "img_media_type", "img_major_mime", "img_minor_mime"], "rowcount": 10}]} | null |
Langcode icon templates | null | USE enwiki_p;
SELECT
actor_name,
rev_actor_id,
num_pages_edited
FROM (
SELECT
CASE
WHEN rev_actor THEN rev_actor
WHEN revactor_actor THEN revactor_actor
ELSE NULL
END AS rev_actor_id,
COUNT(DISTINCT page_title) AS num_pages_edited
FROM page
INNER JOIN revision ON rev_page = page_id
LEFT JOIN rev... | {"runningtime": "749.80", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Get nlwiki page schema | null | DESCRIBE arwiki_p.revision; | {"runningtime": "793.29", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Template editors by time | Template editors, ordered by account creation | SELECT user.user_id, user.user_name, user.user_registration, user_groups.* FROM user
LEFT JOIN user_groups ON user_id = ug_user
WHERE ug_group = 'templateeditor'
ORDER BY user_registration DESC | {"runningtime": "590.51", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"], "rowcount": 10000}]} | null |
Debugging similarly named templates | null | /*
My question is: why weren't [[Template:GA icon]] and [[Template:ga icon]] listed as similarly named in my similarly named templates query?
*/
/*SELECT REPLACE(LOWER("ga_icon"), "_", ""), REPLACE(LOWER("GA_icon"), "_", "")*/ | {"runningtime": "0.16", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 5}]} | null |
Fawiki FA and GA that have CS1 errors | null | use fawiki_p;
SELECT DISTINCT
page_title,
c2.cl_to
FROM page
JOIN categorylinks c1
ON page_id = c1.cl_from
JOIN pagelinks
ON c1.cl_to = pl_title
AND pl_namespace = 14
AND pl_from = 4934714 -- User:Mensis Mirabilis/بومیسازی CS1/رده۲
JOIN categorylinks c2
ON page_id = c2.cl_from
AND c2.cl_to IN (
'مق... | {"runningtime": "0.11", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 5}]} | null |
User contributing to most FAs | null | use fawiki_p;
SELECT
actor_name,
COUNT(DISTINCT rev_page)
FROM revision
JOIN actor
ON rev_actor = actor_id
JOIN page
ON rev_page = page_id
AND page_namespace = 0
JOIN categorylinks
ON page_id = cl_from
AND cl_to = 'مقالههای_برگزیده'
WHERE
actor_user <> 0
AND NOT EXISTS (
SELECT ug_user
FROM u... | {"runningtime": "0.17", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 2}]} | null |
Hewiki fair use unused pictures 1 | null | use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists
(select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as
p2 where p2.page_namespace = 14 and p2.pag... | {"runningtime": "0.13", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 2}]} | null |
Hewiki fair use unused pictures 1 | null | use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists
(select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as
p2 where p2.page_namespace = 14 and p2.pag... | {"runningtime": "0.19", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 2}]} | null |
Modules on Enwiki | null | use enwiki_p;
SELECT actor_name, COUNT(rev_id) AS modules_edited from revision
LEFT JOIN actor on actor_id = rev_actor
LEFT join page on rev_page = page_id
WHERE
page_namespace = 828
GROUP BY actor_name
ORDER BY modules_edited DESC | {"runningtime": "0.12", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 2}]} | null |
تصانيف تحتوي بوابات غير موجودة | null | use arwiki_p;
select page_title, pl_title
from page
inner join pagelinks
on pl_from = page_id
where pl_from_namespace = 14
and pl_namespace = 100
and page_namespace = 14
and page_is_redirect = 0
and pl_title not in (select page_title from page where page_title = pl_title and page_namespace = 100); | {"runningtime": "0.29", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 6}]} | null |
تصنيفات تحتوي بوابات مكررة | null | use arwiki_p;
select p1.page_title, pl_title
from page p1
inner join pagelinks
on pl_from = p1.page_id
inner join page p2
on p2.page_title = pl_title
inner join redirect
on rd_from = p2.page_id
where pl_from_namespace = 14
and pl_namespace = 100
and p1.page_namespace = 14
and p1.page_is_redirect = 0
and p2.page_namespa... | {"runningtime": "0.45", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 1}]} | null |
بوابات مكررة في التصانيف | null | use arwiki_p;
select p1.page_title, pl_title
from page p1
inner join pagelinks
on pl_from = p1.page_id
inner join page p2
on p2.page_title = pl_title
inner join redirect
on rd_from = p2.page_id
where pl_from_namespace = 14
and pl_namespace = 100
and p1.page_namespace = 14
and p1.page_is_redirect = 0
and p2.page_namespa... | {"runningtime": "0.44", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 1}]} | null |
Translations Needing review per month on Spanish Wikipedia | null | USE eswiki_p;
select year(cl_timestamp) as Year,MONTHNAME(cl_timestamp) as Month, count(*) as Unreviewed
from categorylinks
where cl_to='Wikipedia:Páginas_con_traducciones_sin_revisar'
group by year(cl_timestamp),month(cl_timestamp)
order by cl_timestamp desc | {"runningtime": "0.40", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 1}]} | null |
Translations Needing review per month on Catalan Wikipedia | null | USE cawiki_p;
select year(cl_timestamp) as Year,MONTHNAME(cl_timestamp) as Month, count(*) as Unreviewed
from categorylinks
where cl_to='Pàgines_amb_traduccions_sense_revisar'
group by year(cl_timestamp),month(cl_timestamp)
order by cl_timestamp desc | {"runningtime": "0.14", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 1}]} | null |
Wikidata edits by a user using Commons app | null | use wikidatawiki_p;
select count(*) as edit_count
from change_tag
join revision on rev_id=ct_rev_id where ct_tag="wikimedia-commons-app" and rev_user_text="Maskaravivek"
| {"runningtime": "0.25", "resultsets": [{"headers": ["img_name", "img_width", "img_height"], "rowcount": 1}]} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.