title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
AfC review counts, last 24 hours
AfC review counts, last 24 hours
use enwiki_p; select count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accept...
{"runningtime": "1538.53", "resultsets": [{"headers": ["now()"], "rowcount": 1}, {"headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"], "rowcount": 488212}]}
null
Запит 2
null
SELECT P1.page_title, A.actor_name, R.rev_timestamp, P1.page_len FROM ukwiki_p.revision R JOIN ukwiki_p.page P1 ON R.rev_page = P1.page_id JOIN ukwiki_p.categorylinks CL ON P1.page_id = CL.cl_from JOIN ukwiki_p.actor A ON R.rev_actor = A.actor_id WHERE R.rev_parent_id = 0 AND P1.page_len >= 3500 AND P1.page_len < ...
{"resultsets": [{"rowcount": 2909, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}], "runningtime": "41.62"}
null
Non-free files used outside articles (uk.wiki)
null
USE ukwiki_p; SELECT DISTINCT CONCAT('# [[:File:', p.page_title, ']]') FROM page p INNER JOIN categorylinks c ON p.page_id = c.cl_from INNER JOIN (imagelinks i LEFT JOIN redirect r ON i.il_from = r.rd_from) ON p.page_title = i.il_to WHERE c.cl_to = "Невільні_файли" AND i.il_from_namespace != 0 #Articles AND i.il_from_n...
{"resultsets": [{"rowcount": 3221, "headers": ["il_from", "numimages"]}], "runningtime": "9.64"}
null
Num of new articles by user since date (hrwiki)
null
USE hrwiki_p; SELECT a.actor_name, COUNT(*) as count FROM page p, revision rev, actor_user a WHERE rev.rev_page = p.page_id and rev.rev_parent_id = 0 and rev.rev_timestamp > 20201101000000 and -- poslije 2020-09-01 - 00:00:00 rev.rev_timestamp < 20201201000000 and -- poslije 2020-09-01 - 00:00:00 ...
{"resultsets": [{"rowcount": 30, "headers": ["actor_name", "freq"]}], "runningtime": "19.79"}
null
Статті категорії "Українські науковці" довжиною до 3500
null
SELECT P1.page_title, A.actor_name, R.rev_timestamp, P1.page_len FROM ukwiki_p.revision R JOIN ukwiki_p.page P1 ON R.rev_page = P1.page_id JOIN ukwiki_p.categorylinks CL ON P1.page_id = CL.cl_from JOIN ukwiki_p.actor A ON R.rev_actor = A.actor_id WHERE R.rev_parent_id = 0 AND P1.page_len < 3500 AND CL.cl_to = "Укр...
{"connection_id": 876994433}
null
WMFr user accounts
Username containing "WMFr" string
USE metawiki_p; SELECT * FROM user WHERE user_name LIKE "%WMFr%";
{"resultsets": [{"rowcount": 1, "headers": ["number_of_itwiki_pages_linking_treccani"]}], "runningtime": "0.10"}
null
search enwiki article by hewiki title
null
USE enwiki_p; SELECT * FROM wikidatawiki_p.wb_items_per_site LEFT JOIN page ON REPLACE(ips_site_page, ' ', '_') = page_title AND page_namespace = 0 where ips_item_id in (SELECT ips_item_id FROM wikidatawiki_p.wb_items_per_site WHERE ips_site_id = 'hewiki' AND ips_site_page="בנימין") AND ips_site_id = 'enwiki'
{"resultsets": [{"rowcount": 1, "headers": ["number_of_itwiki_pages_linking_treccani", "number_of_itwiki_links_to_treccani"]}], "runningtime": "0.14"}
null
Empty page in all namespaces (idwiki)
null
use idwiki_p; select * from page where page_len = 0;
{"resultsets": [{"rowcount": 6, "headers": ["dated", "mainspace_new_pages"]}], "runningtime": "5.46"}
null
Drafts eligible for CSD G13
null
SELECT DISTINCT CONCAT("Draft:",page_title), (select rev_timestamp from revision where rev_page=page_id order by rev_timestamp desc limit 1) as rev_timestamp_, (select actor_name from actor where actor_id=(select rev_actor from revision where rev_page=page_id order by rev_timestamp asc limit 1)) as actor_name_ FROM pag...
{"resultsets": [{"rowcount": 372, "headers": ["number", "actor_name"]}], "runningtime": "17.72"}
null
Look up a template on zhwiki
I always forget the name of it... time for a redirect
USE zhwiki_p; SELECT * FROM page WHERE page_title LIKE "%spam"
{"resultsets": [{"rowcount": 2931, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}], "runningtime": "43.99"}
null
All editors on German Wikipedia by registration date 2019+, 100+ edits 2021
null
USE dewiki_p; SELECT user_name, edits_after, user_registration FROM user INNER JOIN (SELECT rev_user_text AS edit_username, COUNT(rev_id) AS edits_after FROM revision_compat WHERE rev_timestamp > "20210101000000" GROUP BY edit_username ) AS ...
{"resultsets": [{"rowcount": 43, "headers": ["c"]}], "runningtime": "18.97"}
null
Autoreview removals in fiwiki
Columns: - timestamp = day when the autoreview/editor usergroup was removed - autoreviews = number of the autoreviews before usergroup was removed - user_age_in_years = user age when usergroup was removed - admin = admin who removed the usergroup - user_name = user whose usergroup was removed - log_comment = reason for...
# use fiwiki_p; select floor(log_timestamp/10000000000) as year, count(distinct(fr_rev_id)) as autoreviews, round(datediff(str_to_date(log_timestamp, "%Y%m%d%H%i%S"), str_to_date(user_registration, "%Y%m%d%H%i%S"))/365,1) as user_age_in_years, log_user_text as admin, user_name, log_comment fr...
{"resultsets": [{"rowcount": 1, "headers": ["current_date"]}, {"rowcount": 8, "headers": ["Username", "Number_of_labels_added"]}], "runningtime": "67.03"}
null
All non-free files by size (idwiki)
null
USE idwiki_p; #SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p SELECT CONCAT('# [[:File:', p.page_title, ']]') AS Filename, img_width, img_height, img_size FROM page p JOIN image ON img_name = page_title INNER JOIN categorylinks c1 ON p.page_id = c1.cl_fro...
{"resultsets": [{"rowcount": 26591, "headers": ["sayfa_adi"]}], "runningtime": "124.02"}
null
Articles created by new users in fiwiki using content translation
null
use fiwiki_p; SELECT concat("[[", REPLACE(IF (page_title IS NULL, tt.log_title, page_title), "_", " "), "]]") as log_title, -- log_user_text, -- IF(rev_count>0, 0, 1) as deleted, COALESCE(max_rev_len, max_ar_len) as max_len, (ve>0) as ve, (cx>0) as cx, (me>0) as mobile_edit, tt.log_comment as ...
{"resultsets": [{"rowcount": 11, "headers": ["page_title", "page_len", "page_touched", "page_latest"]}], "runningtime": "7.86"}
null
Hewiki fair use unused pictures 1
null
use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists (select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as p2 where p2.page_namespace = 14 and p2.pag...
{"runningtime": "27.42", "resultsets": [{"headers": ["log_count", "log_action"], "rowcount": 19}]}
null
Wikilinks mit Klammer und einzelnem Zeichen danach
Sowas wie [[Lützelbach_(Rems),]]
USE dewiki_p; select CONCAT('[[', CONCAT(IF(page_namespace = 10, 'Vorlage:', ''), REPLACE(page_title, '_', ' ')), ']]') AS "Artikel", REPLACE(pl_title, '_', ' ') AS "Verlinkt nach" FROM pagelinks STRAIGHT_JOIN page WHERE page_id = pl_from AND pl_from_namespace IN (0, 10) AND pl_namespace = 0 AND pl_t...
{"resultsets": [{"rowcount": 1, "headers": ["count(*)"]}], "runningtime": "3.82"}
null
Wikilinks mit Klammer und zwei Zeichen danach
Sowas wie [[Lützelbach_(Rems),]]
USE dewiki_p; select CONCAT('[[', CONCAT(IF(page_namespace = 10, 'Vorlage:', ''), REPLACE(RL.page_title, '_', ' ')), ']]') AS "Artikel", REPLACE(pl_title, '_', ' ') AS "Verlinkt nach" FROM pagelinks STRAIGHT_JOIN page AS RL WHERE RL.page_id = pl_from AND pl_from_namespace IN (0, 10) AND pl_namespace = 0...
{"resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}, {"rowcount": 1, "headers": ["COUNT(*)"]}], "runningtime": "0.18"}
null
Possibly non-useful files
null
select img_name from image where img_name not like '%.jpg' collate utf8_general_ci and img_name not like '%.jpeg' collate utf8_general_ci and img_name not like '%.gif' collate utf8_general_ci and img_name not like '%.png' collate utf8_general_ci and img_name not like '%.pdf' collate utf8_general_ci and img_name not lik...
{"resultsets": [{"rowcount": 12, "headers": ["sayfa_adi"]}], "runningtime": "0.12"}
null
All mainspace pages touched in last 24 hours
null
SELECT DISTINCT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_touched > (now() - interval 24 hour) limit 1000;
{"resultsets": [{"rowcount": 12, "headers": ["sayfa_adi"]}], "runningtime": "0.12"}
null
Featured Articles
Page title / page ID of all featured articles in English Wikipedia.
use enwiki_p; SELECT p.page_id, p.page_title FROM categorylinks c INNER JOIN page p ON c.cl_from = p.page_id AND p.page_namespace = 0 WHERE cl_to = "Featured_articles";
{"resultsets": [{"rowcount": 0, "headers": ["Date", "Res", "File"]}], "runningtime": "32.03"}
null
All mainspace pages touched in last 24 hours
null
SELECT DISTINCT '[[', page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_touched > (now() - interval 24 hour) limit 10;
{"resultsets": [{"rowcount": 500, "headers": ["Sayfa", "K\u0131rm\u0131z\u0131 ba\u011flant\u0131"]}], "runningtime": "2.00"}
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": [{"rowcount": 500, "headers": ["K\u0131rm\u0131z\u0131 ba\u011flant\u0131"]}], "runningtime": "1.43"}
null
Infoboxes on Marathi Wikipedia
null
select now(); USE mrwiki_p; SELECT page_title, COUNT(tl_from) AS uses, SUM(IF(tl_from_namespace = 0, 1, 0)) AS in_main, page_is_redirect FROM page LEFT JOIN templatelinks ON tl_title = page_title AND tl_namespace = page_namespace WHERE page_namespace = 10 AND page_title LIKE "माहितीचौकट%" AND page_title NOT LIKE "%/%"...
{"runningtime": "1.04", "resultsets": [{"headers": ["actor_name", "page_title", "page_len", "creation_date"], "rowcount": 173}]}
null
माहितीचौकट नसलेली लेख
Pages without infobox on Mrwiki
USE mrwiki_p; SELECT /*SLOW OK*/ page_title FROM page WHERE page_namespace = 0 and page_is_redirect = 0 and page_id not IN ( SELECT tl_from FROM templatelinks WHERE tl_title = "माहितीचौकट" AND tl_namespace = 10);
{"resultsets": [{"rowcount": 176, "headers": ["actor_name", "page_title", "page_len", "creation_date"]}], "runningtime": "0.70"}
null
Recent contributors to Translate namespace at mediawikiwiki
Adapted from https://quarry.wmflabs.org/query/37059
use mediawikiwiki_p; SELECT actor_name as user, substring_index(page_title, '/', -1) AS language, count(*) AS no_translations, CONCAT("https://www.mediawiki.org/wiki/Special:Contributions/",actor_name) AS Usercontribs FROM page LEFT JOIN -- Take only the latest revision of each translation to simplify revisi...
{"runningtime": "0.71", "resultsets": [{"headers": ["actor_name", "page_title", "page_len", "creation_date"], "rowcount": 176}]}
null
search in subcategories
returning the titles of all pages in all subcategories of a catogry, in depth=6
use hewiki_p; select distinct page_title from categorylinks inner join page on page_id = cl_from where ( (cl_to = 'יהדות' OR cl_to IN (select page_title from page inner join categorylinks on cl_from = page_id where cl_to = 'יהדות' and cl_type = 'subcat' ) OR cl_to IN (select page_title from page inner join ca...
{"resultsets": [{"rowcount": 16, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}], "runningtime": "0.15"}
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...
{"runningtime": "0.08", "resultsets": [{"headers": ["page_title", "cl_to", "pp_value"], "rowcount": 0}]}
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": [{"rowcount": 318, "headers": ["Artikel", "Verlinkt nach"]}], "runningtime": "834.18"}
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...
{"runningtime": "55.22", "resultsets": [{"headers": ["cl_sortkey"], "rowcount": 17913}]}
null
Get all revisions of "List of WWE personnel" page
List of WWE personnel (pageid: 2337812) is the ns0 page with largest number of revisions.
SELECT r.rev_id, r.rev_actor, a.actor_name, (CASE WHEN a.actor_user > 0 THEN 0 ELSE 1 END) as is_anonymous, c.comment_text, r.rev_timestamp, r.rev_minor_edit, r.rev_deleted FROM revision AS r JOIN comment AS c ON r.rev_comment_id = c.comment_id JOIN actor AS a ON r.rev_actor = a.actor_id WHERE r.rev_page = 2337812 ORDE...
{"runningtime": "6.71", "resultsets": [{"headers": ["page_title", "page_random", "referee"], "rowcount": 57}]}
null
Enwikibooks transwikis with categories
null
Use enwikibooks_p; Select page_title, cl_to from page inner join categorylinks on page_id = cl_from Where page_namespace = 108 And page_is_redirect = 0 Limit 10000;
{"resultsets": [{"rowcount": 162, "headers": ["CONCAT(CASE page_namespace\n WHEN 0 THEN ''\n WHEN 2 THEN 'User:'\n WHEN 10 THEN 'Template:'\n WHEN 4 THEN 'Project:'\n ELSE CONCAT('{{ns:', page_namespace, '}}:')\n END,\n "]}], "run...
null
Recent contributors to Translate namespace at mediawikiwiki
Adapted from https://quarry.wmflabs.org/query/37059
use mediawikiwiki_p; SELECT actor_name as user, substring_index(page_title, '/', -1) AS language, count(*) AS no_translations, CONCAT("https://www.mediawiki.org/wiki/Special:Contributions/",actor_name) AS Usercontribs FROM page LEFT JOIN -- Take only the latest revision of each translation to simplify revisi...
{"resultsets": [{"rowcount": 1176, "headers": ["CONCAT( \"# [[:Categoria:\", nome, \"]]\")"]}], "runningtime": "3.42"}
null
Bengali Wikipedia Content Translation edits
null
use bnwiki_p; -- When appropriate, change 'contenttranslation' to 'sectiontranslation' set @cx_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'sectiontranslation' ); select date_format(rev_timestamp, "%Y-%m-%d %H:%i:%s") as 'Time', rev_id as 'Revision ID', actor_name as 'Us...
{"resultsets": [{"rowcount": 22, "headers": ["rev_timestamp", "page_title", "page_namespace", "actor_name"]}], "runningtime": "0.46"}
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": [{"rowcount": 3278, "headers": ["rev_timestamp", "page_title", "page_namespace", "actor_name"]}], "runningtime": "9.21"}
null
Beiträge eines Users excl. Weiterleitungen
null
USE dewiki_p; SET lc_time_names = "de_DE"; SELECT CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') AS Artikel, /*IF((SELECT 1 FROM templatelinks WHERE tl_from = page_id AND tl_namespace = 10 AND tl_title = 'Begriffsklärung' LIMIT 1 ) = 1...
{"resultsets": [{"rowcount": 106, "headers": ["Tables_in_commonswiki_p"]}], "runningtime": "0.34"}
null
Redirects with long page content
null
USE enwiki_p; SELECT page_len, page_title FROM page WHERE page_is_redirect = 1 AND page_len > 200 AND page_namespace = 0 ORDER BY page_len DESC
{"resultsets": [{"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}], "runningtime": "0.12"}
null
Reply Tool usage/user (en.wiki)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from enwiki_p.change_tag ct inner join enwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join enwiki_p.actor act on rat.revactor_actor = act.actor_id inner join enwiki_p.change_tag_def on ct_tag_i...
{"resultsets": [{"rowcount": 100, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang", "cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortke...
null
Reply Tool usage/user (hu.wiki)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from frwiki_p.change_tag ct inner join frwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join frwiki_p.actor act on rat.revactor_actor = act.actor_id inner join frwiki_p.change_tag_def on ct_tag_i...
{"resultsets": [{"rowcount": 434, "headers": ["page_title", "cl_to"]}], "runningtime": "571.89"}
null
New Discussion Tool usage/user (en.wiki)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from enwiki_p.change_tag ct inner join enwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join enwiki_p.actor act on rat.revactor_actor = act.actor_id inner join enwiki_p.change_tag_def on ct_tag_i...
{"resultsets": [{"rowcount": 93, "headers": ["Artikel", "Verlinkt nach"]}], "runningtime": "852.06"}
null
List of rowiki articles that were supposedly created more than once based on rev_parent_id
These articles have multiple revisions with rev_parent_id marked as 0, as a result of merges, deletions and restorations.
USE rowiki_p; SELECT rev_page, page_title, COUNT(*) AS creations FROM revision LEFT JOIN page ON revision.rev_page = page.page_id WHERE rev_parent_id = 0 AND page_namespace = 0 AND page_is_redirect = 0 GROUP BY rev_page HAVING creations > 1
{"resultsets": [{"rowcount": 8584, "headers": ["Files", "DPLA_id"]}], "runningtime": "26.42"}
null
Discussion pages
null
USE dewiki_p; SELECT page_title FROM page WHERE page_namespace = 1 AND NOT page_is_redirect
{"resultsets": [{"rowcount": 2940, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}], "runningtime": "43.68"}
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": 0, "headers": ["time", "user", "namespace", "page", "comment"]}], "runningtime": "0.07"}
null
Article creation by Jack User
null
USE dewiki_p
{"resultsets": [{"rowcount": 295, "headers": ["cl_from", "cl_to", "page_title"]}], "runningtime": "0.92"}
null
Paintings_without_Wikidata_item in Individual_painting_categories2
null
use commonswiki_p; SELECT concat("File:",p1.page_title) FROM page p1 JOIN categorylinks c1 ON p1.page_id=c1.cl_from AND c1.cl_to='Paintings_without_Wikidata_item' JOIN categorylinks c2 ON p1.page_id=c2.cl_from WHERE p1.page_namespace = 6 -- file AND c2.cl_to IN (SELECT p3.page_title -- categories in "Individual_paint...
{"resultsets": [{"rowcount": 1402, "headers": ["cl_from", "cl_to", "page_title"]}], "runningtime": "9.70"}
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": 902474014}
null
Testing
null
SELECT user_id, user_name, user_registration, user_editcount, CONCAT('https://en.wikipedia.org/wiki/User:', user_name) as link FROM user WHERE (user_name LIKE '%Devinks') AND user_registration IS NOT NULL ORDER BY user_registration DESC LIMIT 10;
{"resultsets": [{"rowcount": 165, "headers": ["actor_name", "yeare", "COUNT(actor.actor_name)"]}], "runningtime": "9.37"}
null
User search
null
SELECT user_id, user_name, user_registration, user_editcount, CONCAT('https://en.wikipedia.org/wiki/User:', user_name) as link FROM user WHERE (user_name LIKE '%Devinks%') AND user_registration IS NOT NULL ORDER BY user_registration DESC LIMIT 10;
{"runningtime": "3.74", "resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 2}]}
null
List of all files and their sizes on Wikimedia Commons
This is a list of all files and their respective file sizes on the Wikimedia Commons (current versions only).
USE commonswiki_p; SELECT img_name AS Name, img_size AS Size FROM image;
{"resultsets": [{"rowcount": 1, "headers": ["count(*)", "avg_age"]}], "runningtime": "0.34"}
null
Protected pages by talk page category
Pages that are currently protected and which have a talk page in [[Category:WikiProject Anatomy articles]]. This will miss the (likely minimal) corner case where a protected page has a talk page that redirects to a talk page in that category. Generated by cautiously editing one word in Cryptic's linked query in respo...
SELECT CONCAT('[[', CASE a.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' WHEN 4 THEN '...
{"resultsets": [{"rowcount": 2, "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", "...
null
Deleted contributions
null
SELECT actor_name, archive_userindex.* FROM archive_userindex JOIN actor_archive ON actor_id = ar_actor WHERE actor_name = 'Firefly' ORDER BY ar_timestamp DESC;
{"runningtime": "0.10", "resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 3}]}
null
Deletion Ratios for one wiki during 2020
Example data for task https://phabricator.wikimedia.org/T246324. Shows ratio of main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted. This sample works for the Hungarian Wikipedia (huwiki) for 2019.
use zuwiki_p; set @dbname = 'zuwiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); set @created_total = ( select count(rev_id) from page, revision where page_id = rev_page and page_namespace = 0 and rev_timestamp like '...
{"resultsets": [{"rowcount": 514, "headers": ["page_title", "cl_to"]}], "runningtime": "278.34"}
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": 4, "headers": ["File name", "Date", "Size", "Uploader's name"]}], "runningtime": "1014.92"}
null
Number of categories on English Wikipedia
null
use enwiki_p; SELECT count(1) FROM page WHERE page_namespace = 14 and page_is_redirect = 0;
{"resultsets": [{"rowcount": 100, "headers": ["user_name"]}], "runningtime": "0.32"}
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": [{"rowcount": 100, "headers": ["page_name1"]}], "runningtime": "0.90"}
null
الاكثر مراجعة لمقالات
null
use arwiki_p; select CONCAT(actor_name), COUNT(*) from logging_userindex INNER JOIN actor ON log_actor = actor.actor_id where log_timestamp BETWEEN 20210307000000 and 20210314000000 and actor_name NOT LIKE ucase ("%BOT") COLLATE utf8_general_ci and actor_name NOT LIKE ("%New_user_message") and actor_n...
{"connection_id": 382533621}
null
nlwiki_p Pages w/ deletion template w/o link to nomination page
null
USE nlwiki_p; /*SELECT page_id, page_title FROM page WHERE page_namespace=4 AND page_title REGEXP '^Te_beoordelen_[^/]+$' LIMIT 10;*/ SELECT page_namespace, page_title FROM categorylinks, page WHERE (cl_to='Wikipedia:Pagina_weg' AND cl_from=page_id AND page_namespace=0 AND NOT EXISTS (SELECT * FROM pagelinks WHERE...
{"resultsets": [{"rowcount": 0, "headers": ["cl_from", "cl_to", "page_title"]}], "runningtime": "0.07"}
null
Inappropriate username
Inappropriate username
use zhwiki_p; SELECT user_name FROM user WHERE user_name rlike "nmsl";
{"resultsets": [{"rowcount": 1138, "headers": ["cl_from", "cl_to", "page_title"]}], "runningtime": "3.30"}
null
Politiker und Politiker
Items with empty german label
# https://doc.wikimedia.org/Wikibase/master/php/md_docs_storage_terms.html USE wikidatawiki_p; 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_t...
{"connection_id": 382962558}
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": [{"rowcount": 1, "headers": ["page_title"]}], "runningtime": "49.56"}
null
Files in Individual_painting_categories without wikidata
null
use commonswiki_p; SELECT concat("File:",p2.page_title) FROM ( SELECT c2.cl_to, count(p1.page_id) as num FROM page p1 JOIN categorylinks c1 ON p1.page_id=c1.cl_from AND c1.cl_to='Paintings_without_Wikidata_item' JOIN categorylinks c2 ON p1.page_id=c2.cl_from WHERE p1.page_namespace = 6 -- file AND c2.cl_to IN (SE...
{"resultsets": [{"rowcount": 10, "headers": ["comment_text", "log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}], "runningtime": "0.50"}
null
Gender Gap on Participants by Main Wikipedia
null
set @enwiki = "enwiki"; set @dewiki = "dewiki"; set @frwiki = "frwiki"; set @nlwiki = "nlwiki"; set @ruwiki = "ruwiki"; set @itwiki = "itwiki"; set @eswiki = "eswiki"; set @plwiki = "plwiki"; set @jawiki = "jawiki"; set @zhwiki = "zhwiki"; set @arwiki = "arwiki"; set @ukwiki = "ukwiki"; set @ptwiki = "ptwiki"; select...
{"resultsets": [{"rowcount": 10, "headers": ["actor_name", "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.25"}
null
Wikimedia Commons galleries edited in 2018
null
use commonswiki_p; select count(*) from ( select page_title from page inner join revision on rev_page = page_id and rev_timestamp > '20180101000000' where page_namespace = 0 and page_is_redirect = 0 group by page_title ) a;
{"resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}], "runningtime": "0.45"}
null
Top sites used in external links (hrwiki, main namespace) v1
null
USE hrwiki_p; SELECT main_domain, COUNT(*) AS total_count FROM ( SELECT CASE WHEN domain LIKE '%.gouv.fr' THEN SUBSTRING_INDEX(domain, '.', -3) WHEN domain LIKE '%.govt.nz' THEN SUBSTRING_INDEX(domain, '.', -3) WHEN domain REGEXP '^.*[-\\w]{4,}\\.[[:alpha:]]{2,}$' THEN SUB...
{"runningtime": "3.82", "resultsets": [{"headers": ["Draft", "Article"], "rowcount": 7}]}
null
Incubator maintenance
various queries
USE incubatorwiki_p; SELECT page_namespace, page_title from page left join categorylinks on page_id = cl_from WHERE page_title like "Wp/grc%" AND cl_to is null AND page_is_redirect = 0;
{"resultsets": [{"rowcount": 22, "headers": ["actor_name", "page_title", "rev_timestamp"]}], "runningtime": "7.19"}
null
Top sites used in external links at hrwiki (main namespace)
null
USE hrwiki_p; SELECT main_domain, COUNT(*) AS total_count FROM ( SELECT CASE WHEN domain LIKE '%.gouv.fr' THEN SUBSTRING_INDEX(domain, '.', -3) WHEN domain LIKE '%.govt.nz' THEN SUBSTRING_INDEX(domain, '.', -3) WHEN domain REGEXP '^.*[-\\w]{4,}\\.[[:alpha:]]{2,}$' THEN SUB...
{"resultsets": [{"rowcount": 1, "headers": ["actor_name", "COUNT(actor.actor_name)"]}], "runningtime": "0.80"}
null
nlwiki_p Pages w/ deletion template w/o link to nomination page
null
USE nlwiki_p; /*SELECT page_id, page_title FROM page WHERE page_namespace=4 AND page_title REGEXP '^Te_beoordelen_[^/]+$' LIMIT 10;*/ SELECT page_namespace, page_title FROM categorylinks, page WHERE (cl_to='Wikipedia:Pagina_weg' AND cl_from=page_id AND page_namespace=0 AND NOT EXISTS (SELECT * FROM pagelinks WHERE...
{"resultsets": [{"rowcount": 512, "headers": ["page_title", "cl_to"]}], "runningtime": "322.58"}
null
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.
SHOW databases LIKE "wikisource_p";
{"resultsets": [{"rowcount": 138, "headers": ["actor_name", "deletions"]}], "runningtime": "1.48"}
null
Resolving pagelinks to page_id (from)
Attempting to query (page_id, page_id) links given the "from" page_id.
SELECT pl.pl_from, p.page_id as pl_to, p.page_is_redirect FROM pagelinks AS pl LEFT JOIN page AS p ON (pl.pl_title = p.page_title AND pl.pl_namespace = p.page_namespace) WHERE pl.pl_from=62715690;
{"resultsets": [{"rowcount": 1, "headers": ["log_actor", "own_page_deletions"]}], "runningtime": "6.84"}
null
Resolving pagelinks to page_id (to)
Attempting to query (page_id, page_id) links given the "to" page_id. In other words, this is a "what links here" query.
SELECT pl.pl_from, p.page_id as pl_to FROM pagelinks AS pl LEFT JOIN page AS p ON (pl.pl_title = p.page_title AND pl.pl_namespace = p.page_namespace) WHERE p.page_id=62715690;
{"runningtime": "0.12", "resultsets": [{"headers": ["log_actor", "own_page_deletions"], "rowcount": 0}]}
null
Getting category titles
Page categories by title and number of pages.
SELECT cat_id, cat_title, cat_pages, cat_subcats FROM category WHERE (cat_pages > 0 OR cat_subcats > 0) LIMIT 50;
{"resultsets": [{"rowcount": 0, "headers": ["log_actor", "log_title"]}], "runningtime": "330.78"}
null
Bao Dinh Canal page ids from title
null
SELECT page_title, page_id, page_namespace FROM page WHERE page_title = "Bảo_Định_Canal";
{"resultsets": [{"rowcount": 16, "headers": ["actor_name", "own_page_deletions"]}], "runningtime": "1.69"}
null
Resolving page_ids from category name
Page categories by title.
SELECT cl_from as page_id, page.page_title, cl_to as category_name FROM categorylinks LEFT JOIN page ON (page.page_id = categorylinks.cl_from) WHERE cl_to="Rivers_of_Vietnam" LIMIT 10;
{"resultsets": [{"rowcount": 16, "headers": ["actor_name", "own_page_deletions"]}], "runningtime": "4.48"}
null
Missing Saudi_Arabia categories
null
USE enwiki_p; SELECT count(*) ll_count, CONCAT("[[:Category:",page_title,"]]") title_pl, (select ll_title from langlinks where ll_from = page_id and ll_lang = 'en') title_en, (select pp_value from page_props where pp_page = page_id and pp_propname = 'wikibase_item') wb_item FROM page, langlinks...
{"resultsets": [{"rowcount": 93, "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.34"}
null
ublock|宣传
null
USE zhwiki_p; SELECT log_title, comment_text FROM logging, comment WHERE comment_text="{{uw-ublock|宣传}}" AND log_comment_id=comment_id AND log_action="block";
{"resultsets": [{"rowcount": 1102, "headers": ["page_title", "rd_title"]}, {"rowcount": 11571, "headers": ["page_title", "rd_title"]}, {"rowcount": 5148, "headers": ["page_title", "rd_title"]}, {"rowcount": 8712, "headers": ["page_title", "rd_title"]}], "runningtime": "119.95"}
null
Long pages in namespaces other than main
null
select page_namespace,page_title,page_len from page where page_namespace != 0 order by page_len desc limit 100;
{"resultsets": [{"rowcount": 0, "headers": ["CONCAT(CASE page_namespace\n WHEN 0 THEN ''\n WHEN 2 THEN 'User:'\n WHEN 10 THEN 'Template:'\n WHEN 4 THEN 'Project:'\n ELSE CONCAT('{{ns:', page_namespace, '}}:')\n END,\n "]}], "runni...
null
SDC edits by user salgo60
null
USE commonswiki_p; SELECT page_title, comment_text FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page LEFT JOIN comment_revision ON comment_id = r1.rev_comment_id LEFT JOIN revision r2 ON r1.rev_parent_id = r2.rev_id WHERE actor_name IN ('AliciaFage...
{"runningtime": "1.85", "resultsets": [{"headers": ["Edit summary"], "rowcount": 20}]}
null
Page titles from prefix (slow)
Seemingly no index on page_title, so these queries are very slow.
SELECT page_title, page_id, page_namespace FROM page WHERE page_title LIKE "Bảo%";
{"resultsets": [{"rowcount": 20, "headers": ["Edit summary"]}], "runningtime": "68.40"}
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": 590, "headers": ["id", "title", "timestmp"]}], "runningtime": "12.61"}
null
991201 mp1 # of direct links to DAB pages (pages)
null
USE fawiki_p; SELECT COUNT(page_id) FROM pagelinks JOIN page WHERE page_is_redirect=0 AND page_namespace=0 AND page_id IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation' ) AND pl_from IN ( SELECT page_id FROM page WHERE page_is_redirect=0 ) AND pl_title=page_title AND pl_namespace ...
{"connection_id": 910978566}
null
991201 mp1 # of DAB pages
null
USE fawiki_p; SELECT COUNT(page_title) FROM page WHERE page_id IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation');
{"resultsets": [{"rowcount": 9, "headers": ["pl_from", "pl_title"]}], "runningtime": "125.41"}
null
991201 # of fa articles
null
USE fawiki_p; SELECT COUNT(page_id) FROM page WHERE page_is_redirect = 0 AND page_namespace = 0;
{"runningtime": "15.33", "resultsets": [{"headers": ["rev_id", "page_title", "page_len", "wp10"], "rowcount": 500}]}
null
991201 mp1 # of redirected links to DAB pages (pages)
null
USE fawiki_p; SELECT COUNT(pl_title) FROM pagelinks LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title LEFT JOIN redirect ON page_id = rd_from WHERE page_is_redirect = 1 AND page_namespace = 0 AND rd_namespace = 0 AND pl_from IN ( SELECT page_id FROM page WHERE page_is_redirect=0 AND ...
{"resultsets": [{"rowcount": 969, "headers": ["rev_id", "page_title", "page_len", "wp10"]}], "runningtime": "22.48"}
null
991201 owp1 All orphan articles
null
USE fawiki_p; SELECT concat('# [[',p1.page_title,']]') FROM page AS p1 WHERE p1.page_is_redirect = 0 AND p1.page_namespace = 0 # not a DAB page AND p1.page_id NOT IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation' ) # not receiving direct link AND NOT ( p1.page_title IN ( SELECT pl1....
{"resultsets": [{"rowcount": 33, "headers": ["File name", "Date", "Size", "Uploader's name"]}], "runningtime": "791.55"}
null
WLF-IN Photo Competition participants 2012-2020 and not active in 2021
WLE-UA Photo Competition participants 2013-2017 not active in 2018
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_Monuments_2012_in_Indi...
{"resultsets": [{"rowcount": 360, "headers": ["subject_ns", "talk_ns", "title", "disambig"]}], "runningtime": "1.04"}
null
Uk.wiki GFDL files - test to see if all is found
null
USE ukwiki_p; SELECT CONCAT("# [[:File:", page_title, "]]") as File, img_timestamp, actor_name FROM templatelinks JOIN page ON tl_from = page_id JOIN image ON img_name = page_title # AND page_namespace = 6 JOIN actor_image ON img_actor = actor_id JOIN categorylinks ON cl_from = page_id AND cl_type = "file" AND cl_to ...
{"resultsets": [{"rowcount": 16, "headers": ["page_title", "actor_name", "rev_timestamp"]}], "runningtime": "0.12"}
null
WSC for UKWP
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...
{"connection_id": 911857448}
null
Resolving pagelinks to page_id (to)
Attempting to query (page_id, page_id) links given the "to" page_id. In other words, this is a "what links here" query.
SELECT pl.pl_from, redir_pl.pl_from IS NOT NULL AS is_redirect, IFNULL(redir_p.page_id, p.page_id) AS pl_to FROM pagelinks AS pl LEFT JOIN page AS p ON (pl.pl_title = p.page_title AND pl.pl_namespace = p.page_namespace) LEFT JOIN pagelinks AS redir_pl ON p.page_is_redirect AND p.page_id = redir_pl.pl_from LEFT JOIN pag...
{"resultsets": [{"rowcount": 1, "headers": ["page_title", "rev_timestamp"]}], "runningtime": "203.91"}
null
Resolving pagelinks to page_id (from)
Attempting to query (page_id, page_id) links given the "from" page_id.
SELECT pl.pl_from, IFNULL(redir_p.page_id, p.page_id) AS pl_to, p.page_is_redirect FROM pagelinks AS pl LEFT JOIN page AS p ON (pl.pl_title = p.page_title AND pl.pl_namespace = p.page_namespace) LEFT JOIN pagelinks AS redir_pl ON p.page_is_redirect AND p.page_id = redir_pl.pl_from LEFT JOIN page AS redir_p ON (redir_pl...
{"resultsets": [{"rowcount": 3, "headers": ["cl_to", "ns_count", "namespaces"]}], "runningtime": "139.15"}
null
Redirects with long page content (ns 4)
null
USE enwiki_p; SELECT page_len, page_title FROM page WHERE page_is_redirect = 1 AND page_len > 400 AND page_namespace = 4 ORDER BY page_len DESC
{"resultsets": [{"rowcount": 765, "headers": ["page_title"]}], "runningtime": "3.01"}
null
dewikiTables
Shows all the databases from dewiki
SHOW TABLES FROM dewiki_p;
{"resultsets": [{"rowcount": 856, "headers": ["log_title", "COUNT(log_id)"]}], "runningtime": "2.67"}
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": [{"rowcount": 446496, "headers": ["rev_id", "rev_timestamp", "rev_len", "actor_name"]}], "runningtime": "1540.03"}
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...
{"runningtime": "1281.59", "resultsets": [{"headers": ["File name", "Date", "Size", "Uploader's name"], "rowcount": 21}]}
null
New Discussion Tool usage (ar, cs, hu)
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from arwiki_p.change_tag ct inner join arwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join arwiki_p.actor act on rat.revactor_actor = act.actor_id inner join arwiki_p.change_tag_def on ct_tag_i...
{"resultsets": [{"rowcount": 4395, "headers": ["page_namespace", "Page"]}], "runningtime": "12.17"}
null
All articles on Czech Wikipedia
null
USE cswiki_p; SELECT p.page_title FROM page p WHERE p.page_is_redirect = 0 AND p.page_namespace = 0;
{"resultsets": [{"rowcount": 1, "headers": ["ipb_id", "ipb_address", "ipb_user", "ipb_reason_id", "ipb_timestamp", "ipb_auto", "ipb_anon_only", "ipb_create_account", "ipb_expiry", "ipb_range_start", "ipb_range_end", "ipb_enable_autoblock", "ipb_deleted", "ipb_block_email", "ipb_by_actor", "ipb_allow_usertalk", "ipb_par...
null
Longest pages plwiki
null
USE plwiki_p; SELECT page_len, page_title FROM page WHERE page_len > 100000 ORDER BY page_len DESC
{"resultsets": [{"rowcount": 3, "headers": ["concat (\"\u0646\u0642\u0627\u0634:\",page_title)"]}], "runningtime": "23.58"}
null
Longest pages on plwiki (in a specific category)
null
USE plwiki_p; SET @target_category = "Koty_fikcyjne"; SELECT page_len, page_title FROM page INNER JOIN categorylinks ON cl_from = page_id WHERE cl_to = @target_category ORDER BY page_len DESC LIMIT 100;
{"runningtime": "18.01", "resultsets": [{"headers": ["el_to", "page", "cnt"], "rowcount": 2485}]}
null
Longest pages on plwiki (in a specific category)
null
USE enwiki_p; SET @target_category = "Flags"; SELECT page_len, page_title FROM page INNER JOIN categorylinks ON cl_from = page_id WHERE cl_to = @target_category ORDER BY page_len DESC LIMIT 100;
{"connection_id": 390614740}
null
Liste des redirections du Wiktionnaire
null
USE frwiktionary_p; SELECT page_title, rd_title, rd_namespace FROM page, redirect WHERE page_id = rd_from AND rd_namespace = 0 AND (page_title NOT LIKE "%’%" AND page_title NOT LIKE "%'%");
{"resultsets": [{"rowcount": 4, "headers": ["Draft", "Article"]}], "runningtime": "40.11"}
null
V2Articles in a specific category with only initial revisionV2 (hrwiki)
null
SET @ime_kat_unos = 'Željeznički promet po godinama'; -- promijeniti naziv kategorije po želji SET @ime_kat = REPLACE(@ime_kat_unos, ' ', '_'); use hrwiki_p; SELECT DISTINCT page.page_title -- , count( distinct(cl.cl_from)) -- staviti "--(razmak)" ispred ", count..." za popis umjesto broja from ca...
{"resultsets": [{"rowcount": 0, "headers": ["user_name", "user_registration", "user_editcount", "Count(rev_id)", "@DATESTART := \"2021-01-20\""]}], "runningtime": "352.13"}
null
Protected pages by talk page category
Pages that are currently protected and which have a talk page in [[Category:All WikiProject Medicine articles]]. This will miss the (likely minimal) corner case where a protected page has a talk page that redirects to a talk page in that category. For [[WP:RAQ#Medicine pages by protection level]] circa 23 November 20...
SELECT CONCAT('[[', CASE a.page_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' WHEN 1 THEN 'Talk:' WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:' WHEN 4 THEN '...
{"runningtime": "18.40", "resultsets": [{"headers": ["el_id", "el_from", "el_to", "el_index", "el_index_60", "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...
null