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
null
{"runningtime": "0.34", "resultsets": [{"rowcount": 50, "headers": ["cat_title", "cat_pages-cat_subcats"]}]}
null
××××××
null
null
{"runningtime": "0.27", "resultsets": [{"rowcount": 50, "headers": ["cat_title", "cat_pages-cat_subcats"]}]}
null
×××××××××××
null
null
{"runningtime": "0.32", "resultsets": [{"rowcount": 50, "headers": ["cat_title", "cat_pages-cat_subcats"]}]}
null
××××××××
null
null
{"runningtime": "0.36", "resultsets": [{"rowcount": 50, "headers": ["cat_title", "cat_pages-cat_subcats"]}]}
null
××××××××××
null
null
{"runningtime": "0.14", "resultsets": [{"rowcount": 18, "headers": ["cat_title", "cat_pages-cat_subcats"]}]}
null
××××××××××
null
null
{"runningtime": "0.43", "resultsets": [{"rowcount": 18, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××××××××
null
null
{"runningtime": "0.47", "resultsets": [{"rowcount": 27, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××××
null
null
{"runningtime": "0.26", "resultsets": [{"rowcount": 21, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××××
null
null
{"runningtime": "0.35", "resultsets": [{"rowcount": 46, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××××
null
null
{"runningtime": "0.44", "resultsets": [{"rowcount": 54, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××
null
null
{"runningtime": "0.17", "resultsets": [{"rowcount": 7, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××××
null
null
{"runningtime": "0.38", "resultsets": [{"rowcount": 12, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××
Redirects starting with a certain char
null
{"runningtime": "0.27", "resultsets": [{"rowcount": 8, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××
null
null
{"runningtime": "0.09", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××××
null
null
{"runningtime": "0.37", "resultsets": [{"rowcount": 2, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××××××
null
null
{"runningtime": "0.17", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××
null
null
{"runningtime": "0.18", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××
null
null
{"runningtime": "0.11", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××××
null
null
{"runningtime": "0.14", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××
null
null
{"runningtime": "0.29", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××××××
null
null
{"runningtime": "0.14", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××
null
null
{"runningtime": "0.14", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××
null
null
{"runningtime": "0.09", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××××
null
null
{"runningtime": "0.12", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××××
null
null
{"runningtime": "0.21", "resultsets": [{"rowcount": 16, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××××
null
null
{"runningtime": "0.21", "resultsets": [{"rowcount": 0, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××××
null
null
{"runningtime": "0.20", "resultsets": [{"rowcount": 17, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××××
null
null
{"runningtime": "0.33", "resultsets": [{"rowcount": 33, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××××
null
null
{"runningtime": "0.50", "resultsets": [{"rowcount": 43, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××
null
null
{"runningtime": "0.51", "resultsets": [{"rowcount": 55, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××××
null
null
{"runningtime": "0.27", "resultsets": [{"rowcount": 5, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××
null
null
{"runningtime": "0.55", "resultsets": [{"rowcount": 48, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
××××××××
null
null
{"runningtime": "0.28", "resultsets": [{"rowcount": 3, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
×××××××××
null
null
{"runningtime": "0.40", "resultsets": [{"rowcount": 17, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
ֽֽֽֽֽֽ×××××××××××
null
null
{"runningtime": "0.39", "resultsets": [{"rowcount": 26, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Klammerlemmata als Weiterleitungen (möglicher Verschieberest)
Klammerlemmata ohne Verlinkung aus dem ANR, bei denen der letzte Änderungskommentar das Wort "verschob" enthält, also höchstwahrscheinlich Verschiebereste.
use dewiki_p; SELECT page_title AS "Weiterleitungsseite", comment_text AS "Änderungskommentar" FROM page LEFT JOIN revision ON rev_page = page_id AND rev_id = page_latest LEFT JOIN comment on rev_comment_id = comment_id WHERE NOT EXISTS ( SELECT 1 FROM pagelinks WHERE pl_na...
{"runningtime": "0.70", "resultsets": [{"rowcount": 54, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Klammerlemmata als Weiterleitungen (möglicher Verschieberest)
Klammerlemmata ohne Verlinkung aus dem ANR, bei denen der letzte Änderungskommentar das Wort "verschob" enthält, also höchstwahrscheinlich Verschiebereste.
use dewiki_p; SELECT page_title AS "Weiterleitungsseite", comment_text AS "Änderungskommentar" FROM page LEFT JOIN revision ON rev_page = page_id AND rev_id = page_latest LEFT JOIN comment on rev_comment_id = comment_id WHERE NOT EXISTS ( SELECT 1 FROM pagelinks WHERE pl_na...
{"runningtime": "0.42", "resultsets": [{"rowcount": 18, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Articles created in Ukrainian Wikiquote in certain period
null
SELECT P.page_title, R.rev_timestamp FROM ukwikiquote_p.revision R JOIN ukwikiquote_p.page P ON R.rev_page = P.page_id WHERE R.rev_parent_id = 0 AND P.page_namespace = 0 AND (R.rev_timestamp >= 20200401000000 AND R.rev_timestamp < 20200601000000) ORDER BY R.rev_timestamp ASC
{"runningtime": "0.12", "resultsets": [{"rowcount": 6, "headers": ["cl_to"]}]}
null
AfC accepts/declines per submitter (1 day)
null
use enwiki_p; select count(rc_id) as reviews, rc_title, count(rc_id) - SUM(comment_text like "%declined ([[WP:AFCH|AFCH]] 0.9.1)") as "accepted", concat(round(SUM(comment_text not like "declined ([[WP:AFCH|AFCH]] 0.9.1)") * 100 / count(rc_id), 1), "%") as "accept %", SUM(comment_text like "%declined...
{"runningtime": "0.21", "resultsets": [{"rowcount": 22, "headers": ["grand_grand_parent_title", "grand_grand_parent_subcats", "grand_parent_title", "grand_parent_subcats", "parent_title", "parent_subcats", "child_title"]}]}
null
Talk pages of deleted articles on mrwp
null
use mrwiki_p; SELECT CONCAT("# [[चर्चा:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 1 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 0 AND p1.page_title = p2.page_title)
{"connection_id": 126459511}
null
Λήμματα που δεν ανήκουν σε κατηγορία
null
USE elwiki_p; SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT p.page_id FROM page p INNER JOIN categorylinks cl ON cl.cl_from = p.page_id INNER JOIN page p2 ON cl.cl_to = p2.page_title AND p2.page_namespace = 14 # 14 = Category LEFT JOIN page_props pp ON pp.pp_p...
{"runningtime": "4.11", "resultsets": [{"rowcount": 6, "headers": ["linter_cat", "count(*)"]}]}
null
Wikidata Qids by category on plwiki
null
USE plwiki_p; SELECT pp_value, page_title FROM page LEFT JOIN page_props AS pp ON pp_page = page_id LEFT JOIN categorylinks AS cl ON cl_from = page_id WHERE cl_to = "Rezerwaty_przyrody_w_województwie_łódzkim" AND pp_propname = "wikibase_item";
{"runningtime": "282.99", "resultsets": [{"rowcount": 25000, "headers": ["MID", "P6305", "OTRS", "CONCAT(\"File:\",page_title)"]}]}
null
أكثر البذور استخداما temp
null
USE arwiki_p; SELECT tl_title, count(tl_title) FROM templatelinks LEFT JOIN page ON page_namespace = 10 AND page_title = tl_title WHERE tl_from_namespace = 0 AND tl_namespace = 10 and page_title like "بذرة%" /*AND EXISTS ( SELECT NULL FROM categorylinks WHERE cl_from = pag...
{"runningtime": "242.74", "resultsets": [{"rowcount": 16782, "headers": ["MID", "P6305", "OTRS", "CONCAT(\"File:\",page_title)"]}]}
null
1
null
USE trwiki_p; SELECT pl_title, COUNT(pl_title) AS counting FROM pagelinks, page WHERE pl_from = page_id AND pl_from_namespace = 10 AND pl_namespace = 0 AND NOT EXISTS (SELECT * FROM page AS p1 WHERE p1.page_title = pl_title AND pl_namespace = 0 AND p1.page_namespace = 0) GROUP BY pl_title HAVING counting > 0 ORDER BY c...
{"runningtime": "2.20", "resultsets": [{"rowcount": 6, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 2, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
Pages, that don't have arabic label at Wikidata daily (NEW)
http://quarry.wmflabs.org/query/5774
use wikidatawiki_p; select CONCAT("Q",ips_item_id), CONCAT("Lar"), CONCAT('"',ips_site_page,'"') from wb_items_per_site where ips_site_id='arwiki' and ips_item_id not in ( SELECT wbit_item_id FROM wbt_item_terms INNER JOIN wbt_term_in_lang tt ON wbit_term_in_lang_id = tt.wbtl_id INNER JOIN wbt_text_in_lang ...
{"runningtime": "0.99", "resultsets": [{"rowcount": 0, "headers": ["page_title", "page_namespace"]}]}
null
sortkey prefix صفحات_توضيح_بها_وصلات_بحاجة_لوصف
null
use arwiki_p; select page_title, cl_sortkey_prefix, COUNT(*) #page_namespace, page_title, cl_sortkey_prefix, COUNT(*) from categorylinks join page on cl_from = page_id where cl_to = "صفحات_توضيح_بها_وصلات_بحاجة_لوصف" group by cl_sortkey_prefix having count(*) > 1 ORDER BY COUNT(*) DESC #imit 100 ;
{"runningtime": "106.57", "resultsets": [{"rowcount": 713, "headers": ["CONCAT(\"# [[\",REPLACE(article.page_title,\"_\",\" \"),\"]] [[en:\",REPLACE(article.page_title,\"_\",\" \"),\"]]\")"]}]}
null
Mainspace non-redirects with curly singlequotes
For [[WP:VPT#articles with curly quotes in title]] circa 3 July 2020.
SELECT page_title FROM page WHERE page_namespace = 0 -- article namespace only AND page_is_redirect = 0 -- non-redirects AND page_title RLIKE "‘|’|`|´";
{"runningtime": "207.52", "resultsets": [{"rowcount": 1153, "headers": ["rev_actor", "edits"]}]}
null
وپ:دار، بر پایه > اقتباس، بدون استفاده از میان‌ویکی
22
USE fawiki_p; SELECT concat('* [[:رده:',REPLACE(page_title,'_',' '),']] > [[:رده:',REPLACE(REPLACE(page_title,'_',' '),'بر پایه کارهای','اقتباس شده از آثار'),']]') #SELECT concat('* [[:رده:',REPLACE(page_title,'_',' '),']] > [[:رده:',REPLACE(REPLACE(page_title,'_',' '),'بر پایه آثار','اقتباس شده از آثار'),']]') FROM pa...
{"connection_id": 222718310}
null
Wikimedia database name list
null
use meta_p; SELECT dbname, url FROM wiki;
{"runningtime": "0.31", "resultsets": [{"rowcount": 58, "headers": ["page_namespace", "page_title"]}]}
null
zhwikt templatelinks for Template:zhushi
null
USE zhwiktionary_p; SELECT page_title # CONCAT(': {{ns:', page_namespace, '}}:', page_title) FROM templatelinks LEFT JOIN page ON tl_from = page_id WHERE tl_namespace = 10 AND tl_title = 'zhushi' AND page_namespace = 0 limit 10000
{"connection_id": 24323565}
null
Wikidata Qids by category on plwiki (articles only)
null
USE plwiki_p; SELECT pp_value, page_title, page_namespace FROM page LEFT JOIN page_props ON pp_page = page_id LEFT JOIN categorylinks ON cl_from = page_id WHERE cl_to = "Odznaczeni_odznaką_„Honoris_Gratia”" AND pp_propname = "wikibase_item" AND page_namespace = 0;
{"runningtime": "0.56", "resultsets": [{"rowcount": 1, "headers": ["actor_id"]}]}
null
Count of deleted edits for List of sex symbols
null
USE enwiki_p; select count(*) from archive where ar_namespace = 0 and ar_title = 'List_of_sex_symbols';
{"connection_id": 235986502}
null
Statistics of editing MediaWiki JS/CSS in ruwiki (users)
null
USE ruwiki_p; SELECT actor_name, COUNT(actor_name), page_title, -- и где, rev_timestamp -- и когда, -- если много - отображается случайная FROM revision JOIN page ON page_id = rev_page JOIN actor ON rev_actor = actor_id WHERE rev_timestamp >= "20190101" AND page_namespace = 8 AND (page_tit...
{"connection_id": 238355341}
null
Ungesichtete Änderungen mit Kommentar "Inhalt hinzugefügt"
null
USE dewiki_p; SELECT page_title FROM flaggedpage_pending JOIN page ON fpp_page_id = page_id JOIN revision ON page_latest = rev_id JOIN comment ON rev_comment_id = comment_id AND comment_text like "Inhalt hinzugefügt" LIMIT 50
{"runningtime": "0.46", "resultsets": [{"rowcount": 78, "headers": ["img name", "img height", "file name", "version name"]}]}
null
WikiGap 2020 New
List of articles created for the Investigative Journalism Week on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name, COUNT(1) AS created, SUM(article.page_len) as...
{"runningtime": "0.78", "resultsets": [{"rowcount": 10, "headers": ["count(*)", "cl_to"]}]}
null
Modules by creation date
null
select concat("Module:",page_title) from page where page_namespace=828 and page_title not like "Location_map/data/%" and page_title not like "Sandbox/%" and page_title not like 'Adjacent_stations/%' and page_title not like "%/doc" and page_title not like "%/sandbox%" and page_title not like "%/testcases" order by page...
{"runningtime": "0.13", "resultsets": [{"rowcount": 10, "headers": ["page_title"]}]}
null
sortkey prefix صفحات_توضيح_بها_وصلات_بحاجة_لوصف
null
use arwiki_p; select page_title, cl_sortkey_prefix, COUNT(*) #page_namespace, page_title, cl_sortkey_prefix, COUNT(*) from categorylinks join page on cl_from = page_id where cl_to = "صفحات_توضيح_بها_وصلات_بحاجة_لوصف" group by cl_sortkey_prefix having count(*) > 1 ORDER BY COUNT(*) DESC #imit 100 ;
{"runningtime": "1.40", "resultsets": [{"rowcount": 10, "headers": ["CONCAT('Template:' , p1.page_title)", "replace (p1.page_title, \"_coach_navbox\", \"\")", "ll_title"]}]}
null
List of members of the United States House of LINT
Based on query: https://quarry.wmflabs.org/query/31876
select page_title, linter.* from linter join page on page.page_id = linter.linter_page where page.page_namespace=0 and page_title LIKE 'List_of_members_of_the_United_States_House_of_Representatives%' order by page_title;
{"runningtime": "74.48", "resultsets": [{"rowcount": 175, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]}
null
ملحوظية غير مراجعة
null
use arwiki_p; select page_title from page where page.page_namespace=0 And page.page_id in (select tl_from from templatelinks where tl_title = 'ملحوظية') And page.page_id in (select tl_from from templatelinks where tl_title = 'مقالة_غير_مراجعة') limit 50;
{"connection_id": 356576938}
null
Pages that don't have Malayalam label at Wikidata
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), CONCAT("Lml"), CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='mlwiki' AND NOT EXISTS ( SELECT 1 FROM wb_terms WHERE CONCAT("Q", ips_item_id) = term_full_entity_id AND term_type = "label" AND term_language='ml' LIMIT 1 ) #LIMIT 500 ;
{"runningtime": "3.05", "resultsets": [{"rowcount": 1, "headers": ["actor_id", "actor_user", "actor_name"]}, {"rowcount": 1000, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"]}, {"rowcount": 6, "headers": ["page_t...
null
Stub articles in Telugu Wikipedia
to find మొలక వ్యాసాలు కనుగొనేందుకు
use hiwiki_p; Select Count(*) from page where page_namespace = 0 and page_is_redirect =0 and page_len < 2048
{"runningtime": "12.92", "resultsets": [{"rowcount": 23, "headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"]}]}
null
Wikipages without info Box
null
USE tewiki_p; SELECT page_title FROM page, imagelinks WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT il_from FROM imagelinks WHERE il_from_namespace = 0 GROUP BY(il_from) ) AND ( NOT EXISTS( SELECT 1 FROM commonswiki_p.page WHERE page_...
{"runningtime": "26.89", "resultsets": [{"rowcount": 0, "headers": ["fa_id", "fa_name", "fa_archive_name", "fa_storage_group", "fa_storage_key", "fa_deleted_user", "fa_deleted_timestamp", "fa_deleted_reason_id", "fa_size", "fa_width", "fa_height", "fa_metadata", "fa_bits", "fa_media_type", "fa_major_mime", "fa_minor_mi...
null
Wrong links in articles on mlwiki
null
USE mlwiki_p; SELECT CONCAT("# [[",page_title,"]]") AS page_title, CONCAT("[[",pl_title,"]]") AS pl_title FROM pagelinks, page WHERE pl_title NOT LIKE '%(%)%' AND pl_title NOT LIKE '%:)%' AND pl_title NOT LIKE '%:-)%' AND pl_title NOT LIKE '%)))%' AND pl_title NOT LIKE '%Pre)Thing%' AND pl_title = page_id AND pl_from_n...
{"runningtime": "0.11", "resultsets": [{"rowcount": 11, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]}
null
Pages that don't have Ml label in Wikidata
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), CONCAT("Lml"), CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='mlwiki' AND NOT EXISTS ( SELECT 1 FROM wb_terms WHERE CONCAT("Q", ips_item_id) = term_full_entity_id AND term_type = "label" AND term_language='Lml' LIMIT 1 ) LIMIT 10000 ;
{"runningtime": "0.83", "resultsets": [{"rowcount": 1, "headers": ["user", "img_count", "user_registration"]}, {"rowcount": 1, "headers": ["Overall image count for above users"]}, {"rowcount": 1, "headers": ["user", "img_name"]}]}
null
find categories where cat_pages = 1
null
USE commonswiki_p; SELECT CONCAT('# [[File:',page_title,']]') AS file_title FROM page INNER JOIN categorylinks ON page_id=cl_from WHERE page_namespace = 6 AND cl_to LIKE "All_media_needing_categories_as_of_2015" #GROUP BY page_title ORDER BY page_title DESC LIMIT 26000;
{"runningtime": "5814.31", "resultsets": [{"rowcount": 2077077, "headers": ["page_title", "pp_value"]}]}
null
Finding the last 10,000 moves to Draft: by script
null
SELECT log.log_timestamp AS `time`, act.actor_name AS `user`, log.log_title AS `page`, log.log_params AS `parameters`, cmt.comment_text AS `comment` FROM logging AS log LEFT JOIN actor AS act ON log.log_actor = act.actor_id LEFT JOIN comment AS cmt ON log.log_comment_id = cmt.comment_id WHERE log.log_type = 'move'...
{"connection_id": 246824276}
null
Categoría:ES:Locuciones verbales not on English Wiktionary
null
select eswiktionary_p.page.page_title as title from eswiktionary_p.categorylinks join eswiktionary_p.page on page_id = cl_from where eswiktionary_p.categorylinks.cl_to = "ES:Locuciones_verbales" and not(exists(select 1 from enwiktionary_p.page where page_title = eswiktionary_p.page.page_title));
{"runningtime": "0.55", "resultsets": [{"rowcount": 23, "headers": ["date", "images"]}]}
null
InternationalObservancesAllIt_ids
null
use wikidatawiki_p; SELECT CURRENT_DATE; DESCRIBE wb_items_per_site; SELECT * FROM wb_items_per_site WHERE ips_item_id in ( "1233960", "4996240", "1183552", "1667747", "3521991", "1302655", "4158133", "965132", "1766381", "4127377", "1558616", "5146529", "5242904", "5242972", "3848232", "5368985", "4...
{"runningtime": "0.09", "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"]}]}
null
wikidata: deleted items that are still linked
null
USE wikidatawiki_p; SELECT DISTINCT logging.log_title, COUNT(pagelinks.pl_from) AS backlinks, actor_logging.actor_name, logging.log_timestamp FROM logging JOIN pagelinks ON logging.log_title=pagelinks.pl_title AND logging.log_namespace=pagelinks.pl_namespace JOIN actor_logging O...
{"runningtime": "0.46", "resultsets": [{"rowcount": 5, "headers": ["Wiki", "Commons", "img_timestamp", "log_timestamp", "log_type"]}]}
null
hivatkozott nem létező sablonok
null
use huwiki_p; SELECT pl_title, COUNT(pl_title) AS hivas_db FROM pagelinks left JOIN page ON pl_title = page_title where pl_namespace=10 and pl_from_namespace=0 and page.page_title IS NULL GROUP BY pl_title ORDER BY hivas_db DESC LIMIT 2;
{"runningtime": "0.03", "resultsets": []}
null
مستخدمون يلزمهم صلاحية مسترجع
null
use arwiki_p; select actor_user_text as "اسم المستخدم", COUNT(*) as "عدد عمليات الرجوع" from revision inner join comment on comment_id = rev_comment_id where rev_timestamp between SUBDATE(NOW(),100) and NOW() and (comment_text like "%رجوع%") and rev_user not in (select ug_user from user_groups where ug_user= rev_user a...
{"connection_id": 339395095}
null
مستخدمون يلزمهم صلاحية مسترجع
null
use arwiki_p; select actor_user_text as "اسم المستخدم", COUNT(*) as "عدد عمليات الرجوع" from revision inner join comment on comment_id = rev_comment_id where rev_timestamp between SUBDATE(NOW(),100) and NOW() and (comment_text like "%رجوع%") and rev_user not in (select ug_user from user_groups where ug_user= rev_user a...
{"runningtime": "111.50", "resultsets": [{"rowcount": 32175, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang", "cl_from", "cl_to", "cl_sortkey",...
null
مستخدمون يلزمهم صلاحية مسترجع
null
use arwiki_p; select actor_user_text as "اسم المستخدم", COUNT(*) as "عدد عمليات الرجوع" from revision inner join comment on comment_id = rev_comment_id where rev_timestamp between SUBDATE(NOW(),100) and NOW() and (comment_text like "%رجوع%") and rev_user not in (select ug_user from user_groups where ug_user= rev_user a...
{"runningtime": "0.21", "resultsets": [{"rowcount": 4, "headers": ["dbname", "replag"]}]}
null
مقالات مختارة بحاجة لنجمة في ويكي بيانات
null
use arwiki_p; select page_title from categorylinks inner join page on page_id = cl_from where cl_to = "مقالات_مختارة" and page_namespace = 0 and page_is_redirect = 0 and cl_from not in (select pp_page from page_props where pp_propname like "wikibase-badge%" and pp_page = cl_from);
{"runningtime": "0.09", "resultsets": [{"rowcount": 4, "headers": ["dbname", "replag"]}]}
null
مستخدمون يحملون صلاحيات متضادة
null
use arwiki_p; select user_name from user where user_id in (select ug_user from user_groups where ug_group = "rollbacker") and user_id in (select ug_user from user_groups where ug_group = "autoreview") limit 10;
{"runningtime": "2.03", "resultsets": [{"rowcount": 8, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 3, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]}
null
trwiki:SASes closed as delete but article redlinks preserved
null
USE trwiki_p; SELECT pl_title, COUNT(pl_title) AS counting FROM pagelinks JOIN page p ON pl_from = p.page_id INNER JOIN page p2 ON pl_title=SUBSTRING(p2.page_title,25) AND pl_namespace = 0 AND p2.page_namespace = 4 AND p2.page_title LIKE "Silinmeye_aday_sayfalar/%" WHERE pl_from_namespace = 0 AND pl_namespace ...
{"runningtime": "0.09", "resultsets": [{"rowcount": 5, "headers": ["actor_id", "actor_user", "actor_name"]}]}
null
trwiki:Uncategorized articles
null
use trwiki_p; select CONCAT('# [[',page_title,']]') as page_title from page left outer join categorylinks on cl_from = page_id where cl_from is null AND page_id NOT IN (SELECT rd_from FROM redirect WHERE rd_from = page_id) and page_namespace = 0;
{"runningtime": "0.13", "resultsets": [{"rowcount": 19, "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_ti...
null
trwiki:Articles only in hidden categories
null
USE trwiki_p; SELECT CONCAT('# [[',p1.page_title,']]') AS page_title FROM page p1 LEFT OUTER JOIN categorylinks ON cl_from = p1.page_id LEFT JOIN page p2 ON cl_to = p2.page_title AND p2.page_namespace = 14 LEFT JOIN page_props ON p2.page_id = pp_page AND pp_propname = 'hiddencat' WHERE p1.page_namespace = 0 AND p1.page...
{"runningtime": "165.90", "resultsets": [{"rowcount": 82, "headers": ["Lp", "Liczba edycji", "U\u017cytkownik", "Narastaj\u0105co"]}, {"rowcount": 1, "headers": ["Og\u00f3lna liczba edycji"]}]}
null
trwiki:Linkings to unexisting categories
null
USE trwiki_p; SELECT CONCAT('# [[',page_title,']]') AS page_title FROM page, pagelinks WHERE page_id = pl_from AND pl_from_namespace = 0 AND pl_namespace = 14 AND NOT EXISTS (SELECT p1.page_title FROM page AS p1 WHERE pl_title = p1.page_title AND p1.page_namespace = 14) /*AND EXISTS (SELECT * FROM page AS p1, templatel...
{"runningtime": "0.08", "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_tim...
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": "5.54", "resultsets": [{"rowcount": 48, "headers": ["date", "images"]}]}
null
Users with username similar to ____
null
select user_name from user where user_name like '%test%'
{"connection_id": 413215908}
null
lawiki:Asteroids without trwiki interwikis
null
USE lawiki_p; SELECT CONCAT("#[[",REPLACE(page_title,"_"," "),"]]"), CONCAT("[https://tr.wikipedia.org/wiki/Special:ContentTranslation?to=tr&page=",REPLACE(page_title,"_","+"),"&from=la]") as translatorlink, page_len, page_props.pp_value, COUNT(ll_lang) FROM page INNER JOIN categorylinks ON cl_from = page_id INNER ...
{"runningtime": "170.32", "resultsets": [{"rowcount": 92, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]}
null
dewiki: edits per day during coronavirus pandemic
null
USE dewiki_p; SELECT SUBSTR(rev_timestamp, 1, 8) AS bucket, COUNT(rev_id) AS cnt FROM revision WHERE rev_id>190000000 AND rev_timestamp>=20120101000000 GROUP BY bucket ORDER BY bucket ASC ;
{"runningtime": "5.03", "resultsets": [{"rowcount": 787, "headers": ["SUBSTRING_INDEX(el_to, \"/\", 3)", "COUNT(*)"]}]}
null
enwiki:WikiProjects
null
select * from enwiki_p.page_assessments_projects; select * from enwiki_p.page_assessments limit 10;
{"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["max(rev_timestamp)"]}]}
null
MassMassage list creator:Active user of Indic Wikisource
Most active users by edits on Bengali Wikisource in last 3 months
USE tawikisource_p; SELECT CONCAT("# {{target | user =",actor_name,"| site = ta.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 page_namespace = 250 AND actor_user IS NOT NULL AND rev_...
{"runningtime": "15.56", "resultsets": [{"rowcount": 74, "headers": ["Suspicious_file_title"]}]}
null
enwiki:Pages in WikiProject Women Scientists without trwiki interwikis
null
SELECT DISTINCT article.page_id, REPLACE(article.page_title,'_',' '), article.page_len, (CASE WHEN cl_to="Top-importance_Women_scientists_articles" THEN "En" WHEN cl_to="High-importance_Women_scientists_articles" THEN "Çok" WHEN cl_to="Mid-importance_Women_...
{"runningtime": "0.33", "resultsets": [{"rowcount": 0, "headers": ["actor_name", "COUNT(*)"]}]}
null
nlwiki_p Article links with curly apostrophes
in recently changed pages
USE nlwiki_p; SELECT DISTINCT rc_cur_id AS page_id, pl_namespace AS page_namespace, REPLACE(pl_title,'_', ' ') AS page_title FROM pagelinks, recentchanges WHERE rc_namespace=0 AND rc_title=pl_title AND pl_from_namespace=0 AND pl_namespace=0 AND LENGTH(pl_title)>3 AND CONVERT(pl_title USING...
{"connection_id": 578092782}
null
Navigationsleisten, die auf verlinkten Seiten nicht eingebunden werden
null
USE dewiki_p; SELECT p.Page_id, tmpl.page_title FROM page p INNER JOIN templatelinks ON (p.page_id=tl_from AND p.page_namespace=tL_from_namespace=0) INNER JOIN page tmpl ON (tmpl.page_title=tl_title) LIMIT 1;
{"runningtime": "1086.58", "resultsets": [{"rowcount": 347643, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang", "user_id", "user_name", "user_r...
null
Wikiprojects without {{WikiProject status}}
null
use arwiki_p; select CONCAT('# [[ويكيبيديا:',page_title,']]') from page where page_namespace = 4 AND page_title REGEXP 'مشروع_ويكي' AND page_title NOT LIKE '%/%' AND page_title NOT LIKE '%دعوة_مشروع%' and page_id not in (select tl_from from templatelinks where tl_title = 'حالة_مشروع_ويكي') and page_is_redirect =...
{"runningtime": "22.81", "resultsets": [{"rowcount": 3043, "headers": ["page_title", "pl_title", "tl_from"]}]}
null
Find Username of Female Users (bnwiki)
null
USE bnwiki_p; SELECT user_name, user_editcount FROM user RIGHT JOIN (SELECT up_user FROM user_properties WHERE up_property LIKE 'gender' AND up_value LIKE 'female') as female ON female.up_user=user_id ORDER BY user_editcount DESC
{"runningtime": "1282.59", "resultsets": [{"rowcount": 337, "headers": ["page_namespace", "page_title", "rc_timestamp", "rc_this_oldid", "comment_text"]}]}
null
Most active users on WP:KSA pages test
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": "0.04", "resultsets": []}
null
page_title LIKE "%animat%"
null
USE etwiki_p; SELECT CONCAT("User:",page_title,"") FROM page AS page WHERE page_namespace = 2 AND page_title LIKE "%Estopedist1%" #AND page_is_redirect = 1 #AND (page_title LIKE "Categorised%" OR page_title LIKE "Categorized%") LIMIT 199;
{"connection_id": 673200042}
null
Most used templates on mrwikisource and their protection level
Most used templates on mrwikisource and their protection level
use mrwikisource_p; SELECT CASE WHEN LEFT(tl_title, 1) <= 'z' THEN CONCAT('Template:', tl_title) ELSE CONCAT('साचा:', tl_title) END AS template, pr_level, COUNT(*) AS freq FROM templatelinks JOIN page ON tl_title = page_title AND page_namespace = 10 LEFT JOIN page_restrictions ON pr_page = page_i...
{"resultsets": [{"rowcount": 15, "headers": ["Vikipedi:Telif sorunlar\u0131/Mirada maddeleri"]}], "runningtime": "0.94"}
null
All links to a page
null
USE enwiki_p; SELECT COUNT(*) AS plinks FROM pagelinks WHERE pl_namespace=0 AND pl_title="List_of_diplomatic_missions_of_Saint_Kitts_and_Nevis"; SELECT COUNT(*) AS `plinks from redirects` FROM redirect JOIN page ON rd_from=page_id JOIN pagelinks ON pl_namespace=page_namespace AND pl_title=page_title WHERE rd_nam...
{"resultsets": [{"rowcount": 7, "headers": ["page_title"]}], "runningtime": "0.27"}
null
All orphan files on ms.wiki
null
USE mswiki_p; SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ON p.page_title = i.il_to # AND (i.il_from_namespace = 0) LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c2...
{"resultsets": [{"rowcount": 29, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "actor_id", "actor_user", "actor_name"]}], "runningtime": "0.27"}
null
Affiliate members harvest on Meta-Wiki
Harvest affiliate members for all affiliates in Wikimedia.
# avoid duplicate user names SELECT DISTINCT metawiki_p.pagelinks.pl_title AS "Affiliated Username", p.page_title AS "Affiliate Groups" FROM metawiki_p.page AS p JOIN metawiki_p.pagelinks ON metawiki_p.pagelinks.pl_from = p.page_id # harvest from the a list of affiliates WHERE p.page_title IN ( "Wiki_Project_Med", "...
{"resultsets": [{"rowcount": 0, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}], "runningtime": "0.07"}
null
File description pages without an associated file (idwiki)
null
use idwiki_p; SELECT page_title FROM page WHERE NOT EXISTS (SELECT img_name FROM image WHERE img_name = page_title) AND page_namespace = 6 AND page_is_redirect = 0 LIMIT 1000;
{"resultsets": [{"rowcount": 1, "headers": ["page_title", "rd_namespace", "rd_title", "rd_fragment", "rd_interwiki"]}], "runningtime": "4.81"}
null
Get all Biography articles without the living parameter
null
SELECT page.page_title FROM page INNER JOIN categorylinks ON categorylinks.cl_from = page.page_id WHERE categorylinks.cl_to = "Living_people" and page.page_namespace = "0" and EXISTS (SELECT NULL FROM page p2 INNER JOIN categorylinks c2 ON c2.cl_from = p2.page_id WHERE c2.cl_to = "Biography_articles_without_living_para...
{"resultsets": [{"rowcount": 176, "headers": ["page_namespace", "page_title", "displaytitle"]}], "runningtime": "16.05"}
null
[BROKEN] replag
Estimate replication lag of a few databases in seconds, assuming an edit happens at least once a second.
#SELECT NOW(); SELECT 'commonswiki_p' AS 'dbname', UNIX_TIMESTAMP()-UNIX_TIMESTAMP(MAX(rev_timestamp)) AS 'replag' FROM commonswiki_p.revision UNION SELECT 'nlwiki_p' AS 'dbname', UNIX_TIMESTAMP()-UNIX_TIMESTAMP(MAX(rev_timestamp)) AS 'replag' FROM nlwiki_p.revision UNION SELECT 'wikidatawiki_p' AS 'dbname', UNIX_TIMES...
{"resultsets": [{"rowcount": 4867, "headers": ["log_title", "COUNT(log_id)"]}], "runningtime": "14.42"}
null
Get external links to *.wikipedia.org in mainspace
null
SELECT page_title FROM externallinks INNER JOIN page ON page.page_id = externallinks.el_from WHERE page.page_namespace = 0 AND externallinks.el_index LIKE "http_://org.wikipedia.%"
{"resultsets": [{"rowcount": 6, "headers": ["user", "No_of_articles", "Bytes"]}], "runningtime": "0.21"}
null