title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Sports Reference export to Wikidata
null
use arwiki_p; SELECT #enp.page_title, enel.el_index enp.page_title, pp_value, enel.el_index FROM page enp, externallinks enel, page_props, wikidatawiki_p.page wdp #where el_to like "http://www.sports-reference.com/olympics/athletes%" LEFT JOIN wikidatawiki_p.pagelinks wdpl ON wdpl.pl_from = wdp.page_id AND wdpl.pl_titl...
{"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": 8}], "runningtime": "7.70"}
null
Most active users by edits on bnwiki in last 3 months
null
USE bnwiki_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount/*, user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace = 0 AND actor_user IS NOT NULL AND r...
{"resultsets": [], "runningtime": "0.05"}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
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": 90, "headers": ["Tables_in_sewiki_p"]}], "runningtime": "0.31"}
null
Namensteile nach '/' der Unterseiten im Namensbereich Vorlagen
null
USE dewiki_p; SELECT COUNT(*) AS "Anzahl", SUBSTRING(page_title, LOCATE('/', page_title)) AS "Unterseite" FROM page WHERE page_namespace = 10 AND page_title LIKE "%/%" GROUP BY SUBSTRING(page_title, LOCATE('/', page_title)) ORDER BY COUNT(*) DESC;
{"connection_id": 108978735}
null
Templates by template transclusion
null
USE commonswiki_p; SELECT t1.tl_title, count(t1.tl_from) as `template transclusions` FROM templatelinks t1 WHERE t1.tl_namespace = 10 and t1.tl_namespace = 10 ORDER BY `template transclusions` desc LIMIT 100
{"resultsets": [{"rowcount": 10212, "headers": ["CONCAT ('# [[',REPLACE(MID(Target.page_title,1,LOCATE('(',Target.page_title)-2),'_',' '),']]\t[[',REPLACE(Target.page_title,'_',' '),']]')"]}], "runningtime": "231.06"}
null
Number of distinct red links on huwiki
Mainspace-to-mainspace only.
use huwiki_p; SELECT COUNT(DISTINCT pl_title) FROM pagelinks LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title WHERE pl_from_namespace = 0 AND pl_namespace = 0 AND page_title IS NULL ;
{"resultsets": [{"headers": ["CONCAT ('# [[',REPLACE(MID(Target.page_title,1,LOCATE('(',Target.page_title)-2),'_',' '),']]\t[[',REPLACE(Target.page_title,'_',' '),']]')"], "rowcount": 679}], "runningtime": "98.44"}
null
Free files with at least one old version
For [[WP:VPT#Is there a way to find (free) files with more than one (not deleted) version in the history?]] circa 22 Apr 2020.
SELECT CONCAT('File:', REPLACE(oi_name, '_', ' ')) AS filename, COUNT(*) AS 'old versions' FROM oldimage JOIN page ON page_namespace = 6 AND page_title = oi_name WHERE (oi_deleted & 1) = 0 AND NOT EXISTS (SELECT 1 FROM categorylinks WHERE page_id = cl_from ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 56}], "runningtime": "113.65"}
null
مقالات بحاجة لتصنيف مواليد جاهز من ويكي بيانات
null
use arwiki_p; select p.page_title from page p inner join page_props on pp_page = p.page_id inner join wikidatawiki_p.page on wikidatawiki_p.page.page_title = pp_value inner join wikidatawiki_p.pagelinks on wikidatawiki_p.pagelinks.pl_from = wikidatawiki_p.page.page_id where p.page_namespace = 0 and p.page_is_redirect =...
{"resultsets": [], "runningtime": "0.03"}
null
GA/FA and GAN/FAC linked from April 25
GA/FA and GAN/FAC linked from [[April 25]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"headers": ["COUNT(DISTINCT (rev_actor))", "page_title"], "rowcount": 761}], "runningtime": "2.60"}
null
Get user_name from user_id
null
select user_name from user where user_id = 24619723
{"resultsets": [], "runningtime": "0.04"}
null
New users with edits (April 22, 2020)
Replace the user_id with a more recent one for this to not return thousands of results.
SELECT CONCAT("[[Special:Contributions/",user_name,"|User:",user_name,"]]") AS username, user_editcount FROM user WHERE user_id > 39080000 AND user_editcount >= 1
{"connection_id": 112686781}
null
Validated-Iswarya-குன்றக்குடி_அடிகளார்_நூல்வரிசை-4
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 10}], "runningtime": "0.10"}
null
Validated-Deepa_arul_kaniyam-கவிக்குயில்_சரோஜினியின்_நம்மை_மேம்படுத்தும்எண்ணங்கள்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 16}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 7}], "runningtime": "9.67"}
null
Validated-Ramesh-மாணவர்களுக்கு_நபிகள்_நாயகம்_வரலாறு
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"], "rowcount": 1753}], "runningtime": "119.89"}
null
Proofread-shobia-நல்ல_கதைகள்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"connection_id": 117425728}
null
Validated-Fathima-நல்ல_கதைகள்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"rowcount": 16, "headers": ["CONCAT('File:', p.page_title)"]}], "runningtime": "38.35"}
null
Validated-Fathima-பாரதியும்_பாப்பாவும்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "106.00"}
null
Validated-Ramesh-இயல்_தமிழ்_இன்பம்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"rowcount": 24, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment", "ar_comment_id", "ar_user", "ar_user_text", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_text_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "ar_content_model", ...
null
WP:USA talk pages for Commons files with no other revs
null
USE enwiki_p; SELECT CONCAT("File talk:", page_title) FROM templatelinks JOIN page ON tl_from = page_id LEFT JOIN image ON img_name = page_title WHERE tl_title = "WikiProject_United_States" AND tl_namespace = 10 AND tl_from_namespace = 7 AND img_name IS NULL AND 1 = (SELECT count(rev_id) FROM revision...
{"connection_id": 123428022}
null
user edits in a wikiproject pages
null
USE arwiki_p; SELECT article.page_title as "المقالة", revision.rev_id as "النسخة/الفرق", revision.rev_timestamp as "تاريخ التعديل" FROM revision JOIN actor ON actor_id = rev_actor INNER JOIN page article ON article.page_id = rev_page AND article.page_namespace = 0 INNER JOIN page talk ON talk.page_title = artic...
{"connection_id": 125503493}
null
تعديلات ذات ملخص تعديل محدد
null
use arwiki_p; select concat("[[",page_title,"]]"), concat("[[:en:",(select ll_title from langlinks where ll_from = rev_page and ll_lang = "en" ...
{"resultsets": [{"headers": ["kategori", "artikel"], "rowcount": 448}], "runningtime": "7.33"}
null
GA/FA and GAN/FAC linked from April 26
GA/FA and GAN/FAC linked from [[April 26]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"headers": ["term_full_entity_id", "term_text"], "rowcount": 1393}], "runningtime": "11.89"}
null
MassMassage list creator:Active user of Indic Wikisource
Most active users by edits on Bengali Wikisource in last 3 months
USE orwikisource_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace = 250 AND actor_user IS NOT NULL...
{"resultsets": [{"headers": ["img_name"], "rowcount": 0}], "runningtime": "111.71"}
null
List enwiki users with iadmin userright
null
SELECT user_name FROM user_groups JOIN `user` ON ug_user = user_id WHERE ug_group = 'interface-admin'
{"resultsets": [{"headers": ["CONCAT('# [[:File:', page_title, ']]')"], "rowcount": 0}], "runningtime": "107.32"}
null
zhwikt: linter
null
use zhwiktionary_p; select distinct linter_page, page_namespace, page_title from linter left join page on linter_page = page_id where linter_cat = 2 and page_namespace = 2 and linter_params = '{"name":"font"}' order by linter_id asc limit 1000
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 14}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 7}], "runningtime": "11.36"}
null
active proofreader last month in wikisource
Oriya Wikisource page namespace=250 , time span 1st march to today....
USE bnwikisource_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id AND actor_user IS NOT NULL AND rev_timestamp BETWEEN...
{"resultsets": [{"rowcount": 55728, "headers": ["page_id", "U", "E", "L", "page_namespace", "page_is_redirect"]}], "runningtime": "254.97"}
null
Get parents
null
select cl1.cl_to from categorylinks as cl1 inner join (select page_id from page where page_title = "21st-century_Swedish_women" and page_namespace = 14 limit 1) as p on cl1.cl_from = p.page_id and not "Hidden_categories" in (select cl2.cl_to ...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 18}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 8}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 7}], "runningtime": "18.45"}
null
Get parents
null
select cl1.cl_to from categorylinks as cl1 inner join (select page_id from page where page_title = "Awards" and page_namespace = 14 limit 1) as p on cl1.cl_from = p.page_id and not "Hidden_categories" in (select cl2.cl_to from category...
{"resultsets": [{"rowcount": 1000, "headers": ["replace( cl_to, \"_\", \" \" )", "concat( \"[[:Category:\", cl_to, \"|create]]\" )"]}], "runningtime": "15.87"}
null
Get parents of parents
null
select cl1.cl_to from categorylinks as cl1 inner join (select page_id from page where page_title in (select cl1.cl_to from categorylinks as cl1 inner join (select page_id from pa...
{"resultsets": [{"rowcount": 13, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 6, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 6, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}], "runningtime": "25.17"}
null
Indic Wikisource activity in Lockdown periods
null
USE hiwikisource_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace = 0 AND actor_user IS NOT NULL ...
{"resultsets": [{"headers": ["wikitext"], "rowcount": 43}], "runningtime": "1522.85"}
null
Retrieve all articles in Wikiproject politics
null
SELECT article.page_title, article.page_id FROM page INNER JOIN page article ON page.page_title=article.page_title INNER JOIN categorylinks ON cl_from = page.page_id AND categorylinks.cl_to = "WikiProject_Politics_articles" WHERE page.page_namespace = 1 AND article.page_namespace = 0
{"resultsets": [{"rowcount": 3, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}], "runningtime": "0.14"}
null
Retrieve all articles in Wikiproject economics
null
SELECT article.page_title, article.page_id FROM page INNER JOIN page article ON page.page_title=article.page_title INNER JOIN categorylinks ON cl_from = page.page_id AND categorylinks.cl_to = "WikiProject_Economics_articles" WHERE page.page_namespace = 1 AND article.page_namespace = 0
{"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name"], "rowcount": 1}], "runningtime": "0.16"}
null
Wikidata items of pages with Peerage links
null
SELECT DISTINCT page.page_title, externallinks.el_to, page_props.pp_value FROM externallinks INNER JOIN page ON externallinks.el_from = page.page_id INNER JOIN page_props ON page.page_id = page_props.pp_page WHERE ((externallinks.el_to LIKE "http://thepeerage.com%") OR (externallinks.el_to LIKE "http://www.thepeerage.c...
{"connection_id": 143555000}
null
lockdownwork in bnwikisource NS0 & NS104
null
USE bnwikisource_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE actor_user IS NOT NULL AND page_namespace IN (...
{"resultsets": [{"headers": ["CONCAT('# [[:Category:', REPLACE(c.page_title,'_',' '), ']]',\n IF (c.page_len < 5,\" \u2192 '''blank'''\",''))"], "rowcount": 25}], "runningtime": "1689.90"}
null
All tables in the enwiki_p database
All of the queriable tables in the public English Wikipedia database.
SHOW TABLES FROM commonswiki;
{"runningtime": "17.35", "resultsets": [{"rowcount": 9, "headers": ["totale", "page_count_error", "weight"]}, {"rowcount": 13, "headers": ["page_id", "page_title", "page_len", "totale", "linter_params", "ptotale"]}]}
null
تخصيص البذور حسب المقالات المشابهة حسب التصنيف
null
use arwiki_p; select concat("#[[", p1.page_title,"]]--->", group_concat(DISTINCT concat("<div class = \"stub-value ",cl4.cl_to,"\">", cl4.cl_to, "</div>") SEPARATOR ' '),"</br>") from page p1 inner join categorylinks cl1 on cl1.cl_from = p1.page_id inner join categorylinks cl2 on p1.page_id = cl2.cl_from inn...
{"connection_id": 174358076}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"connection_id": 188354788}
null
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": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 140}], "runningtime": "393.50"}
null
zhwiki: ipblocks (T234164)
null
USE zhwiki_p; SELECT * FROM ipblocks WHERE ipb_id = 280884;
{"runningtime": "0.11", "resultsets": [{"rowcount": 0, "headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files", "pp_page", "pp_propname", "pp_value", "pp_sortkey"]}]}
null
GA/FA and GAN/FAC linked from April 27
GA/FA and GAN/FAC linked from [[April 27]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"runningtime": "0.11", "resultsets": [{"rowcount": 3, "headers": ["term_row_id", "term_entity_id", "term_full_entity_id", "term_entity_type", "term_language", "term_type", "term_text", "term_search_key", "term_weight"]}]}
null
Links to redirects
null
use hewiki_p; select * from page where page_latest>27538871 limit 10;
{"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "63.74"}
null
fix table tennis pages
null
use arwiki_p; select CONCAT('* [[{{ns:' , page_namespace , '}}:',page_title, ']]>') AS cat1 , REPLACE(CONCAT( '[[{{ns:' , page_namespace , '}}:',page_title , ']]' ) , 'تنس' , 'كرة' ) AS cat2 from page where page_namespace in ( 0 , 10 , 14 ) and page_title like "%تنس_طاولة%" or page_title like "...
{"connection_id": 190827343}
null
MassMassage list creator:Active user of Indic Wikisource NS0 & NS104
MassMassage list creator:Active user of Indic Wikisource, here NS:0 an NS:104 ( Main namespace and Page namespace) edit done by the user account
USE bnwikisource_p; SELECT CONCAT("# {{target | user =",actor_name,"| site = bn.wikisource.org }}") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE actor_user IS NOT NULL AND page_namespace IN ('0','104') ...
{"runningtime": "1.11", "resultsets": [{"rowcount": 114, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "...
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
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": ["pl_from"], "rowcount": 125}], "runningtime": "0.93"}
null
GA/FA and GAN/FAC linked from April 29
GA/FA and GAN/FAC linked from [[April 29]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"headers": ["category", "category_item", "page", "page_item"], "rowcount": 13}, {"headers": ["CONCAT('Q',wbit_item_id)", "CONCAT('Category:', page_title)", "wbxl_language"], "rowcount": 12}], "runningtime": "20.64"}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
USE bnwiki_p; SELECT CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম, COUNT(rev_id) AS মোট_নিবন্ধ FROM actor INNER JOIN revision ON revision.rev_actor = actor.actor_id JOIN page ON page.page_id = revision.rev_page WHERE page_is_redirect = 0 AND rev_parent_id = 0 AND page_namespace = 0 AND rev...
{"runningtime": "0.09", "resultsets": [{"rowcount": 0, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]}
null
پر ویرایش‌ترین کاربران با ابزار اشتباه‌یاب
null
USE fawiki_p; SELECT concat('[[user:',revactor_actor,']]') as user_name, COUNT(revactor_timestamp) AS revisions FROM revision_actor_temp join page WHERE page_id=revactor_page and page_namespace=0 limit 10
{"connection_id": 194108015}
null
Comparison pages
All Wikipedia articles containing "Comparison" in their titles (like opencompare experiment)
SELECT page_title FROM page WHERE page_title LIKE '%Comparison%';
{"runningtime": "0.37", "resultsets": [{"rowcount": 11, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]}
null
sqwiki orpahned talk pages
null
USE sqwiki_p; SELECT p1.page_namespace, p1.page_title FROM page AS p1 WHERE p1.page_title NOT LIKE"%/%" AND p1.page_namespace % 2 != 0 AND p1.page_namespace != 3 AND p1.page_namespace != 9 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = p1.page_namespace - 1 AND p1.page_title = p2.page_title);
{"runningtime": "0.42", "resultsets": [{"rowcount": 100, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace", "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_conten...
null
sqwiki orpahned talk pages
null
USE sqwikiquote_p; SELECT p1.page_namespace, p1.page_title FROM page AS p1 WHERE p1.page_title NOT LIKE"%/%" AND p1.page_namespace % 2 != 0 AND p1.page_namespace != 3 AND p1.page_namespace != 9 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = p1.page_namespace - 1 AND p1.page_title = p2.page_ti...
{"runningtime": "399.23", "resultsets": [{"rowcount": 2576, "headers": ["pl_title", "articles"]}]}
null
Indic Wikisource Helpdesk/ActiveUserlist
https://meta.wikimedia.org/wiki/Indic_Wikisource_Helpdesk/ActiveUserlist
USE bnwikisource_p; SELECT CONCAT("# {{target | user =",actor_name,"| site = bn.wikisource.org }}") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE actor_user IS NOT NULL AND page_namespace IN ('0','250','...
{"runningtime": "61.01", "resultsets": [{"rowcount": 0, "headers": ["concat (\"\u0646\u0642\u0627\u0634:\",page_title)"]}]}
null
All orphan files on ko-wiki
null
USE kowiki_p; SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ON p.page_title = i.il_to AND (i.il_from_namespace = 0) LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c2.c...
{"resultsets": [{"headers": ["Title", "user", "comment"], "rowcount": 0}], "runningtime": "0.08"}
null
All orphan non-free files on ko.wiki
null
USE kowiki_p; SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ON p.page_title = i.il_to AND (i.il_from_namespace = 0) LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c2.c...
{"runningtime": "8.41", "resultsets": [{"rowcount": 112, "headers": ["Title", "user", "comment"]}]}
null
Rotlinks von Schweizer Orten mit Kanton-Kürzel (1 von 2)
Schweizer Orte mit Kanton-Kürzel, die einen Rotlink erzeugen und für welche eine Nicht-Begriffsklärungsseite ohne dieses Kürzel existiert.
USE dewiki_p; SELECT STRAIGHT_JOIN src.page_title, pl_title, SUBSTR(pl_title, 1, LENGTH(pl_title) - 3) AS "vorh. Ziel" FROM pagelinks, page AS src WHERE src.page_id = pl_from AND pl_from_namespace = 0 AND pl_title < 'M' AND pl_title REGEXP "_(ZH|BE|LU|UR|SZ|OW|NW|GL|ZG|FR|SO|BS|BL|SH|AR|AI|SG|GR|AG|TG|TI|VD...
{"runningtime": "0.10", "resultsets": [{"rowcount": 4, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]}
null
Rotlinks von Schweizer Orten mit Kanton-Kürzel (2 von 2)
Schweizer Orte mit Kanton-Kürzel, die einen Rotlink erzeugen und für welche eine Nicht-Begriffsklärungsseite ohne dieses Kürzel existiert.
USE dewiki_p; SELECT STRAIGHT_JOIN src.page_title, pl_title, SUBSTR(pl_title, 1, LENGTH(pl_title) - 3) AS "vorh. Ziel" FROM pagelinks, page AS src WHERE src.page_id = pl_from AND pl_from_namespace = 0 AND pl_title >= 'M' AND pl_title REGEXP "_(ZH|BE|LU|UR|SZ|OW|NW|GL|ZG|FR|SO|BS|BL|SH|AR|AI|SG|GR|AG|TG|TI|V...
{"resultsets": [{"headers": ["Tables_in_commonswiki_p"], "rowcount": 99}], "runningtime": "0.45"}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"headers": ["Tables_in_commonswiki_p"], "rowcount": 99}], "runningtime": "0.64"}
null
page_title LIKE "%ncorrect%"
null
USE commonswiki_p; SELECT CONCAT("Category:",page_title,"") FROM page AS page WHERE page_namespace = 14 AND page_title LIKE "%ncorrect%" #AND page_is_redirect = 1 #AND (page_title LIKE "%peopel%" OR page_title LIKE "%Peopel%") LIMIT 399;
{"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 10}], "runningtime": "0.16"}
null
All Images and Metadata from WLM 2019
Joining page, image, and categorylinks to get info about images from a given category
USE commonswiki_p; SELECT * FROM categorylinks #by joining this with the page table we can get the link between image and category Wiki Loves Monuments LEFT JOIN page ON categorylinks.cl_from = page.page_id LEFT JOIN image #by joining page with image table we can get the metadata from the image ON page.page_title=imag...
{"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...
null
Benutzerseiten in Kategorien
Benutzerseiten sollen nicht in Artikelkategorien einsortiert werden.
USE dewiki_p; SELECT page_title AS "Benutzerseite", GROUP_CONCAT(cl_to SEPARATOR ', ') AS "ist in Kategorie(n)" FROM page, categorylinks WHERE page_namespace = 2 AND page_id = cl_from AND cl_to NOT LIKE "Benutzer:%" AND cl_to NOT LIKE "Benutzerin:%" AND cl_to NOT LIKE "User_%" AND cl_to NOT LIKE "Port...
{"connection_id": 216981631}
null
ruwiki: List templates having "," in their names
null
use ruwiki_p; select replace(page_title, "_", " "), page_is_redirect from page where page_namespace = 10 and page_title like '%,%' and page_title rlike '[0-9]+, *[0-9]+'
{"connection_id": 220134840}
null
ORES table
null
use enwiki_p; select * from ores_classification; limit 2;
{"connection_id": 220307296}
null
WLA2020 images in country cat but no tag
null
USE commonswiki_p; SELECT CONCAT("File:", page_title) FROM page JOIN categorylinks ON cl_from = page_id WHERE cl_to IN ( SELECT page_title FROM page JOIN categorylinks ON cl_from = page_id WHERE cl_to = "Images_from_Wiki_Loves_Africa_2020" and cl_type = "subcat" ...
{"resultsets": [{"headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata", "img_bits", "img_media_type", "img_major_mime", "img_minor_mime", "img_description_id", "img_actor", "img_timestamp", "img_sha1"], "rowcount": 10}], "runningtime": "0.11"}
null
أكثر البذور استخداما cat
null
USE arwiki_p; SELECT cl_to,count(cl_from) FROM categorylinks , page where cl_to like 'بذرة_%' and page_namespace = 0 and cl_from = page_id GROUP BY cl_to ORDER BY count(cl_from) DESC limit 500 ;
{"runningtime": "0.74", "resultsets": [{"rowcount": 11, "headers": ["wbx_text", "wbxl_language", "wby_name"]}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"connection_id": 254381553}
null
check for unknown iso 3166-1 code
null
use dewiki_p; select gt_lat, gt_lon, gt_page_id, gt_name, (select page_title from page where page_id = gt_page_id) as title,gt_country from geo_tags where gt_country not in ( 'XA', 'XI', 'XN', 'XO', 'XP', 'XS', 'AF','AX','AL','DZ','AS','AD','AO','AI','AQ','AG','AR','AM','AW','AU','AT','AZ','BS','BH','BD','BB','BY','...
{"connection_id": 254389374}
null
trwiki total article count
null
use trwiki_p; select count(*) as total from page where page_namespace = 0 and not page_is_redirect;
{"connection_id": 254587926}
null
Select all categories for all images in WLM 2019
null
USE commonswiki_p; SELECT * FROM categorylinks #by joining this with the page table we can get the link between image and category Wiki Loves Monuments LEFT JOIN page ON categorylinks.cl_from = page.page_id LEFT JOIN image #by joining page with image table we can get the metadata from the image ON page.page_title=imag...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 15}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 8}], "runningtime": "15.44"}
null
:( Bad links from wikis to commons: disambigs
-bad performance of query :(
#USE dewiki_p; #USE dewikiquote_p; #USE dewikisource_p; #USE dewikivoyage_p; #USE enwiki_p; #USE frwiki_p; #USE itwiki_p; USE nlwiki_p; #USE svwiki_p; #USE commonswiki_p; #USE metawiki_p; #USE mediawikiwiki_p; #USE specieswiki_p; SET @w = LEFT (DATABASE(), LENGTH(DATABASE()) - 2); SET @l = (SELECT lang FROM meta_p.wiki...
{"connection_id": 296580111}
null
Wikidata items of pages with Find a Grave links
null
SELECT DISTINCT page.page_title, externallinks.el_to, page_props.pp_value FROM externallinks INNER JOIN page ON externallinks.el_from = page.page_id INNER JOIN page_props ON page.page_id = page_props.pp_page WHERE externallinks.el_to LIKE "http://www.findagrave.com/cgi-bin/fg.cgi%" AND page.page_namespace = 0 AND page_...
{"resultsets": [{"headers": ["\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u0648\u0636\u064a\u062d", "\u0639\u062f\u062f \u0627\u0644\u0648\u0635\u0644\u0627\u062a"], "rowcount": 100}], "runningtime": "56.43"}
null
أكثر البذور استخداما cat
null
USE arwiki_p; SELECT concat("تصنيف:", page_title) FROM page where page_namespace = 14 and page_title like "بذرة_%" and page_id not in ( SELECT cl_from from categorylinks where cl_to = "تصنيفات_مخفية" and cl_from = page_id ) ;
{"runningtime": "8.45", "resultsets": [{"rowcount": 47, "headers": ["rev_user_text", "recent_user_editcount"]}]}
null
en DBR Uncategorized categories
null
use enwiki_p; SELECT page_title, cat_pages FROM (SELECT page_id, page_title, page_len, cat_pages FROM category RIGHT JOIN page ON cat_title = page_title LEFT JOIN categorylinks ON page_id = cl_from WHERE cl_from IS NULL AND page_namespace = 14 AND page_is_redirect = 0) AS pagetmp ON rev...
{"resultsets": [{"headers": ["REPLACE(page_title,'_',' ')", "COUNT(*)"], "rowcount": 2794}], "runningtime": "15.57"}
null
en DBR Uncategorized categories
null
use enwiki_p; SELECT page_title, page_len, cat_pages, rev_timestamp ,rev_actor /* ,rev_user_text */ FROM revision JOIN (SELECT page_id, page_title, page_len, cat_pages FROM category RIGHT JOIN page ON cat_title = page_title LEFT JOIN categorylinks ON page_id = cl_from WHERE cl_fro...
{"resultsets": [{"headers": ["file", "img_creation"], "rowcount": 0}], "runningtime": "0.16"}
null
emma
null
null
{"resultsets": [{"headers": ["page_title"], "rowcount": 1000}], "runningtime": "66.10"}
null
billiards
null
null
{"runningtime": "7.21", "resultsets": [{"rowcount": 747, "headers": ["CONCAT(\"File:\", page_title)"]}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_...
null
Links from Familyname to Disambiguation pages , de
null
USE dewiki_p; SELECT pl_from, pl_title FROM page , categorylinks as cl1, categorylinks as cl2, pagelinks Where cl2.cl_to = 'Begriffsklärung' AND cl2.cl_from= page_id AND pl_title=page_title AND pl_from_namespace = 0 AND pl_namespace = 0 AND cl1.cl_to = 'Familienname' AND cl1.cl_from= pl_from Limit...
{"connection_id": 329784549}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"headers": ["page_title"], "rowcount": 25}], "runningtime": "5.99"}
null
GA/FA and GAN/FAC linked from May 4
GA/FA and GAN/FAC linked from [[May 4]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 0}], "runningtime": "0.09"}
null
UNC
null
USE commonswiki_p; SELECT concat('File:', p.page_title) AS fqp FROM page p LEFT JOIN templatelinks ON tl_title IN ('Uncategorized', 'Uncategorized-Geograph', 'Check_categories', 'Uncategorized-PIB', 'Uncategorized-Polona') AND tl_namespace = 10 AND page_id = tl_from LEFT JOIN categorylinks ON page_i...
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 10}], "runningtime": "0.09"}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
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...
{"connection_id": 343251048}
null
মোট সম্পাদনার সংখ্যা
১ এপ্রিল ২০২০। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে HTML ক্লিক করুন।
USE bnwiki_p; SET @counter:=0; SELECT CONCAT("}}{{subst:সসংঅউতা|",@counter:=@counter+1,"") AS rank, CONCAT("|",user_name,"|") AS user_name, user_editcount FROM user WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot') AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)" ORDER BY user_editcount DESC...
{"runningtime": "164.34", "resultsets": [{"rowcount": 60, "headers": ["page_namespace", "page_title"]}, {"rowcount": 44, "headers": ["page_namespace", "page_title"]}, {"rowcount": 13, "headers": ["page_namespace", "page_title"]}, {"rowcount": 9, "headers": ["page_namespace", "page_title"]}, {"rowcount": 37, "headers": ...
null
Most active users by edits on bnwiki in last 3 months
null
USE bnwiki_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount/*, user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace = 0 AND actor_user IS NOT NULL AND r...
{"connection_id": 343268013}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
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": ["page_namespace", "page_title"], "rowcount": 60}, {"headers": ["page_namespace", "page_title"], "rowcount": 44}, {"headers": ["page_namespace", "page_title"], "rowcount": 13}, {"headers": ["page_namespace", "page_title"], "rowcount": 9}, {"headers": ["page_namespace", "page_title"], "rowcou...
null
Most active users by edits on bnwiki in last 3 months
null
USE bnwiki_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount/*, user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace = 0 AND actor_user IS NOT NULL AND r...
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 60}, {"headers": ["page_namespace", "page_title"], "rowcount": 44}, {"headers": ["page_namespace", "page_title"], "rowcount": 13}, {"headers": ["page_namespace", "page_title"], "rowcount": 9}, {"headers": ["page_namespace", "page_title"], "rowcou...
null
Scrape OTRS
null
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P6305', concat('"',REPLACE(el_to,'https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=',''),'"') AS OTRS, CONCAT("File:",page_title) #'/* extracted from {{PermissionOTRS}} template */' FROM page JOIN externallinks ON page_id = ...
{"runningtime": "0.82", "resultsets": [{"rowcount": 23, "headers": ["concat(\"* {{configuration list entry|\",replace(page_title,\"$\",\"\"),\"}}\")"]}]}
null
Number of edits in ltwikisource
null
USE bnwikisource_p; SET @w:=0; SET @s:=0; SELECT @w:=@w+1 AS 'Pos.',`Number of edits`,`User`,@s:=@s+`Number of edits` AS 'Cumulatively' FROM (SELECT user_name AS 'User', COUNT(*) AS 'Number of edits' FROM actor JOIN revision ON rev_actor=actor_id JOIN user ON actor_user=user_id JOIN page ON rev_page=page_id WHERE ...
{"resultsets": [{"headers": ["concat(\"* {{configuration list entry|\",replace(page_title,\"$\",\"\"),\"}}\")"], "rowcount": 99}], "runningtime": "1.76"}
null
Rjwilmsi edits in the last month to structure {{cite journal}}
Query which tries to capture edit summaries like: *"Journal cites:," *"templated 3 journal cites", *"Added 14 dois to journal cites" *"Journal cites:, templated 3 journal cites"
USE enwiki_p; SELECT rev_id FROM revision_compat WHERE rev_actor = 4246 AND rev_id > 95400000 AND rev_timestamp > DATE(NOW() - INTERVAL 1 MONTH) AND rev_comment LIKE "%ournal%";
{"runningtime": "0.62", "resultsets": [{"rowcount": 48, "headers": ["concat(\"* {{configuration list entry|\",replace(page_title,\"$\",\"\"),\"}}\")"]}]}
null
OAbot tool users and diffs
null
USE enwiki_p; SELECT rev_actor, count(rev_id) AS count, GROUP_CONCAT(rev_id) AS diffs FROM revision -- Hardcoded IDs from manual comment table queries in batches of 50M rows -- select comment_id from comment where comment_id > 100000000 and comment_id < 150000000 and comment_text LIKE "Added free to read link in citati...
{"connection_id": 348332641}
null
Retrieving articles lacking sources
null
USE enwiki_p; SELECT page_title FROM categorylinks LEFT JOIN page ON cl_from = page_id WHERE cl_to LIKE 'Articles_lacking_sources' AND page_namespace = 0
{"runningtime": "2.68", "resultsets": [{"rowcount": 8, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
Danna-patrol check2
null
set @date = "20200501"; use hewiki_p; select count(*) from logging_userindex join actor on log_actor = actor_id where actor_user = 37537 and log_type = "patrol" and not log_action = "autopatrol" and log_timestamp like concat(@date, "%")
{"resultsets": [{"headers": ["line"], "rowcount": 375}], "runningtime": "11.23"}
null
Hindi Wikisource Page: activity 1st May 2020 to 10th May 2020
null
USE hiwikisource_p; SELECT CONCAT("# {{target | user =",actor_name,"| site = hi.wikisource.org }}") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount /*user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE actor_user IS NOT NULL AND page_namespace IN ('0','250','...
{"runningtime": "2.07", "resultsets": [{"rowcount": 9, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 5, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
Users with more than 30 edits in KSA Wikiproject Articles in last 3 months (arwiki)
null
USE arwiki_p; SELECT actor_name, count(rev_actor) FROM revision JOIN actor ON actor_id = rev_actor INNER JOIN page article ON article.page_id = rev_page AND article.page_namespace = 0 INNER JOIN page talk ON talk.page_title = article.page_title AND talk.page_namespace = 1 INNER JOIN categorylinks ON cl_fr...
{"runningtime": "9.65", "resultsets": [{"rowcount": 2144, "headers": ["REPLACE(page_title,'_',' ')", "COUNT(*)"]}]}
null
A magyar Wikipédia mérete
https://hu.wikipedia.org/wiki/Szerkesztő:Samat/A_magyar_Wikipédia_mérete
USE huwiki_p; /* Real data */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page_id) AS articles, AVG(page_len) AS 'average (B)' FROM page WHERE page_namespace = 0 AND page_is_redirect = 0; /* With redirects */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page...
{"resultsets": [{"headers": ["page_title"], "rowcount": 19}], "runningtime": "0.17"}
null
Indefinitely protected templates without many transclusions
null
USE enwiki_p; SELECT page_title, COUNT(*) FROM page JOIN templatelinks ON tl_namespace = page_namespace AND tl_title = page_title JOIN page_restrictions ON pr_page = page_id WHERE page_namespace = 10 AND pr_type = 'edit' AND pr_level = 'sysop' AND pr_expiry = 'infinity' GROUP BY page_namespace, page_title HAVING CO...
{"resultsets": [{"headers": ["page_title"], "rowcount": 500}], "runningtime": "193.73"}
null
Percent of bot edits in previous month (enwiki, articles only)
null
select rc_bot as is_bot, count(*) as edits, (COUNT(*) / (SELECT COUNT(*) FROM enwiki_p.recentchanges where rc_namespace = 0)) * 100 AS 'Percentage of all edits' from enwiki_p.recentchanges where rc_namespace = 0 group by 1;
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 8}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 4}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 4}], "runningtime": "10.22"}
null
test
null
select page_title, page_touched from page order by 2 desc limit 10
{"resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}], "runningtime": "1.26"}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"connection_id": 354336995}
null
Scrape OTRS2
null
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P6305', el_to, CONCAT("File:",page_title) #'/* extracted from {{PermissionOTRS}} template */' FROM page JOIN externallinks ON page_id = el_from AND el_to LIKE 'https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=%' JOIN catego...
{"connection_id": 354585484}
null
Proofread Page last one year active user
null
USE mlwikisource_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount/*, user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace = 104 AND actor_user IS NOT NUL...
{"resultsets": [{"headers": ["MID", "P6305", "OTRS", "CONCAT(\"File:\",page_title)"], "rowcount": 25000}], "runningtime": "884.80"}
null
mlwikisource last 4 month Page: activity
null
USE mlwikisource_p; SELECT CONCAT("#") AS number, actor_user, CONCAT("[[user:",actor_name,"|",actor_name,"]]") AS rev_user_text, COUNT(actor_id) AS recent_user_editcount/*, user_editcount*/ FROM revision JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace = 106 AND actor_user IS NOT NUL...
{"connection_id": 355415212}
null