title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
All orphan non-free files on lb.wiki
null
USE lbwiki_p; SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ON p.page_title = i.il_to AND (i.il_from_namespace = 0) LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c2.c...
{"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", "rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_tim...
null
Ungesichtete Änderungen der Putzarbeiten-IP
null
USE dewiki_p; SELECT page_title FROM flaggedpage_pending JOIN page ON fpp_page_id = page_id JOIN revision ON page_latest = rev_id JOIN comment ON rev_comment_id = comment_id AND comment_text like "%Putzarbeiten%" OR "%Kosmetik%" LIMIT 50
{"resultsets": [{"rowcount": 230, "headers": ["pl_from", "pl_title"]}], "runningtime": "91.73"}
null
Get some dead persons with no living set on talk
null
SELECT page.page_title FROM page INNER JOIN categorylinks ON categorylinks.cl_from = page.page_id WHERE (categorylinks.cl_to = "Year_of_death_missing" or categorylinks.cl_to = "Date_of_death_missing" or categorylinks.cl_to LIKE "%deaths") and page.page_namespace = "0" and EXISTS (SELECT NULL FROM page p2 INNER JOIN cat...
{"runningtime": "0.83", "resultsets": [{"headers": ["page_title"], "rowcount": 71}]}
enwiki
Deletion Ratios for one wiki during 2020
Example data for task https://phabricator.wikimedia.org/T246324. Shows ratio of main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted. This sample works for the Hungarian Wikipedia (huwiki) for 2019.
set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); set @created_total = ( select count(rev_id) from page, revision where page_id = rev_page and page_namespace = 0 and rev_timestamp like '2020%' and rev_parent_id = 0 ); set...
{"resultsets": [{"rowcount": 100, "headers": ["actor_id", "actor_user", "actor_name"]}], "runningtime": "0.38"}
igwiki_p
srwiki:Empty categories
null
USE srwiki_p; SELECT distinct CONCAT('# [[:Категорија:',page_title,']]') AS page_title, str_to_date(rev_timestamp, '%Y%m%d%H%i%s') AS rev_timestamp FROM categorylinks#, page, revision RIGHT JOIN page ON cl_to = page_title JOIN revision ON rev_page = page_id WHERE page_namespace = 14 #AND page_is_redirect = 0 AND rev_pa...
{"resultsets": [{"headers": ["count(ug_user)", "ug_group"], "rowcount": 1}], "runningtime": "0.16"}
srwiki_p
Possible impersonations
null
SELECT user_name FROM user WHERE user_name LIKE '%Ashleyyoursmile%'
{"runningtime": "1.67", "resultsets": [{"rowcount": 172, "headers": ["log_title", "deleted", "max_len", "ve", "cx", "mobile_edit", "log_comment"]}]}
enwiki
Premier mot créé sur le Wiktionnaire pour une date donnée
null
SELECT page_title FROM revision, page WHERE rev_parent_id = 0 AND 20200430225959 >= rev_timestamp and rev_timestamp >= 20200430000000 AND page_id = rev_page AND page_namespace = 0 ORDER BY rev_timestamp DESC LIMIT 1;
{"resultsets": [{"rowcount": 2, "headers": ["rev_id", "rev_len"]}], "runningtime": "73.75"}
frwiktionary
User contributing to most FAs (arwiki)
null
use arwiki_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 user_...
{"resultsets": [{"rowcount": 5, "headers": ["CONCAT(\"File:\", page_title)"]}], "runningtime": "318.32"}
arwiki
غير معروفة الأهمية حسب تصنيف في المقالة نفسها
null
USE arwiki_p; SELECT CONCAT('* [[:',article.page_title, ']]') as "المقالة" FROM revision inner join actor on actor_id = rev_actor INNER JOIN page article ON article.page_id = rev_page AND article.page_namespace = 0 INNER JOIN page talk ON talk.page_title = article.page_title AND talk.page_namespace = 1 IN...
{"resultsets": [{"rowcount": 1, "headers": ["CONCAT(\"File:\", page_title)"]}], "runningtime": "179.45"}
arwiki
Stub template redirect mapping (enwiki)
Stub template redirects and their targets
USE enwiki_p; SELECT page_title, rd_title FROM redirect inner join page on rd_from = page_id WHERE page_namespace = 10 AND page_title like "%-stub"
{"runningtime": "38.24", "resultsets": [{"headers": ["edit_username", "edits_after"], "rowcount": 30}]}
enwiki
صفحات توضيح مكررة
صفحات توضيح مكررة مرة نكرة ومرة معرفة
use arwiki_p; select page.page_title, concat('ال',page_title) from page where page_namespace = 0 #and page_title like '%(%)%' and concat('ال',page_title) in (select page.page_title from page where page_namespace = 0 and page_is_redirect = 0 and page_title like '%(توضيح)') and page_id in (select cl_from from ca...
{"runningtime": "0.29", "resultsets": [{"headers": ["COUNT(rd_from)"], "rowcount": 1}, {"headers": ["COUNT(DISTINCT pl_from) - 43", "SUM(NOT direct)", "SUM(direct) - 43"], "rowcount": 1}, {"headers": ["COUNT(DISTINCT direct)", "COUNT(DISTINCT tl_from)", "COUNT(DISTINCT direct) - COUNT(DISTINCT tl_from)"], "rowcount": 1...
arwiki
English Wiktionary entries linking to nonexistent Citations page
null
select source.page_title as 'from', concat('Citations:', pl_title) as 'to', if(exists(select 1 from templatelinks where tl_from = source.page_id and tl_namespace = 10 and tl_title = 'no_entry'), 'yes', 'no') as '{{no_entry}} present?'...
{"runningtime": "14.53", "resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "pl_title_space", "pl_title_underscore"], "rowcount": 33}]}
enwiktionary_p
Indef fully protected redirects
Generates a fully-functional wikitable that lists sysop-level indefinitely protected redirects.
SELECT CONCAT ("[[",page_title,"]]") # wikitable formatting AS 'Redirect' FROM page JOIN page_restrictions ON page_id = pr_page WHERE pr_type = 'edit' AND pr_level = 'sysop' AND page_namespace = 0 AND page_is_redirect = 1 AND pr_expiry = 'infinity'
{"runningtime": "0.08", "resultsets": [{"headers": ["count(*)"], "rowcount": 1}]}
enwiki
Stub template redirect mapping (enwiki)
Stub template redirects and their targets
SELECT page_title, rd_title FROM redirect inner join page on rd_from = page_id WHERE page_namespace = 10 AND page_title like "%-stub"
{"runningtime": "248.59", "resultsets": [{"headers": ["count", "ns", "pl_title", "from-ns", "exists"], "rowcount": 10}, {"headers": ["fns", "ftitle", "tns", "ttitle", "exists"], "rowcount": 61}]}
enwiki
Files hiding Commons files (idwiki)~deprecated
not working; "cross wiki" joins are no longer possible due to technical changes see: https://wikitech.wikimedia.org/wiki/News/Wiki_Replicas_2020_Redesign,
select a.img_name from idwiki_p.image a join commonswiki_p.image b on b.img_name = a.img_name and b.img_sha1 != a.img_sha1
{"runningtime": "41.09", "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": 3433}]}
idwiki_p
WP:AFCSORT
null
SELECT page_title, page_latest, cl_sortkey_prefix, page_len, actor_name, rev_timestamp, user_editcount, NOT ISNULL(coi_t.tl_title) AS has_coi, NOT ISNULL(upe_t.tl_title) AS has_upe FROM categorylinks JOIN page ON page_id = cl_from JOIN revision ON page_id = rev_page AND rev_parent_id = 0 JOIN actor_revisi...
{"connection_id": 12118543}
enwiki
Redirects to deleted pages with information on last deletion in English Wiktionary
null
-- Generated from siteinfo-namespaces in the dump; -- namespaces.name is the local name, not the canonical name. with namespaces(id, name) as ( values (-2, 'Media'), (-1, 'Special'), (0, ''), (1, 'Talk'), (2, 'User'), (3, 'User talk'), (4, 'Wiktionary'), (5, 'Wiktionary talk'), (6, '...
{"runningtime": "0.07", "resultsets": [{"headers": ["eu_row_id", "eu_entity_id", "eu_aspect", "eu_page_id"], "rowcount": 1}]}
enwiktionary_p
Links to Citations page for different term
null
select replace(page_title, '_', ' ') as 'from', concat('Citations:', replace(pl_title, '_', ' ')) as 'to' from pagelinks join page on page_id = pl_from where pl_from_namespace = 0 and pl_namespace = 114 # Citations and pl_title != page_title;
{"runningtime": "1.01", "resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touch...
enwiktionary_p
English Wiktionary edits-per-day leaderboard
Running this query on all edits times out.
select date_format(rev_timestamp, '%Y-%m-%d') as day, actor_name as user, count(*) as edit_count from revision join actor on actor_id = rev_actor where rev_timestamp >= date_add(now(), interval -1 year) group by substring(rev_timestamp, 1, 8), actor_name order by count(*) desc limit 1000;
{"runningtime": "3.92", "resultsets": [{"rowcount": 1453, "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"]}]}
enwiktionary_p
Count English Wikipedia autoconfirmed users
null
SELECT COUNT(*) FROM `user` WHERE user.user_editcount >= 10 AND user.user_registration <= (DATE_FORMAT((NOW() - INTERVAL 4 DAY), '%Y%m%d%H%i%S')) ;
{"runningtime": "9.34", "resultsets": [{"headers": ["tl_namespace", "tl_title", "GROUP_CONCAT(DISTINCT pr_type)", "GROUP_CONCAT(DISTINCT pr_level)", "GROUP_CONCAT(DISTINCT pr_user)", "GROUP_CONCAT(DISTINCT pr_expiry)"], "rowcount": 1}]}
enwiki_p
Without talk pages
null
select * from page where page_namespace=0 and not exists (select * from page page2 where page2.page_namespace=1 and page2.page_title=page.page_title) and page_is_redirect = 0 and page_is_new = 0;
{"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]}
bnwiki_p
nlwiki IPv4/IPv6 edits
null
SELECT 'total' AS `family`, COUNT(actor_name) AS `count` FROM actor, recentchanges WHERE rc_source REGEXP '^mw.' AND actor_user IS NULL AND actor_id=rc_actor UNION SELECT 'IPv4', COUNT(an4.actor_name) FROM (SELECT actor_name FROM actor, recentchanges WHERE rc_source REGEXP '^mw.' AND actor_user IS NULL AND actor_id=rc_...
{"runningtime": "968.33", "resultsets": [{"headers": ["page_title", "page_len", "cat_pages", "rev_timestamp", "rev_actor"], "rowcount": 81}]}
nlwiki
Number of edits in ltwikisource
null
USE ltwikisource_p; and bnwikisource_p; SET @w:=0; SET @s:=0; SELECT @w:=@w+1 AS 'Pos.',`Number of edits`,`User`,@s:=@s+`Number of edits` AS 'Cumulatively' FROM (SELECT user_name AS 'User', COUNT(*) AS 'Number of edits' FROM actor JOIN revision ON rev_actor=actor_id JOIN user ON actor_user=user_id JOIN page ON rev_pag...
{"runningtime": "0.09", "resultsets": [{"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]}
bnwikisource_p
Mujeres y hombres creados en marzo de 2020
Cantidad de hombres y mujeres creados en Wikipedia en español en marzo de 2020. Considera solamente las categorías de las personas (no wikidata), así como si el artículo existe al momento de ejecutar la consulta
use eswiki_p; SELECT now() as 'ultima ejecucion'; SELECT if(cl_to = 'Mujeres', 'Mujeres', 'Hombres') as genero, count(1) as counted FROM page INNER JOIN revision ON rev_page = page_id INNER JOIN categorylinks ON cl_from = page_id WHERE rev_timestamp between '20200301000000' AND '20200401000000' AND rev_parent_id = 0 A...
{"runningtime": "0.27", "resultsets": [{"rowcount": 64, "headers": ["concat(\"https://en.wikipedia.org/wiki/User:\",rc_title)"]}]}
eswiki_p
delete me
null
SELECT talk.page_title, article.page_title FROM page as talk JOIN page as article ON article.page_title = talk.page_title JOIN templatelinks ON tl_from = talk.page_id WHERE article.page_id = '52354666'
{"runningtime": "5.21", "resultsets": [{"rowcount": 1328, "headers": ["page_title", "linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]}
enwiki
categories of unreviewd articles
null
#DESCRIBE pagetriage_page #DESCRIBE page #DESCRIBE templatelinks #SELECT page.page_title, templatelinks.tl_title #FROM page #JOIN templatelinks ON templatelinks.tl_from = page.page_id #WHERE page.page_id=10837430 #AND page.page_namespace=1 #AND templatelinks.tl_namespace=10 #AND templatelinks.tl_title LIKE '%WikiPr...
{"runningtime": "0.17", "resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}]}
enwiki
Most active users by edits on Telugu wiki in from 2019 Till may
null
USE tewiki_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount/*, user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace = 0 AND actor_user IS NOT NULL AND r...
{"runningtime": "0.09", "resultsets": [{"rowcount": 6, "headers": ["actor_name", "countt"]}]}
tewiki_p
unreviewed articles by specific user
null
#unreviewed articles by user #SELECT DISTINCT categorylinks.cl_to, COUNT(categorylinks.cl_to) AS count SELECT page_title, rev_timestamp AS created FROM revision JOIN pagetriage_page ON rev_page = ptrp_page_id JOIN page ON page_id = rev_page JOIN actor ON rev_actor = actor_id JOIN categorylinks ON page.page_id=cat...
{"runningtime": "0.08", "resultsets": [{"headers": ["user_name", "user_id", "user_registration", "user_editcount"], "rowcount": 1}]}
enwiki
Links von Geboren to Disambiguation pages
null
SELECT pl_from, pl_title FROM page , categorylinks as cl1, categorylinks as cl2, pagelinks Where cl2.cl_to = 'Begriffsklärung' AND cl2.cl_from= page_id AND pl_title=page_title AND pl_from_namespace = 0 AND pl_namespace = 0 AND SUBSTRING(cl1.cl_to,1,7) = 'Geboren' AND cl1.cl_from= pl_from Limit 50;
{"resultsets": [], "runningtime": "0.03"}
dewiki_p
Neu verlinkte BKS
null
SELECT pl.pl_title AS title, COUNT(pl.pl_from) AS count FROM pagelinks pl INNER JOIN page p ON (p.page_title = pl.pl_title AND p.page_namespace = pl.pl_namespace) INNER JOIN categorylinks cl ON (cl.cl_from = p.page_id AND cl.cl_to = 'Begriffsklärung') WHERE pl.pl_namespace = 0 AND pl.pl_from_namespace = 0 AND cl...
{"resultsets": [{"headers": ["count", "page_title"], "rowcount": 5000}], "runningtime": "55.89"}
dewiki_p
مقالات تحتوي فاصلة أجنبية
null
use arwiki_p; select page_title from page where page_is_redirect = 0 and (page_namespace = 4) and page_title like "%ترشيحات الصور%" limit 100;
{"resultsets": [{"headers": ["page_title", "page_id", "num_outlinks"], "rowcount": 4}], "runningtime": "0.07"}
arwiki_p
Sandboxes of anonymous users on plwiki
null
SELECT CONCAT("# [[User:",page_title,"]]") AS page_title, page_len, rev_timestamp FROM page, revision WHERE page_latest = rev_id /*AND (page_title RLIKE '^([0-9A-F]{1,4}:){7,7}[0-9A-F]{1,4}\/.*' OR page_title RLIKE '[0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}\/.*')*/ AND (page_title RLIKE '^([0-9A-F]{1,4}:){7,7}[...
{"resultsets": [{"headers": ["CONCAT(\"Template:\", page_title)", "COUNT(tl_from)"], "rowcount": 7820}], "runningtime": "9.19"}
plwiki_p
zhwp: delete log comment list search
null
SELECT log_timestamp, log_id, log_namespace, log_title, comment_text FROM logging LEFT JOIN comment ON log_comment_id = comment_id WHERE log_type = "delete" AND log_action = "delete" AND (comment_text LIKE "%G11%") AND log_timestamp > '20220101000000' ORDER BY log_timestamp DESC;
{"resultsets": [{"headers": ["replace(page_title, \"_\", \" \")", "page_is_redirect"], "rowcount": 18}], "runningtime": "0.15"}
zhwiki_p
trwiki:Pages in Vikiproje Bilim tarihi which too short
null
USE trwiki_p; SELECT DISTINCT CONCAT("#[[",REPLACE(article.page_title,"_"," "),"]]") FROM page talk INNER JOIN page article ON talk.page_title = article.page_title INNER JOIN categorylinks ON cl_from = talk.page_id WHERE talk.page_namespace = 1 AND article.page_namespace = 0 AND article.page_len<1000 AND ar...
{"resultsets": [{"headers": ["actor_name", "date", "pagename"], "rowcount": 338}], "runningtime": "0.57"}
trwiki_p
trwiki:Pages in Vikiproje Bilim tarihi needing editing
null
USE trwiki_p; SELECT DISTINCT CONCAT("#[[",REPLACE(article.page_title,"_"," "),"]]") FROM page talk INNER JOIN page article ON talk.page_title = article.page_title INNER JOIN categorylinks ON cl_from = talk.page_id WHERE talk.page_namespace = 1 AND article.page_namespace = 0 AND cl_to LIKE "Vikiproje_Bilim_t...
{"resultsets": [{"headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"], "rowcount": 1}], "runningtime": "0.08"}
trwiki_p
same cats test
null
select concat("* [[تصنيف:",(select ll_title from langlinks where ll_from = p2.page_id and ll_lang = "ar"),"]]"), concat(">>>[[:en:Category:",p1.page_title,"]]") from page p1 inner join page p2 on p2.page_title = p1.page_title where p1.page_namespace = 14 and p1.page_is_redirect = 0 and p2.page_namespace = 0 and ...
{"resultsets": [{"headers": ["log_namespace", "log_title", "comment_text", "log_timestamp", "log_actor"], "rowcount": 0}], "runningtime": "0.63"}
enwiki
Scrape OTRS
null
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P6305', concat('"',REPLACE(el_to,'https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=',''),'"') AS OTRS, CONCAT("File:",page_title) #'/* extracted from {{PermissionOTRS}} template */' FROM page JOIN externallinks ON page_id=el...
{"resultsets": [{"headers": ["CONCAT(\"Q\",ips_item_id)", "Lar", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 443}], "runningtime": "560.64"}
commonswiki_p
nlwiki MAX(rev_timestamp)
null
use nlwiki_p; SELECT MAX(rev_timestamp) FROM revision
{"resultsets": [{"headers": ["\u062a\u062c\u0627\u0647\u0644", "\u0645\u062b\u0627\u0644 \u0635\u0641\u062d\u0629", "item ", "page_namespace"], "rowcount": 93005}], "runningtime": "102.89"}
nlwiki_p
nlwiki Pages without category
null
use nlwiki_p; # This query retrieves all pages where there are only hidden cats or no cats at all # # A page is not included in this query if it has already been temporarly categorized # in "Category:Wikipedia:Nog te categoriseren sinds" (temp cat) # Different types of "categorization": # * Only normal cats ...
{"resultsets": [{"headers": ["page_title", "pl_title"], "rowcount": 657}], "runningtime": "4.03"}
nlwiki_p
(empty)
null
null
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 8}], "runningtime": "2.39"}
nlwiki
Count files on Commons that are in use
This counts the number of distinct files mentioned in the GlobalUsage table. Only files that actually exist on Commons are counted. Uses on Commons itself, on user pages, and on talk pages are excluded.
select count(distinct gil_to) from globalimagelinks, image where gil_to = img_name and gil_wiki <> 'commonswiki' and gil_page_namespace_id <> 2 and gil_page_namespace_id & 1 = 0;
{"connection_id": 24525088}
commonswiki_p
Get article creation date and Wikidata item by category
null
USE enwiki_p; SELECT page_props.pp_value, article.page_title, revision.rev_timestamp, MIN(revision.rev_id), COUNT(*) AS edits FROM revision INNER JOIN page article ON article.page_id = rev_page AND article.page_namespace = 0 INNER JOIN page talk ON talk.page_title = article.page_title AND talk.page_name...
{"resultsets": [{"headers": ["Redirect", "to Image"], "rowcount": 5}], "runningtime": "0.12"}
enwiki_p
globaluser
null
SELECT * FROM globaluser WHERE gu_locked = 1 LIMIT 10
{"connection_id": 334702842}
centralauth_p
enwiki: Free media with hidden file revisions
null
select distinct concat('[[:File:',oi_name,']]') as File from oldimage oi left join page p on oi.oi_name = p.page_title inner join categorylinks cl on p.page_id = cl.cl_from where oi.oi_deleted in (1, 3, 5, 7) and p.page_namespace = 6 and cl_to in ('All_free_media', 'All_free_in_US_media') ;
{"resultsets": [{"headers": ["lang", "articles", "percent_of_en"], "rowcount": 145}], "runningtime": "0.49"}
enwiki
zhwiki: change_tag
null
SELECT * FROM change_tag WHERE ct_rev_id IS NOT NULL AND ct_tag_id = 24 AND ct_rev_id < 52952144 ORDER BY ct_id DESC # LIMIT 10
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 6}], "runningtime": "2.97"}
zhwiki_p
Editors by experience 2-5k
With a little help from [[User talk:Cryptic#A Little help with a query]] circa 7 Feb 2020. Editors who are extended confirmed, are not new page patrollers or sysops, have not been blocked in the last year, have at least 500 edits in the last 6 months, 50 edits in the last 2 months, created at least 2 non-stub pages, ha...
SELECT user_id, user_name, user_editcount, user_registration FROM `user` JOIN actor_user on actor_user=user_id WHERE user_editcount BETWEEN 2000 AND 5000 AND user_registration < '20190228000000' AND EXISTS (SELECT 1 FROM user_groups WHERE user_id=ug_user AND ug_group = 'extendedconfirmed') AND NOT EXISTS (SELECT ...
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 35}], "runningtime": "3.51"}
enwiki_p
patrol_logging
null
select l2.* from ( select REGEXP_SUBSTR(SUBSTRING(l.log_params,5),'curid";s:\\d+:"\\K\\d+') curid, REGEXP_SUBSTR(SUBSTRING(l.log_params,5),'previd";s:\\d+:"\\K\\d+') previd, REGEXP_SUBSTR(SUBSTRING(l.log_params,5),'auto";i:\\K\\d') auto_patrol, l.* from logging l where l.log_type ='patrol' /* and l.log_params not lik...
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 50}], "runningtime": "0.11"}
zhwiki
Harvest external-ids from external links
null
SELECT el_to, pl.page_title, pp_value FROM (SELECT * FROM externallinks WHERE el_to LIKE "%iat.uni-leipzig.de%" AND el_to LIKE "%spid=%") AS el JOIN (SELECT * FROM page WHERE page_namespace = 0 AND page_title NOT LIKE "Seznam%") AS pl ON pl.page_id = el_from JOIN (SELECT * FROM page_props WHERE pp_propname = "wikibase_...
{"resultsets": [{"headers": ["il_from", "il_to", "il_from_namespace"], "rowcount": 174}], "runningtime": "0.26"}
plwiki_p
Pages created by Content Translation in Gujarati Wikipedia
null
use guwiki_p; set @change_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); select distinct(rev_page), page_title from revision, page where rev_page = page_id and page_namespace = 0 and rev_id in ( select ct_rev_id from change_tag w...
{"resultsets": [{"headers": ["page_title"], "rowcount": 290}], "runningtime": "0.64"}
guwiki_p
transclusioncount
null
SELECT tl_namespace, tl_title, links, page_id, pr1.pr_level AS edit_level, pr1.pr_expiry AS edit_expiry, pr2.pr_level AS move_level, pr2.pr_expiry AS move_expiry, pt_create_perm, pt_expiry FROM ( SELECT tl_namespace, ...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "41.71"}
zhwiki
Doppelte Verlinkung auf externe Links von einer Seite
null
SELECT el1.el_id, page_title, page_namespace, el1.el_to FROM externallinks as el1 INNER JOIN externallinks as el2 ON (el1.el_id <=40000000 AND el1.el_id >30000000 AND el1.el_from=el2.el_from AND el1.el_to=el2.el_to AND el1.el_id <> el2.el_id) INNER JOIN page ON (el1.el_from=page_id AND page_namespace=10) LIMIT 50;
{"resultsets": [{"headers": ["CONCAT('* [[', page_title, ']]')"], "rowcount": 88}], "runningtime": "1.01"}
dewiki_p
Links from Nekrolog to Disambiguation pages , fr
null
SELECT pl_from, pl_title FROM page , categorylinks as cl1, categorylinks as cl2, pagelinks Where cl2.cl_to = 'Homonymie_de_personnes' AND cl2.cl_from= page_id AND pl_title=page_title AND pl_from_namespace = 0 AND pl_namespace = 0 AND SUBSTRING(cl1.cl_to,1,5) = 'Décès' AND cl1.cl_from= pl_from Lim...
{"resultsets": [{"headers": ["MID", "P921", "QID"], "rowcount": 0}], "runningtime": "0.10"}
frwiki_p
Links from Nekrolog to Disambiguation pages , it
null
SELECT pl_from, pl_title FROM page , categorylinks as cl1, categorylinks as cl2, pagelinks Where cl2.cl_to = 'Pagine_di_disambiguazione' AND cl2.cl_from= page_id AND pl_title=page_title AND pl_from_namespace = 0 AND pl_namespace = 0 AND cl1.cl_to = 'Liste_di_morti_per_anno' AND cl1.cl_from= pl_fro...
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 1}], "runningtime": "0.06"}
itwiki_p
external links from page
null
SELECT el_id , el_to , el_index FROM externallinks Where el_from=27203;
{"resultsets": [{"headers": ["rc_title", "user_id", "page_id", "cl_to"], "rowcount": 167}], "runningtime": "46.75"}
dewiki_p
تصحيح تصنيفات
null
use arwiki_p; select CONCAT('* [[:تصنيف:',page_title, ']]>') AS cat1 , REPLACE(CONCAT('[[:تصنيف:', page_title, ']]'), 'جوائز_أسست' , 'جوائز_تأسست' ) as cat2 from page where page_namespace=14 and page_is_redirect=0 and (page_title like "%جوائز_أسست%") and page_title not like "%/%" #and page_title not like "%أعضاء_هي...
{"connection_id": 26185698}
arwiki
dewiki: Artikelwerkstatt pages with Wikidata item
null
SELECT pp.pp_value, p.page_title FROM page p JOIN page_props pp ON p.page_id=pp.pp_page WHERE p.page_namespace=4 AND p.page_title LIKE 'Artikelwerkstatt/%' AND pp.pp_propname='wikibase_item';
{"connection_id": 47244342}
dewiki_p
Ungesichtete Dateiumbenennungen per commons:GR
null
SELECT page_title FROM flaggedpage_pending JOIN page ON fpp_page_id = page_id JOIN revision ON page_latest = rev_id JOIN comment ON rev_comment_id = comment_id AND comment_text like "([[c:GR|GR]]) [[c:COM:FR|File renamed]]: [[File:%" LIMIT 20
{"resultsets": [{"headers": ["user", "edit_count"], "rowcount": 64}], "runningtime": "0.44"}
dewiki_p
Wrong fp_stable in flaggedpages
null
SELECT * FROM flaggedpages INNER JOIN flaggedrevs ON fp_stable=fr_rev_id WHERE fp_page_id<>fr_page_id
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 250}], "runningtime": "37.88"}
dewiki_p
Inspect categorylinks
null
USE enwiktionary_p; SELECT page_title, categorylinks.* FROM categorylinks, page WHERE page_id = cl_from and cl_to = 'German_letters' -- and cl_to = 'Lettres_en_allemand' -- and -- cl_sortkey like '%ɐ%' -- cl_from = 118544 -- and cl_sortkey >= 'BUSSES' -- and cl_sortkey <= 'BUßFE' order by cl_timestamp desc -- order by...
{"resultsets": [{"headers": ["cl_to"], "rowcount": 8578}], "runningtime": "245.28"}
enwiktionary_p
فارغ
null
select p.page_title, group_concat(p3.page_title SEPARATOR '***') as cats from page p inner join langlinks l1 on l1.ll_from = p.page_id inner join enwiki_p.page on enwiki_p.page.page_title = replace(l1.ll_title, " ", "_") inner join enwiki_p.categorylinks on enwiki_p.categorylinks.cl_from...
{"resultsets": [{"headers": ["user", "num_edits"], "rowcount": 12}], "runningtime": "0.16"}
arwiki_p
最短的極高/高重要度電子遊戲條目 (zhwiki)
For [[w:zh:WikiProject:电子游戏/里程碑/基础条目扩充挑战]]
USE zhwiki_p; SELECT CONCAT('[[:', REPLACE(page.page_title, "_", " "), "]]") AS 條目, page.page_len AS 長度 FROM page AS temp JOIN categorylinks ON (cl_to = "极高重要度电子游戏条目" OR cl_to = "高重要度电子游戏条目") AND cl_type = 'page' AND cl_from = temp.page_id JOIN page ON page.page_title = temp.page_title AND page.page_na...
{"resultsets": [{"headers": ["user", "img_count"], "rowcount": 86}], "runningtime": "2.52"}
zhwiki_p
All orphan non-free files on vi.wiki
null
#USE viwiki_p; SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ON p.page_title = i.il_to AND (i.il_from_namespace = 0) LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c2....
{"resultsets": [{"headers": ["actor_id", "actor_name", "count(*)"], "rowcount": 16}], "runningtime": "0.53"}
viwiki_p
zhwp: logging/newusers
null
SELECT * FROM logging WHERE log_type = 'create' AND (log_title REGEXP '买.*球' OR log_title REGEXP '買.*球' OR log_title REGEXP '赌.*球') AND log_timestamp > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 365 DAY), '%Y%m%d%H%i%s') ORDER BY log_timestamp DESC
{"resultsets": [{"headers": ["CONCAT('[[',page_title,']]')"], "rowcount": 15}], "runningtime": "7.23"}
zhwiki_p
nlwiki Anomalous sort key for main article of category
null
SELECT REPLACE(a.page_title,'_',' ') AS title, a.page_is_redirect AS redir, cl_sortkey_prefix AS sortkey, LENGTH(cl_sortkey_prefix) AS 'length', a.page_id AS 'a.page_id', c.page_id AS 'c.page_id', a.page_latest, cat_pages AS '#cat' FROM page a INNER JOIN page c ON a.page_title=c.page_t...
{"connection_id": 64939562}
nlwiki
近期编辑ACG条目次数最多者 (zhwiki)
null
WITH pages_vg AS ( WITH pages_vg_talk AS ( SELECT page.page_namespace, page.page_title FROM page JOIN categorylinks ON cl_to IN ( '极高重要度ACG条目', '高重要度ACG条目', '中重要度ACG条目', '低重要度ACG条目', '未知重要度ACG条目' ) AND cl_type = 'page' AND cl_fr...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 2426}], "runningtime": "776.68"}
zhwiki_p
arbcom elections for carn
null
SELECT user_name # user_registration, # user_editcount, # Count(rev_id) FROM (SELECT * FROM (SELECT user_id, user_name, user_registration, user_editcount FROM user WHERE ( ( user_registration IS NULL ) OR ( user_registration < 20220520000000 ) ) AND ( user_editcount >=...
{"resultsets": [{"headers": ["page_title", "page_namespace", "actor_name", "rev_timestamp", "comment_text"], "rowcount": 24}], "runningtime": "2.16"}
ruwiki_p
Unused and low-use modules
null
select concat("Module:",page_title),page_len from page where page_namespace=828 and not /**/ exists (select 1 from templatelinks join linktarget on lt_id=tl_target_id where lt_namespace=page_namespace and lt_title=page_title and tl_from != page_id and tl_from_namespace != 2 a...
{"resultsets": [{"headers": ["Reviewer", "Article Reviews"], "rowcount": 100}], "runningtime": "31.42"}
enwiki
All orphan non-free files on id.wiki
null
#USE idwiki_p; SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ON p.page_title = i.il_to #AND (i.il_from_namespace = 0) #LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c...
{"resultsets": [{"headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "user_password_expires"], "rowco...
idwiki_p
Admins
null
SELECT CONCAT ("User talk:", user_name) AS user_name FROM user JOIN user_groups ON user_id = ug_user WHERE ug_group = 'sysop' ORDER BY user_name ASC;
{"resultsets": [{"headers": ["num", "Page title", "Is redirect?"], "rowcount": 39}], "runningtime": "9.60"}
metawiki_p
Problematic links to archived extensions
null
use mediawikiwiki_p; select pl_from_namespace, concat("Special:Redirect/page/",pl_from), pl_title from pagelinks join page on page.page_namespace=pl_namespace and page.page_title=pl_title join categorylinks on page_id=cl_from where cl_to="Archived_extensions" and pl_from_namespace %2 = 0 /* not talk page */ and pl_f...
{"resultsets": [{"headers": ["p", "p\u0422\u041c\u041f1", "p\u0422\u041c\u041f2", "new_text"], "rowcount": 1}], "runningtime": "0.04"}
mediawikiwiki
Problematic links to archived extensions (mainspace)
Impressively, even after all the filtering, the query is still swimming with false positives. MediaWiki.org mainspace is a very strange place
use mediawikiwiki_p; select pl_from_namespace, page2.page_title, pl_title from pagelinks join page page1 on page1.page_namespace=pl_namespace and page1.page_title=pl_title join categorylinks on page1.page_id=cl_from join page page2 on page2.page_id=pl_from where cl_to="Archived_extensions" and page1.page_title !="Edu...
{"resultsets": [{"headers": ["p", "p\u0422\u041c\u041f1", "p\u0422\u041c\u041f2", "new_text"], "rowcount": 1}], "runningtime": "0.07"}
mediawikiwiki
Ønskede kategorier
null
use nowiki_p; select DISTINCT replace( cl_to, "_", " " ), concat( "[http://no.wikipedia.org/wiki/Category:", cl_to, "?action=edit&preload=Template:WantedCat&summary=Oppretter_etterspurt_kategori", " create]" ) from categorylinks left join page on page_title = cl_to and page_namespace=14 where page_title is null li...
{"resultsets": [{"headers": ["page_title"], "rowcount": 3918}], "runningtime": "10.24"}
nowiki
编辑电子游戏条目最多的用户 (zhwiki)
null
WITH pages_vg AS ( WITH pages_vg_talk AS ( SELECT page.page_namespace, page.page_title FROM page JOIN categorylinks ON cl_to IN ( '极高重要度电子游戏条目', '高重要度电子游戏条目', '中重要度电子游戏条目', '低重要度电子游戏条目', '未知重要度电子游戏条目' ) AND cl_type = 'page' AND ...
{"resultsets": [{"headers": ["id", "len", "len_old"], "rowcount": 175}], "runningtime": "0.26"}
zhwiki_p
Extensions lacking standard templates
null
use mediawikiwiki_p; select * from page where page_namespace=102 and page_is_redirect=0 and page_title not like "%/%" and not exists (select * from templatelinks join linktarget on lt_id=tl_target_id where tl_from=page_id and lt_namespace=10 and lt_title in ("Extension/en", ...
{"resultsets": [{"headers": ["el_id", "el_from", "el_to", "el_index", "el_index_60"], "rowcount": 0}], "runningtime": "0.05"}
mediawikiwiki
WLE in Sweden participants
People who have uploaded images during WLE in Sweden. List ready for mass messaging (https://commons.wikimedia.org/wiki/Commons:Wiki_Loves_Earth_in_Sweden/Mass_message)
SELECT DISTINCT CONCAT("# {{#target:User_talk:", actor_name, "}}") as line FROM revision r_prev join categorylinks on rev_page = cl_from join actor on rev_actor = actor_id and actor_user is not null WHERE rev_parent_id = 0 and cl_to IN ( "Images_from_Wiki_Loves_Earth_2022_in_Sweden", "Images_from_Wiki_Loves_Earth_2...
{"resultsets": [{"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 26}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 24}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 23}, {"headers": ["page_id", "cl_to", "count(*)"], "rowcount": 30}, {"headers": ["page_id", "cl_to", "count(*)"], "rowco...
commonswiki_p
MW missing configuration settings
null
use mediawikiwiki_p; select concat("* {{configuration list entry|",replace(page_title,"$",""),"}}") from categorylinks join page on page_id=cl_from where page_namespace=100 and cl_to="MediaWiki_configuration_settings" and not exists (select 1 from categorylinks where cl_from=page_id and cl_to REGEXP "MediaWiki_configur...
{"resultsets": [{"headers": ["block_count"], "rowcount": 1}], "runningtime": "0.07"}
mediawikiwiki
Links from Categories to Disambiguation pages
null
SELECT pl_from, page_title FROM page , categorylinks, pagelinks Where cl_to = 'Begriffsklärung' AND cl_from= page_id AND pl_title=page_title AND pl_from_namespace = 14 AND pl_namespace = 0
{"resultsets": [{"headers": ["title", "count"], "rowcount": 7}], "runningtime": "0.06"}
dewiki_p
False {{used in system}}
null
select dst.page_namespace, dst.page_title from templatelinks join linktarget on lt_id=tl_target_id join page dst on page_id=tl_from where lt_title = "Used_in_system" and lt_namespace = 10 and (dst.page_namespace = 10 or dst.page_namespace = 828) and not exists (select 1 from templatelinks tl2 join linktarget lt2 on lt2...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 750}], "runningtime": "44.70"}
enwiki
Sandboxes in use
null
select (select page_title from page where page_id=tl_from), lt_title from linktarget join templatelinks on tl_target_id=lt_id where lt_namespace in (10, 828) and lt_title like "%/sandbox" and tl_from_namespace=0 limit 750;
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 217}], "runningtime": "0.38"}
enwiki_p
Links from Nekrolog to Disambiguation pages , de
null
SELECT pl_from, pl_title, cl1.cl_to FROM page , categorylinks as cl1, categorylinks as cl2, pagelinks Where cl2.cl_to = 'Begriffsklärung' AND cl2.cl_from= page_id AND pl_title=page_title AND pl_from_namespace = 0 AND pl_namespace = 0 AND SUBSTRING(cl1.cl_to,1,8) = 'Nekrolog' AND cl1.cl_from= pl_fr...
{"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 8}, {"headers": ["avg_edits_per_day"], "rowcount": 1}, {"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 9}, {"headers": ["avg_edits_per_day"], "rowcount": 1}], "runningtime": "1.70"}
dewiki_p
BNR-Kategorien
null
USE dewiki_p; SELECT page_title AS "Benutzerseite", cl_to AS "ist in Kategorie" FROM page, categorylinks WHERE page_namespace = 2 AND page_id = cl_from AND cl_to NOT LIKE "Benutzer:%" AND cl_to NOT LIKE "Benutzerin:%" AND cl_to NOT LIKE "User_%" AND cl_to NOT LIKE "Portal:%" AND cl_to NOT LIKE "Wik...
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 0}], "runningtime": "0.05"}
dewiki_p
nlwiki Articles without content category
Pages without any categories or with only maintenance categories. Query breakdown: 1. outer query = a list of article pages that are not nominated for deletion and older than 24 hours 2. hc = a list of maintenance categories, meaning the titles of category pages with the __HIDDENCAT__ or __EXPECTUNUSEDCATEGORY__ prope...
SELECT page_title, rev_timestamp, GROUP_CONCAT(cl_to SEPARATOR ' | ') AS categories, (SELECT GROUP_CONCAT(pl_title SEPARATOR ' | ') FROM pagelinks WHERE pl_from=page_id AND pl_namespace=14) AS catlinks, pp_value AS defaultsort, (SELECT pp_value FROM page_props WHERE pp_page=page_id AND pp_propname=...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name", "page_title", "comment_text", "page_id"], "rowcount": 8303}], "runningtime": "10.30"}
nlwiki
Možná nadbytečné rozcestníky
null
use cswiki_p; select page_namespace, page_title from page join redirect on page_id=rd_from where rd_title like '%_(rozcestník)' and page_title like replace(rd_title, '_(rozcestník)', '');
{"runningtime": "0.70", "resultsets": [{"rowcount": 50, "headers": ["cat_title", "cat_pages-cat_subcats"]}]}
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.43", "resultsets": [{"rowcount": 18, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
proofread-fathima-நமக்கு_நாமே_உதவி
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"runningtime": "0.77", "resultsets": [{"rowcount": 18, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
proofread-arun-பாரதிதாசன்_தாலாட்டுகள்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"runningtime": "1.00", "resultsets": [{"rowcount": 11, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
proofread-arun kaniyam-தாவோ-ஆண் பெண்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"runningtime": "0.92", "resultsets": [{"rowcount": 33, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Bar pesanti
null
USE itwiki_p; SELECT CONCAT("# [[Discussioni_progetto:", page_title, "]] - ", page_len) FROM pagelinks JOIN page ON page_namespace = pl_namespace AND page_title = pl_title WHERE pl_from = 77179 AND pl_namespace = 103 AND page_len >= 200000 ORDER BY page_len DESC
{"runningtime": "0.28", "resultsets": [{"rowcount": 14, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Statistics of editing MediaWiki JS/CSS in ruwiki (all-time)
null
USE ruwiki_p; SELECT rev_user_text, COUNT(rev_user_text), rev_comment, -- если правка одна, видно, что page_title, -- и где, rev_timestamp -- и когда, -- если много - отображается случайная FROM revision JOIN page ON page_id = rev_page WHERE page_namespace = 8 AND (page_title LIKE '%.css' ...
{"runningtime": "0.46", "resultsets": [{"rowcount": 21, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
ruwiki: Users with global / other users' JS/CSS edits.
null
use ruwiki_p; SELECT actor_name, css, js, userscripts, (css + js + userscripts) total FROM ( SELECT actor_name, SUM(CASE WHEN ext = 'css' AND page_namespace = 8 THEN cnt ELSE 0 END) css, SUM(CASE WHEN ext = 'js' AND page_namespace = 8 THEN cnt ELSE 0 END) js, SUM(CASE WHEN page_nam...
{"runningtime": "0.15", "resultsets": [{"rowcount": 9, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
মোট সম্পাদনার সংখ্যা
১ এপ্রিল ২০২০। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে HTML ক্লিক করুন।
USE bnwiki_p; SET @counter:=0; SELECT CONCAT("}}{{subst:সসংঅউতা|",@counter:=@counter+1,"") AS rank, CONCAT("|",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 user_editcount DESC...
{"runningtime": "0.43", "resultsets": [{"rowcount": 27, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Klammerlemmata als Weiterleitungen (möglicher Verschieberest) / Kopie / Kopie
Klammerlemmata ohne Verlinkung aus dem ANR, bei denen der letzte Änderungskommentar das Wort "verschob" enthält, also höchstwahrscheinlich Verschiebereste.
use dewiki_p; SELECT page_title AS "Weiterleitungsseite", rev_timestamp AS "Timestamp", comment_text AS "Änderungskommentar" FROM page LEFT JOIN revision ON rev_page = page_id AND rev_id = page_latest LEFT JOIN comment on rev_comment_id = comment_id WHERE NOT EXISTS ( SELECT 1 FROM pagelinks ...
{"runningtime": "0.70", "resultsets": [{"rowcount": 58, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
NOTHERE for April 2020
null
select log_title, comment_text from logging, comment where log_type = 'block' and log_action = 'block' and log_timestamp > '20200401000000' and log_timestamp < '20200501000000' and log_comment_id = comment_id and comment_text like '%NOTHERE%' ;
{"runningtime": "0.70", "resultsets": [{"rowcount": 33, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Articles without external links on Tewiki
null
use tewiki_p; SELECT page_title FROM page LEFT JOIN externallinks ON el_from=page_id WHERE page_namespace=0 AND page_is_redirect=0 AND page_len > 1 AND el_from IS NULL;
{"runningtime": "0.25", "resultsets": [{"rowcount": 11, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
List of Page Titles with తెలుగు
null
USE tewiki_p; SELECT page_title FROM page WHERE page_title like "%తెలుగు%" AND page_namespace=0 AND page_is_redirect=0;
{"runningtime": "0.55", "resultsets": [{"rowcount": 35, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Page Title and Group_concat
null
use tewiki_p; SELECT page_title, GROUP_CONCAT(cl_to) FROM page inner join categorylinks on cl_from = page_id where page_is_redirect = 0 and page_namespace = 0 and cl_to not in (select page_title from page where page_namespace = 14 and page_is_redirect = 0 and cl_to = page_title) group by page_title limit 50000;
{"runningtime": "0.59", "resultsets": [{"rowcount": 16, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Wikipages without info Box
null
USE tewiki_p; SELECT page_title FROM page, imagelinks WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT il_from FROM imagelinks WHERE il_from_namespace = 0 GROUP BY(il_from) ) AND ( NOT EXISTS( SELECT 1 FROM commonswiki_p.page WHERE page_...
{"runningtime": "0.53", "resultsets": [{"rowcount": 19, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Wikipages without info Box
null
USE tewiki_p; SELECT page_title FROM page, imagelinks WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT il_from FROM imagelinks WHERE il_from_namespace = 0 GROUP BY(il_from) ) AND ( NOT EXISTS( SELECT 1 FROM commonswiki_p.page WHERE page_...
{"runningtime": "0.25", "resultsets": [{"rowcount": 20, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Articles without any outgoing links
null
use tewiki_p; SELECT page_title FROM page LEFT JOIN pagelinks ON pl_from = page_id and pl_namespace=0 WHERE pl_namespace IS NULL and page_is_redirect=0 and page_namespace=0 LIMIT 10000;
{"runningtime": "0.76", "resultsets": [{"rowcount": 20, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Articles without any incoming links
null
USE tewiki_p; SELECT disambigs.page_title, COUNT(DISTINCT links.pl_from) AS direct_links, COUNT(DISTINCT redirects.page_id) AS redirects, COUNT(DISTINCT links.pl_from) + COUNT(DISTINCT links_to_redirects.pl_from) AS all_backlinks FROM (SELECT * FROM page WHERE page_is_redirect=0 and page_namespace=0) AS disambigs #J...
{"runningtime": "0.34", "resultsets": [{"rowcount": 6, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null