title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Top Wikipedia User by Bytecounts (This day) (full list)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
select count(*) /*sum(tdif)*/ from (select actor_name, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex left join actor on rc_actor = actor_id where rc_timestamp >= 20210604000000 and rc_timestamp <= 20210605000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edi...
{"runningtime": "62.60", "resultsets": [{"headers": ["pages_with_disambig_but_not_redir"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_articles", "user_latestcreation"], "rowcount": 979}]}
idwiki
Переименованные статьи про озёра-прилагательные
null
SELECT page_title as "текущее название", log_title as "оригинальное название" FROM page inner join categorylinks on cl_from = page_id and cl_to="Озёра_по_алфавиту" and (page_title like "%ое_%" or page_title like "%ое") inner join logging on (page_id = log_page and log_type = "create" and page_title<>log_title)
{"runningtime": "85.01", "resultsets": [{"headers": ["page_title"], "rowcount": 74}]}
ruwiki_p
Detailed user analytics
Fork this query, change "idwiki" with target's Wikipedia language (e.g : "enwiki"), change the @target variable with the target's username, then run it. See full list of all possible databases here : https://quarry.wmflabs.org/query/4031
set @target = "Creutzen"; SELECT user_name, CONCAT(substr(user_registration,1,4),"-",substr(user_registration,5,2), "-",substr(user_registration,7,2)) AS 'sejak', user_editcount AS 'edit count', CONCAT(substr(rev_timestamp,1,4),"-",substr(rev_timestamp,5,2), "-",substr(rev_timestamp,7,2)," ",substr(rev_timestamp,9,...
{"connection_id": 6544119}
idwiki
enwiki '%List_of%_genera
null
SELECT page_title FROM page AS p WHERE page_namespace = 0 AND page_title LIKE '%List_of%_families%' AND page_is_redirect = 0 #GROUP BY page_title LIMIT 999;
{"runningtime": "1.16", "resultsets": [{"headers": ["page_title"], "rowcount": 1}]}
enwiki_p
test
null
SELECT actor_name, COUNT(rev_id) AS cnt FROM revision_userindex JOIN comment ON rev_comment_id = comment_id AND ( comment_text LIKE '%#1Lib1Ref%' OR comment_text LIKE '%#1Lib1RefIran%' ) JOIN actor ON rev_actor = actor_id JOIN page ON rev_page = page_id AND page_namespace = 0 WHERE rev_id > 31...
{"runningtime": "0.03", "resultsets": []}
fawiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "0.06", "resultsets": [{"headers": ["actor_name", "latest", "group_concat(distinct ug.ug_group)"], "rowcount": 0}]}
commonswiki_p
Editor names of lengthy huWiki articles
User name of the latest editor of some lengthy huWiki articles
-- SQL query for some of the usernames of the latest editors of some long (more than 10_000 bytes long) articles use huwiki_p; SELECT DISTINCT actor editor FROM revision JOIN page ON rev_page=page_id JOIN actor ON rev_actor=actor_id JOIN user ON actor_id=user_id WHERE page_len > 10000 LIMIT 10
{"runningtime": "0.68", "resultsets": [{"headers": ["Filename", "img_width", "img_height", "pixels"], "rowcount": 84}]}
huwiki
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"runningtime": "29.56", "resultsets": [{"headers": ["page_title", "AnzahlPersonenLinks"], "rowcount": 1416}]}
enwiki
Long expiry (>2022) sysop creation protection
null
SELECT CONCAT ("[[",pt_title,"]]") AS 'Page', user_name AS "Protecting admin", pt_timestamp AS "Date of protection", pt_expiry AS "Date of expiry", comment_text AS "Summary" FROM protected_titles JOIN comment ON comment_id = pt_reason_id JOIN user on user_id = pt_user WHERE pt_expiry >= '2022' AND pt_expiry != 'infini...
{"runningtime": "32.48", "resultsets": [{"headers": ["gu_name", "gu_home_db", "user_editcount", "last_blocked_in"], "rowcount": 58}]}
enwiki
Indef semi protected articles
Generates a fully-functional wikitable that lists indefinitely semi-protected articles.
SELECT CONCAT ("[[",page_title,"]]") # wikitable formatting AS 'Article' FROM page JOIN page_restrictions ON page_id = pr_page WHERE pr_type = 'edit' AND pr_level = 'autoconfirmed' AND page_namespace = 0 AND page_is_redirect = 0 AND pr_expiry = 'infinity'
{"runningtime": "39.59", "resultsets": [{"headers": ["File name", "Date", "Size", "Uploader's name"], "rowcount": 7}]}
enwiki
Articles created before 20040920 with <10 non-minor edits
null
select page_title from ( select page_title, count(*) as revs_count from ( select page_title, page_id from page join revision on rev_page = page_id and rev_parent_id = 0 where page_namespace = 0 and page_is_redirect = 0 and rev_timestamp < '20040920000000' ) pb join revision on page_id = rev_pa...
{"runningtime": "0.14", "resultsets": [{"headers": ["CX new articles", "CX deletion rate", "non-CX new articles", "non-CX deletion rate", "CX deletion rate, vs. non-CX"], "rowcount": 1}]}
enwiki
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "0.68", "resultsets": [{"headers": ["totale", "page_count_error", "weight"], "rowcount": 15}, {"headers": ["page_id", "page_title", "linter_params", "totale"], "rowcount": 300}]}
commonswiki_p
page_ids of pages before 20020920 with <10 non-minor edits
null
select page_id from ( select page_id, count(*) as revs_count from ( select page_id from page join revision on rev_page = page_id and rev_parent_id = 0 where page_namespace = 0 and page_is_redirect = 0 and rev_timestamp < '20020920000000' ) pb join revision on page_id = rev_page where rev_min...
{"runningtime": "0.19", "resultsets": [{"headers": ["totale", "page_count_error", "weight"], "rowcount": 16}, {"headers": ["page_id", "page_title", "page_len", "totale", "linter_params", "ptotale"], "rowcount": 22}]}
enwiki
Show all queriable public databases
Displays a list of the public WMFLabs databases that can be queried through Quarry. There is one database per language and project.
select dbname from wiki where dbname like "en%";
{"runningtime": "3.85", "resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 2415}]}
meta_p
test1
null
SHOW TABLES FROM enwiki_p;
{"runningtime": "0.42", "resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 1}]}
enwiki
Recent reverted ranges
null
-- SET STATEMENT max_statement_time = 30 FOR SELECT ip24, c FROM ( SELECT ip24, count(*) AS c FROM ( SELECT -- DISTINCT rc_id, REGEXP_REPLACE(actor_name, '\.[0-9]+$', '') AS ip24 FROM recentchanges INNER JOIN change_tag ON recentcha...
{"runningtime": "0.31", "resultsets": [{"headers": ["year", "count"], "rowcount": 18}]}
enwiki_p
Select OrphanTalk from ns 1 (Talk) in thwiki
Query is base on https://github.com/Krinkle/mw-tool-orphantalk/blob/9353b1d1642827c7c812a34e1e69f97644e8c0af/class.php#L303
/* OrphanTalk::getOrphans */ SELECT p2.page_title FROM page as p1 RIGHT JOIN page as p2 ON p1.page_title = p2.page_title AND p1.page_namespace = 0 WHERE p2.page_namespace = 1 AND p1.page_title IS NULL ORDER BY p2.page_namespace ASC, p2.page_title ASC LIMIT 10000
{"runningtime": "3.15", "resultsets": [{"headers": ["tl_title", "count(*)"], "rowcount": 1}]}
thwiki_p
page_titles of pages before 20040920 with <10 non-minor edits
null
select page_title, count(*) as revs_count from ( select page_title, page_id from page join revision on rev_page = page_id and rev_parent_id = 0 where page_namespace = 0 and page_is_redirect = 0 and rev_timestamp < '20040920000000' ) pb join revision on page_id = rev_page where rev_minor_edit = 0 group by page...
{"connection_id": 7752481}
enwiki
Select OrphanTalk from ns 5 (Project talk) in thwiki
Query is base on https://github.com/Krinkle/mw-tool-orphantalk/blob/9353b1d1642827c7c812a34e1e69f97644e8c0af/class.php#L303
/* OrphanTalk::getOrphans */ SELECT p2.page_title FROM page as p1 RIGHT JOIN page as p2 ON p1.page_title = p2.page_title AND p1.page_namespace = 4 WHERE p2.page_namespace = 5 AND p1.page_title IS NULL ORDER BY p2.page_namespace ASC, p2.page_title ASC LIMIT 10000
{"runningtime": "0.18", "resultsets": [{"headers": ["tl_title"], "rowcount": 100}]}
thwiki_p
Bezahltes Schreiben in zwei Kategorien
https://de.wikipedia.org/w/index.php?title=Wikipedia:Fragen_zur_Wikipedia&oldid=212748661#Intelligente_Kategorienabfrage_gefragt
WITH RECURSIVE Cat AS (SELECT page_title, page_id FROM page WHERE page_title = 'Wikipedia:Bezahltes_Schreiben/Benutzer_angesprochen' AND page_namespace = 14 UNION SELECT SubCat.page_title, SubCat.page_id...
{"runningtime": "3.67", "resultsets": [{"headers": ["Count", "Size_TiB", "Size_GiB", "Size_MiB"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}]}
dewiki_p
Label/description/alias stats for Basque
Since the migration away from wb_terms, and since the Grafana dashboard which previously displayed these stats is broke, the only way to get semi-immediate statistics on these is for a single language at a time. (There are pages, such as https://wikidata-analytics.wmcloud.org/app/WD_LanguagesLandscape and https://www.w...
use wikidatawiki_p; SELECT wby_name as term_type, term_language, terms FROM ( SELECT wbtl_type_id as term_type_id, wbxl_language as term_language, count(*) as terms FROM wbt_item_terms INNER JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id INNER JOIN wbt_text_in_lang ON wbtl_text...
{"runningtime": "3.69", "resultsets": [{"headers": ["Count", "Size_TiB", "Size_GiB", "Size_MiB"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}]}
wikidatawiki_p
Users by number of created articles on euwiki
null
USE euwiki_p; SELECT a.actor_name, COUNT(*) as count FROM page p, revision rf, actor_user a WHERE rf.rev_page = p.page_id and rf.rev_parent_id = 0 and a.actor_id = rf.rev_actor and p.page_namespace = 0 and p.page_is_redirect = 0 GROUP BY a.actor_name ORDER BY count desc ;
{"runningtime": "0.13", "resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 1}]}
euwiki
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "194.65", "resultsets": [{"headers": ["page_title", "page_latest"], "rowcount": 433}]}
commonswiki_p
-idae suffix, not NS 0
null
SELECT pl_title FROM page AS p INNER JOIN pagelinks AS pl ON p.page_id = pl.pl_from WHERE p.page_namespace = 0 AND page_title NOT LIKE '%paleontology' AND page_title NOT LIKE '%paleomalacology' AND page_title NOT LIKE '%paleobotany' AND pl_title LIKE '%idae' AND pl_title NOT IN ( SELECT page_title FROM page WHERE page...
{"runningtime": "194.47", "resultsets": [{"headers": ["page_title", "page_latest"], "rowcount": 433}]}
enwiki_p
Most prolific template maintainers
null
-- Choose the wiki! -- English Wikipedia can take several minutes per day. -- Smaller wikis take a few seconds per day. select -- revision_actor_temp will some day be deprecated revision_actor_temp.revactor_actor, count(revision_actor_temp.revactor_actor) as edit_count, actor.actor_name from page, actor, ...
{"runningtime": "0.08", "resultsets": [{"headers": ["rev_comment_id", "comment_text"], "rowcount": 10}]}
trwiki_p
Зарегистрированные авторы статей про озёра
В данной таблице выбраны все зарегистрированные участники русской Википедии, когда либо создавшие статью об озере, которая содержит название-"прилагательное" и не содержит родового слова "озеро". При этом в запросе не рассматриваются страницы, которые в какой-то момент в прошлом были переименованы из названия, содержащ...
select actor_name as "автор", total as "число статей" from ( select actor_name, sum(1) as total from ( select page_title, min(rev_id), actor_name from page inner join categorylinks on cl_from = page_id and cl_to="Озёра_по_алфавиту" and (page_title like "%ое_%" or page_title like "%ое") and (pag...
{"runningtime": "0.12", "resultsets": [{"headers": ["rc_id", "comment_text", "rc_timestamp"], "rowcount": 10}]}
ruwiki_p
Запрос 55699, но по статьям, созданным после 2 июня 2016
null
select actor_name as "автор", total as "число статей" from ( select actor_name, sum(1) as total from ( select page_title, min(rev_id) as minrev, rev_timestamp, actor_name from page inner join categorylinks on cl_from = page_id and cl_to="Озёра_по_алфавиту" and (page_title like "%ое_%" or page_title l...
{"runningtime": "0.12", "resultsets": [{"headers": ["rc_id", "comment_text", "rc_timestamp"], "rowcount": 10}]}
ruwiki_p
top rollbacker
null
SELECT actor_name as user, COUNT(*) as cnt FROM revision JOIN change_tag ON rev_id = ct_rev_id JOIN actor ON actor_id = rev_actor WHERE ct_tag_id = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'mw-rollback') GROUP BY user ORDER BY cnt DESC LIMIT 100;
{"runningtime": "59.27", "resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc...
bnwiki
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
USE bnwiki_p; SELECT CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম, COUNT(rev_id) AS মোট_নিবন্ধ FROM actor INNER JOIN revision ON revision.rev_actor = actor.actor_id JOIN page ON page.page_id = revision.rev_page WHERE page_is_redirect = 0 AND rev_parent_id = 0 AND page_namespace = 0 AND rev...
{"runningtime": "0.08", "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...
bnwiki_p
Most used templates that are not protected
null
use bnwiki_p; select page_title from page where (select count(*) from templatelinks where tl_title = page_title and tl_namespace = 10) > 5000 and (select count(*) from page_restrictions where pr_page = page_id) = 0 and page_namespace = 10 and page_is_redirect = 0 ;
{"runningtime": "1253.79", "resultsets": [{"headers": ["actor_name"], "rowcount": 74}]}
bnwiki
Most used templates in bnwiki
null
USE bnwiki_p; SELECT concat('# [[টেমপ্লেট:',tl_title,']]'), COUNT(tl_title) AS counting FROM templatelinks where tl_namespace=10 and tl_from_namespace=0 group by tl_title order by COUNT(tl_title) desc limit 200
{"runningtime": "68.02", "resultsets": [{"headers": ["page_title", "page_latest"], "rowcount": 10}]}
bnwiki
bnwiki articles without category
null
USE bnwiki_p; SELECT CONCAT('# [[',page_title,']]') as page_title FROM page LEFT JOIN categorylinks ON cl_from = page_id WHERE cl_from IS NULL AND page_namespace = 0 AND page_is_redirect = 0
{"runningtime": "21.58", "resultsets": [{"headers": ["iwl_from", "COUNT(*)"], "rowcount": 2707}]}
bnwiki
disambiguator qualifier "(genus)", red links
null
SELECT pl_title FROM page AS p INNER JOIN pagelinks AS pl ON p.page_id = pl.pl_from WHERE p.page_namespace = 0 AND pl_title LIKE '%(clam)' AND pl_title NOT IN ( SELECT page_title FROM page WHERE page_namespace = 0) GROUP BY page_title LIMIT 1;
{"runningtime": "0.06", "resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]}
enwiki_p
عرض جميع الجداول
null
show tables;
{"connection_id": 7367602}
arwiki
Empty article talks on plwiki
null
USE plwiki_p; SELECT concat("# [[Dyskusja:",page_title,"]]") AS page_title FROM plwiki_p.page WHERE page_namespace = 1 AND page_len = 0 ORDER BY page_title;
{"runningtime": "18.82", "resultsets": [{"rowcount": 0, "headers": ["user_name", "rc_this_oldid", "comment_text"]}]}
plwiki_p
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"runningtime": "8.00", "resultsets": [{"rowcount": 5524, "headers": ["ar_title", "log_timestamp", "actor_name", "comment_text"]}]}
enwiki
BD's salt
null
select pt_namespace, pt_title from protected_titles, user where pt_user = user_id and user_name = 'BD2412'
{"runningtime": "31.10", "resultsets": [{"rowcount": 536, "headers": ["template", "counting", "pr_type", "pr_level"]}]}
enwiki_p
All .js pages in MW namespace (idwiki)
null
select concat('MediaWiki:', page_title) from page where page_title like '%.js' and page_namespace = 8;
{"runningtime": "25.05", "resultsets": [{"rowcount": 3158, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}]}
idwiki_p
Articles edited in specific date (idwiki)
null
USE idwiki_p; SELECT rc_namespace, rc_title, rc_cur_id, MAX(rc_timestamp), GROUP_CONCAT(rc_timestamp ORDER BY rc_timestamp) AS timestamps, GROUP_CONCAT(DISTINCT rc_user_text ORDER BY rc_timestamp) AS users, GROUP_CONCAT(rc_this_oldid), GROUP_CONCAT(rc_last_oldid) FROM recentchanges WHERE rc_bot = 0 A...
{"runningtime": "0.44", "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"], "rowcount": 10}]}
idwiki_p
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"runningtime": "0.08", "resultsets": [{"headers": ["Maddeler"], "rowcount": 1}]}
enwiki
заливки Neombot
заливки Neombot
SELECT CONCAT(page_title) AS page, CONCAT('[[Special:Diff/',rev_id,']]') AS diff, DATE_FORMAT(rev_timestamp, '%Y-%m-%d %H:%i:%s') AS timestamp, actor_name, comment_text FROM revision_userindex JOIN actor_revision ON rev_actor = actor_id JOIN page ON page_id = rev_page JOIN comment_revi...
{"runningtime": "1.54", "resultsets": [{"rowcount": 5, "headers": ["level", "COUNT(*)"]}, {"rowcount": 1018, "headers": ["Maddeler"]}]}
ruwiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "9.23", "resultsets": [{"headers": ["line"], "rowcount": 667}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "3.06", "resultsets": [{"rowcount": 1, "headers": ["Count", "Size_TiB", "Size_GiB", "Size_MiB"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "51.38", "resultsets": [{"rowcount": 92, "headers": ["cat_title", "cat_pages"]}]}
commonswiki_p
Pending changes-protected pages by last edit
null
SELECT page_namespace, page_title, rev_timestamp, page_is_redirect FROM flaggedpages JOIN page ON fp_page_id = page_id JOIN revision ON page_latest = rev_id ORDER BY rev_timestamp ASC
{"runningtime": "4.16", "resultsets": [{"rowcount": 1978, "headers": ["actor_name", "antalmall", "antalmodul"]}]}
enwiki_p
جلب جميع الروابط الموجودة في النسخة العربية الموجودة في قالب في النسخة الإنجليزية
null
#temp id = 13197502 #select * from pagelinks where pl_from = 13197502 select langlinks.ll_title,REPLACE(page.page_title,"_"," ") as page_title from langlinks inner join page on page.page_id = langlinks.ll_from where page.page_title in (select pagelinks.pl_title from pagelinks where pagelinks.pl_from = 13197502) and ...
{"runningtime": "0.37", "resultsets": [{"headers": ["date_", "c"], "rowcount": 227}]}
enwiki
Username and editcount of Female Users (jvwiki)
null
SELECT user_name, user_editcount FROM user RIGHT JOIN (SELECT up_user FROM user_properties WHERE up_property LIKE 'gender' AND up_value LIKE 'female') as female ON female.up_user=user_id ORDER BY user_editcount DESC limit 1000;
{"runningtime": "0.11", "resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 18}]}
jvwiki_p
Most edited pages (all ns) in the last month (idwiki)
From https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Shared_Resources/MySQL_queries#Most_edited_pages_in_last_month This query runs fairly fast.
SELECT rc_title, COUNT(*) AS num_edits FROM recentchanges GROUP BY 1 ORDER BY 2 DESC LIMIT 100;
{"runningtime": "0.06", "resultsets": [{"headers": ["page_title"], "rowcount": 0}]}
idwiki_p
List all table (enwiki_p)
null
SHOW TABLES; DESCRIBE ipblocks; DESCRIBE actor; DESCRIBE recentchanges; DESCRIBE site_stats; DESCRIBE content; DESCRIBE imagelinks; DESCRIBE image; DESCRIBE babel; DESCRIBE externallinks; DESCRIBE linter;
{"runningtime": "0.10", "resultsets": [{"rowcount": 31, "headers": ["date_", "c"]}]}
enwiki_p
#1lib1refID
null
select page_title, actor_name, rev_timestamp,comment_text from revision join comment on comment_id = rev_comment_id join actor on rev_actor = actor_id join page on rev_page = page_id where rev_timestamp > 20210000000000 and comment_text like '%#1Lib1RefID%' order by rev_timestamp
{"runningtime": "0.09", "resultsets": [{"rowcount": 30, "headers": ["date_", "count(rev_page)"]}]}
idwiki
Löschanträge - dewiki
null
use dewiki_p; SELECT count(*) AS Anzahl, actor_name FROM page, revision, actor_revision, comment_revision WHERE page_title LIKE "Löschkandidaten/%" AND page_namespace = 4 AND page_id = rev_page AND rev_actor = actor_id AND comment_id = rev_comment_id AND comment_text like "Neuer Abschnitt%" GROUP by ...
{"runningtime": "0.12", "resultsets": [{"rowcount": 30, "headers": ["date_", "rev_page", "rev_timestamp"]}]}
dewiki_p
bnwikisource list 1
null
USE bnwikisource_p; SELECT CONCAT("# {{target | user =",actor_name,"| site = bn.bnwikisource.org }}") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE actor_user IS NOT NULL AND page_namespace IN ('0','1') ...
{"runningtime": "0.11", "resultsets": [{"rowcount": 30, "headers": ["date_", "c"]}]}
bnwikisource_p
rowiki users by no. of articles created (min. 10)
null
SELECT COUNT(1) AS pages_with_disambig_but_not_redir FROM page WHERE (page_namespace = 0 AND page_is_redirect = 0); SELECT CASE WHEN user_id_ IS NULL THEN -1 WHEN user_articles >= 10 THEN user_id_ ELSE -2 END AS user_id, CASE WHEN user_articles >= 10 THEN user_name ELSE CONCAT("<", COUNT(1), " registered users under ...
{"runningtime": "18.82", "resultsets": [{"rowcount": 168, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
rowiki_p
tags
null
SET statement max_statement_time = 30 for -- select comment_text from revision, comment, change_tag, change_tag_def select rev_id, ct_rev_id, comment_text from revision, comment, change_tag, change_tag_def where rev_comment_id = comment_id and rev_id = ct_rev_id and ctd_id = ct_tag_id order by rev_id desc limit 10
{"runningtime": "0.22", "resultsets": [{"rowcount": 100, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]}
enwiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "9.00", "resultsets": [{"rowcount": 4548, "headers": ["page_title"]}]}
commonswiki_p
Editors still active after 10 years (jvwiki)
null
select distinct rc_actor, actor_name from actor join recentchanges on actor_id = rc_actor and rc_source = 'mw.edit' join user on actor_user = user_id where user_registration < '201020324000000' limit 500
{"runningtime": "7.01", "resultsets": [{"rowcount": 4548, "headers": ["concat(\"[[\", page_title, \"]]\")"]}]}
bnwiki_p
Translators at meta with language, number of translations
For a given prefix of translatable pages, take all translators for the latest versions of translation units (otherwise someone fixing their own typos would look a prolific translator) and order them by language and translation volume.
use ltwiki_p; SELECT actor_name as user, substring_index(page_title, '/', -1) AS language, count(*) AS no_translations, CONCAT('* {{target | page = User:', actor_name, ' | site = meta.wikimedia.org}}') AS url FROM page LEFT JOIN -- Take only the latest revision of each translation to simplify revision ON (p...
{"runningtime": "0.34", "resultsets": [{"rowcount": 20, "headers": ["page_title"]}]}
ltwiki
Translators at meta with language, number of translations
For a given prefix of translatable pages, take all translators for the latest versions of translation units (otherwise someone fixing their own typos would look a prolific translator) and order them by language and translation volume.
use ltwiki_p; SELECT actor_name as user, substring_index(page_title, '/', -1) AS language, count(*) AS no_edits, CONCAT('* {{target | page = User:', actor_name, ' | site = https://lt.wikipedia.org/wiki/Specialus:ContentTranslation') AS url FROM page LEFT JOIN -- Take only the latest revision of each translat...
{"runningtime": "1.35", "resultsets": [{"headers": ["page_title"], "rowcount": 706}]}
ltwiki
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "2.33", "resultsets": [{"rowcount": 34, "headers": ["template", "counting", "pr_type", "pr_level"]}]}
commonswiki_p
Usage of {{Sockpuppet}} on unblocked users
This includes editors who are globally locked but not locally blocked. It does not consider template parameters
SELECT page_namespace, page_title, user_registration FROM templatelinks JOIN page ON tl_from = page_id AND page_namespace IN (2, 3) JOIN `user` ON user_name = REPLACE(page_title, "_", " ") LEFT JOIN ipblocks ON ipb_user = user_id WHERE tl_title = "Sockpuppet" and tl_namespace = 10 AND ipb_id IS null ORDER BY user_re...
{"connection_id": 9360206}
enwiki_p
trwiki GFDL migration candidates by upload date
null
#USE ukwiki_p; SELECT CONCAT("# [[:File:", page_title, "]]") as File, img_timestamp, actor_name FROM templatelinks JOIN page ON tl_from = page_id JOIN image ON img_name = page_title AND page_namespace = 6 JOIN actor_image ON img_actor = actor_id JOIN categorylinks ON cl_from = page_id AND cl_type = "file" AND cl_to =...
{"connection_id": 9361059}
trwiki_p
aswiki list 1
null
USE aswiki_p; SELECT CONCAT("# {{target | user =",actor_name,"| site = as.wikipedia.org }}") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE actor_user IS NOT NULL AND page_namespace IN ('0','1') AND rev...
{"runningtime": "0.12", "resultsets": [{"rowcount": 1, "headers": ["page_title", "page_namespace"]}]}
aswiki_p
Editors still active in last 1 years (idwiki)
null
select distinct rc_actor, actor_name from actor join recentchanges on actor_id = rc_actor and rc_source = 'mw.edit' join user on actor_user = user_id where user_registration < '201920324000000' limit 500
{"runningtime": "5.96", "resultsets": [{"rowcount": 2423, "headers": ["page_title"]}]}
idwiki_p
Most pending changes accepted in last 30 days (idwiki)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"runningtime": "6.02", "resultsets": [{"rowcount": 2423, "headers": ["page_title", "comment_text"]}]}
idwiki_p
IP userpages
null
select page_title, page_len from page where page_namespace = 2 and page_title rlike "^\\d+\\.[\\d\\.]+$" limit 1000;
{"runningtime": "3.80", "resultsets": [{"rowcount": 4, "headers": ["rc_patrolled", "count"]}, {"rowcount": 10, "headers": ["user", "unpatrolled"]}, {"rowcount": 31, "headers": ["day", "unpatrolled", "manually patrolled", "autopatrolled", "total"]}, {"rowcount": 10, "headers": ["rc_namespace", "unpatrolled"]}, {"rowcoun...
wikidatawiki
really ugly and clever namespace hack
null
SET statement max_statement_time = 3 for select page_title from pagelinks, page where pl_namespace = 2 and pl_from_namespace = 2 and pl_title = 'RoySmith/ns' and pl_from = page_id ;
{"runningtime": "13.56", "resultsets": [{"rowcount": 95, "headers": ["CONCAT('# [[',page_title,']]')"]}]}
enwiki_p
Pages assessed as RDR
null
SELECT DISTINCT page_namespace, page_title FROM page JOIN page_assessments ON pa_page_id = page_id WHERE pa_class = 'RDR' LIMIT 50;
{"runningtime": "77.93", "resultsets": [{"rowcount": 276, "headers": ["cl_to", "count_cl_to"]}]}
enwiki
really ugly and clever namespace hack (v3)
null
SELECT mid(page_title, 13, 1) AS ns_number, mid(page_title, 15, 100) AS ns_name FROM page WHERE page_namespace = 2 AND page_title LIKE 'RoySmith/ns/%';
{"runningtime": "4.86", "resultsets": [{"rowcount": 51, "headers": ["concat('* [[:\u062a\u0635\u0646\u064a\u0641:',page_title,']]')"]}]}
enwiki_p
pagelinks namespace hack
null
SELECT pl_namespace, pl_title FROM pagelinks WHERE pl_from = 67931071; -- [[User:Cryptic/ns]]
{"runningtime": "2245.16", "resultsets": [{"headers": ["img_name", "img_sha1"], "rowcount": 231014}]}
enwiki
Get user with same group
null
SELECT potentially_matched.user_id, potentially_matched.user_registration, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where timestampdiff(MONTH, user.user_registration, '2011-02-11 00:...
{"runningtime": "0.05", "resultsets": [{"rowcount": 0, "headers": ["page_id"]}]}
enwiki_p
IP userpages at enwiki
null
select page_title, page_len from page where page_namespace = 2 and page_title rlike "^\\d+\\.[\\d\\.]+$" limit 1000;
{"runningtime": "0.10", "resultsets": [{"rowcount": 11, "headers": ["month", "page_namespace", "page_title", "edits"]}]}
bpywiki_p
Suspicious user talk page moves
null
select log_id,log_timestamp,(select actor_name from actor where log_actor=actor_id) as "user", log_title,log_params,(select comment_text from comment where comment_id=log_comment_id) as "summary" from logging where log_type="move" and log_namespace=3 and log_params not like "%User talk:%" and log_title not like "%/%" o...
{"runningtime": "3.27", "resultsets": [{"rowcount": 1, "headers": ["Count", "Size_TiB", "Size_GiB", "Size_MiB"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}]}
bnwiki
উপাত্ত বাংলা লেবেল
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Lbn", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='bnwiki' AND NOT EXISTS ( SELECT wbit_item_id FROM wbt_item_terms INNER JOIN wbt_term_in_lang ON wbtl_id = wbit_term_in_lang_id INNER JOIN wbt_text_in_lang ON wbxl_id = wbtl_...
{"runningtime": "0.05", "resultsets": [{"rowcount": 0, "headers": ["page_id"]}]}
wikidatawiki
Label/description/alias stats for [bpy]
Since the migration away from wb_terms, and since the Grafana dashboard which previously displayed these stats is broke, the only way to get semi-immediate statistics on these is for a single language at a time. (There are pages, such as https://wikidata-analytics.wmcloud.org/app/WD_LanguagesLandscape and https://www.w...
useuseuseuseuseuseuseuse wikidatawiki_p; SELECT wby_name as term_type, term_language, terms FROM ( SELECT wbtl_type_id as term_type_id, wbxl_language as term_language, count(*) as terms FROM wbt_item_terms INNER JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id INNER JOIN wbt_text...
{"runningtime": "0.07", "resultsets": [{"headers": ["page_id"], "rowcount": 1}]}
wikidatawiki_p
Files on bg.wiki NOT in spec categories (no license)
null
#USE viwiki_p; SELECT CONCAT("# [[:File:", img_name, "]]") AS file, actor_name #, GROUP_CONCAT(c.cl_from SEPARATOR ' ¤¤¤ ') FROM templatelinks JOIN page ON tl_from = page_id JOIN image ON img_name = page_title AND page_namespace = 6 JOIN actor_image ON img_actor = actor_id AND page_is_redirect=0 AND NOT EXISTS( SELE...
{"runningtime": "7.09", "resultsets": [{"headers": ["page_title"], "rowcount": 3397}]}
bgwiki_p
Categories
Page sizes
-- database layout: https://www.mediawiki.org/wiki/Manual:Page_table SELECT * FROM categorylinks AS c WHERE cl_to = "Audio_files_made_by_jeuwre" LIMIT 100
{"runningtime": "0.84", "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": 500}]}
commonswiki_p
[commonswiki] Categories starting with "Sculptures in" with their direct parent categories
null
SELECT page_title AS category, cl_to AS parent FROM page JOIN categorylinks ON page_id=cl_from WHERE page_namespace = 14 AND page_title LIKE "Sculptures_in%" ORDER BY page_title ASC
{"runningtime": "0.15", "resultsets": [{"rowcount": 53, "headers": ["CONCAT(CASE page_namespace\n WHEN 0 THEN ''\n WHEN 1 THEN 'Talk:'\n WHEN 2 THEN 'User:'\n WHEN 10 THEN 'Template:'\n WHEN 14 THEN 'Category:'\n ELSE CONCAT('{{ns...
commonswiki_p
Top Wikipedia User by Bytecounts (This day)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
select * /*sum(tdif)*/ from (select actor_name, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex left join actor on rc_actor = actor_id where rc_timestamp >= 20210514000000 and rc_timestamp <= 20210614000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') ...
{"runningtime": "429.17", "resultsets": [{"rowcount": 99, "headers": ["fns", "ft", "tns", "tt", "MIN(rev_timestamp)"]}]}
idwiki
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "38.72", "resultsets": [{"rowcount": 100, "headers": ["files"]}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "59.67", "resultsets": [{"rowcount": 0, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "p...
commonswiki_p
Min page_len for redirect with template
null
SELECT min(page_len) FROM page JOIN pagelinks ON pl_from = page_id JOIN templatelinks ON tl_from = pl_from WHERE pl_namespace = 0 AND page_is_redirect = 1 AND (NOT EXISTS( SELECT * FROM page WHERE page_title = pl_title AND page_namespace = 0)) AND page_namespace = 0;
{"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["pl_title"]}]}
svwiki
[commonswiki] Categories starting with "Sculptures in" with their direct parent categories
null
SELECT page_title AS category, cl_to AS parent FROM page JOIN categorylinks ON page_id=cl_from WHERE page_namespace = 14 AND page_title LIKE "Sculptures_in%" AND page_id IN ( SELECT cl_from FROM categorylinks WHERE cl_to="Sculptures_in_the_Czech_Republic_by_city" OR cl_to="...
{"runningtime": "1.38", "resultsets": [{"rowcount": 1019, "headers": ["page_len"]}]}
commonswiki_p
List_of_ambassadors_to%'
null
#NB! some redirects still here SELECT page_title FROM page WHERE page_is_redirect = 0 AND page_title LIKE 'List_of_ambassadors_to%' AND page_namespace = 0 GROUP BY page_title ORDER BY page_title ASC LIMIT 999;
{"runningtime": "0.64", "resultsets": [{"headers": ["CONCAT(actor_name)", "COUNT(*)"], "rowcount": 0}]}
enwiki_p
Pages in NS104 on bnwikisource less than 500 bytes
null
use bnwikisource_p; SELECT CURRENT_DATE; select concat("পাতা:", page_title), page_len from page #join categorylinks #on cl_from = page_id where # cl_to = replace("মুদ্রণ সংশোধন করা হয়েছে", ' ', '_') # and page_namespace = 104 and page_len < 500 group by page_title, page_len order by page_len;
{"connection_id": 9308764}
bnwikisource_p
Pages in NS0 on bnwikisource greater than 5000 bytes
null
use bnwikisource_p; SELECT CURRENT_DATE; select concat("[[", page_title,"]]"), page_len from page where page_namespace = 0 and page_len > 15000 group by page_title, page_len order by page_len;
{"runningtime": "7.40", "resultsets": [{"rowcount": 100, "headers": ["page_title", "cn"]}]}
bnwikisource_p
Globalimagelinks
Find files without globalimagelinks (unused files) on commons in a certain category
-- database layout: https://www.mediawiki.org/wiki/Manual:Page_table SELECT p.page_title FROM globalimagelinks AS g RIGHT JOIN page AS p ON p.page_title = g.gil_to INNER JOIN categorylinks as c ON c.cl_from = p.page_id WHERE cl_to = 'Audio_files_made_by_jeuwre' AND g.gil_to IS NULL AND p.page_is_redirect = 0 LIMIT 100
{"runningtime": "6.15", "resultsets": [{"rowcount": 1, "headers": ["ss_total_edits"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}, {"rowcount": 786, "headers": ["user_id", "user_name", "user_editcount", "user_admin", "user_bot"]}]}
commonswiki_p
Inactive Users
Manually Configure Date Range and IP Portion to search
#ویکی‌پدیا:گزارش دیتابیس/کاربران غیر فعال در گروه‌های کاربری #https://fa.wikipedia.org/wiki/%D9%88%DB%8C%DA%A9%DB%8C%E2%80%8C%D9%BE%D8%AF%DB%8C%D8%A7:%DA%AF%D8%B2%D8%A7%D8%B1%D8%B4_%D8%AF%DB%8C%D8%AA%D8%A7%D8%A8%DB%8C%D8%B3/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1%D8%A7%D9%86_%D8%BA%DB%8C%D8%B1_%D9%81%D8%B9%D8%A7%D9%84_%D8%AF%D8...
{"runningtime": "979.70", "resultsets": [{"rowcount": 75705, "headers": ["id", "type", "language", "text"]}]}
fawiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "116.57", "resultsets": [{"rowcount": 74, "headers": ["File name", "Date", "Size", "Uploader's name"]}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "94.29", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title", "rd_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["tl_title"]}, {"rowc...
commonswiki_p
Show Inactive Users Second Version
Manually Configure Date Range and IP Portion to search
#SecondVersion #ویکی‌پدیا:گزارش دیتابیس/کاربران غیر فعال در گروه‌های کاربری #https://fa.wikipedia.org/wiki/%D9%88%DB%8C%DA%A9%DB%8C%E2%80%8C%D9%BE%D8%AF%DB%8C%D8%A7:%DA%AF%D8%B2%D8%A7%D8%B1%D8%B4_%D8%AF%DB%8C%D8%AA%D8%A7%D8%A8%DB%8C%D8%B3/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1%D8%A7%D9%86_%D8%BA%DB%8C%D8%B1_%D9%81%D8%B9%D8%A7%...
{"runningtime": "72.39", "resultsets": [{"rowcount": 1, "headers": ["user_name"]}]}
fawiki_p
get matched users
null
SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user.user_editcount, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where ABS(use...
{"runningtime": "16.02", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_namespace", "page_title", "rd_title"]}]}
enwiki_p
get matched users _1
null
SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20070610035859) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_regist...
{"runningtime": "16.65", "resultsets": [{"rowcount": 2, "headers": ["page_id", "page_namespace", "page_title", "rd_title"]}]}
enwiki_p
get matched users 2
null
SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user.user_editcount, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where ABS(use...
{"runningtime": "15.82", "resultsets": [{"rowcount": 5, "headers": ["page_id", "page_title", "rd_from", "rd_namespace", "rd_title"]}]}
enwiki_p
Get matched users 3
null
SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user.user_editcount, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where ABS(use...
{"runningtime": "3.19", "resultsets": [{"rowcount": 159, "headers": ["page_id", "page_title", "rd_from", "rd_namespace", "rd_title"]}]}
enwiki_p
get matched users 4
null
SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user.user_editcount, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where ABS(use...
{"runningtime": "2.99", "resultsets": [{"rowcount": 36, "headers": ["page_id", "page_title", "rd_from", "rd_namespace", "rd_title"]}]}
enwiki_p
get_matched_users 5
null
SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20031024220656) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_regist...
{"runningtime": "236.57", "resultsets": [{"rowcount": 13, "headers": ["CONCAT('[[', page_title, ']]')"]}]}
enwiki_p
Files on si.wiki NOT in spec categories (no license)
null
#USE viwiki_p; SELECT CONCAT("# [[:File:", img_name, "]]") AS file, actor_name #, GROUP_CONCAT(c.cl_from SEPARATOR ' ¤¤¤ ') FROM templatelinks JOIN page ON tl_from = page_id JOIN image ON img_name = page_title AND page_namespace = 6 JOIN actor_image ON img_actor = actor_id AND page_is_redirect=0 AND NOT EXISTS( SELE...
{"runningtime": "45.83", "resultsets": [{"rowcount": 282, "headers": ["page_title"]}]}
siwiki_p
All files on bg.wiki with no license
null
#USE glwiki_p; SELECT CONCAT("* [[:File:", img_name, "]]") AS file #, # img_timestamp AS img_creation # ^^Timestamp of when upload took place. Not necessarily the same timestamp as logging.log_timestamp. FROM image JOIN page ON page_namespace = 6 AND page_title = img_name JOIN categorylinks ON cl_from = page_id A...
{"runningtime": "0.10", "resultsets": [{"headers": ["el_to", "counting"], "rowcount": 0}]}
bgwiki_p
Longest stubs
[[:en:Wikipedia:Database reports/Long stubs/Configuration]]
use idwiki_p; SELECT page_title, page_len FROM page JOIN categorylinks ON cl_from = page_id WHERE cl_to LIKE '%rintisan%' AND page_namespace = 0 AND page_len > 2000 GROUP BY page_title ORDER BY page_len DESC LIMIT 100;
{"runningtime": "5.80", "resultsets": [{"rowcount": 10, "headers": ["concat (\"\u0646\u0642\u0627\u0634:\",page_title)"]}]}
idwiki
Most pending changes accepts (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"runningtime": "2.57", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "headers": ["page_title"]}, {"rowcount": 0, "...
enwiki