title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Wikipedia articles without short description
Sample execution: Executed in 1122.94 seconds as of Sun, 23 Apr 2023 13:29:02 UTC. Resultset (1028110 rows)
SELECT page_title, pp_value FROM page LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'disambiguation' WHERE page_namespace = 0 AND pp_page IS NULL AND page_is_redirect = 0 -- AND NOT (page_title LIKE "List_of_%") -- AND NOT (page_title LIKE "Lists_of_%") AND NOT (page_title LIKE "%_of_%") AND ...
{"resultsets": [{"headers": ["cl_to", "cl_to", "my_count"], "rowcount": 1}], "runningtime": "0.42"}
enwiki_p
Pages re-created after previous creation by now-blocked user
To do: possibly exclude creations by ext confirmed and higher users
WITH sock_template AS ( SELECT tl.tl_from FROM enwiki_p.templatelinks tl WHERE tl.tl_target_id IN (32197, 277052, 282063, 115252, 1968835) ) SELECT DISTINCT CONCAT('https://en.wikipedia.org/wiki/', CASE rc.rc_namespace WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:' WHEN 0 THEN '' ...
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 37}], "runningtime": "0.40"}
enwiki_p
enWikiquote: New articles in the past two weeks
New articles. on English WikiQuote from the last few weeks. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable". The default sort order is date of creation descending. One key use is identifying new articl...
SELECT CONCAT('"', NVL((SELECT 'V' WHERE EXISTS (SELECT 1 FROM templatelinks tm1 JOIN linktarget lt1 ON lt1.lt_id=tm1.tl_target_id WHERE tm1.tl_from=page_id AND tm1.tl_from_namespace=0 ...
{"resultsets": [{"headers": ["page_title", "group_concat(c.cl_to)"], "rowcount": 1}], "runningtime": "6.85"}
enwikiquote_p
بوت: توزيع أوسمة
null
/* # يقوم بحساب التعديلات الغير محذوفه فقط SELECT actor_name, (SELECT COUNT(*) FROM revision WHERE rev_actor = actor_id AND rev_timestamp < 20221201000000) AS revisions_until_yesterday, (SELECT COUNT(*) FROM revision WHERE rev_actor = actor_id AND rev_timestamp <= 20230131235959) AS total_edits FROM acto...
{"resultsets": [{"headers": ["Fns", "FromTitle", "Tns", "ToTitle"], "rowcount": 439}], "runningtime": "3.83"}
arwiki_p
Pages with obsolete font tags, excluding other types of Lint errors
null
select CONCAT('[[', case when page_namespace = 2303 then 'Gadget definition talk:' when page_namespace = 2302 then 'Gadget definition:' when page_namespace = 2301 then 'Gadget talk:' when page_namespace = 2300 then 'Gadget:' when page_namespace = 829 then 'Module talk:' when page_name...
{"resultsets": [{"headers": ["page_title", "actor_name", "log_timestamp"], "rowcount": 20}], "runningtime": "0.08"}
enwiki_p
Novem Linguae total number of live AFC accepts/declines/rejects
Unfortunately, does not include drafts deleted via G13
select count(rev_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", concat(round(SUM(comment_text like "%Publishing accepted%") * 100 / count(rev_id),...
{"resultsets": [{"headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"], "rowcount": 80}], "runningtime": "0.12"}
enwiki
English spelling IP edits
Unreverted IP edits on New Zealand-related articles with "English" and "spelling" in the edit summary
SELECT page_title AS Article, rev_id AS "Special:Diff/", rev_timestamp AS Timestamp, actor_name AS IP, comment_text AS "Edit summary" FROM revision JOIN `comment` ON comment_id = rev_comment_id AND comment_text REGEXP "English" AND comment_text REGEXP "spelling" JOIN actor ON actor_id = rev_actor AND actor_user IS NULL...
{"resultsets": [{"headers": ["content_id", "content_size", "content_sha1", "content_model", "content_address"], "rowcount": 10}], "runningtime": "0.06"}
enwiki_p
Most thanked 2023
Most thanked editors on the English Wikipedia in 2022
SELECT log_title, COUNT(log_id) FROM logging_logindex WHERE log_type = "thanks" AND log_timestamp >= "20230000000000" GROUP BY log_title ORDER BY 2 DESC
{"resultsets": [{"headers": ["\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a"], "rowcount": 21}], "runningtime": "23.16"}
enwiki_p
Top NPP reviewers (articles only) for 2023
null
SELECT actor_name AS `Reviewer`, COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `Article Reviews` FROM ( SELECT distinct log_actor, log_page, page_is_redirect FROM logging_userindex JOIN page ON page_title = log_title AND page_namespace = log_namespace WHERE log_timestamp ...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "categories", "Wikidata"], "rowcount": 23}], "runningtime": "29.60"}
enwiki_p
List of users by number of AfDs created (recent years only)
null
# Szerkesztők listája létrehozott tmbk száma szerint. A lekérdezés a laplétrehozási naplót használja, ami csak valamikor 2018 és 2020 között indult, # úgyhogy az azt megelőző időből nem szolgáltat adatokat. SELECT actor.actor_name, COUNT(*) FROM logging INNER JOIN actor ON logging.log_actor = actor.actor_id WHERE log...
{"connection_id": 113970679}
huwiki
Bot Wars?! (arwiki)
null
SELECT article.page_title, article.page_namespace, count(distinct actor.actor_name) as "bot users", GROUP_CONCAT(DISTINCT actor.actor_name) as "bot users named", TIMESTAMP(max(rev_timestamp)) as "last edit on page", COUNT(*) AS edits FROM revision INNER JOIN page article ON article.page_id = rev_page #A...
{"resultsets": [{"headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "user_password_expires"], "rowco...
arwiki_p
تعديلات البوت
null
USE arwiki_p; SELECT CONCAT("[[مستخدم:",actor_name,"|",actor_name,"]]") AS "المستخدم", COUNT(actor_name) AS "عدد التعديلات" FROM revision INNER JOIN actor on rev_actor = actor_id WHERE rev_timestamp >= 20221231235959 and ( ucase(actor_name) like ucase("%BOT") COLLATE utf8_general_ci or actor_name like "%بوت%" collat...
{"resultsets": [{"headers": ["user_name"], "rowcount": 10}], "runningtime": "0.06"}
arwiki_p
Experienced users and newcomers
null
SET @minEdits = 5; -- 1) number of edits the user has to have to be considered experienced SET @minTenureDays = 0; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced SET @eventDate = '202300301000000'; -- 3) see @minTenureDays SELECT user_name, user_editcount, ...
{"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": 1}], "runningtime": "0.07"}
cswiki_p
Mapping between Wikidata items and French Wikipedia articles
null
SELECT page_id, pp_value as item_id FROM page JOIN page_props ON page_id=pp_page WHERE pp_propname='wikibase_item';
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "38.03"}
frwiki_p
PR firms
null
# Simplified query to focus on blocked editors. # The page_id list can be manually compiled by looking at page id under "page information" in the Wiki web interface, # or by running Quarry query #62940 with a list of titles. select page_title as 'page title', user_name, comment_text as 'block reason' from page,...
{"resultsets": [{"headers": ["concat(\"[[\",page_title,\"]]\")", "page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 1520}], "runningtime": "1.94"}
enwiki
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": [], "runningtime": "0.03"}
metawiki_p
Deleted revisions
Get the deleted revisions for a user. You can combine this with the delete/revision action to find the reason behind deletion.
SELECT *, (CAST(`main`.`rev_len` AS SIGNED) - CAST(`parent`.`rev_len` AS SIGNED)) AS "diff" FROM `revision_userindex` AS `main` LEFT JOIN `revision_userindex` AS `parent` ON `parent`.`rev_id` = `main`.`rev_parent_id` LEFT JOIN `comment_revision` ON `main`.`rev_comment_id` = `comment_id` RIGHT JOIN `page` ON `main`...
{"resultsets": [{"headers": ["user_name", "user_registration", "live_edits", "total_edits", "edits_last_month"], "rowcount": 35}], "runningtime": "114.05"}
enwiki_p
1896-1904 Lugnuts Olympian Biographies testing
null
WITH articles AS ( SELECT DISTINCT(Article.page_title), Article.page_id, rev_timestamp, rev_len as "InitialSize", Article.page_len as "CurrentSize" FROM revision_userindex JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0 JOIN page AS Talk ON Article.page_title = Talk.page_title AND T...
{"resultsets": [{"headers": ["rev_timestamp", "actor_name"], "rowcount": 1761}], "runningtime": "1.83"}
enwiki_p
List of bots by last edit
List of a user's edit times.
WITH groups AS ( SELECT ug_user, GROUP_CONCAT(ug_group) AS memberships FROM user_groups WHERE ug_group = 'bot' GROUP BY ug_user) SELECT actor.actor_name AS thành_viên, memberships AS nhóm, MAX(rev_timestamp) AS lần_sửa_đổi_cuối FROM revision LEFT JOIN actor ON (revision.rev_actor = actor.actor_id) LEF...
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 1}], "runningtime": "7.55"}
viwiki_p
Vandalismebestrijding nlwiki
Ip-controle, achterstand 290, 11:42 vr, 3 maart 2023
# anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION SELECT 'total...
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 94}], "runningtime": "3.95"}
nlwiki_p
بوت الصيانة - مقالات بحاجة لإضافة وسم غير مراجعة
null
use arwiki_p; select page_title from page where page.page_is_redirect = 0 and page.page_namespace = 0 and page_id not in (select fp_page_id from flaggedpages where fp_page_id = page_id) and page_id not in (select cl_from from categorylinks where cl_to like "جميع_المقالات_غير_المراجعة");
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 31}], "runningtime": "0.41"}
arwiki_p
بوت الصيانة - مقالات بحاجة لإزالة وسم غير مصنفة
null
use arwiki_p; select p2.page_title from page p2 where p2.page_id in (select cl_from from categorylinks inner join page p on p.page_title = cl_to and p.page_namespace = 14 where ((p.page_id not in (select cl_f...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 1}], "runningtime": "53.07"}
arwiki_p
Abkürzungs-Lemma (Versuch)
https://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion:Wurgl&oldid=227314760#Bitte_um_Hilfe:_Nächstes_Kapitel_Abkürzungen
WITH BklAbkz AS ( /* Alle Begriffsklärungsseiten rausfischen */ SELECT page_id AS bkl_page, UPPER(CONVERT(REPLACE(page_title, '_Begriffsklärung', '') USING utf8)) AS bkl_title FROM page, page_props WHERE page_namespace = 0 AND page_id = pp_page AND pp_propname = 'disambiguation' /...
{"resultsets": [{"headers": ["page_title"], "rowcount": 10}], "runningtime": "0.05"}
dewiki_p
Carlossuarez46 unsourced geography stubs
null
SELECT DISTINCT(page_title), page_len FROM page JOIN revision_userindex ON page_id = rev_page #JOIN categorylinks ON page_id = cl_from JOIN templatelinks ON page_id = tl_from JOIN linktarget ON tl_target_id = lt_id WHERE rev_parent_id = 0 AND page_is_redirect = 0 AND rev_actor = 10795 #AND categorylinks LIKE ...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 122}], "runningtime": "60.21"}
enwiki_p
Portals with images
null
SELECT CONCAT("{{Portal|", REPLACE(page_title,"_"," "), "}}") AS Portal FROM page WHERE page_namespace=100 AND page_title NOT LIKE "%/%" AND page_is_redirect = 0 ORDER BY page_title
{"resultsets": [{"headers": ["title", "count"], "rowcount": 8}], "runningtime": "0.07"}
enwiki_p
{{Út infobox}} + P559
null
SELECT page_title, wbc_entity_usage.* FROM page JOIN templatelinks ON tl_from = page_id JOIN linktarget ON tl_target_id = lt_id JOIN wbc_entity_usage ON tl_from = eu_page_id AND eu_aspect = 'C.P559' WHERE lt_title = 'Út_infobox' AND lt_namespace = 10 AND page_namespace = 0;
{"resultsets": [{"headers": ["p", "p\u0422\u041c\u041f1", "p\u0422\u041c\u041f2", "new_text"], "rowcount": 450000}], "runningtime": "370.83"}
huwiki
Large pages created by new users
Includes new creations and moves from draft and user space. Need to figure out a way to code 'yesterday' automatically.
SELECT page_title,page_namespace, actor_name, rc_new_len FROM recentchanges JOIN actor ON rc_actor = actor_id JOIN user ON actor_user = user_id JOIN page ON rc_cur_id = page_id WHERE (page_namespace = 0 or page_namespace = 2 or page_namespace = 118) and user_editcount < 20 and rc_new = 1 and rc_new_len > 2000 and rc_...
{"resultsets": [{"headers": ["\u1ecd", "New articles in a period", "Wikidata item", "Creator", "Date created", "Length"], "rowcount": 1485}], "runningtime": "131.17"}
enwiki
Article categories
null
SELECT page_title, cl_to FROM page JOIN categorylinks ON cl_from = page_id WHERE page_title IN ('Aarne_Lindholm', 'Achille_Morin', 'Adamo_Bozzani', 'Addin_Tyldesley', 'Adjutant_Lemoine', 'Adolf_Schmal_(sport_shooter)', 'Adolf_Tannert', 'Adolph_Weber', 'Adolphe_Rouleau', 'Aladár_von_Farkas', 'Albert_Bechestobill', 'Albe...
{"resultsets": [{"headers": ["dated", "Main_space_new_pages"], "rowcount": 20}], "runningtime": "8.47"}
enwiki_p
jawiki files with "oi_name"
null
SELECT oi_name#, oi_archive_name FROM oldimage #WHERE oi_archive_name = "" GROUP BY oi_name ASC
{"resultsets": [{"headers": ["ww-id", "ww-name", "ov", "erga"], "rowcount": 406}], "runningtime": "1297.38"}
jawiki
active users with over 100 edits ukwiki
null
Select count(*) as actor_edits From recentchanges_userindex Group by rc_actor Having actor_edits >= 100
{"resultsets": [{"headers": ["site_id", "site_global_key", "site_type", "site_group", "site_source", "site_language", "site_protocol", "site_domain", "site_data", "site_forward", "site_config"], "rowcount": 10}], "runningtime": "0.06"}
nlwiki_p
Red links
null
( SELECT DISTINCT(pl_title) AS article FROM pagelinks WHERE pl_namespace = 0 AND pl_from_namespace = 0 ) EXCEPT ( SELECT page_title AS article FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 )
{"resultsets": [{"headers": ["ww-id", "ww-name", "ov - hebben", "erga - zijn"], "rowcount": 10}], "runningtime": "0.14"}
enwiki_p
Most prolific Lexeme creators (Dagbani)
null
SELECT actor.actor_name as Username, COUNT(actor.actor_name) AS cnt FROM page JOIN revision ON page.page_id=revision.rev_page JOIN pagelinks ON page.page_id=pagelinks.pl_from JOIN actor ON revision.rev_actor=actor.actor_id WHERE page.page_namespace=146 AND revision.rev_parent_id=0 # No parent rev = page creatio...
{"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name"], "rowcount": 0}], "runningtime": "0.05"}
wikidatawiki_p
Items with the most sitelinks with no ukwiki link
null
select ips_item_id, ips_site_page, count(*) as links, (select count(*) from wb_items_per_site ips_bis where ips_bis.ips_site_id = "ukwiki" and ips_bis.ips_item_id = ips.ips_item_id) as ukwiki from wb_items_per_site ips group by ips_item_id having ukwiki < 1 order by links desc limit 10000
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 100}], "runningtime": "0.24"}
wikidatawiki_p
Items with the most sitelinks with no ukwiki link, no templates and categories
null
select ips_item_id, ips_site_page, count(*) as links, (select count(*) from wb_items_per_site ips_bis where ips_bis.ips_site_id = "ukwiki" and ips_bis.ips_item_id = ips.ips_item_id) as ukwiki, (select count(*) from pagelinks pl where pl.pl_title in ("Q11266439", "Q4167836") and p.page_id = pl.pl_from) as templateorcate...
{"resultsets": [{"headers": ["page_id", "page_title", "created", "No_revs", "No_editors"], "rowcount": 100}], "runningtime": "791.52"}
wikidatawiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"connection_id": 69508703}
enwiki_p
Most wanted articles: ns0→ns0 redlinks only
null
SELECT pl_title Target, SUM(page_title IS NULL) LinkCount FROM pagelinks LEFT JOIN page ON page_namespace=0 AND page_title=pl_title WHERE pl_from_namespace=0 AND pl_namespace=0 AND pl_title < "B" GROUP BY Target HAVING LinkCount>500 ORDER BY LinkCount DESC
{"resultsets": [{"headers": ["edits", "user"], "rowcount": 18}], "runningtime": "46.25"}
enwiki_p
Articles with "none" short description
null
SELECT CONCAT('https://en.wikipedia.org/wiki/', p.page_title) AS 'Page' FROM page p LEFT JOIN page_props pp ON p.page_id = pp.pp_page AND pp.pp_propname = 'wikibase-shortdesc' WHERE p.page_namespace = 0 AND p.page_id IN ( SELECT cl_from FROM categorylinks WHERE cl_to = 'Articles_with_short_description' ) AND pp.pp_v...
{"resultsets": [{"headers": ["erstellt von", "ge\u00e4ndert von", "ge\u00e4ndert JJJJ-MM", "Anzahl", "bis zu 5 Artikel"], "rowcount": 163}], "runningtime": "0.64"}
enwiki_p
Get a Wikipedia username based on user_id
null
SELECT user_name FROM user WHERE user_id = 4454776
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 31}], "runningtime": "0.26"}
enwiki
pages without wikidata_item
null
SELECT count(distinct(page_id)) as c FROM page LEFT JOIN page_props ON page_id = pp_page AND pp_propname="wikibase_item" WHERE page_namespace=0 AND page_is_redirect=0 AND page_len>500 AND pp_page IS NULL
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 1}], "runningtime": "1.65"}
dewiki
barwiki pages without Wikidata items
cf. https://phabricator.wikimedia.org/T209891 https://bar.wikipedia.org/wiki/American_Heritage_Dictionary links to https://www.wikidata.org/wiki/Q464886 and should thus not appear in the results here.
SELECT page_title, page_id, pp_page FROM ( SELECT page_title, page_id FROM barwiki_p.page WHERE page_namespace = 0 AND page_is_redirect = 0 ) AS page_titles LEFT JOIN ( SELECT pp_page FROM barwiki_p.page_props WHERE pp_propname = 'wikibase_item' AND pp_value IS NOT nu...
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 0}], "runningtime": "0.90"}
barwiki_p
Edit count Unionism in Ireland articles summary
null
WITH RECURSIVE get_name_dabs (page_title, page_id, page_namespace, inc, parent_title, parent_namespace) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace FROM page WHERE page_title IN ("Unionism_in_Ireland") AND page_namespace = 14 ) UNION ( SELECT child.page...
{"resultsets": [{"headers": ["Page", "Deleting admin", "Edit summary", "Timestamp"], "rowcount": 684}], "runningtime": "3.39"}
enwiki_p
Edit count Irish Nationalism articles summary
null
WITH RECURSIVE get_name_dabs (page_title, page_id, page_namespace, inc, parent_title, parent_namespace) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace FROM page WHERE page_title IN ("Irish_nationalism") AND page_namespace = 14 ) UNION ( SELECT child.page_t...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 4726}], "runningtime": "1941.18"}
enwiki_p
Edit count all articles summary
null
WITH counts AS (SELECT edits, reverted_edits, user_editcount AS total_edits FROM user RIGHT JOIN (SELECT actor_user, actor_name, COUNT(*) AS edits, COUNT(ct_tag_id) AS reverted_edits FROM page JOIN revision ON page_id = rev_page JOIN actor ON actor_id = rev_actor LEFT JOIN change_tag ON ct_rev_id = rev_id AND (c...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 500}], "runningtime": "38.34"}
enwiki_p
Edit count Irish Nationalism, Unionism in Ireland, The Troubles, articles summary
null
WITH RECURSIVE get_name_dabs (page_title, page_id, page_namespace, inc, parent_title, parent_namespace) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace FROM page WHERE page_title IN ("Irish_nationalism", "Unionism_in_Ireland", "The_Troubles_(Northern_Ireland)") AND p...
{"resultsets": [{"headers": ["User", "Registered", "Edit count", "Last edit", "Filter trip count", "Last filter trip"], "rowcount": 57}], "runningtime": "56.31"}
enwiki_p
Edit Warring The Troubles
null
WITH RECURSIVE get_name_dabs (page_title, page_id, page_namespace, inc, parent_title, parent_namespace) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace FROM page WHERE page_title IN ("Irish_nationalism", "Unionism_in_Ireland", "The_Troubles_(Northern_Ireland)") AND p...
{"resultsets": [{"headers": ["gt_name", "gt_lat", "gt_lon", "COUNT(*)"], "rowcount": 10847}], "runningtime": "29.67"}
enwiki_p
Statystyki 2023-02
null
set @start_timestamp := 20230201000000; set @end_timestamp := 20230228000000; select actor_name, count(log_id) as creation_count from logging inner join page on page_id = log_page inner join actor on actor_id = log_actor where log_type = "create" and page_namespace = 0 and log_timestamp >= @start_ti...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 0}], "runningtime": "71.86"}
plwikinews_p
G/AFL 104 hits
null
SELECT DISTINCT afl_user_text FROM abuse_filter_log WHERE afl_filter_id = 104 AND afl_timestamp >= 20230305000000 AND afl_timestamp <= 20230305235959 ORDER BY afl_timestamp
{"resultsets": [{"headers": ["user_talk"], "rowcount": 1706}], "runningtime": "1098.92"}
metawiki_p
ويكيبيديا:طلبات استبدال القوالب
null
# page id is 9127978 #select * from page where page_title = "شواهد_الكتاب_المقدس" and page_namespace = 10; #select page.page_title,page.page_namespace from templatelinks select distinct page.page_title from templatelinks inner join page on templatelinks.tl_from = page.page_id inner join linktarget on templatelinks.tl_...
{"resultsets": [{"headers": ["title"], "rowcount": 10}], "runningtime": "0.11"}
arwiki_p
Distinct Wikipedia article subjects (estimation)
Number of Wikidata items with at least one Wikipedia sitelink that does not contain a colon (cf. https://mas.to/@vrandecic/109971782350619380).
SELECT COUNT(DISTINCT ips_item_id) FROM wb_items_per_site WHERE ips_site_id LIKE '%wiki' AND ips_site_id NOT IN ('commonswiki', 'wikidatawiki') AND ips_site_page NOT LIKE '%:%'
{"resultsets": [{"headers": ["pt_namespace", "pt_title", "pt_timestamp"], "rowcount": 33180}], "runningtime": "27.89"}
wikidatawiki_p
Distinct Wikipedia article subjects (estimation)
Number of Wikidata items with at least one Wikipedia sitelink that does not contain a colon (cf. https://mas.to/@vrandecic/109971782350619380).
SELECT COUNT(DISTINCT ips_item_id) FROM wb_items_per_site JOIN sites ON ips_site_id = site_global_key WHERE site_group = 'wikipedia' AND ips_site_page NOT LIKE '%:%'
{"resultsets": [{"headers": ["pt_namespace", "pt_title", "pt_timestamp"], "rowcount": 32758}], "runningtime": "26.52"}
wikidatawiki_p
Distinct Wikipedia article subjects (estimation)
Number of Wikidata items with at least one Wikipedia sitelink that does not contain a colon (cf. https://mas.to/@vrandecic/109971782350619380).
SELECT COUNT(DISTINCT ips_item_id) FROM wb_items_per_site WHERE ips_site_id IN ( SELECT site_global_key FROM sites WHERE site_group = 'wikipedia' ) AND ips_site_page NOT LIKE '%:%'
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 1}], "runningtime": "51.76"}
wikidatawiki_p
Referenced unreferenced BLPs
null
WITH article AS ( SELECT * FROM page JOIN categorylinks ON page_id = cl_from AND cl_to = "All_unreferenced_BLPs" WHERE page_namespace = 0 ), no_ext AS ( SELECT DISTINCT(page_title), page_id, page_len FROM article LEFT JOIN externallinks ON page_id = el_from WHERE el_id IS NOT NULL ), no_temp AS ( SE...
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 31}], "runningtime": "0.38"}
enwiki_p
Red links <"A"
null
( SELECT pl_title AS article FROM pagelinks WHERE pl_namespace = 0 AND pl_from_namespace = 0 AND pl_title < "B" GROUP BY pl_title ) EXCEPT ( SELECT page_title AS article FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_title < "B" )
{"resultsets": [{"headers": ["User", "Registered", "Edit count", "Last edit", "Filter trip count", "Last filter trip"], "rowcount": 49}], "runningtime": "60.88"}
enwiki_p
Enwiki Wikidata edits in last 30 days (summary)
null
-- Historical values -- date,users_with_editcount100,distinct_pages,distinct_wikidataitems,distinct_properties -- Tue, 07 Feb 2023 17:35:58 UTC, 58,597,452,36 -- Tue, 14 Feb 2023 08:47:59 UTC, 60, 643, 499, 36 -- Wed, 22 Feb 2023 10:08:37 UTC, 66, 630, 604, 38 -- Tue, 28 Feb 2023 08:23:44 UTC, 66, 1093, 1055, 40 -- M...
{"resultsets": [{"headers": ["al_title", "link_title"], "rowcount": 259}], "runningtime": "0.48"}
enwiki
Stats of sysops
This query list the name of sysops, in a specific wiki.
SELECT user_name, COUNT(log_timestamp) FROM logging JOIN user ON user_id WHERE log_type = 'delete' AND log_action = 'delete' AND user_name IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'sysop');
{"resultsets": [{"headers": ["CONCAT('| [[:{{ns:', i.il_from_namespace, '}}:', p.page_title, ']] ||[[:\u0391\u03c1\u03c7\u03b5\u03af\u03bf:', i_p.page_title, ']]')"], "rowcount": 0}], "runningtime": "1.85"}
enwiki
A few Quora links on English Wikipedia
null
select concat('en.wikipedia.org/?curid=', page_id) as page_url, page_namespace as namespace, page_title as title, el_to as external_link from externallinks join page on page_id = el_from where el_index like 'https://com.quora%' limit 200;
{"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 34}], "runningtime": "0.22"}
enwiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["YEAR(rf.rev_timestamp)", "COUNT(*)"], "rowcount": 20}, {"headers": ["YEAR(rf.rev_timestamp)", "COUNT(*)"], "rowcount": 18}], "runningtime": "38.05"}
enwiki_p
ويكيبيديا:مستخدمو الأسبوع الأكثر نشاطا/بوتات
null
SELECT actor_name as name, COUNT(rev.rev_id) as score FROM revision rev INNER JOIN actor on rev.rev_actor = actor_id AND rev.rev_timestamp BETWEEN 20230227000000 AND 20230305235959 AND actor_name IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = "bot") and actor_name not in (S...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 4}], "runningtime": "100.16"}
arwiki_p
No. of edits
null
USE enwiki_p; SELECT COUNT(*) FROM revision_userindex WHERE rev_actor = (SELECT actor_id FROM actor WHERE actor_name = "24february2022") AND rev_timestamp >= "20140101";
{"resultsets": [{"headers": ["user_talk"], "rowcount": 41}], "runningtime": "152.68"}
enwiki_p
Contagem de usuários por gênero
null
SELECT `up_value` AS 'Gênero', COUNT(*) AS 'Total' FROM `user_properties` WHERE `up_property` = 'gender' GROUP BY `up_value`; SELECT COUNT(DISTINCT `up_user`) AS 'Total de usuários que definiram alguma preferência' FROM `user_properties`; SELECT COUNT(DISTINCT `user_name`) AS 'Total de usuários registrados' FROM `us...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 347}], "runningtime": "157.82"}
ptwiki_p
Editors by gender on ptwiki
null
select gender, count(gender), g.rev_user from (select rv.rev_user, COUNT(rv.rev_id) as edits , IFNULL(up_value, 'not specified') as gender from revision AS rv left join user_properties ps on rv.rev_user = ps.up_user where (rv.rev_timestamp BETWEEN DATE_FORMAT("2022-03-01" ,'%Y%m%d%H%i%s') and DATE_FORMAT("2023-...
{"resultsets": [{"headers": ["rc_title"], "rowcount": 3010}], "runningtime": "3.10"}
ptwiki_p
1000 maiores editores da ptwiki por número de edição e gênero
null
use ptwiki_p; select user_editcount, user_name, up_value from user u left join user_properties up ON ( u.user_id=up.up_user and up_property = "gender" ) left join user_groups ug on ( ...
{"resultsets": [{"headers": ["log_type"], "rowcount": 25}], "runningtime": "0.09"}
ptwiki_p
Unreferenced articles, not tagged, excluding lists
null
WITH RECURSIVE get_name_dabs (page_title, page_id, page_namespace, inc, parent_title, parent_namespace) AS ( ( SELECT page_title, page_id, page_namespace, 1, page_title, page_namespace FROM page WHERE page_title IN ("Set index articles", "All_disambiguation_pages", "Lists") AND page_namespace = 14 ...
{"resultsets": [{"headers": ["rev_actor", "COUNT(*)"], "rowcount": 99}], "runningtime": "1.68"}
enwiki_p
Most wanted articles: ns0→ns0 redlinks only
null
SELECT pl_title Target, SUM(page_title IS NULL) LinkCount FROM pagelinks LEFT JOIN page ON page_namespace=0 AND page_title=pl_title WHERE pl_from_namespace=0 AND pl_namespace=0 GROUP BY Target HAVING LinkCount>1000 ORDER BY LinkCount DESC
{"connection_id": 72290274}
enwiki_p
Most wanted articles: ns0→ns0 redlinks only ; suppress templates
null
# derived from https://quarry.wmcloud.org/query/71997 # suppressing any with links from templates # this does not work SELECT pl_title Target FROM pagelinks LEFT JOIN page ON page_namespace=0 AND page_title=pl_title WHERE pl_from_namespace=0 AND pl_namespace=0 AND pl_title < "B" AND page_title IS NULL EXCEPT SELECT...
{"resultsets": [{"headers": ["username", "cot"], "rowcount": 2386}], "runningtime": "97.30"}
enwiki_p
Most wanted articles: ns0→ns0 redlinks only
null
SELECT pl_title Target, SUM(page_title IS NULL) LinkCount FROM pagelinks PLa LEFT JOIN page ON page_namespace=pl_namespace AND page_title=pl_title WHERE pl_from_namespace IN (0,10) AND pl_namespace=0 AND pl_title like "Ab%" GROUP BY Target HAVING SUM(pl_from_namespace=10)=0 AND LinkCount>=10 ORDER BY LinkCount DESC
{"resultsets": [{"headers": ["str"], "rowcount": 0}], "runningtime": "3923.11"}
enwiki_p
Get deleted page creations of user
Used to get the pages created by a user that have since been deleted. Note that this query requires post-processing. Due to the way the `archive` table works, multiple log entries may be returned, causing the same ar_id to appear twice here. The receiving end must use post-processing to (1) match the correct `log_page...
SELECT *, ( SELECT GROUP_CONCAT(ctd_name SEPARATOR ",") FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id WHERE ct_log_id = pd.`log_id` ) as ts_tags FROM `archive_userindex` LEFT JOIN `logging_logindex` pd ON pd.`log_type` = "delete" AND pd.`log_title` = `ar_title` AND p...
{"resultsets": [{"headers": ["actor_name", "edit_count"], "rowcount": 1208}], "runningtime": "1.73"}
enwiki_p
wanted articles on trwiki (by wikiproject)
null
SELECT REPLACE(p.page_title, '_', ' ') AS baslik FROM page p WHERE p.page_namespace = 1 AND EXISTS (SELECT 1 FROM categorylinks cl WHERE cl.cl_from = p.page_id AND cl.cl_to LIKE '%Gerekli-sınıf%') ORDER BY p.page_title
{"resultsets": [{"headers": ["img_name"], "rowcount": 0}], "runningtime": "0.08"}
trwiki_p
Quick stats from sampling page table
A quick check to find the range of page_ids in the page table. For use toward the WikiProject auto-categorization stuff.
SELECT MIN(article.page_id), MAX(article.page_id), COUNT(*) AS my_count FROM page AS article WHERE article.page_namespace = 0 AND article.page_is_redirect = 0 AND article.page_id % 1000 = 77
{"resultsets": [{"headers": ["lt_id", "lt_namespace", "lt_title"], "rowcount": 100}], "runningtime": "0.14"}
enwiki_p
Possible people articles without talk pages
March 2023 execution time: 74 seconds, result set 4068 rows. Wider-reaching than other query, but more false positives.
SELECT page_title FROM page AS articles LEFT JOIN page_props ON pp_page = articles.page_id AND pp_propname = 'disambiguation' WHERE articles.page_namespace = 0 AND articles.page_is_redirect = 0 AND pp_page IS NULL AND NOT EXISTS ( SELECT 1 FROM page AS talk WHERE talk.page_...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "Wikidata"], "rowcount": 2}], "runningtime": "29.60"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_title", "pp_value"], "rowcount": 261}], "runningtime": "0.34"}
enwiki_p
pt.wikipedia.org active users by gender
null
select count(rc_id) as user_editcount, u.user_name, up.up_value from recentchanges left join actor ON ( recentchanges.rc_actor=actor.actor_id ) left join user u ON ( actor.actor_user=u.user_id ) left join user_properties up ON ( ...
{"resultsets": [{"headers": ["num"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 1}, {"headers": ["page_title", "page_id"], "rowcount": 1}], "runningtime": "1.19"}
ptwiki_p
pt.wikipedia.org male users
null
SELECT `user`.`user_name` AS `Nome`, `user`.`user_registration` AS `Registro`, `user`.`user_editcount` AS `Nº edições`, `revs`.`last_edit` AS `Última ed.` FROM `user` LEFT JOIN `user_properties` ON `user`.`user_id` = `user_properties`.`up_user` LEFT JOIN `actor` ON `user`.`user_id` = `actor`.`actor_u...
{"resultsets": [{"headers": ["num"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 1}, {"headers": ["page_title", "page_id"], "rowcount": 1}], "runningtime": "1.16"}
ptwiki_p
campaign 1lib1ref
null
WITH reg_users AS (SELECT user_registration, user_editcount, user_name FROM user WHERE user_name IN ('Kateregga1','Kahoutoure','AKibombo','Beatrice Ewa','IngridThomson','Godstime Elijah', 'DaSupremo','Ndahiro derrick','Geraldlouw','Henryxcel','Maria...
{"resultsets": [{"headers": ["editor", "accepts", "recent_edits", "Blocked"], "rowcount": 275}], "runningtime": "11.55"}
enwiki
Marathi Wikipedia top editors sorted by total number of edits
null
select rev_actor, actor_name, count(rev_id) as edit_count from revision, actor where rev_timestamp > 20220200000000 and rev_actor = actor_id group by rev_actor having count(rev_id) between 1 and 1000000 order by edit_count desc;
{"resultsets": [{"headers": ["user_talk"], "rowcount": 1870}], "runningtime": "590.19"}
mrwiki_p
Marathi Wikipedia top editors sorted by total number of edits
null
select rev_actor, actor_name, count(rev_id) as edit_count from revision, actor where rev_timestamp > 20220200000000 and rev_actor = actor_id group by rev_actor having count(rev_id) between 1 and 1000000 order by edit_count desc;
{"resultsets": [{"headers": ["page_title", "concat(\" \", p.page_title, \" \")"], "rowcount": 120}], "runningtime": "0.27"}
mrwiki_p
Wikidata item creations from Steam IDs (since September 2022)
Users who create items using https://github.com/Facenapalm/WikidataBot/blob/main/steam_parser.py
select actor_name, COUNT(revision.rev_id) as count from `comment` com -- comment table, escaped with ` since it is a reserved word JOIN revision ON rev_comment_id = com.comment_id JOIN actor_revision ON actor_id = revision.rev_actor WHERE rev_timestamp > '20220201000000' AND rev_timestamp < '20221001000000' AND comment...
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 4}], "runningtime": "3.16"}
wikidatawiki_p
fawiki editors still active after 15 years
null
select distinct rc_actor, actor_name from actor join recentchanges on actor_id = rc_actor and rc_source = 'mw.edit' join user on actor_user = user_id where user_registration < '20060324000000' limit 100
{"resultsets": [{"headers": ["user_talk"], "rowcount": 742}], "runningtime": "261.11"}
euwiki_p
Highest edit count (enwiki, last 30 days, not bots)
null
SET @rev = (SELECT MIN(rev_id) FROM revision WHERE rev_timestamp > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -30 DAY), "%Y%m%d%H%i%s")); SELECT COUNT(*) AS 'Edits', actor_name AS `User`, ug_group AS `Rights` FROM revision_userindex JOIN actor_revision ON rev_actor = actor_id LEFT JOIN user_gr...
{"resultsets": [{"headers": ["Offending user", "Blocked user", "Blocked user tagged sock?", "Blocked user block time", "Most recent interaction"], "rowcount": 730}], "runningtime": "55.22"}
euwiki_p
Biologie
null
SELECT p.page_title AS title, GROUP_CONCAT(DISTINCT cl.cl_to SEPARATOR ';') AS categories, GROUP_CONCAT(DISTINCT SUBSTRING_INDEX(SUBSTRING_INDEX(t.old_text, '{{ébauche|', -1), '}}', 1) SEPARATOR ';') AS stubs, GROUP_CONCAT(DISTINCT SUBSTRING_INDEX(SUBSTRING_INDEX(t.old_text, '{{taxobox', -1), '}}', 1) SEPARATOR...
{"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 871}], "runningtime": "2173.33"}
frwiki
https://db-names.toolforge.org/
null
select * from comment
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 4}], "runningtime": "10.02"}
abwiki
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL FROM enwiki_p.page p LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name WHERE p.page_namespace = 2 AND u.user_id IS NULL AND p.page_is_redirect = 0 AND NOT IS_IPV4(p.page_title) -- Exclude IPv4 AND NOT IS_IPV6(p.page_title...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect"], "rowcount": 1}], "runningtime": "9.85"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect"], "rowcount": 25}], "runningtime": "0.21"}
enwiki_p
English entries with no topic or set categories
null
select page_title as mainspace_title from ( select cl_from as entry_id from categorylinks where cl_to = 'English_lemmas' and page_title not like '%_%' ) as English_entries left join page on page_id = entry_id left join categorylinks on cl_from = entry_id where page_namespace = 0 group by entry_id having sum(cl_to...
{"resultsets": [{"headers": ["Page"], "rowcount": 68}], "runningtime": "0.16"}
enwiktionary
The oldest time of the skwiki revision
The oldest time of the skwiki revision
select rev_timestamp from revision order by rev_timestamp ASC LIMIT 1
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.05"}
skwiki_p
Highest edit count (enwiki, last 30 days, not bots)
null
SET @rev = (SELECT MIN(rev_id) FROM revision WHERE rev_timestamp > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -30 DAY), "%Y%m%d%H%i%s")); SELECT COUNT(*) AS 'Edits', actor_name AS `User`, ug_group AS `Rights` FROM revision_userindex JOIN actor_revision ON rev_actor = actor_id LEFT JOIN user_gr...
{"resultsets": [{"headers": ["Flags", "New articles in a period", "Wikidata item", "Creator", "Date created", "Length"], "rowcount": 178}], "runningtime": "2.22"}
ugwiki_p
öksüz diye işaretlenmiş ama öksüz olmayan maddeler
null
USE trwiki_p; SELECT concat("[[",replace(p.page_title,"_"," "),"]]") as madde , CONCAT("https://tr.wikipedia.org/w/index.php?action=edit&section=0&title=",replace(p.page_title," ","_")) as link0 , COUNT(pl.pl_from) as kaclink , CONCAT("[[Özel:SayfayaBağlantılar/",replace(p.page_title,"_"," "),"]]") as baglantilar -- , ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 72}], "runningtime": "0.20"}
trwiki_p
azwiki:Uncategorized articles
null
use azwiki_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;
{"resultsets": [{"headers": ["page_title"], "rowcount": 6549}], "runningtime": "10.37"}
azwiki_p
Diskussionsseiten ohne Hauptseite
null
SELECT CONCAT(CASE D.page_namespace WHEN 1 THEN '' WHEN 3 THEN 'Benutzer ' WHEN 5 THEN 'Wikipedia ' WHEN 7 THEN 'Datei ' WHEN 9 THEN 'MediaWiki ' ...
{"resultsets": [{"headers": ["namespace", "page_title", "pagelink", "is_redirect", "len", "last_edited", "last_edited_by"], "rowcount": 20623}], "runningtime": "21.28"}
dewiki_p
trwiki en çok çeviri yapanlar
null
use trwiki_p; SELECT rev_actor, actor_name, count(revision.rev_id) as articles_created FROM change_tag, actor, revision WHERE revision.rev_parent_id = 0 AND ct_tag_id = (select ctd_id from change_tag_def where ctd_name = 'contenttranslation') AND rev_id = ct_rev_id AND rev_actor = actor_id GROUP BY rev_acto...
{"resultsets": [{"headers": ["page_title"], "rowcount": 6483}], "runningtime": "11.74"}
trwiki_p
zh-forms han ref (prelim)
null
WITH t_zh_forms AS (SELECT * FROM linktarget WHERE lt_namespace = 10 AND lt_title = 'zh-forms'), t_han_ref AS (SELECT * FROM linktarget WHERE lt_namespace = 10 AND lt_title = 'Han_ref') SELECT DISTINCT page_title FROM page JOIN templatelinks ON tl_from = page_id WHERE tl_target_id IN (SELECT lt_id FROM t_han_ref)
{"resultsets": [{"headers": ["\u0627\u0644\u062a\u0631\u0627\u0643\u0645\u064a", "\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u062d\u0627\u0644\u0627\u062a \u0627\u0644\u0645\u0646\u0639"], "rowcount": 1}], "runningtime": "0.06"}
enwiktionary
Vandalismebestrijding - nlwiki
Achterstand / backlog: 316 11-03-2023 ca. 14:00 (CET)
# anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION SELECT 'total...
{"resultsets": [{"headers": ["Page"], "rowcount": 11}], "runningtime": "54.20"}
nlwiki_p
Get largest net addition edits of user
title, basically
SELECT *, (CAST(`main`.`rev_len` AS SIGNED) - CAST(`parent`.`rev_len` AS SIGNED)) AS `diff` FROM `revision_userindex` AS `main` LEFT JOIN `revision_userindex` AS `parent` ON `parent`.`rev_id` = `main`.`rev_parent_id` LEFT JOIN `comment_revision` ON `main`.`rev_comment_id` = `comment_id` LEFT JOIN `change_tag` ct_r...
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 97}], "runningtime": "18.55"}
enwiki_p
Which languages have the most terms with redundant head parameter
null
select language, count, lemma_count, round(cast(count as float) / cast(lemma_count as float), 2) as fraction from ( select language, count(*) as count from ( select substring(cl_to, 1, instr(cl_to, '_terms_with_redundant_head_parameter') - 1) as language from categorylinks where cl_to like '%\_terms\_wi...
{"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "2.09"}
enwiktionary
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["Flags", "New articles in a period", "Wikidata item", "Creator", "Date created", "Length"], "rowcount": 130}], "runningtime": "2.13"}
enwiki_p
Number of Dagbani Lexemes per user
null
select actor_name, count(*) c from revision_userindex join page on rev_page=page_id join actor_revision on rev_actor=actor_id JOIN pagelinks ON page.page_id=pagelinks.pl_from where page_namespace = 146 AND pagelinks.pl_title="Q33578" # Igbo group by actor_user order by c desc Limit 30;
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 500}], "runningtime": "56.72"}
wikidatawiki_p
WLM-UA 2022 + WLE-UA 2021
null
use commonswiki_p; SELECT CONCAT("# {{#target:User_talk:", actor_name, "|}}") 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_2022_in_Ukraine", "Images_from...
{"resultsets": [{"headers": ["basepage_title"], "rowcount": 123}], "runningtime": "97.88"}
commonswiki
Free media, only used in userspace, without {{Userspace file}} or {{Esoteric file}}
Files in Category:All free media, only used in userspace, without {{Userspace file}} or {{Esoteric file}}.
SELECT*FROM linktarget WHERE lt_title="Keep_local" AND lt_namespace=10 /* SELECT page_title FROM categorylinks JOIN page ON page_id=cl_from AND page_namespace=6 JOIN imagelinks ON il_to=page_title LEFT JOIN templatelinks ON tl_from=cl_from AND tl_target_id in (453751,456) /* {{Userspace file}} or {{Esoteric file}} *x/ ...
{"resultsets": [{"headers": ["New WikiQuote #SheSaid article", "Creator", "Date created", "Wikidata item", "Length", "Problem"], "rowcount": 933}], "runningtime": "4.66"}
enwiki_p
show tables
null
show tables;
{"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...
enwiki
max(page_touched) GER
null
SELECT page_title, max(page_touched) from page
{"resultsets": [{"headers": ["Page", "Page length", "Re-created at"], "rowcount": 230}], "runningtime": "14.26"}
enwiki