title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
নিবন্ধ তালিকা
null
SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_title LIKE '%শেখ%' ORDER BY page_title DESC; SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_title LIKE '%ভাল%' ORDER BY page_title DESC;
{"runningtime": "45.88", "resultsets": [{"rowcount": 100, "headers": ["page_title", "page_count", "tag_center", "tag_small", "tag_span", "tag_div", "tag_b", "tag_i"]}]}
bnwiki_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...
{"resultsets": [{"rowcount": 5, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}], "runningtime": "0.09"}
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...
{"resultsets": [{"rowcount": 100, "headers": ["page_title", "page_count", "tag_center", "tag_small", "tag_span", "tag_div", "tag_b", "tag_i"]}], "runningtime": "154.67"}
commonswiki_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;
{"resultsets": [{"rowcount": 59, "headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"]}], "runningtime": "163.88"}
bnwiki
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": "6.59", "resultsets": [{"rowcount": 41, "headers": ["file", "uploader"]}]}
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": "7.48", "resultsets": [{"rowcount": 10, "headers": ["file", "uploader"]}]}
commonswiki_p
Good article review pages - users and article titles (last 30 days)
Useful to see who has been doing a lot of good article reviews in the last month. Includes the reviewees (which is not ideal). Only checks last 30 days (not ideal) because queries on the recentchanges table are a lot quicker than queries on the billion row revision table.
SELECT actor_name, page_title FROM page JOIN recentchanges_userindex ON page_id = rc_cur_id JOIN actor_recentchanges ON actor_id = rc_actor WHERE page_namespace = 1 AND page_title LIKE '%/GA%' GROUP BY page_title ORDER BY actor_name ASC
{"resultsets": [{"rowcount": 3, "headers": ["actor_id", "actor_user", "actor_name"]}], "runningtime": "0.07"}
enwiki
বাংলা উইকিতে সবচেয়ে ব্যবহৃত টেমপ্লেট
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
{"resultsets": [{"rowcount": 120, "headers": ["page_title"]}], "runningtime": "203.21"}
bnwiki_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": "102.84", "resultsets": [{"rowcount": 119, "headers": ["page_title"]}]}
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": "0.32", "resultsets": [{"rowcount": 100, "headers": ["rev_timestamp", "rev_page", "comment_id"]}]}
commonswiki_p
Good article review pages - users and counts (last 30 days)
Useful to see who has been doing a lot of good article reviews in the last month. Includes the reviewees (which is not ideal). Only checks last 30 days (not ideal) because queries on the recentchanges table are a lot quicker than queries on the billion row revision table.
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, ( SELECT COUNT(*) FROM page JOIN recentchanges_userindex ON page_id = rc_cur_id JOIN actor_recentchanges ON actor_id = rc_actor WHERE page_namespace = 1 AND page_title LIKE '%/GA%' AND acto...
{"runningtime": "0.89", "resultsets": [{"rowcount": 47, "headers": ["page_title", "page_len"]}]}
enwiki
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"rowcount": 25, "headers": ["File name", "Date", "Size", "Uploader's name"]}], "runningtime": "1168.83"}
eswiki
PLN2021 ilman wikidata-kohdetta olevat sivut
null
SELECT page_title, page_is_redirect, page_len, pp_value, pl_title FROM pagelinks, revision_compat, page LEFT JOIN page_props ON pp_page=page_id AND pp_propname="wikibase_item" WHERE pl_from=1629817 AND pl_namespace=2 AND rev_user_text=REPLACE(pl_title, "_", " ") AND pl_title REGEXP "[_]" AND rev_id>19671091 AND rev_pa...
{"resultsets": [{"rowcount": 20, "headers": ["page_title", "cl_to"]}], "runningtime": "352.67"}
fiwiki
PLN2021 ilman wikidata-kohdetta olevat sivut
null
SELECT CONCAT("* [[", page_title, "]]") as p FROM pagelinks as pl1, revision_compat, page LEFT JOIN page_props ON pp_page=page_id AND pp_propname="wikibase_item" LEFT JOIN pagelinks as pl2 ON pl2.pl_title=page_title AND pl2.pl_namespace=0 AND pl2.pl_from=1629817 WHERE pl1.pl_from=1629817 AND pl1.pl_namespace=2 AND rev...
{"runningtime": "17.66", "resultsets": [{"rowcount": 38, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
fiwiki
2
null
SELECT comment_text FROM comment WHERE comment_text REGEXP "([ভবিষ্যৎ])" ORDER BY comment_id DESC
{"resultsets": [{"rowcount": 1, "headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "...
bnwiki_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...
{"connection_id": 510518440}
commonswiki_p
All orphan non-free files on uk.wiki
null
#USE ukwiki_p; #SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p SELECT CONCAT('[[User:', actor_name, ']]') as Uploader, CONCAT('[[:File:', p.page_title, ']]') as file FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ...
{"resultsets": [{"rowcount": 264, "headers": ["Title", "Page_len"]}], "runningtime": "0.50"}
ukwiki_p
Test query
null
select * from page where page_id < 10
{"runningtime": "5.73", "resultsets": [{"rowcount": 181, "headers": ["actor_id", "actor_name"]}]}
cswiki_p
~
null
null
{"runningtime": "2.18", "resultsets": [{"rowcount": 13, "headers": ["actor_id", "actor_name"]}, {"rowcount": 1, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]}
cswiki_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...
{"resultsets": [{"rowcount": 13, "headers": ["month_year", "user", "No_of_articles", "Bytes"]}], "runningtime": "0.42"}
commonswiki_p
WLE UK previous years' participants (incl. 2020)
WSC-UK previous years' participants not active this year
use commonswiki_p; SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line FROM revision r_prev join categorylinks on rev_page = cl_from join actor on rev_actor = actor_id and actor_user is not null WHERE rev_parent_id = 0 and cl_to IN ( "Images_from_Wiki_Loves_Earth_2013_in_Ukraine"...
{"runningtime": "0.05", "resultsets": [{"rowcount": 0, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]}
commonswiki_p
books...
null
use enwiki_p; Select page_title, rd_title, page_len, actor_name, user_editcount from page left join redirect on page_id = rd_from join revision on page_latest = rev_id inner join actor on rev_actor = actor_id left join user on actor_user = user_id where page_namespace = 108 order by page_len asc
{"runningtime": "5.43", "resultsets": [{"rowcount": 55, "headers": ["d", "c", "age", "log_user_text", "user_name", "log_comment"]}]}
enwiki
books...
null
use enwiki_p; Select page_title, rd_title, page_len, actor_name, user_editcount from page left join redirect on page_id = rd_from join revision on page_latest = rev_id inner join actor on rev_actor = actor_id left join user on actor_user = user_id where page_namespace = 108 order by page_len asc
{"resultsets": [{"rowcount": 55, "headers": ["d", "c", "age", "log_user_text", "user_name", "log_comment"]}], "runningtime": "2.24"}
enwiki
handle missing lv labels in wikidata
SELECT wbit_item_id as id, wby_name as type, wbxl_language as language, wbx_text as text FROM wbt_item_terms LEFT JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id LEFT JOIN wbt_type ON wbtl_type_id = wby_id LEFT JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id LEFT JOIN wbt_text ON wbxl_text_id = ...
SELECT ips_item_id FROM wb_items_per_site where ips_site_id='lvwiki' limit 55
{"resultsets": [{"rowcount": 55, "headers": ["d", "c", "age", "log_user_text", "user_name", "log_comment"]}], "runningtime": "2.37"}
wikidatawiki_p
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 = "Leijurv";
{"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"]}, {"rowcount": 0, "headers": ["p...
commonswiki_p
userspace book prod
null
SELECT log.log_timestamp AS `time`, log.log_title AS `page`, comment.comment_text AS `comment` FROM logging AS log JOIN comment ON log.log_comment_id = comment.comment_id WHERE log.log_namespace = '2' AND log.log_type = 'delete' AND comment.comment_text RLIKE '\\b(BPROD|PROD)\\b' ORDER BY log.log_timestamp DESC ...
{"resultsets": [{"rowcount": 437, "headers": ["page_len", "antal"]}], "runningtime": "4.36"}
enwiki
hewiki visual/all edits since 2018
Based on queries #50040 and #50065.
set @visual_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'visualeditor' ); select substring(rev_timestamp, 1, 6) as month, sum(ct_rev_id is not null) as visual_revisions, count(rev_id) as revisions, concat( if( count(rev_id) = 0, 0, format( sum...
{"connection_id": 1023797071}
hewiki_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;
{"connection_id": 1024022255}
bnwiki
hewiki visual/all edits since 2013 experiment without bots
Based on queries #50040 and #50065.
set @visual_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'visualeditor' ); select substring(rev_timestamp, 1, 6) as month, sum(ct_rev_id is not null) as visual_revisions, count(rev_id) as revisions, concat( if( count(rev_id) = 0, 0, format( sum...
{"runningtime": "19.48", "resultsets": [{"rowcount": 27, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
hewiki_p
Top editors
null
select ru.rev_id, ru.rev_page, ru.rev_actor, ru.rev_timestamp from revision_userindex ru join actor a on ru.rev_actor = a.actor_id join user u on a.actor_user = u.user_id where u.user_id in ( 5178974, 6817311, 6789185, 6852934, 7520964, 7546495, 7686850, 7497147, 7463353, 6079682, 5895681, 582653...
{"resultsets": [{"rowcount": 1335, "headers": ["CONCAT('# [[:File:', p.page_title, ']]')"]}], "runningtime": "27.70"}
enwiki
Personen mit Klammerlemma und einem Staat in der Klammer
Siehe dazu https://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion:Wurgl&oldid=211301841
/* der einfache Fall mit adjektiv */ SELECT DISTINCT CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') AS "Artikel" FROM page, templatelinks WHERE page_namespace = 0 AND page_title LIKE "%\\_(%,%)" /* ische bzw. ischer gefolgt von Leerzeichen (das wird in der Datenbank als Unterstreichung genommen */ AN...
{"resultsets": [{"rowcount": 9, "headers": ["pl_from", "pl_title"]}], "runningtime": "82.45"}
dewiki_p
Revisions as of a given date for all pages of all indexes in a cateogry
null
SELECT pl.pl_title, p.page_id, MAX(r.rev_timestamp) AS lastEdit FROM page AS p RIGHT JOIN pagelinks as pl on p.page_title = pl.pl_title JOIN revision as r on r.rev_page = p.page_id WHERE pl.pl_from IN ( SELECT page_id FROM page INNER JOIN categorylinks on categorylinks.cl_from = page_id WHERE pa...
{"resultsets": [{"rowcount": 16, "headers": ["\u06a9\u0627\u0631\u0628\u0631", "\u062f\u0644\u06cc\u0644", "\u0628\u0631\u0631\u0633\u06cc"]}], "runningtime": "0.82"}
enwikisource
Revisions as of a given date for all pages of an index
null
SELECT pl.pl_title, p.page_id, MAX(r.rev_timestamp) AS lastEdit FROM page AS p INNER JOIN revision as r on r.rev_page = p.page_id RIGHT JOIN pagelinks as pl on p.page_title = pl.pl_title WHERE p.page_namespace = 104 AND pl.pl_from IN ( SELECT page_id FROM page INNER JOIN categorylinks on categoryli...
{"resultsets": [{"rowcount": 1, "headers": ["current_date"]}, {"rowcount": 8, "headers": ["Username", "Number_of_labels_added"]}], "runningtime": "253.61"}
enwikisource
Liczba edycji w plwiktionary od 2017
null
USE plwiktionary_p; SET @w:=0; SELECT @w:=@w+1 AS 'Lp',`Użytkownik`,`Liczba edycji` FROM (SELECT user_name AS 'Użytkownik', COUNT(*) AS 'Liczba edycji' FROM actor JOIN revision ON rev_actor=actor_id JOIN user ON actor_user=user_id JOIN page ON rev_page=page_id WHERE page_namespace = 0 AND NOT UCASE(CONVE...
{"runningtime": "1269.36", "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"]}, {"ro...
plwiktionary_p
enwiki inactive admin users
null
SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', log_timestamp AS 'Last log', ug1.ug_group AS 'user_group' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('bureaucrat') JOIN actor ON actor_user = user_id JOIN revision_userindex ON rev_id = (SELE...
{"resultsets": [{"rowcount": 664, "headers": ["page_title"]}], "runningtime": "4.96"}
enwiki_p
r
null
USE arwiki_p; SELECT article.page_namespace, CONCAT('[[:',article.page_title,']]') as "المقالة", actor.actor_name as "المستخدم", CONCAT('{{#time: j F Y، H:i|',revision.rev_timestamp,'}}') as "تاريخ الإنشاء", article.page_len as "حجم المقالة", revision.rev_len as "الحجم الأصلي", CONCAT('{{الصنف|',pa_class,'|الصورة...
{"resultsets": [{"rowcount": 0, "headers": ["rev_timestamp", "page_title"]}], "runningtime": "0.15"}
arwiki
পরিক্ষক পরিসংখ্যান
পরিক্ষক পরিসংখ্যান
use bnwiki_p; SELECT user_name user, count(*) as review_cnt FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'review' AND log_action IN ('approve', 'approve2', 'approve-i', 'approve2-i') #AND log_timestamp > CONCAT( YEAR( DATE_SUB( NOW(), INTERVAL...
{"resultsets": [{"rowcount": 1, "headers": ["edits"]}], "runningtime": "304.04"}
bnwiki_p
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
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": [{"rowcount": 795, "headers": ["edits"]}], "runningtime": "50.98"}
bnwiki_p
মোট সম্পাদনার সংখ্যা
১ এপ্রিল ২০২০। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে HTML ক্লিক করুন।
USE bnwiki_p; SET @counter:=0; SELECT CONCAT("}}{{subst:সসংঅউতা|",@counter:=@counter+1,"") AS rank, CONCAT("|",user_name,"|") AS user_name, user_editcount FROM user WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot') AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)" ORDER BY user_editcount DESC...
{"resultsets": [{"rowcount": 795, "headers": ["user_name", "edits"]}], "runningtime": "42.63"}
bnwiki_p
Benutzerseiten in Kategorien
null
SELECT IF(page_is_redirect = 1, CONCAT('[{{fullurl:', REPLACE(page_title, '_', ' '), '|redirect=no}} ', REPLACE(page_title, '_', ' '), ']'), CONCAT('[[Benutzer:', REPLACE(page_title, '_', ' '), ']]')) as Benutzerseite, GROUP_CONCAT(CONCAT('[[:Kategorie:', REPLACE(cl_to, '_', ' '), ']]') SEPAR...
{"resultsets": [{"rowcount": 42, "headers": ["File name", "Date", "Size", "Uploader's name"]}], "runningtime": "1176.34"}
dewiki_p
Dead
null
null
{"resultsets": [{"rowcount": 100, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"]}], "runningtime": "0.58"}
ukwiki_p
Pages lacking sources or talk pages
null
SELECT pg.page_title FROM page pg INNER JOIN categorylinks on pg.page_id = categorylinks.cl_from WHERE pg.page_is_redirect = 0 AND pg.page_namespace = 0 AND pg.page_title NOT IN (SELECT pg2.page_title FROM page pg2 WHERE pg2.page_namespace = 1) AND categorylinks.cl_to = "All_articles_lacking_sources" LIMIT 1000
{"runningtime": "31.18", "resultsets": [{"rowcount": 3611, "headers": ["page_title", "comment_text"]}]}
enwiki_p
উপাত্ত বাংলা লেবেল
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Les", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='eswiki' 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_...
{"connection_id": 1038885549}
wikidatawiki
Fork Current active Indonesian Wikipedia users
null
SELECT user_name, user_editcount AS 'edit count' FROM `user` LIMIT 10000 ;
{"runningtime": "16.46", "resultsets": [{"rowcount": 100, "headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"]}]}
niawiki_p
Editors on Nias Wikipedia
null
SELECT user_name, user_editcount FROM `user` ;
{"resultsets": [{"rowcount": 10, "headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files", "cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"]}], "runningtime": "0.07"}
niawiki_p
Indonesian Wikipedia Activity Log
null
SELECT actor_name, page_title, CONCAT(substr(log_timestamp,1,4)," ",substr(log_timestamp,5,2), " ",substr(log_timestamp,7,2)," ",substr(log_timestamp,9,2)+7,":",substr(log_timestamp,11,2)) as 'Timestamp', log_action FROM logging_userindex JOIN actor_logging ON actor_id = log_actor JOIN page ON log_page = page_...
{"resultsets": [{"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len", "count(page.page_title)"]}], "runningtime": "0.09"}
idwiki
nlwiki Protected user css/js of active non-sysops
null
SELECT page_title, GROUP_CONCAT(DISTINCT pr_type) AS pr_type, GROUP_CONCAT(DISTINCT pr_level) AS pr_level, GROUP_CONCAT(DISTINCT pr_cascade) AS pr_cascade, GROUP_CONCAT(DISTINCT pr_expiry) AS pr_expiry FROM page, page_restrictions, `user` WHERE page_namespace=2 AND page_title REGEXP '/[^/]+\\.(css...
{"runningtime": "17.33", "resultsets": [{"rowcount": 1, "headers": ["ss_total_edits"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}, {"rowcount": 783, "headers": ["user_id", "user_name", "user_editcount", "user_admin", "user_bot"]}]}
nlwiki
nlwiki Protected user pages without a user account
null
SELECT page_namespace AS pns, page_title, rd_namespace AS rdns, rd_title, GROUP_CONCAT(DISTINCT pr_type) AS pr_type, GROUP_CONCAT(DISTINCT pr_level) AS pr_level, GROUP_CONCAT(DISTINCT pr_cascade) AS pr_cascade, GROUP_CONCAT(DISTINCT pr_expiry) AS pr_expiry FROM page RIGHT JOIN redirect ON (rd_from=...
{"runningtime": "1.30", "resultsets": [{"rowcount": 10, "headers": ["page_title", "cl_to"]}]}
nlwiki
AfC review counts, last 30 days
null
use enwiki_p; select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank, 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", ...
{"runningtime": "0.26", "resultsets": [{"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len", "count( distinct(cl.cl_from))"]}, {"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len BEZ KUBURE", "count( distinct(cl.cl_from))"]}, {"rowcount": 1, "headers": ["cat_id", "cat_pages...
enwiki
秘密だよ〜 読んでないください! 「その二」
null
set @target = 'Marwan Mohamad'; 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_timest...
{"resultsets": [{"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len", "count( distinct(cl.cl_from))"]}, {"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len BEZ KUBURE", "count( distinct(cl.cl_from))"]}, {"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_...
idwiki
Wiktionary Tables
null
show tables;
{"runningtime": "0.20", "resultsets": [{"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len", "count( distinct(cl.cl_from))"]}, {"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len BEZ KUBURE", "count( distinct(cl.cl_from))"]}, {"rowcount": 1, "headers": ["cat_id", "cat_pages...
idwiktionary
enwiki inactive admin users
null
SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', log_timestamp AS 'Last log', ug1.ug_group AS 'user_group' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug2.ug_user AND ug2.ug_group JOIN actor ON actor_user = user_id JOIN revision_userindex ON rev_id = (SELECT rev_id FROM re...
{"resultsets": [{"rowcount": 4521, "headers": ["CONCAT(\"Draft:\",page_title)", "rev_timestamp_", "creator_actor", "actor_name_"]}], "runningtime": "25.12"}
tewiki_p
Most active IP users
null
SELECT page_namespace, page_title, page_latest, rev_id, rev_len, comment_text FROM page JOIN revision ON page_latest = rev_id JOIN comment ON rev_comment_id = comment_id WHERE page_namespace = 3 AND rev_len > 50000 AND page_title REGEXP '^[0-9]' GROUP BY page_title ORDER BY rev_len DESC LIMIT 1000
{"connection_id": 1041692217}
tewiki_p
Tewiki: Date wise new user registrations
null
use tewiki_p; SELECT substr(log_timestamp,1,8),count(substr(log_timestamp,1,8)) AS New_users FROM logging WHERE `log_type` = 'newusers' /* exclude proxy registrations */ AND `log_action` = 'create' /* only include self-created users, exclude attached and proxy-registered users */ AND substr(log_timestamp,1,4)...
{"resultsets": [{"rowcount": 32, "headers": ["page_len", "cnt"]}], "runningtime": "0.49"}
tewiki_p
Tewiki: created articles count by user (Live articles only)
null
use tewiki_p; SELECT actor.actor_name, count(actor_name) as "Articles created" FROM revision, page, actor where page.page_is_redirect=0 and rev_parent_id = 0 and page_namespace = 0 and revision.rev_page = page.page_id and rev_actor = actor.actor_id group by rev_actor having count(actor_nam...
{"resultsets": [{"rowcount": 1, "headers": ["page_len", "cnt"]}, {"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len"]}], "runningtime": "0.27"}
tewiki
Latest Wiktionary Edits
null
select page_title, CONCAT(substr(page_touched,1,4),"-",substr(page_touched,5,2), "-",substr(page_touched,7,2)," ",mod(substr(page_touched,9,2)+7,24),":",substr(page_touched,11,2)) as 'Last Update', page_len from page order by page_touched desc limit 250;
{"resultsets": [{"rowcount": 1, "headers": ["page_len", "cnt"]}, {"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len"]}], "runningtime": "0.58"}
idwiktionary
Latest Wiktionary Edits
null
select page_title, CONCAT(substr(page_touched,1,4),"-",substr(page_touched,5,2), "-",substr(page_touched,7,2)," ",mod(substr(page_touched,9,2)+7,24),":",substr(page_touched,11,2)) as 'Last Update', page_len from page order by page_touched desc limit 250;
{"runningtime": "0.20", "resultsets": [{"rowcount": 4, "headers": ["page_len", "cnt"]}, {"rowcount": 4, "headers": ["cat_id", "cat_pages", "page_title", "page_len"]}]}
idwiktionary
ores
null
#select rc_timestamp, rc_title, max(case when oresm_name="damaging" then oresc_probability else 0 end) damaging, max(case when oresm_name="goodfaith" then oresc_probability else 0 end) goodfaith, actor_name, rc_this_oldid from recentchanges join ores_classification on oresc_rev=rc_this_oldid join actor on actor_id=rc_a...
{"runningtime": "281.60", "resultsets": [{"rowcount": 149, "headers": ["page_title", "cl_to"]}]}
ruwiki
উপাত্ত বাংলা লেবেল
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": "664.09", "resultsets": [{"rowcount": 3, "headers": ["term_type", "term_language", "terms"]}]}
wikidatawiki
উপাত্ত বাংলা লেবেল
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": "458.25", "resultsets": [{"rowcount": 134, "headers": ["page_title", "cl_to"]}]}
wikidatawiki
Non-free files used where? (ms.wiki)
null
#USE ukwiki_p; #SELECT DISTINCT CONCAT('# [[:File:', p.page_title, ']]'), i.il_from, d.page_title #GROUP_CONCAT(i.il_from_namespace ORDER BY i.il_from_namespace SEPARATOR ', ') #SELECT CONCAT('# [[:File:', p.page_title, ']]'), GROUP_CONCAT(i.il_from_namespace SEPARATOR ', ') SELECT CONCAT('[[:File:', p.page_title, ']...
{"runningtime": "0.23", "resultsets": [{"rowcount": 0, "headers": ["page_len", "cnt"]}, {"rowcount": 0, "headers": ["cat_id", "cat_pages", "page_title", "page_len"]}]}
mswiki_p
Afwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Laf", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='afwiki' 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.75", "resultsets": [{"rowcount": 1, "headers": ["@dbname", "New CX articles", "New non-CX articles", "Deleted CX articles", "Deleted non-CX articles", "Deleted CX %", "Deleted non-CX %", "Deletion % difference"]}]}
wikidatawiki
Afwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Laf", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='afwiki' 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": "5.50", "resultsets": [{"rowcount": 12, "headers": ["page_title", "rev_timestamp"]}]}
wikidatawiki
Latest Wikipedia Edits (k)
null
select CONCAT(substr(rc_timestamp,1,4),"-",substr(rc_timestamp,5,2), "-",substr(rc_timestamp,7,2)," ",mod(substr(rc_timestamp,9,2)+7,24),":",substr(rc_timestamp,11,2)) as 'Time', actor_name, rc_title, rc_new_len - rc_old_len as 'diff', rc_source from recentchanges_userindex left join actor on rc_actor = actor_id wher...
{"runningtime": "189.94", "resultsets": [{"rowcount": 182, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
enwiki
Afwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Laf", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='afwiki' 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_...
{"resultsets": [{"rowcount": 1, "headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "...
wikidatawiki
Current active Indonesian Wikipedia users
null
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,2)+7,":",substr(rev_timestam...
{"runningtime": "0.11", "resultsets": [{"rowcount": 0, "headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_tim...
idwiki
Iswiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Lis", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='iswiki' 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_...
{"resultsets": [{"rowcount": 136, "headers": ["page_title", "cl_to"]}], "runningtime": "248.13"}
wikidatawiki
Afwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Laf", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='afwiki' 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": "243.08", "resultsets": [{"rowcount": 39, "headers": ["thank_timestamp", "receiver", "sender_actor_id", "sender_user_name", "sender_user_id"]}]}
wikidatawiki
most thanked users in bnwiki
বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী
USE bnwiki_p; SELECT log_title, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_title ORDER BY COUNT(*) DESC LIMIT 500;
{"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "actor_id", "actor_user", "actor_name"]}]}
bnwiki_p
Afwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Laf", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='afwiki' 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_...
{"resultsets": [{"rowcount": 1, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "actor_id", "actor_user", "actor_name"]}, {"rowcount": 1, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_times...
wikidatawiki
Afwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Laf", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='afwiki' 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": "128.66", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]}
wikidatawiki
Afwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Laf", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='afwiki' 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": "1524.61", "resultsets": [{"rowcount": 936328, "headers": ["thank_timestamp", "receiver", "sender_user_name"]}]}
wikidatawiki
Countrydata template usage
Country data template usage on enwiki.
SELECT tl_from FROM templatelinks tl1 WHERE tl_title = 'Used in system' AND EXISTS (SELECT * FROM templatelinks tl2 WHERE tl1.tl_from = tl2.tl_from AND tl2.tl_title = 'High-use');
{"runningtime": "10.59", "resultsets": [{"rowcount": 0, "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", ...
enwiki
Latest Wikipedia Edits (k)
null
select /*CONCAT(substr(rc_timestamp,1,4),"-",substr(rc_timestamp,5,2), "-",substr(rc_timestamp,7,2)," ",mod(substr(rc_timestamp,9,2)+7,24),":",substr(rc_timestamp,11,2)) as 'Time', */actor_name,rc_timestamp, rc_title, rc_new_len - rc_old_len as 'total diff' /*,rc_source*/ from recentchanges_userindex left join actor ...
{"runningtime": "0.19", "resultsets": [{"rowcount": 4, "headers": ["page_id", "page_title"]}, {"rowcount": 10, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"]}, {"rowcount": 10, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]}
enwiki
Dabs "Foo and bar" matching articles "Foo and Bar"
null
SELECT Pd.page_title FROM categorylinks JOIN page Pd ON Pd.page_id = cl_from AND Pd.page_title REGEXP "_and_[a-z]" AND Pd.page_namespace = 0 JOIN page Pa ON Pa.page_namespace = 0 AND Pa.page_is_redirect = 0 AND Pa.page_title = CONCAT(SUBSTRING_INDEX(Pd.page_title, "_and_", 1),"_and_", UPPER(CONVERT(SUBSTRING(Pd.page_...
{"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"]}, {"rowcount": 0, "headers": ["p...
enwiki
Top Wikipedia User by Bytecounts [Verify]
null
select actor_name, rc_title, sum(cast(rc_new_len as int) - cast(rc_old_len as int)) as 'total diff' from recentchanges_userindex left join actor on rc_actor = actor_id where /*rc_timestamp >= 20210401000000 and rc_timestamp <= 20210501000000 and*/ rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') and actor...
{"runningtime": "0.27", "resultsets": [{"rowcount": 1, "headers": ["cat_id", "cat_pages", "page_title", "page_len", "count( distinct(cl.cl_from))"]}]}
idwiki
Top Wikipedia User by Bytecounts [Verify]
null
set @target = "Rtnf"; set @start = 20210501000000; set @end = 20210601000000; select actor_name, sum(cast(rc_new_len as int) - cast(rc_old_len as int)) as 'total diff' from recentchanges_userindex left join actor on rc_actor = actor_id where rc_timestamp >= @start and rc_timestamp <= @end and rc_bot = 0 and (rc_sourc...
{"resultsets": [{"rowcount": 662, "headers": ["page_title"]}], "runningtime": "3.08"}
idwiki
most thanked users in bnwiki
বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী
USE bnwiki_p; SELECT log_title, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_title ORDER BY COUNT(*) DESC LIMIT 500;
{"resultsets": [{"rowcount": 1, "headers": ["user_name", "user_real_name"]}], "runningtime": "0.07"}
bnwiki_p
Look for capitalized descriptions in Bosnian
https://doc.wikimedia.org/Wikibase/master/php/md_docs_storage_terms.html
# https://doc.wikimedia.org/Wikibase/master/php/md_docs_storage_terms.html SELECT CONCAT('Q', wbit_item_id) AS qid, wby_name AS type, wbxl_language AS lang, wbx_text AS text FROM wbt_item_terms LEFT JOIN wbt_term_in_lang ON wbit_term_in_lang_id=wbtl_id LEFT JOIN wbt_type ON wbtl_type_id=wby_id LEF...
{"resultsets": [{"rowcount": 4, "headers": ["page_namespace", "page_title"]}], "runningtime": "0.42"}
wikidatawiki_p
Count of my translation edits on Commons in 2021
null
SELECT COUNT(*) AS total, SUM( page_namespace IN (8, 9) -- NS_MEDIAWIKI, NS_MEDIAWIKI_TALK AND page_title LIKE 'Gadget-%/%' OR page_namespace IN (10, 11) -- NS_TEMPLATE, NS_TEMPLATE_TALK AND page_title LIKE '%/%' ) AS translations FROM revision_userindex JOIN page ON rev_page = page_id WHERE rev_actor = ( SEL...
{"runningtime": "1297.59", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 550, "headers": ["CONCAT('# [[:Category:', REPLACE(c.page_title,'_',' '), ']]',\n IF (c.page_len < 5,\" \u2192 '''blank'''\",''),\n IF (c.page_title LIKE '%_monument%', ' \u2192 consider adding {{...
commonswiki_p
Latest Indonesian Wikipedia edits
null
select actor_name as 'User', page_title as 'Artikel', CONCAT(substr(rev_timestamp,1,4),"-",substr(rev_timestamp,5,2), "-",substr(rev_timestamp,7,2)," ",substr(rev_timestamp,9,2)+7,":",substr(rev_timestamp,11,2)) as 'Waktu', rev_len from revision_userindex r1 join actor_revision on actor_id = r1.rev_actor left jo...
{"resultsets": [{"rowcount": 100, "headers": ["log_id", "Deleter", "Timestamp", "Filename", "Reason"]}], "runningtime": "56.53"}
idwiki
nya01
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 = 'RianHS'; 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,2)...
{"resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"]}], "runningtime": "0.07"}
idwiki
nya2
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 = 'Joseagush'; 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...
{"runningtime": "0.20", "resultsets": [{"rowcount": 3, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]}
idwiki
enwikt translit modules
null
USE zhwiktionary_p; SELECT CONCAT('Module:', page_title) as title FROM enwiktionary_p.page epg WHERE page_namespace = 828 AND page_title REGEXP "-translit$" ORDER BY page_title ASC
{"connection_id": 539418356}
enwiktionary
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 * from wiki
{"resultsets": [{"rowcount": 99, "headers": ["ll_count", "title_pl", "title_en", "wb_item"]}], "runningtime": "41.96"}
meta_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": "21.75", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]}
bnwiki
Unreviewed changes by trusted users in template namespace
null
# USE huwiki_p; -- deprecated SELECT CONCAT('[[Template:',page1.page_title,']]') AS 'Cím', CONCAT('[https://hu.wikipedia.org/w/index.php?title=Template:',page1.page_title,'&action=history történet]') AS 'Történet', CONCAT('[https://hu.wikipedia.org/w/index.php?title=Template:',page1.page_title,'&oldid=',flaggedp...
{"resultsets": [{"rowcount": 10, "headers": ["CONCAT(actor_name)", "COUNT(*)"]}], "runningtime": "97.53"}
huwiki_p
Edits by hour
null
select year(ru.rev_timestamp) y, month(ru.rev_timestamp) m, day(ru.rev_timestamp) d, hour(ru.rev_timestamp) h, count(*) c from revision_userindex ru where YEAR(ru.rev_timestamp) >= 2018 GROUP BY y, m, d, h;
{"runningtime": "65.56", "resultsets": [{"rowcount": 1, "headers": ["COUNT(DISTINCT(page_title))"]}]}
enwiki
Active editors
null
select distinct actor_id from ( select a.actor_id, YEAR(ru.rev_timestamp), count(*) c from actor_revision a join revision_userindex ru on ru.rev_actor = a.actor_id where YEAR(ru.rev_timestamp) >= 2018 group by a.actor_id, YEAR(ru.rev_timestamp) having c > 500) as subq limit 500;
{"resultsets": [{"rowcount": 0, "headers": ["fpc_page_id", "fpc_select", "fpc_override", "fpc_expiry", "fpc_level"]}], "runningtime": "0.08"}
enwiki
Dabs "Foo bar" matching articles "Foo Bar"
null
SELECT Pd.page_title as Dab, CONCAT(SUBSTRING_INDEX(Pd.page_title, "_", 1),"_", UPPER(CONVERT(SUBSTRING(Pd.page_title, LOCATE("_", Pd.page_title)+1, 1) USING latin1)), SUBSTRING(Pd.page_title, LOCATE("_", Pd.page_title)+2)) as Article FROM categorylinks JOIN page Pd ON Pd.page_id = cl_from AND Pd.page_title REGEXP "_...
{"resultsets": [{"rowcount": 0, "headers": ["fpc_page_id", "fpc_select", "fpc_override", "fpc_expiry", "fpc_level"]}], "runningtime": "0.06"}
enwiki
Active users who have contributions licensed under PD and not CC0
null
SELECT actor_name as `Username`, MAX(`rev_timestamp`) as `Last Edit`, IF(MAX(`rev_timestamp`) > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -1 YEAR), "%Y%m%d%H%i%s"), "yes", "no") as `Edited in the past year` FROM revision_userindex JOIN actor_revision ON rev_actor = actor_id WHERE actor_name IN ("LC~enwiki",...
{"resultsets": [{"rowcount": 1, "headers": ["count"]}], "runningtime": "945.47"}
enwiki_p
Active editors with contribs licensed under PD and not CC0
null
SELECT actor_name as `Username`, MAX(`rev_timestamp`) as `Last Edit` FROM revision_userindex JOIN actor_revision ON rev_actor = actor_id WHERE actor_name IN ("LC~enwiki", "Eloquence", "Ap", "Rjstott", "Jkominek", "Marknau", "Khendon", "RSM", "Nommonomanac", "PhilipMW", "Brian Sayrs", "Hoshie", "Ixfd64", "G...
{"resultsets": [{"rowcount": 160, "headers": ["page_title", "cl_to"]}], "runningtime": "192.85"}
enwiki_p
Current active Wikipedia users
null
SELECT user_name, user_editcount, rev_timestamp AS 'Last edit', CONCAT(substr(log_timestamp,1,4),"-",substr(log_timestamp,5,2), "-",substr(log_timestamp,7,2)," ",substr(log_timestamp,9,2)+7,":",substr(log_timestamp,11,2)) as 'Last Log', FROM `user` LEFT JOIN actor ON actor_user = user_id JOIN revision_userind...
{"resultsets": [{"rowcount": 0, "headers": ["up_user", "up_property", "up_value"]}], "runningtime": "0.26"}
idwiki
Current active Wikipedia user
null
select actor_name, CONCAT(substr(rev_timestamp,1,4),"-",substr(rev_timestamp,5,2), "-",substr(rev_timestamp,7,2)," ",substr(rev_timestamp,9,2)+7,":",substr(rev_timestamp,11,2)) as 'Last Edit', CONCAT(substr(log_timestamp,1,4),"-",substr(log_timestamp,5,2), "-",substr(log_timestamp,7,2)," ",mod(substr(log_timestamp,9,2)...
{"resultsets": [{"rowcount": 8604, "headers": ["File", "img_timestamp", "actor_name"]}], "runningtime": "18.33"}
idwiki
links from a page
null
select * from page join pagelinks on pl_title = page_title where page_title = "Mammootty" and page_namespace = 0 #and catl.cl_type = "page" #group by p.page_id
{"resultsets": [{"rowcount": 1, "headers": ["rev_id", "page_title", "page_namespace", "rev_parent_id", "GROUP_CONCAT(cl_to)", "rev_len", "prev_rev_len"]}], "runningtime": "0.08"}
enwiki_p
Draftifications (last 30 days)
null
SELECT rc_title, actor_name, rc_timestamp FROM recentchanges JOIN logging ON rc_logid = log_id JOIN comment ON log_comment_id = comment_id JOIN actor ON log_actor = actor_id WHERE rc_log_type = 'move' AND rc_namespace = 0 AND comment_text LIKE '[[WP:DRAFTIFY%' ORDER BY rc_timestamp DESC
{"connection_id": 1053081371}
enwiki
Draftifications per day
null
SELECT ROUND(COUNT(*) / 30) AS draftifications_per_day FROM recentchanges JOIN logging ON rc_logid = log_id JOIN comment ON log_comment_id = comment_id JOIN actor ON log_actor = actor_id WHERE rc_log_type = 'move' AND rc_namespace = 0 AND comment_text LIKE '[[WP:DRAFTIFY%'
{"resultsets": [{"rowcount": 49, "headers": ["user_name", "user_editcount", "ug_group", "recent_user_editcount"]}], "runningtime": "212.14"}
enwiki
Draftifications, grouped by draftifier (last 30 days)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(*) FROM recentchanges JOIN logging ON rc_logid = log_id JOIN comment ON log_comment_id = comment_id JOIN actor ON log_actor = actor_id WHERE rc_log_type = 'move' AND rc_namespace = 0 AND comment_text LIKE '[[WP:DRAFTIFY%' GROUP BY actor_nam...
{"connection_id": 1053221482}
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.91", "resultsets": [{"rowcount": 1, "headers": ["Count", "Size_GB"]}]}
commonswiki_p
itWP: Schweizer
Artikel in den Kategorien Svizzera und Svizzeri und deren Unterkategorien, ausgenommen die Artikel welche nur in den Kategorien Lingue_della_Svizzera und Federazioni_sportive_per_disciplina (und deren Unterkategorien) sind. Download Data … Wikitable … copy/paste nach Wikipedia … Vorschau oder Wartungsliste anlegen
WITH RECURSIVE Cat AS (SELECT page_title FROM page WHERE (page_title = 'Svizzera' OR page_title = 'Svizzeri') /* Subcats of these two Categories */ AND page_namespace = 14 UNION SELECT SubCat.page_title ...
{"runningtime": "0.87", "resultsets": [{"rowcount": 500, "headers": ["page_title", "rd_title"]}]}
itwiki_p