title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Thanked people for 2021 frwiki
Most thanked people in 2021 Blame Mz7, SQL, and stwalkerster for this
USE frwiki_p; SELECT log_title, COUNT(log_id) FROM logging_logindex WHERE log_type = "thanks" AND log_timestamp >= "20210000000000" AND log_timestamp <= "20220000000000" GROUP BY log_title ORDER BY 2 DESC
{"resultsets": [{"headers": ["Count", "Size_TiB", "Size_GiB", "Size_MiB"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}], "runningtime": "5.89"}
frwiki
Acquisition comments
null
SET STATEMENT max_statement_time = 90 FOR WITH rev_counts AS ( SELECT rev_actor, COUNT(*) AS rev_count FROM revision_userindex AS revision WHERE TRUE AND rev_actor IS NOT NULL AND rev_actor != 0 GROUP BY rev_actor ), sus_actors AS ( SELECT DISTINCT actor_id, actor_name FROM ...
{"resultsets": [{"headers": ["\u0627\u0644\u0631\u0627\u0628\u0637 \u0645\u0648\u062c\u0648\u062f \u0641\u064a", "\u0627\u0644\u0635\u0641\u062d\u0647 \u0627\u0644\u0647\u062f\u0641", "\u0646\u0637\u0627\u0642 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u064a \u064a\u062a\u0648\u0627\u062c\u062f \u0628\u064...
enwiki
Autoren nach Land, Geschlecht und Geb.Jahrzehnt
Mal auf die Schnelle …
WITH RECURSIVE Cat AS (SELECT page_title, page_id FROM page WHERE page_title = 'Autor' AND page_namespace = 14 UNION SELECT SubCat.page_title, SubCat.page_id FROM page AS SubCat, ...
{"resultsets": [{"headers": ["Count", "Size_TiB", "Size_GiB", "Size_MiB"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}], "runningtime": "33.30"}
dewiki_p
Active Vilnius Wikipedians
null
SELECT a.actor_name, count(*) as number_of_recent_edits FROM categorylinks cl JOIN page p ON cl.cl_from = p.page_id JOIN actor a ON a.actor_name = p.page_title JOIN recentchanges_userindex rc ON rc.rc_actor = a.actor_id WHERE cl_to = 'Naudotojai_iš_Vilniaus' GROUP BY a.actor_id LIMIT 100
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 169}], "runningtime": "18.42"}
ltwiki_p
All dag main namespace articles with their Qid if they have one
ckbwiki main namespace articles with their Qid. If the query works fine.
#dag use dagwiki_p ; # select wd.ips_item_id,ckbp.page_title from page as ckbp, wikidatawiki_p.wb_items_per_site as wd where ckbp.page_namespace=0 and kkbp.page_is_redirect = 0 and wd.ips_site_id="ckbwiki" and wd.ips_site_page=ckbp.page_title select pp.pp_value as Qid, page_title as title from page left join p...
{"resultsets": [{"headers": ["CONCAT('{{Commons:', p.page_title, '}}')"], "rowcount": 98}], "runningtime": "10.72"}
dagwiki_p
উইকিভ্রমণ সম্পাদকদের সম্পাদনা সংখ্যা অনুযায়ী তালিকা
নিচের তালিকাটি উইকিভ্রমণের সম্পাদকদের সম্পাদনার ধারাবাহিকতা অনুযায়ী করা হয়েছে।
USE bnwikivoyage_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_editcoun...
{"resultsets": [{"headers": ["user_name", "creates"], "rowcount": 100}], "runningtime": "2.37"}
bnwikivoyage
最近30日有编辑的退休者
查询在用户页挂了{{Retired}}但最近30日有编辑的用户。由于技术限制,本查询结果也包含30日内挂了{{Retired}}就再也不回维基编辑的人。
SELECT a.user_name, STR_TO_DATE(MAX(rev_timestamp), '%Y%m%d%H%i%s') last_edit_time FROM revision_userindex r INNER JOIN ( SELECT actor_id, u.user_name FROM actor a INNER JOIN ( SELECT user_id, u.user_name FROM user u INNER JOIN (SELECT REPLACE(...
{"resultsets": [{"headers": ["page_title", "cmd"], "rowcount": 0}], "runningtime": "0.07"}
zhwiki_p
avg weekly byte contributions by edit bucket
null
SELECT edit_bucket, ROUND(AVG(group_edits_count)) FROM ( SELECT COUNT(DISTINCT rev_id) as group_edits_count, WEEKOFYEAR(rev_timestamp) as week_n, CASE WHEN user_editcount <= 4 THEN '1 to 4 edits' WHEN user_editcount >= 5 AND user_editcount <= 99 THEN '5 to 99 edits' WHEN...
{"resultsets": [{"headers": ["tl_title", "count(tl_title)"], "rowcount": 1479}], "runningtime": "2.61"}
cawiki_p
de.wiktionary: alle Links zu duden.de in Einträgen
Für das de.wiktionary in allen Einträgen (NS=0) alle Verlinkungen zu duden.de abfragen. Das Ergebnis als CSV herunterladen (entspricht dann txt) und die 1. Zeile löschen. Weiteres Vorgehen siehe https://de.wiktionary.org/wiki/Benutzer_Diskussion:UT-Bot/Duden-Link-Check#Dokumentation
select /* SLOW_OK */ concat("[[", convert(p.page_title, char(255)), "]] —> ", replace(el.el_index, '//de.duden.www./', '//www.duden.de/')) as '' from externallinks el, page p where el.el_from = p.page_id and el_index like 'https://de.duden.www./rechtschreibung/%' and p.page_namespace = 0 ...
{"resultsets": [{"headers": ["rc_title", "rc_source", "actor_name", "rc_patrolled", "rc_old_len", "rc_new_len", "comment_text"], "rowcount": 20}], "runningtime": "0.11"}
dewiktionary_p
edit bucket distributions (active editors)
null
SELECT COUNT(DISTINCT user_name), CASE WHEN user_editcount <= 4 THEN '1 to 4 edits' WHEN user_editcount >= 5 AND user_editcount <= 99 THEN '5 to 99 edits' WHEN user_editcount >= 100 AND user_editcount <= 999 THEN '100 to 999 edits' WHEN user_editcount >= 1000 THEN '1000+ edits' ...
{"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", "pr_page", "pr_type", "pr_level", "pr_cascade", "pr_user", "pr_expiry", "pr_i...
eswiki_p
edo - nlwiki_p Anonymous edits rc_patrolled summary
forked from Bdijkstra - show all unpatrolled edits for the last weeks by day/user/lemma feed the ip-adresses into RTRC to mark the not logged in repeated contributors
USE nlwiki_p; # anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION...
{"resultsets": [{"headers": ["dow", "hour", "edits"], "rowcount": 159}], "runningtime": "480.96"}
nlwiki
edit bucket distributions (all users)
null
SELECT DISTINCT user_name, ug_group FROM user LEFT JOIN user_groups ON ug_user = user_id WHERE user_editcount>0 AND ug_group <=> 'bot' LIMIT 100
{"resultsets": [{"headers": ["Artikel", "Link im Artikel", "Toter Link"], "rowcount": 2273}], "runningtime": "3.54"}
eswiki_p
Pagine di it.wiki (tutti gli NS) di dimensione superiore a 500KB
null
USE itwiki_p; SELECT CONCAT('# [[{{ns:', page_namespace, '}}:', page_title, "]] (", page_len, " byte)") FROM page WHERE page_is_redirect = 0 AND page_len > 500000 ORDER BY page_len DESC;
{"resultsets": [{"headers": ["actor_name", "no_files"], "rowcount": 48}], "runningtime": "0.23"}
itwiki_p
[2021] New drawings from Nationalmuseum
null
SELECT page_title FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page LEFT JOIN comment_revision ON comment_id = r1.rev_comment_id WHERE actor_name='AliciaFagervingWMSE-bot' AND r1.rev_timestamp > '20210929000000' AND r1.rev_timestamp < '...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 15}], "runningtime": "8.02"}
wikidatawiki_p
Recent contributors to Translate namespace at metawiki
Adapted from https://quarry.wmflabs.org/query/37059
SELECT actor_name as user, substring_index(page_title, '/', -1) AS language, count(*) AS no_translations, CONCAT("https://meta.wikimedia.org/wiki/Special:Contributions/",actor_name) AS Usercontribs FROM page LEFT JOIN -- Take only the latest revision of each translation to simplify revision ON (page_id = rev_...
{"resultsets": [{"headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"], "rowcount": 1}], "runningtime": "0.06"}
metawiki_p
AfC review counts, last 7 days
** NOT including deleted articles **
select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / c...
{"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 10}], "runningtime": "3.25"}
enwiki_p
صفحات فارغة في ويكيبيديا العربية - حجمها يساوي صفر
null
use arwiki_p; select page_title, page_namespace from page where page_len = 0 limit 500;
{"resultsets": [{"headers": ["page_title", "page_id"], "rowcount": 4}], "runningtime": "0.08"}
arwiki
UBX Userbox Lint
null
select page.page_title,linter.* from linter join page on page.page_id = linter.linter_page where page.page_namespace=2 and page.page_title like '%UBX%' and linter_cat=2 order by page.page_title, linter.linter_id
{"resultsets": [{"headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"], "rowcount": 138}], "runningtime": "28.84"}
enwiki
sandbox 3
null
WITH active_editors AS ( SELECT rev_actor, COUNT(rev_id) AS recent_edit_count FROM revision WHERE rev_timestamp > '20210101000000' AND rev_timestamp < '20210331235959' GROUP BY rev_actor HAVING COUNT(rev_id) >= 5), non_bot_editors AS ( SELECT actor_id, user_id, user_name, user_editcount FROM actor ...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "actor_id", "actor_user", "actor_name"], "rowcount": 0}, {"headers": ["ar_id", "ar_namespac...
eswiki_p
New edits marked as patrolled
null
SELECT ( SELECT COUNT(DISTINCT log_id) FROM logging WHERE log_type = "patrol" AND log_action = "patrol" AND log_timestamp BETWEEN 20201201000000 AND 20210101000000 #AND log_params NOT LIKE '%"5::previd";s:1%' # Ignore new page patrols #AND log_params LIKE '%"6::auto";i:0%' # Ignore autopatrols ) / ( ...
{"resultsets": [{"headers": ["log_namespace", "log_title", "comment_text", "log_timestamp", "log_actor"], "rowcount": 639}], "runningtime": "0.91"}
dawiki_p
Links to nli.org.il in hewiki
Links to nli.org.il in hewiki
use hewiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%jpress.org.il%' and el_from = page_id limit 500000;
{"resultsets": [{"headers": ["rev_timestamp", "page_id", "page_namespace", "page_title", "rev_parent_id"], "rowcount": 31}], "runningtime": "0.10"}
hewiki_p
nlwiki External links with Google referrer
null
SELECT page_namespace AS ns, page_title AS title, el_to AS url FROM externallinks, page WHERE el_to REGEXP '\\?referr?er=https?(://|%3A%2F%2F)www\\.google\\.' AND page_id=el_from AND page_namespace IN (0,4,6,8,10,14,100,828) LIMIT 50
{"resultsets": [{"headers": ["totale", "page_count_error", "weight"], "rowcount": 8}, {"headers": ["page_id", "page_title", "page_len", "totale", "linter_params", "ptotale"], "rowcount": 37}], "runningtime": "2.87"}
nlwiki
unreviewed articles by number of contributors
null
SELECT page_title, rev_page AS page_id, count(*) AS revisions, count(distinct rev_actor) AS editors, sum(rev_len) AS size, rev_timestamp AS created FROM revision INNER JOIN page ON page_id = rev_page INNER JOIN pagetriage_page ON rev_page = ptrp_pa...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_timestamp", "rev_actor", "ct_params"], "rowcount": 14}], "runningtime": "0.20"}
enwiki
WPWPHU naprakész dobogó
WPWPHU naprakész összesítése
USE huwiki_p; SELECT actor_name AS Szerkesztő, COUNT(rev_actor) AS WPWPHU FROM actor, comment_revision, page, revision WHERE comment_id=rev_comment_id -- JOIN-al kéne inkább, talán bár ezt elvileg könnyű „kitalálni” AND rev_actor=actor_id AND page_id=rev_page AND comment_text LIKE "%WPWPHU%" -- magya...
{"resultsets": [{"headers": ["concat('[[:en:',page_title,']]')"], "rowcount": 7}], "runningtime": "21.08"}
huwiki
CEE template draft
null
SELECT tl_from, page_title, rev_timestamp FROM templatelinks JOIN page ON tl_from=page_id JOIN revision ON page_id=rev_page JOIN actor ON rev_actor=actor_id WHERE tl_title = 'CEE_Tavasz_2022' AND page_namespace <> 10;
{"resultsets": [{"headers": ["CONCAT('# [[:File:', page_title, ']]')"], "rowcount": 0}], "runningtime": "0.69"}
huwiki_p
Miscellaneous hidden categories
null
select concat("Category:",page_title) from categorylinks a join page on page_id=a.cl_from where a.cl_to="Hidden_categories" and not exists (select 1 from categorylinks b where a.cl_from = b.cl_from and b.cl_to != "Hidden_categories" and b.cl_to not like "%CatAutoTOC%");
{"resultsets": [{"headers": ["page_title", "rev_timestamp"], "rowcount": 14}], "runningtime": "30.31"}
enwiki_p
unreviewed Visual arts articles
null
SELECT DISTINCT article.page_title #SELECT DISTINCT article.page_title AS PT, CONCAT("https://en.wikipedia.org/wiki/", article.page_title) AS link FROM page article JOIN page talkpage ON article.page_title = talkpage.page_title JOIN templatelinks ON talkpage.page_id=templatelinks.tl_from WHERE article.page_id IN ( S...
{"resultsets": [{"headers": ["page_title"], "rowcount": 8}], "runningtime": "0.11"}
enwiki
Unreviewed articles in artist categories
null
SELECT page.page_title, categorylinks.cl_to #SELECT DISTINCT page.page_title FROM page JOIN categorylinks ON page.page_id=categorylinks.cl_from WHERE page.page_id IN ( SELECT page.page_id FROM revision JOIN pagetriage_page ON rev_page = ptrp_page_id JOIN page ON page_id = rev_page WHERE rev_parent_id = 0 AND ptrp_r...
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "0.09"}
enwiki
Most pending changes for last 30 days
AFC reviews
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...
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 31}], "runningtime": "0.09"}
enwiki
zhwiki: users with voting right #2-1
null
SELECT user_name, user_editcount, user_registration, user_id, actor_id FROM user LEFT JOIN actor ON user_id = actor_user WHERE user_editcount >= 3000
{"resultsets": [{"headers": ["ll_lang", "COUNT( article.page_id ) OVER (PARTITION BY ll_lang)", "COUNT( DISTINCT article.page_id )"], "rowcount": 1}], "runningtime": "0.06"}
zhwiki_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 = 'Et' ORDER BY page_title LIMIT 9...
{"resultsets": [{"headers": ["year", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 10}], "runningtime": "1.90"}
commonswiki_p
AFC reviewed, accepted and declined over last 7 days
null
select count(rc_id) as reviews, Actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / c...
{"resultsets": [{"headers": ["ug_user", "actor_id", "user_name", "groups"], "rowcount": 2431}], "runningtime": "2.27"}
enwiki
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
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...
{"resultsets": [{"headers": ["user_name", "user_id"], "rowcount": 51530}], "runningtime": "47.39"}
bnwiki_p
অনুপস্থিত ও অন্তর্ভুক্ত
null
select concat("পাতা:", b.tl_title) from page a join templatelinks b on b.tl_from = a.page_id where a.page_namespace = 0 and b.tl_namespace=104 and b.tl_title not in ( select page_title from page where page_namespace = 104 );
{"resultsets": [{"headers": ["img_name", "img_minor_mime", "img_metadata"], "rowcount": 20}], "runningtime": "0.10"}
bnwikisource_p
Recent revdel from API-confirmed blocked proxies
null
SET STATEMENT max_statement_time = 60 FOR WITH blocked_ips AS ( SELECT DISTINCT log_title AS ip FROM logging_userindex AS logging INNER JOIN actor_logging AS actor ON logging.log_actor = actor.actor_id INNER JOIN comment_logging AS comment ON logging.log_comment_id = comment.comment_id...
{"resultsets": [{"headers": ["year", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 7}], "runningtime": "0.26"}
enwiki_p
Most protected pages
500 pages that had the most protections on vi.wikipedia.
SELECT log_namespace AS namespace, log_title AS protected_page, COUNT(log_title) AS occurrences, MAX(log_timestamp) AS latest_occurence WHERE page_name like "^Wikipedia:Biểu quyết xoá bài/" LIMIT 500
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 51}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 9}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 20}], "runningtime": "0.33"}
viwiki_p
Deleted contributions -- GhostInTheMachine
Deleted contributions to enwiki by [[User:GhostInTheMachine]]
SELECT archive_userindex.ar_timestamp, archive_userindex.ar_minor_edit, archive_userindex.ar_namespace, archive_userindex.ar_title FROM archive_userindex JOIN actor_archive ON actor_id = ar_actor WHERE actor_name = 'GhostInTheMachine' ORDER BY ar_timestamp DESC;
{"resultsets": [{"headers": ["page_title"], "rowcount": 62}], "runningtime": "87.23"}
enwiki
get all redirect
null
use hewikisource_p; select title as page_title, base_title from ( select 1 as type, p2.page_id as base_id, p.page_id as sub_id, p.page_id as id, p2.page_title as base_title, p.page_title as title from page p -- where p.page_title not like N'%־%' left join redirect rd on rd.rd_from = p.page_id and rd.rd_namespace = 0 ...
{"resultsets": [{"headers": ["ug_user", "ug_group", "ug_expiry"], "rowcount": 50}], "runningtime": "0.11"}
hewikisource_p
important articles data
null
use hewiki_p; select page_title as count_articles from page where page_namespace=0 and page_is_redirect=0 and page_title like 'אא%'
{"connection_id": 2227061}
hewiki
dewiki: articles with incorrect sortkey in their topic category
null
SELECT CONCAT('[[:Kategorie:', cl_to, ']]'), CONCAT('[[', page_title, ']]'), cl_sortkey_prefix FROM categorylinks INNER JOIN page ON cl_from = page_id WHERE page_namespace = 0 AND cl_sortkey_prefix != " " AND page_title = cl_to
{"resultsets": [{"headers": ["Dateiname"], "rowcount": 3}], "runningtime": "10.09"}
dewiki_p
sandbox 2
null
SELECT * FROM cx_translators
{"resultsets": [{"headers": ["el_from"], "rowcount": 24868}], "runningtime": "26.16"}
metawiki
important articles data - extended
null
use hewiki_p; select page_id as id, page_title as title, page_is_redirect as redirect, page_len as size, page_latest as last_rev_id, rev_timestamp as last_rev_time, C.created as created, B.last_names as last_names from page left join revision on page_latest = rev_id le...
{"resultsets": [{"headers": ["\u0627\u0644\u0642\u0627\u0644\u0628", "\u0639\u062f\u062f \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645", "\u0646\u0637\u0627\u0642 \u0627\u0644\u0645\u0642\u0627\u0644\u0627\u062a", "page_is_redirect"], "rowcount": 240}], "runningtime": "62.44"}
hewiki
Candidates for autoreview group
null
SELECT DISTINCT u.user_name, u.user_editcount FROM revision_userindex rev INNER JOIN actor a ON rev.rev_actor = a.actor_id INNER JOIN user u ON a.actor_user = u.user_id WHERE rev.rev_timestamp >= (DATE_FORMAT(DATE_ADD(SYSDATE(), INTERVAL -1 DAY), '%Y%m%d')) * 1000000 AND u.user_editcount >...
{"connection_id": 11453639}
trwiki_p
Top edits
null
SELECT page_namespace, page_title, page_is_redirect, COUNT(page_title) AS count, ( SELECT pa_class FROM page_assessments WHERE pa_page_id = page_id AND pa_class != 'Unknown' LIMIT 1 ) AS pa_class FROM page JOIN revision_userindex ON page_id = rev_page -- Set the username here WHERE rev_actor = (SE...
{"resultsets": [{"headers": ["concat(\"\u09aa\u09be\u09a4\u09be:\", page_title)", "page_len"], "rowcount": 9793}], "runningtime": "10.79"}
enwiki_p
Main query
null
#RESULTSET_1 SELECT CONCAT('# [[',page_title,']]') AS page_title, CONCAT('[[',rd_title,']]') AS rd_title FROM page JOIN redirect ON rd_FROM = page_id AND NOT EXISTS (SELECT * FROM page AS p1 WHERE p1.page_title = rd_title AND p1.page_namespace = rd_namespace) AND page_namespace = 0 AND rd_namespace = 0; #RESULTSET_2 SE...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 5}], "runningtime": "193.87"}
plwiki_p
Self-categorized categories (zhwiki_p)
null
SELECT page_title, cat_pages, cat_subcats FROM page JOIN categorylinks ON cl_to = page_title RIGHT JOIN category ON cat_title = page_title WHERE page_id = cl_from AND page_namespace = 14 ORDER BY cat_pages DESC, cat_subcats DESC
{"resultsets": [{"headers": ["concat(\"\ucd08\uc548:\",page.page_title)", "page_len", "rev_timestamp", "rev_actor"], "rowcount": 1928}], "runningtime": "2.34"}
zhwiki_p
Uncategorized categories (zhwiki_p)
null
SELECT page_title, page_len, cat_pages, rev_timestamp, actor_name FROM revision JOIN actor ON rev_actor = actor_id JOIN ( SELECT page_id, page_title, page_len, cat_pages FROM category RIGHT JOIN page ON cat_title = page_title LEFT JOIN categorylinks ON p...
{"resultsets": [{"headers": ["concat(\"\ucd08\uc548:\",page.page_title)", "page_len", "rev_timestamp", "actor_name"], "rowcount": 1928}], "runningtime": "2.19"}
zhwiki_p
Tewiki: user-wise WPWPTE to village pages
null
select actor_name,count(rev_actor) as countt from revision,comment,actor,page where comment_id=rev_comment_id and rev_actor=actor_id and page_id=rev_page and rev_timestamp>="2022070100000" and comment_text like "%WPWPTE%" and page_id in (select cl_from from catego...
{"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", "comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 100}], "runningtime": "1.13"}
tewiki
zhwiki: check-sign
null
SELECT actor_user, actor_name, up2.up_value AS `nickname` FROM recentchanges LEFT JOIN actor ON rc_actor = actor_id LEFT JOIN user_properties AS up1 ON actor_user = up1.up_user AND up1.up_property = 'fancysig' LEFT JOIN user_properties AS up2 ON actor_user = up2.up_user AND up2.up_property = 'nickname' WHERE (rc_namesp...
{"connection_id": 13685578}
zhwiki_p
Links from Olympic games to Disambiguation pages , en
null
SELECT distinct pl_from, pl_title FROM page , categorylinks as cl1, categorylinks as cl2, pagelinks Where cl2.cl_to like '%isambiguation%' AND cl2.cl_from= page_id AND pl_title=page_title AND pl_from_namespace = 0 AND pl_namespace = 0 AND cl1.cl_to like '%lympic%' AND cl1.cl_to not like '%at_the_2...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 2877}], "runningtime": "22.64"}
enwiki_p
Files with redlinked creator templates
null
SELECT CONCAT("File:", p0.page_title), CONCAT("Creator:", lt_title) FROM page p0 JOIN templatelinks ON tl_from = p0.page_id JOIN linktarget ON tl_target_id = lt_id LEFT JOIN page p1 ON lt_title = p1.page_title AND lt_namespace = p1.page_namespace WHERE lt_namespace = 100 AND p0.page_namespace = 6 AND p1.page_i...
{"resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["tl_title"], "rowcount": 0}, {"headers": ["page_title", "rev_timestamp"], "rowcount": 0}, {"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title", "pp_propname"], "r...
commonswiki_p
FA and GA articles not set for flaggedrevs (fawiki)
null
select CONCAT('[[:', replace(page_title, '_', ' '), ']]', ' <sup>[[Special:ProtectPage/', page_title, '|محافظت]]</sup>') as 'عنوان', /* title with protect link */ case cl_to when 'مقاله‌های_برگزیده' then 'برگزیده' /* featured */ when 'مقاله‌های_خوب'then 'خوب' /* good */ end as 'رده', CONCAT('{{subst:for...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 76}], "runningtime": "2.60"}
fawiki_p
fawiki: Disambig pages with red links
null
select concat("[[:", REPLACE(page_title,'_',' '), "]]") as 'عنوان', CONCAT('{{جا:آرایش‌عدد:', count(page_title), '}}') as 'تعداد' from pagelinks pl, page #join page on page_id=pl_from where page_id = pl_from and page_id in (select pp_page from page_props where pp_propname ="disambiguation") and pl_namespace ...
{"resultsets": [{"headers": ["c"], "rowcount": 2}], "runningtime": "0.87"}
fawiki_p
NPP reviews not accounting for moved pages
null
select log_id as logid, log_title as title, log_timestamp as timestamp, page_is_redirect as redirect, rev_timestamp as last_edited from logging_userindex, page, revision where log_namespace = 0 and page_namespace = 0 and log_title = page_title and log_actor = 6483 and log_type = 'pagetriage-curation' and log_action = '...
{"resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 1000}], "runningtime": "1.13"}
enwiki_p
Ranges /16 per number of open proxy blocks
null
SET STATEMENT max_statement_time = 60 FOR WITH proxy_blocks AS ( SELECT ip16, c FROM ( SELECT ip16, count(*) AS c FROM ( SELECT DISTINCT ipb_address, REGEXP_REPLACE(ipb_address, '\.[0-9]+\.[0-9]+(/[0-9]+)?$', '.0.0/16') AS ip16 FROM ipblocks ...
{"resultsets": [{"headers": ["@from", "@to"], "rowcount": 1}, {"headers": ["count(DISTINCT rev_id)"], "rowcount": 1}], "runningtime": "0.19"}
enwiki_p
Recent reverted /24 ranges per number days reverted
null
SET STATEMENT max_statement_time = 60 FOR SELECT ip24, c FROM ( SELECT CONCAT(ip24, '.0/24') AS ip24, COUNT(*) AS c FROM ( SELECT DISTINCT CAST(rc_timestamp AS DATE) AS day, REGEXP_REPLACE(actor_name, '\.[0-9]+$', '') AS ip24 FROM recentchanges...
{"resultsets": [{"headers": ["@from", "@to"], "rowcount": 1}, {"headers": ["count(rev_id)"], "rowcount": 1}], "runningtime": "0.25"}
enwiki_p
WPWPTE upto-the-minute stats
null
/* select count(rev_page) as total from revision,comment where comment_id=rev_comment_id and comment_text like "%WPWPTE%" and rev_timestamp>="2021070100000"; -- --- */select actor_name,count(rev_actor) as countt from revision,comment,actor,page where comment_id=rev_comment_id and rev_actor=actor_i...
{"resultsets": [{"headers": ["template", "count"], "rowcount": 1312}], "runningtime": "1.93"}
tewiki
Number of Bokmål lexemes created per day
null
SELECT DATE_FORMAT(revision.rev_timestamp, '%Y-%m-%d') AS date, count(page.page_title) as pages FROM page JOIN revision ON page.page_id=revision.rev_page JOIN pagelinks ON page.page_id=pagelinks.pl_from WHERE page.page_namespace=146 AND revision.rev_parent_id=0 # No parent rev = page creation AND pagelinks.pl_titl...
{"resultsets": [{"headers": ["page_title"], "rowcount": 341593}], "runningtime": "365.59"}
wikidatawiki_p
Week days (2)
null
SET STATEMENT max_statement_time = 900 FOR WITH rc_counts AS ( SELECT rc_actor, COUNT(*) AS total, SUM( CASE WHEN day = 1 THEN 0 WHEN day = 7 THEN 0 ELSE 1 END ) AS weekdays, COUNT(DISTINCT day) AS dist_days, COUNT(DISTINCT hour) AS dist_hours FROM (...
{"resultsets": [{"headers": ["actor_name", "countt"], "rowcount": 18}], "runningtime": "0.83"}
enwiki_p
zhwiki: broken redirect (CSD G15)
null
SELECT rd_from, page_namespace, page_title, rd_namespace, rd_title FROM ( SELECT rd_from, rd_namespace, rd_title FROM redirect LEFT JOIN page ON rd_namespace = page_namespace AND rd_title = page_title #WHERE page_namespace IS NULL ) AS r LEFT JOIN page ON rd_from = page_id WHERE page_namespace NOT IN (2, 3)
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 0}], "runningtime": "3.06"}
zhwiki_p
Query test 5
null
SELECT page_title FROM page WHERE page_id IN ( SELECT cl_from FROM categorylinks, pagelinks WHERE cl_to = pl_title AND pl_namespace = 14 AND pl_from = 4195411 );
{"resultsets": [{"headers": ["page_namespace", "\u6587\u7ae0"], "rowcount": 23}], "runningtime": "0.14"}
itwiki_p
Tewiki: All Telangana villages without Map in Infobox
null
set @dist := "తెలంగాణ"; select p1.page_title పేజీ,cl.cl_to వర్గం from page p1,categorylinks cl where -- p1.page_id not in (select il_from from imagelinks where il_to ="Telangana_locator_map.svg") p1.page_namespace=0 and cl.cl_from=p1.page_id and cl.cl_to like "%గ్రామాలు" and p1.page_id in (select cl_from from category...
{"resultsets": [{"headers": ["rev_timestamp", "page_name", "cmnt"], "rowcount": 830}], "runningtime": "4.62"}
tewiki
Singular-plural article pairs
Lists pairs of titles such as Peanut and Peanuts which have different targets. There will be many false positives where the singular has no plural because it is a proper noun, abstract noun, etc.
SELECT Ps.page_title AS singular, Pp.page_title AS plural, (SELECT COUNT(*) FROM pagelinks WHERE pl_namespace = 0 AND pl_title = Ps.page_title AND pl_from_namespace = 0) AS slinks, (SELECT COUNT(*) FROM pagelinks WHERE pl_namespace = 0 AND pl_title = Pp.page_title AND pl_from_namespace = 0) AS plinks FROM page Ps JOIN ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "30.62"}
enwiki_p
WPWPTE upto-the-minute stats
null
/* select count(rev_page) as total from revision,comment where comment_id=rev_comment_id and comment_text like "%WPWPTE%" and rev_timestamp>="2021070100000"; -- --- */select actor_name,count(rev_actor) as countt from revision,comment,actor,page where comment_id=rev_comment_id and rev_actor=actor_i...
{"resultsets": [{"headers": ["Size", "Title", "Rev"], "rowcount": 21}], "runningtime": "1.91"}
tewiki
Size of uploads by Fæ
This count based purely on filename and uploader, a handy guide to size of the total size uploads presuming bot accounts are not the actual uploaders for some projects.
USE commonswiki_p; SELECT COUNT(img_name) AS Count, ROUND(SUM(img_size/(1<<30))) AS Size_GB FROM image JOIN actor_image ON actor_id = img_actor WHERE actor_name = "Aavindraa";
{"resultsets": [{"headers": ["user_name", "last_curation"], "rowcount": 7}], "runningtime": "0.09"}
commonswiki_p
Linked misspellings
null
SELECT CONVERT(p1.page_title USING utf8), COUNT(*) FROM page AS p1 JOIN categorylinks ON p1.page_id = cl_from JOIN pagelinks ON p1.page_title = pl_title AND pl_namespace = 0 JOIN page AS p2 ON pl_from = p2.page_id AND p2.page_namespace = 0 ...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 16}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 7}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 6}], "runningtime": "0.15"}
enwiki
Deletions in impossible namespaces
null
select replace(concat("[[:{{subst:ns:",log_namespace,"}}:",replace(log_title,"_"," "),"]]"),":{{subst:ns:0}}:",":") as 'Page', (select actor_name from actor_logging where actor_id=log_actor) as "Deleting admin", comment_text as "Edit summary", log_timestamp as "Timestamp" from logging_logindex join comment_logging on c...
{"resultsets": [{"headers": ["img_name", "actor_name"], "rowcount": 36}], "runningtime": "1.72"}
enwiki_p
Category by time
null
select page_namespace,page_title,cl_timestamp from categorylinks join page on page_id=cl_from where cl_to like "AfD_debates_%" order by cl_timestamp asc;
{"resultsets": [{"headers": ["CONCAT('[[Template:', lt_title, ']]')"], "rowcount": 10000}], "runningtime": "26.45"}
enwiki_p
blocks
null
SELECT COUNT(ipb_id) as "blocks", actor.actor_name FROM ipblocks JOIN comment ON (ipblocks.ipb_reason_id = comment.comment_id) JOIN actor ON (ipblocks.ipb_by_actor = actor.actor_id) GROUP BY actor.actor_id ORDER BY blocks DESC
{"resultsets": [{"headers": ["Page", "Deleting admin", "Edit summary", "Timestamp"], "rowcount": 5938}], "runningtime": "5.20"}
enwiki_p
AC Gaming Weekdays
null
SET STATEMENT max_statement_time = 120 FOR WITH first_creations AS ( SELECT actor_id AS first_creation_actor, MIN(rc_timestamp) AS first_creation_timestamp FROM actor_recentchanges AS actor INNER JOIN user ON actor.actor_user = user.user_id INNER JOIN recentchanges_userindex AS recentchanges O...
{"resultsets": [{"headers": ["logid", "title", "timestamp", "redirect", "last_edited"], "rowcount": 516}], "runningtime": "0.68"}
enwiki_p
Comment search
null
-- SET STATEMENT max_statement_time = 1200 FOR SELECT rev_timestamp, actor_name, rev_id, comment_text FROM revision_userindex AS revision INNER JOIN page ON revision.rev_page = page.page_id INNER JOIN comment_revision AS comment ON revision.rev_comment_id = comment.comment_id INNER JOIN actor_revision A...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 300}], "runningtime": "54.09"}
enwiki
Wikidata Latam Contest Results
null
use wikidatawiki_p; select count(rc_id) as edits, actor_name as user from recentchanges_userindex left join actor on rc_actor = actor_id left join comment on rc_comment_id = comment_id where comment_text like '%The Distributed Game (83)%' and rc_timestamp > '20221214' and rc_timestamp < '20230108' group by rc_actor or...
{"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name", "page_title", "page_id", "count(*)"], "rowcount": 40}], "runningtime": "1.03"}
wikidatawiki_p
Beauty accounts
Find thanks
select user_name, user_registration, TIME_FORMAT(user_registration, "%H%i") as time, user_editcount from user where user_registration > "20210901" and user_name like "%Beauty" and user_name not like "% Beauty" group by user_registration desc limit 500
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 114}], "runningtime": "15.11"}
enwiki
Get all database names
null
#SHOW tables; DESCRIBE comment; DESCRIBE page; DESCRIBE image; DESCRIBE categorylinks;
{"resultsets": [{"headers": ["page_title"], "rowcount": 7}], "runningtime": "0.07"}
commonswiki_p
AfC accepts/declines per submitter (1 month)
null
select count(rc_id) as reviews, rc_title, count(rc_id) - SUM(comment_text like "%declined ([[WP:AFCH|AFCH]] 0.9.1)") as "accepted", concat(round(SUM(comment_text not like "%declined ([[WP:AFCH|AFCH]] 0.9.1)") * 100 / count(rc_id), 1), "%") as "accept %", SUM(comment_text like "%declined ([[WP:AFCH|AF...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 1678}], "runningtime": "864.42"}
enwiki
আলাপ পাতাবিহীন নিবন্ধ
ডেটাবেসে নামস্থান উপসর্গ ছাড়াই page_title কলাম রয়েছে। তাহলে নিবন্ধ নামস্থানের পাতাগুলোর তালিকা থেকে আলাপ নামস্থানের পাতাগুলো "page_title NOT IN (আলাপ পাতার page_title)" ব্যবহার করে বাদ দেয়া যাবে।
SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_title NOT IN (SELECT page_title FROM page WHERE page_namespace = 1);
{"connection_id": 102609938}
bnwiki
fix categories 2021
null
select CONCAT('* [[:تصنيف:',p1.page_title, ']]>') AS cat1 , REPLACE(CONCAT( '[[:تصنيف:' , p1.page_title , ']]' ) , 'شغب' ,'شغب في' ) AS cat2 , CONCAT("#Category:", p1.page_title) AS title from page AS p1#, langlinks where p1.page_namespace = 14 #and p1.page_id = ll_from and (p1.page_title like "شغب_1%...
{"resultsets": [{"headers": ["New WikiQuote #SheSaid Article", "Creator", "Date created"], "rowcount": 18}], "runningtime": "0.67"}
arwiki_p
fix categories 2021
null
select CONCAT('* [[:تصنيف:',p1.page_title, ']]>') AS cat1 , REPLACE(CONCAT( '[[:تصنيف:' , p1.page_title , ']]' ) , 'شغب' ,'شغب في' ) AS cat2 , CONCAT("#Category:", p1.page_title) AS title from page AS p1#, langlinks where p1.page_namespace = 14 #and p1.page_id = ll_from and (p1.page_title like "شغب_1%...
{"resultsets": [{"headers": ["New WikiQuote #SheSaid article", "Creator", "Date created"], "rowcount": 18}], "runningtime": "0.66"}
arwiki_p
nds_nlwiki Apparent main article without category sort key
null
SELECT page_title, cl_sortkey, (cat_pages-cat_subcats) AS '#p' FROM categorylinks, page, category WHERE cl_from=page_id AND page_title=cl_to AND cl_sortkey_prefix='' AND page_namespace=0 AND cl_to=cat_title #HAVING `#p`>1 ORDER BY page_title
{"resultsets": [{"headers": ["Username", "cnt"], "rowcount": 80}], "runningtime": "15.20"}
nds_nlwiki
مستخدمون لديهم صلاحيتي مراجع تلقائي ومحرر في نفس الوقت
null
use arwiki_p; SELECT user_name FROM user where user_id in (select ug_user from user_groups where ug_group = "editor" and ug_user = user_id) and user_id in (select ug_user from user_groups where ug_group = "autoreview" and ug_user = user_id) limit 50;
{"resultsets": [{"headers": ["page_title"], "rowcount": 188}], "runningtime": "8.80"}
arwiki_p
articles created in the last 3 months without references
null
use hewiki_p; select page_title from page where page_namespace=0 and page_id > 2169000 and page_id < 2189000 and page_is_redirect = 0
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "4.54"}
hewiki
yuewiki tables
null
SHOW TABLES FROM zh_yuewiki_p;
{"resultsets": [{"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_reviewed_by", "page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len...
zh_yuewiki_p
webhost blocks by others
null
SELECT ipb_address, actor_name, ipb_timestamp, comment_text FROM ipblocks INNER JOIN actor ON ipblocks.ipb_by_actor = actor.actor_id INNER JOIN comment ON ipblocks.ipb_reason_id = comment.comment_id WHERE TRUE AND actor_name NOT IN ('Blablubbs') AND ip...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 622}], "runningtime": "470.50"}
enwiki_p
Meest gecontroleerd
null
SELECT ROW_NUMBER() OVER (ORDER BY `count` DESC) AS '#', actor_user AS `user ID`, actor_name AS `user name`, COUNT(actor_id) AS `count` FROM logging, actor WHERE log_timestamp REGEXP '^2022' AND log_type='patrol' AND log_action='patrol' AND log_actor=actor_id GROUP BY actor_id ORDER BY `count` DESC
{"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_log_type", "rc_log_acti...
nlwiki
Unique QIDs modified by the Commons Android app
null
USE wikidatawiki_p; SELECT page_title FROM change_tag JOIN revision ON rev_id=ct_rev_id JOIN actor ON actor_id=rev_actor JOIN page ON page_id=rev_page WHERE ct_tag_id=( SELECT ctd_id FROM change_tag_def WHERE ctd_name='wikimedia-commons-app' ) AND NOT actor_name IN ('Github-wiki-bot') # This bot was using our t...
{"resultsets": [{"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_type", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 1043}], "runningtime": "2.29"}
wikidatawiki
Two-page transclusion loops in English Wiktionary
null
select p1.page_namespace, p1.page_title, p2.page_namespace, p2.page_title, linktarget2.lt_namespace, linktarget2.lt_title from templatelinks as tl1 join page as p1 on p1.page_id = tl1.tl_from join linktarget as linktarget1 on linktarget1.lt_id = tl1.tl_target_id join page as p2 on p2.page_namespace = linktarget1.lt_na...
{"resultsets": [{"headers": ["URL"], "rowcount": 0}], "runningtime": "58.53"}
enwiktionary_p
Bdi tags in edit summaries
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, 'Fi...
{"resultsets": [{"headers": ["distanz_ungefaehr", "gt_lat", "gt_lon", "gt_type", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 523}], "runningtime": "1.86"}
enwiktionary
Top editors in the Proto-Indo-European lemmas category
null
set @category_name := 'Proto-Indo-European_lemmas'; select actor_name as user, count(*) as edit_count from categorylinks left join revision on rev_page = cl_from left join actor on actor_id = rev_actor where cl_to = @category_name group by rev_actor having edit_count > 20 order by edit_count desc;
{"resultsets": [{"headers": ["#", "Usuario/a", "Total"], "rowcount": 100}], "runningtime": "0.77"}
enwiktionary_p
nlwiki MovieMeter ID for export to Wikidata
https://nl.wikipedia.org/wiki/Categorie:Wikipedia:Moviemeter_zonder_ID_op_Wikidata `cmd` is bash-command line for wikibase-cli
SELECT page_title, CONCAT('claim_guid=$(wd add-claim ', pp_value, ' P', CASE LEFT(cl_sortkey_prefix, 1) WHEN 'F' THEN '1970' WHEN 'P' THEN '9463' WHEN 'S' THEN '10432' ELSE '?' END, " '", RIGHT(cl_sortkey_prefix, LENGTH(cl_sortkey_prefix) - 1), "' | jq -r .claim.id); wd add-refere...
{"resultsets": [{"headers": ["month_year", "user", "No_of_articles", "Bytes"], "rowcount": 2}], "runningtime": "0.06"}
nlwiki
nlwiki Flag templates without a flag image
null
SELECT cl_to, page_title, il_to FROM categorylinks, page LEFT JOIN imagelinks ON il_from=page_id AND il_to!='Test_Template_Info-Icon_-_Version_(2).svg' WHERE cl_to REGEXP '^Wikipedia:Sjablonen_vlag' AND cl_from=page_id AND page_is_redirect=0 AND page_namespace=10 AND page_title NOT REGEXP '^Toelichting...
{"resultsets": [{"headers": ["month_year", "user", "No_of_articles", "Bytes"], "rowcount": 0}], "runningtime": "0.05"}
nlwiki
Mujeres y hombres creados hasta mar 2023
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 '20010901000000' AND '20230301000000' AND rev_parent_id = 0 ...
{"resultsets": [{"headers": ["concat(\"[[\",page_title,\"]]\")", "concat(\"[[:en:\",(select ll_title from langlinks\n where ll_from = rev_page\n and ll_lang =...
eswiki_p
Blocks of UBPV
null
SELECT log_timestamp, REPLACE(log_title, '_', ' '), (SELECT user_editcount FROM user AS user2 WHERE user_name = REPLACE(log_title, '_', ' ') ) AS editcount, log_params FROM logging WHERE log_type = 'block' AND log_actor != 1 AND log_params NOT LIKE '%anononly%' AND (SEL...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.04"}
ruwiki_p
HRWIKI: All IP users with long blocks DRG
null
SELECT * #ipb_user, user_name, user_editcount, ipb_expiry, comment_text FROM user JOIN ipblocks ON ipb_user = user_id JOIN actor ON ipb_user = actor_id JOIN comment ON ipb_reason_id = comment_id #where ipb_expiry = 'infinity' # 20150101000000 #2015 01 01 00:00:00 #where actor_user = 0 order by ipb_address limit 100
{"resultsets": [{"headers": ["URL"], "rowcount": 0}], "runningtime": "27.08"}
hrwiki_p
shWiki: All IP talk pages older than 8 years
null
SELECT CONCAT('Razgovor sa suradnikom:', page_title) from page inner join revision on page.page_latest = revision.rev_id where page.page_namespace = 3 and revision.rev_timestamp < (DATE_FORMAT((NOW() - INTERVAL 8 YEAR),'%Y%m%d%H%i%S')) and page_title regexp '^([0-1]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\\.([0-1]?[0-9]{1,2}|...
{"resultsets": [{"headers": ["CONCAT(\"# [[\",p.page_title,\"]]\")", "log_action"], "rowcount": 10}], "runningtime": "0.17"}
shwiki_p
Reviews for a named editor
null
select CONCAT('[[Draft:',page_title,']]') as title from revision_userindex left join actor on rev_actor = actor_id left join comment_revision on rev_comment_id = comment_id left join page on rev_page = page_id where (page_namespace = 118 or page_namespace = 2) /* and (rev_type < 5) */ and (comment_text like "Declin...
{"resultsets": [{"headers": ["page_title"], "rowcount": 119447}], "runningtime": "118.85"}
enwiki
Most used templates that are not protected
null
use fawiki_p; select CONCAT('[[الگو:',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 ;
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 18}, {"headers": ["actor_name", "num_blocks"], "rowcount": 100}], "runningtime": "0.42"}
fawiki
Redirects with content (fawiki)
null
USE fawiki_p; SELECT CONCAT('[[{{جا:فن:', page_namespace, '}}:', page_title, ']]') AS title, page_len FROM page WHERE page_is_redirect = 1 AND page_namespace NOT IN (2, 3) -- User:, User talk: HAVING page_len > 500 ORDER BY page_namespace, page_len;
{"resultsets": [{"headers": ["rev_page", "rev_timestamp", "rev_id", "rev_minor_edit", "rev_actor"], "rowcount": 2537}], "runningtime": "2.42"}
fawiki
أكثر المستخدمين امتلاكًا للصلاحيات في ويكيبيديا العربية
null
use arwiki_p; select user_name, count(ug_group), group_concat(ug_group) from user inner join user_groups on ug_user = user_id group by user_id order by count(ug_group) desc limit 100;
{"resultsets": [{"headers": ["cat"], "rowcount": 1}], "runningtime": "0.04"}
arwiki
Deletion rates of CX and non-CX articles for a wiki
For one wiki, shows how many articles were created using Content Translation (CX articles) and how frequently they were deleted, compared to articles created using other methods (non-CX articles).
SET @start_time = '20221001'; -- 1 Jan 2020 SET @end_time = '20221231'; -- 1 Jan 2021 SET @cx_tag_id = ( SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'contenttranslation' ); WITH nondeleted_new_articles AS ( SELECT SUM(IF(ct_tag_id = @cx_tag_id, 1, 0)) AS cx, SUM(IF(ct_tag_id IS N...
{"resultsets": [{"headers": ["lt_namespace", "lt_title", "page_namespace", "page_title"], "rowcount": 2385}], "runningtime": "2.32"}
trwiki_p
সংশোধিত ও অন্তর্ভুক্ত হয়নি
null
select concat("পাতা:", page_title), page_len from page join page_props on pp_page = page_id where pp_propname = 'proofread_page_quality_level' and pp_value in (3, 4) and page_namespace = 104 and page_title not in ( select lt_title from templatelinks join page on tl_from = page_id join linktarget on tl_target_id...
{"resultsets": [{"headers": ["CX new articles", "CX deletion rate", "non-CX new articles", "non-CX deletion rate", "CX deletion rate, vs. non-CX"], "rowcount": 1}], "runningtime": "4.69"}
bnwikisource_p