title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Simple English Wikipedia: Unusually large IAB edits
null
SELECT actor_id FROM actor WHERE actor_name="InternetArchiveBot";
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 3370}], "runningtime": "25.89"}
simplewiki_p
Shortened url to Wikidata queries
null
USE wikidatawiki_p; SELECT page_id, page_title, el_to FROM externallinks, page WHERE el_from = page_id AND el_to LIKE '%//w.wiki/%'
{"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name", "ratio_revocation", "nb_editions", "last_revocation", "user_registration"], "rowcount": 3}], "runningtime": "0.72"}
wikidatawiki_p
Number of categorymembers per year and month
The number of members of a specific category grouped by the year and month they were added. Members of subcategories are not included.
SELECT EXTRACT(YEAR_MONTH FROM cl_timestamp) AS year_and_month, COUNT(DISTINCT(cl_from)) AS num_files FROM categorylinks WHERE cl_to="Uploaded_with_pattypan" AND cl_type="file" GROUP BY EXTRACT(YEAR_MONTH FROM cl_timestamp) ASC
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 8}, {"headers": ["count(*)"], "rowcount": 1}], "runningtime": "0.14"}
commonswiki_p
Number of categorymembers per year
The number of members of a specific category grouped by the year they were added. Members of subcategories are not included.
SELECT YEAR(cl_timestamp) AS year, COUNT(DISTINCT(cl_from)) AS num_files FROM categorylinks WHERE cl_to="Uploaded_with_pattypan" AND cl_type="file" GROUP BY YEAR(cl_timestamp) ASC
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "1.33"}
commonswiki_p
SRwiki GFDL only files by upload date in cat
null
#USE srwiki_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": [{"headers": ["page_title", "pl_title"], "rowcount": 753}], "runningtime": "3.53"}
srwiki_p
Wiktionary: Number of lemmas a reconstructed language has
null
SELECT cat_title, cat_pages FROM category WHERE cat_title LIKE "Proto%lemmas" ORDER BY cat_pages DESC;
{"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "2.64"}
enwiktionary_p
Wiktionary: Number of lemmas an "Old/Middle" language has
null
SELECT cat_title, cat_pages FROM category WHERE cat_title REGEXP "(Old|Middle).*lemmas" ORDER BY cat_pages DESC;
{"resultsets": [{"headers": ["user_name"], "rowcount": 18}], "runningtime": "0.08"}
enwiktionary_p
Users on svwiki editing most in 2022
Users with most edits in the main namespace in 2022 on svwiki.
SELECT actor_name, COUNT(rev_id) as edits FROM revision JOIN page ON rev_page = page_id JOIN actor ON rev_actor = actor_id WHERE rev_timestamp like '2022%' AND page_namespace= 0 GROUP BY actor_name HAVING COUNT(rev_id) > 20000 ORDER BY edits DESC
{"resultsets": [{"headers": ["rc_title", "rc_timestamp", "rc_this_oldid", "rc_last_oldid", "actor_name", "rc_comment", "rc_old_len", "rc_new_len", "rc_new_len-rc_old_len"], "rowcount": 287}], "runningtime": "0.45"}
svwiki_p
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": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 0}], "runningtime": "0.04"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 7}, {"headers": ["avg_edits_per_day"], "rowcount": 1}, {"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 8}, {"headers": ["avg_edits_per_day"], "rowcount": 1}], "runningtime": "3.49"}
enwiki_p
Links to dabs called * station, * line, * railway or * metro
null
SELECT pl_title AS TargetDab, CONCAT(CASE pl_from_namespace WHEN 0 THEN "" WHEN 10 THEN "Template:" WHEN 14 THEN "Category:" WHEN 100 THEN "Portal:" ELSE CONVERT(pl_from_namespace, CHAR) END, Pa.page_title) AS LinkedFrom FROM pagelinks JOIN page Pd ON page_namespace=0 AND page_title=pl_title JOIN page_props ON ...
{"resultsets": [{"headers": ["CONCAT('# [[',REPLACE(page_title,'_',' '),']]')"], "rowcount": 313}], "runningtime": "126.18"}
enwiki_p
Skin usage statistics wikisource
Number of users of each skin @plwikisource
SELECT up_value AS skin, count(*) AS users, max(upa_touched) AS last_updated FROM user_properties_anon WHERE up_property="skin" GROUP BY up_value ORDER BY users DESC;
{"resultsets": [{"headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"], "rowcount": 150}], "runningtime": "3.07"}
plwikisource_p
PDFs uploaded on English Wikipedia
null
SELECT log_title, log_timestamp FROM logging WHERE log_action = "create" AND log_namespace = "100"
{"resultsets": [{"headers": ["actor_name", "countt"], "rowcount": 25}], "runningtime": "0.58"}
enwiki
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", "Deleting admin", "Edit summary", "Timestamp"], "rowcount": 23}], "runningtime": "0.41"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 259}], "runningtime": "0.29"}
enwiki_p
F2 speedy deletions
This is a list of X2 speedy deletions, code shamelessly stolen from Cryptic.
SELECT DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:%i:%s') AS timestamp, concat("File:",log_title) as page, comment_text FROM logging JOIN comment_logging ON comment_id = log_comment_id WHERE log_type = 'delete' AND log_action = 'delete' AND log_namespace = 6 AND comment_text RLIKE '\\bF2\\b' ORDER BY l...
{"resultsets": [{"headers": ["Reviewer", "Article Reviews"], "rowcount": 0}], "runningtime": "1.77"}
enwiki
Most pending changes accepts (all time)
null
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank, actor_name, COUNT(log_actor) AS manual_accept_count FROM logging_userindex JOIN actor_logging ON actor_id = log_actor WHERE log_type = 'review' AND log_action = 'approve' GROUP BY log_actor ORDER BY manual_accept_count DESC LIMIT 1000
{"resultsets": [{"headers": ["page_title", "comment_text"], "rowcount": 2030}], "runningtime": "6.13"}
enwiki
Experienced users and newcomers
null
SET @minEdits = 5; -- 1) number of edits the user has to have to be considered experienced SET @minTenureDays = 30; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced SET @eventDate = '20221117000000'; -- 3) see @minTenureDays SELECT user_name, user_editcount, ...
{"resultsets": [{"headers": ["user", "cnt"], "rowcount": 163}], "runningtime": "0.33"}
cswiki_p
wikidatawiki: latest deletion event for all deleted items
to be used locally in order to identify deleted items that are in use at Wikimedia Commons via SDC; this usage is difficult to track – only via WCQS in fact – and thus often overlooked during a Wikidata deletion process
WITH my_cte AS ( SELECT log_id, MAX(log_timestamp) AS max_log_timestamp FROM logging WHERE log_namespace=0 AND log_type='delete' AND log_action='delete' AND log_title LIKE 'Q%' GROUP BY log_id ) SELECT l.log_title, a.actor_name, l.log_timestamp FROM logging_userindex AS l JOIN actor_logging AS a ON l.log_a...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 7}], "runningtime": "38.95"}
wikidatawiki
all signpost articles (without singles/spvs)
null
SELECT page_title AS title FROM page WHERE page_namespace = "4" AND page_title LIKE "Wikipedia_Signpost/%%%%-%%-%%/%" AND page_title NOT LIKE "%/SPV" ORDER BY page_title ASC;
{"resultsets": [{"headers": ["CONCAT('# [[',REPLACE(page_title,'_',' '),']]')"], "rowcount": 190}], "runningtime": "60.33"}
enwiki_p
G9 speedy deletions
null
SELECT DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:%i:%s') AS timestamp, concat("",log_title), comment_text, actor_name FROM logging JOIN comment_logging ON comment_id = log_comment_id JOIN actor ON actor_id = log_actor WHERE log_type = 'delete' AND log_action = 'delete' AND log_namespace = 0 AND...
{"resultsets": [{"headers": ["actor_name", "COUNT(*)"], "rowcount": 34}], "runningtime": "0.08"}
enwiki
A2 speedy deletions
null
SELECT DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:%i:%s') AS timestamp, concat("",log_title), comment_text, actor_name FROM logging JOIN comment_logging ON comment_id = log_comment_id JOIN actor ON actor_id = log_actor WHERE log_type = 'delete' AND log_action = 'delete' AND log_namespace = 0 AND...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "39.50"}
enwiki
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"headers": ["rank", "actor_name", "sl"], "rowcount": 18}], "runningtime": "0.08"}
eswiki
user talk pages by linter errors
null
select CONCAT('User talk:', page_title) as page, count(*) as linter_errors from linter join page on page.page_id = linter.linter_page where page.page_namespace=3 group by page.page_id order by count(*) desc, page_title asc limit 2500;
{"resultsets": [{"headers": ["count(*)"], "rowcount": 1}], "runningtime": "0.80"}
enwiki
نشاط البيروقراط
null
select user_name, (select count(*) from logging inner join actor on actor_id = log_actor where actor_user = user_id and log_type = "rights" and log_timestamp <= 20221203235959 and #for test log_params like '%5::newgroups%"bot"%' ...
{"resultsets": [{"headers": ["page_title"], "rowcount": 161}], "runningtime": "0.81"}
arwiki_p
Link targets ending in 'ų'
null
select distinct page_title from page inner join pagelinks on pl_from = page_id where pl_title like '%ų' and pl_namespace = 0 and pl_from_namespace = 0
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 13}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 5}], "runningtime": "0.17"}
plwiktionary_p
P1 speedy deletions
This is a list of X2 speedy deletions, code shamelessly stolen from Cryptic.
SELECT DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:%i:%s') AS timestamp, concat("Portal:",log_title) as page, comment_text FROM logging JOIN comment_logging ON comment_id = log_comment_id WHERE log_type = 'delete' AND log_action = 'delete' AND log_namespace = 100 AND comment_text RLIKE '\\bP1\\b' ORDER...
{"resultsets": [{"headers": ["actor_name"], "rowcount": 83}], "runningtime": "415.01"}
enwiki
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"headers": ["ip16", "c"], "rowcount": 9391}], "runningtime": "44.80"}
eswiki
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...
{"connection_id": 65201048}
enwiki_p
Most prolific Lexeme creators (Czech)
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": ["user_talk"], "rowcount": 1564}], "runningtime": "751.99"}
wikidatawiki_p
Most prolific Lexeme creators (Czech, latest)
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": ["page_title"], "rowcount": 6}], "runningtime": "0.66"}
wikidatawiki_p
IP blocks for 123.*.*.*
null
SET @address = "24.19.%"; SELECT ipb_address, ipb_timestamp, ipb_expiry, actor_name, comment_text FROM ipblocks JOIN `comment` ON comment_id=ipb_reason_id JOIN actor ON actor_id=ipb_by_actor WHERE ipb_address LIKE @address AND ipb_user = 0 ORDER BY ipb_range_start, ipb_range_end DESC, ipb_timestamp
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 519}], "runningtime": "5.45"}
enwiki_p
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": ["url", "pagename", "page_id", "reason"], "rowcount": 3}], "runningtime": "56.93"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "2.19"}
enwiki_p
Number of articles created in each year in Farsi Wikipedia
Number of articles created in each year in Farsi Wikipedia
SELECT YEAR(rf.rev_timestamp), COUNT(*) FROM page p, revision rf WHERE rf.rev_page = p.page_id and rf.rev_parent_id = 0 and p.page_namespace = 0 and p.page_is_redirect = 0 GROUP BY YEAR(rf.rev_timestamp) ORDER BY YEAR(rf.rev_timestamp) ;
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 14}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 5}], "runningtime": "0.17"}
fawiki
Most tanked users in the year 2022 in Farsi Wikipedia
Most tanked users in the year 2022 in Farsi Wikipedia
SELECT log_title, COUNT(log_id) FROM logging_logindex WHERE log_type = "thanks" AND log_timestamp >= "20220000000000" AND log_timestamp <= "20230000000000" GROUP BY log_title ORDER BY 2 DESC
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 13}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 5}], "runningtime": "0.14"}
fawiki
20 Most edited articles of 2022 in Farsi Wikipedia
20 Most edited articles of 2022 in Farsi Wikipedia
SELECT page_title, COUNT(rev_id) AS edits FROM revision JOIN page ON rev_page = page_id WHERE rev_timestamp like '2022%' AND page_namespace= 0 GROUP BY page_title ORDER BY edits DESC LIMIT 20
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 12}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 5}], "runningtime": "0.14"}
fawiki
Ranking of plwiki registered users by overall revision size
null
select user_name, count(rev_id) as edit_count, sum(rev_len) as overall_bytes from revision inner join actor on rev_actor = actor_id inner join user on actor_user = user_id group by user_id order by overall_bytes desc;
{"resultsets": [{"headers": ["pl_title"], "rowcount": 0}], "runningtime": "0.10"}
plwiki_p
Properties and when they were created
null
select page_title, min(rev_timestamp) as creation_date from page inner join revision on page_id=rev_page where page_namespace=120 group by page_title order by creation_date desc;
{"resultsets": [{"headers": ["concat(page.page_id, ',')", "img_name", "img_metadata"], "rowcount": 201}], "runningtime": "0.31"}
wikidatawiki_p
Most thanking/thanked users in the year 2022 of Farsi Wikipedia
Most thanking/thanked users in the year 2022 of Farsi Wikipedia
-- Most thanked, last 12 months SELECT log_title as thanked_last_year, COUNT(*) as count FROM logging WHERE log_type = "thanks" AND log_timestamp >= "20220000000000" AND log_timestamp <= "20230000000000" GROUP BY log_title ORDER BY count DESC, log_title LIMIT 100; -- Most tha...
{"resultsets": [{"headers": ["rc_cur_id", "rc_title", "rc_patrolled"], "rowcount": 1243}], "runningtime": "1.27"}
fawiki
Most active editors of the year 2022 in Farsi Wikipedia
Most active editors of the year 2022 in Farsi Wikipedia
SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) desc) num, u.user_name, COUNT(*) FROM user u join actor a on a.actor_user=u.user_id join revision_userindex r on a.actor_id=r.rev_actor and r.rev_timestamp between 20220101000000 and 20230101000000 #join page p on p.page_id=r.rev_page GROUP BY u.user_name having COUNT(*)>50 O...
{"resultsets": [{"headers": ["page_id", "page_title", "page_len"], "rowcount": 1}], "runningtime": "0.05"}
fawiki
Article creation statistics on plwikinews 2022-12
null
set @start_timestamp := 20221201000000; set @end_timestamp := 20221231000000; 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": ["user_talk"], "rowcount": 42}], "runningtime": "19.80"}
plwikinews_p
Article creation statistics on plwikinews - 2022
null
set @start_timestamp := 20220101000000; set @end_timestamp := 20230101000000; 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": 2}], "runningtime": "80.94"}
plwikinews_p
New editors with exactly 10 recent edits all within an hour, not blocked
As the number making ten edits is similar to corresponding statistics for 9, 11, etc., there seems to be nothing to see here.
WITH byaccount AS (SELECT actor_name, MAX(rc_timestamp) AS last_edit, COUNT(*) AS edits /*, TIME_TO_SEC(TIMEDIFF(STR_TO_DATE(MAX(rc_timestamp),"%Y%m%d%H%i%s"),STR_TO_DATE(MIN(rc_timestamp),"%Y%m%d%H%i%s"))) AS tsdiff, user_registration, REPLACE(REPLACE(REPLACE(CURTIME() - INTERVAL 30 DAY,"-","")," ",""),":","") AS ur...
{"connection_id": 151832367}
enwiki_p
Users by number of created articles on dagwiki
null
-- USE skwiki_p; SELECT a.actor_name, COUNT(*) as count FROM page p, revision rf, actor_user a WHERE rf.rev_page = p.page_id and rf.rev_parent_id = 0 and a.actor_id = rf.rev_actor and p.page_namespace = 0 and p.page_is_redirect = 0 GROUP BY a.actor_name ORDER BY count desc L...
{"resultsets": [{"headers": ["touchlist"], "rowcount": 135}], "runningtime": "8.76"}
enwiki_p
قائمة البوابات حسب عدد المقالات
null
SELECT main.page_title, COUNT(*) - 1 as sub_page_count, (SELECT COUNT(*) FROM pagelinks WHERE pl_title = main.page_title and pl_from_namespace = 0 and pl_namespace = 100) as links_count FROM page AS p INNER JOIN ( SELECT page_title FROM page WHERE page_namespace = 100 AND page_is_redirect = 0 )AS...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 1951}], "runningtime": "2.55"}
arwiki_p
Page IDs of taxon authorities not linked to Wikidata
null
SELECT authorpage.page_id FROM page authorpage JOIN categorylinks authorcat ON authorcat.cl_from = authorpage.page_id WHERE authorpage.page_namespace = 0 AND authorcat.cl_to = "Taxon_authorities" AND authorpage.page_id NOT IN (SELECT pp_page FROM page_props WHERE pp_propname = "wikibase_item") AND authorpage.page_is_re...
{"resultsets": [{"headers": ["ipb_id", "ipb_timestamp", "user_name", "ipb_address", "ipb_expiry", "comment_text"], "rowcount": 51}], "runningtime": "0.21"}
specieswiki_p
Skin usage in ptwiki
For accounts that have logged in in the last year.
SELECT CASE up_value WHEN "monobook" THEN "monobook" WHEN "vector" THEN "vector" WHEN "vector-2022" THEN "vector-2022" WHEN "minerva" THEN "minerva" WHEN "cologneblue" THEN "cologneblue" WHEN "timeless" THEN "timeless" WHEN "modern" THEN "modern" ELSE "" END AS `skin`, COUNT(*) ...
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 201}], "runningtime": "19.20"}
ptwiki_p
Users on wikidata editing most unique days in 2022
Users editing in the main namespace every day in 2022 on wikidata.
SELECT actor_name, COUNT(DISTINCT substring(rev_timestamp, 1, 8)) as days FROM revision JOIN page ON rev_page = page_id JOIN actor ON rev_actor = actor_id WHERE rev_timestamp like '2022%' AND page_namespace= 0 GROUP BY actor_name HAVING COUNT(DISTINCT substring(rev_timestamp, 1, 8)) > 364 ORDER BY days DESC
{"resultsets": [{"headers": ["page_title", "page_id"], "rowcount": 44}], "runningtime": "0.27"}
wikidatawiki_p
Users on wikidata editing most unique days in 2022
Users editing in the main, property, and lexeme namespaces every day in 2022 on wikidata.
SELECT actor_name, COUNT(DISTINCT substring(rev_timestamp, 1, 8)) as days FROM revision JOIN page ON rev_page = page_id JOIN actor ON rev_actor = actor_id WHERE rev_timestamp like '2022%' AND (page_namespace=0 or page_namespace=120 or page_namespace=146) GROUP BY actor_name HAVING COUNT(DISTINCT substring(rev...
{"resultsets": [{"headers": ["Categoria"], "rowcount": 0}], "runningtime": "144.85"}
wikidatawiki_p
Users on ptwiki editing most unique days in 2022
Users editing in the main namespace every day in 2022 on ptwikipedia.
SELECT actor_name, COUNT(DISTINCT substring(rev_timestamp, 1, 8)) as days FROM revision JOIN page ON rev_page = page_id JOIN actor ON rev_actor = actor_id WHERE rev_timestamp like '2022%' AND page_namespace= 0 GROUP BY actor_name HAVING COUNT(DISTINCT substring(rev_timestamp, 1, 8)) > 364 ORDER BY days DESC
{"resultsets": [{"headers": ["page_title"], "rowcount": 58}], "runningtime": "24.28"}
ptwiki_p
Users in Wikidata editing for more than 1000 days in 2020s
null
SELECT actor_name, COUNT(DISTINCT substring(rev_timestamp, 1, 8)) as days FROM revision JOIN page ON rev_page = page_id JOIN actor ON rev_actor = actor_id WHERE rev_timestamp like '202%' AND page_namespace= 0 GROUP BY actor_name HAVING COUNT(DISTINCT substring(rev_timestamp, 1, 8)) > 1000 ORDER BY days DESC
{"resultsets": [{"headers": ["img_name", "img_timestamp", "COUNT(*)"], "rowcount": 9}], "runningtime": "0.07"}
wikidatawiki_p
Users on nowiki editing most unique days in 2022
Users editing in the main namespace every day in 2022 on wikidata.
SELECT actor_name, COUNT(DISTINCT substring(rev_timestamp, 1, 8)) as days FROM revision JOIN page ON rev_page = page_id JOIN actor ON rev_actor = actor_id WHERE rev_timestamp like '2022%' GROUP BY actor_name HAVING COUNT(DISTINCT substring(rev_timestamp, 1, 8)) > 300 ORDER BY days DESC
{"resultsets": [{"headers": ["user_talk"], "rowcount": 10155}], "runningtime": "4745.42"}
nowiki_p
Get a Wikipedia username based on user_id
null
SELECT user_name FROM user WHERE user_id = 4963
{"resultsets": [{"headers": ["cl_to"], "rowcount": 1357}], "runningtime": "2.17"}
euwiki
Skin usage in bnwiki (all time)
null
SELECT CASE up_value WHEN "monobook" THEN "monobook" WHEN "vector" THEN "vector" WHEN "vector-2022" THEN "vector-2022" WHEN "minerva" THEN "minerva" WHEN "cologneblue" THEN "cologneblue" WHEN "timeless" THEN "timeless" WHEN "modern" THEN "modern" ELSE "DEFAULT" END AS `skin`, CO...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 3}], "runningtime": "55.63"}
bnwiki_p
WSta நான்நாத்திகன்ஏன்
This Query will provide the list of users who did edit on given book with its all pages.
Use tawikisource_p; SET @w:=0; select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book WHERE rev_page IN (select p...
{"resultsets": [{"headers": ["cl_to", "CONCAT(page_namespace, ' ', page_title)"], "rowcount": 383}], "runningtime": "0.76"}
tawikisource_p
Redirects from users to project pages
null
SET STATEMENT max_statement_time = 100 FOR SELECT p.page_title AS 'user', rd_title AS 'target' FROM redirect JOIN page p ON p.page_id = rd_from AND rd_namespace = 4 WHERE p.page_namespace = 2 /* AND Ps.page_title *~ '______' */ LIMIT 1000
{"resultsets": [{"headers": ["actor_name", "count(rev_actor)"], "rowcount": 278}], "runningtime": "0.60"}
enwiki_p
fiwiki seulonnat 2022
null
SELECT log_user_text, floor(log_timestamp/10000000000) as year, SUM(log_action IN ('approve', 'approve2')) AS seulonnat, SUM(log_action IN ('approve-i', 'approve-i2')) AS ensiarvioinnit FROM logging_compat WHERE log_timestamp>20220023051813 AND log_timestamp<20230023051813 AND log_id>12759...
{"resultsets": [{"headers": ["user_name", "user_registration", "time", "user_editcount"], "rowcount": 47}], "runningtime": "40.32"}
fiwiki_p
my_user_name
my_username
select user_name FROM user WHERE user_email = 'turkspeed46@gmail.com';
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 300}], "runningtime": "56.20"}
enwiki
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": ["user_talk"], "rowcount": 315}], "runningtime": "203.23"}
enwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 28}], "runningtime": "33.72"}
enwiki_p
How many redirects to taxon authorities are there?
null
SELECT COUNT(*) FROM categorylinks INNER JOIN page dst ON categorylinks.cl_from = dst.page_id INNER JOIN redirect ON redirect.rd_title = dst.page_title INNER JOIN page src ON src.page_id = redirect.rd_from WHERE categorylinks.cl_to = "Taxon_authorities" AND dst.page_namespace = 0 AND redirect.rd_namespace = 0
{"resultsets": [{"headers": ["page_title"], "rowcount": 390}], "runningtime": "1.51"}
specieswiki_p
Number of article creations on Portuguese Wikipedia during 2022
null
SELECT log_id AS 'ID', log_namespace AS 'Namespace', log_title AS 'Title' FROM logging WHERE logging.log_id > 29336108 AND logging.log_id < 30043037 AND logging.log_type = "create" AND logging.log_namespace = 0 ORDER BY log_id DESC;
{"resultsets": [{"headers": ["page_title", "sum(link_count)"], "rowcount": 10413}], "runningtime": "789.02"}
ptwiki_p
Stewards statistics (2022)
null
use metawiki_p; select concat ("{{u|",user_name,"}}") as "username", (select count(*) from logging inner join actor on actor_id = log_actor where actor_user = user_id and log_type = "gblblock" and log_timestamp like "2022%") a...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 300}], "runningtime": "54.05"}
metawiki_p
enwiki blocks of usernames containing 'hillary'
null
SELECT user_name, ipb_timestamp, comment_text FROM user JOIN ipblocks ON ipb_user = user_id JOIN comment_ipblocks ON ipb_reason_id = comment_id WHERE user_name iLIKE '%hillary%' ORDER BY ipb_timestamp DESC
{"resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 1}], "runningtime": "0.06"}
enwiki_p
My contributions matching a certain comment pattern
null
SELECT page_title, rev_id, comment_text FROM revision JOIN comment_revision ON comment_id = rev_comment_id JOIN page ON page_id = rev_page WHERE rev_actor = 127494 AND rev_timestamp LIKE '2023012%' AND comment_text LIKE '%wbsetsitelink-set:1|specieswiki%'
{"resultsets": [{"headers": ["page_title", "comment_text"], "rowcount": 33633}], "runningtime": "34.83"}
wikidatawiki_p
DYKs of Nintendo taskforce
null
WITH pages_vg_talk AS ( SELECT page.page_title FROM page JOIN categorylinks AS cat1 ON cat1.cl_to = '任天堂工作组条目' AND cat1.cl_type = 'page' AND cat1.cl_from = page.page_id JOIN categorylinks AS cat2 ON cat2.cl_to = '优良条目讨论' -- '典范条目讨论', '特色列表讨论', '优良条目讨论', '推薦的新條目' AND cat1.cl_from = cat2.c...
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "0.45"}
zhwiki_p
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": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "0.54"}
enwiki_p
enwiki inactive bots (2 years)
enwiki inactive special users
SELECT user_name, rev_timestamp AS 'Last edit', GROUP_CONCAT(ug1.ug_group) AS 'user_groups' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('bot') JOIN actor ON actor_user = user_id JOIN revision_userindex ON rev_id = (SELECT rev_id FROM revision_userindex WHERE a...
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "0.44"}
enwiki_p
Exists a page "A (B)" but do not exists a page "A"
null
USE etwiki_p; SELECT CONCAT ('# [[',REPLACE(MID(Target.page_title,1,LOCATE('(',Target.page_title)-2),'_',' '),']] [[',REPLACE(Target.page_title,'_',' '),']]') FROM page AS Target WHERE Target.page_namespace = 0 AND Target.page_is_redirect = 0 AND Target.page_title LIKE "%(%" AND Target.page_title NOT LIKE "(%" #AND Tar...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 1206}], "runningtime": "439.95"}
etwiki_p
Number of ipblocks created/updated since 2023/01/01
null
select count(*) from ipblocks where ipb_timestamp >= '20230101000000' ;
{"resultsets": [{"headers": ["title", "rev_timestamp", "diff"], "rowcount": 1114}], "runningtime": "1.05"}
enwiki
Most popular individual edited pages
List of a user's top edited pages
SELECT page_namespace, page_title, COUNT(rev_id) AS edits FROM revision LEFT JOIN actor ON (revision.rev_actor = actor.actor_id) LEFT JOIN page ON (revision.rev_page = page.page_id) WHERE actor.actor_name = "NhacNy2412" GROUP BY page_namespace, page_title ORDER BY edits DESC LIMIT 30;
{"resultsets": [{"headers": ["page_title"], "rowcount": 32}], "runningtime": "0.23"}
viwiki_p
Articles without image
null
SELECT concat('[[', REPLACE(page_title,'_',' '),']]') FROM page LEFT JOIN imagelinks on il_from = page_id WHERE il_from IS NULL AND page_namespace = 0 AND page_is_redirect = 0 LIMIT 100000
{"resultsets": [{"headers": ["actor_name", "deleted_edits_in_mainspace"], "rowcount": 71}], "runningtime": "0.98"}
etwikiquote
Userspace pages of non-existent users (no talk, no subpages)
null
SELECT CONCAT('https://bn.wikipedia.org/wiki/user:', p.page_title) AS URL FROM bnwiki_p.page p LEFT JOIN bnwiki_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_title"], "rowcount": 284}], "runningtime": "0.30"}
bnwiki_p
Extension:FlaggedRevs
null
desc flaggedpages; /* select flaggedpage_pending.*, page.page_title from flaggedpage_pending inner join page on page.page_id = flaggedpage_pending.fpp_page_id where fpp_page_id in (3711625) limit 10; */ /* select flaggedrevs.*,user.user_name from flaggedrevs inner join user on flaggedrevs.fr_user = user.user_id where...
{"resultsets": [{"headers": ["concat(\"[[\", page_title, \"]]\")"], "rowcount": 12}], "runningtime": "0.07"}
arwiki_p
it.wiki navbox titles
null
SELECT page_title FROM page JOIN templatelinks ON page_id = tl_from JOIN linktarget on tl_target_id = lt_id WHERE page_is_redirect = 0 AND page_namespace = 10 AND lt_namespace = 10 AND lt_title IN ('Navbox', 'Template_di_navigazione') UNION SELECT page_title FROM page JOIN redirect ON page_i...
{"resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 1}], "runningtime": "0.05"}
itwiki_p
Wikidata items with � in labels as of 2023-01-21
null
SELECT wbit_item_id as id, wbxl_language as language, wbx_text as text FROM wbt_item_terms LEFT JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id LEFT JOIN wbt_type ON wbtl_type_id = wby_id LEFT JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id LEFT JOIN wbt_text ON wbxl_text_id = wbx_id WHERE wby_nam...
{"resultsets": [{"headers": ["cl_from"], "rowcount": 0}], "runningtime": "0.04"}
wikidatawiki_p
Most edited 100 Wikidata items over last seven days as of 2023-01-21
Inspired by http://quarry.wmflabs.org/query/1786 . The limit is set to 100 to avoid a Lua memory error when displaying via https://www.wikidata.org/wiki/User:Daniel_Mietchen/Quarry/1788 .
USE wikidatawiki_p; SELECT CONCAT('* {{Q|', rc_title, '}}:') AS item_id, COUNT(*) AS num_edits FROM recentchanges WHERE rc_namespace = 0 AND rc_timestamp > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 7 DAY), '%Y%m%d%H%i%s') GROUP BY item_id ORDER BY num_edits DESC LIMIT 100;
{"resultsets": [{"headers": ["cl_from"], "rowcount": 0}], "runningtime": "0.06"}
wikidatawiki_p
Wikidata items with <i> and </i> HTML tags in labels as of 2023-01-21
null
SELECT wbit_item_id as id, wbxl_language as language, wbx_text as text FROM wbt_item_terms LEFT JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id LEFT JOIN wbt_type ON wbtl_type_id = wby_id LEFT JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id LEFT JOIN wbt_text ON wbxl_text_id = wbx_id WHERE wby_nam...
{"resultsets": [{"headers": ["cl_from"], "rowcount": 10}], "runningtime": "0.06"}
wikidatawiki_p
User-to-mainspace redirects
null
SELECTSELECT concat( "*[https://en.wikipedia.org/w/index.php?title=User:{{urlencode:", p.page_title, "}}&redirect=no User:", p.page_title, "] redirects to [[:", r.rd_title, "]]" ) FROM redirect r INNER JOIN page p ON p.page_id = r.rd_from WHERE p.page_namespace = 2 AND r.rd_namespace = 0 AND p.page_ti...
{"resultsets": [{"headers": ["sum(page_len)"], "rowcount": 1}], "runningtime": "0.24"}
enwikidraft
it.wiki content pages
null
SELECT page_title FROM page WHERE page_is_redirect = 0 AND page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM templatelinks JOIN linktarget ON tl_target_id = lt_id WHERE tl_from = page_id AND lt_namespace = 10 AND lt_title IN ( 'Avvisobloccominaccia', 'Disambigua', 'Disambi...
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "0.08"}
itwiki_p
Largest files in Category:Lise Meitner
null
SELECT img_name, img_size FROM image JOIN page ON page_namespace = 6 AND page_title = img_name JOIN categorylinks ON cl_from = page_id WHERE cl_to = 'Lise_Meitner' AND cl_type = 'file' ORDER BY img_size DESC LIMIT 10;
{"resultsets": [{"headers": ["Article", "Created on"], "rowcount": 1}], "runningtime": "0.06"}
commonswiki_p
Largest files in Category:Uploaded with OpenRefine
null
SELECT img_name, img_size FROM image JOIN page ON page_namespace = 6 AND page_title = img_name JOIN categorylinks ON cl_from = page_id WHERE cl_to = 'Uploaded_with_OpenRefine' AND cl_type = 'file' ORDER BY img_size DESC LIMIT 10;
{"resultsets": [{"headers": ["user_talk"], "rowcount": 2111}], "runningtime": "1639.95"}
commonswiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["log_actor", "count(log_actor)"], "rowcount": 1}], "runningtime": "0.17"}
enwiki_p
sp2.1
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": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 37}], "runningtime": "6.08"}
enwiki
Unreviewed new articles with drafts
Database report: https://en.wikipedia.org/wiki/Wikipedia:New_pages_patrol/Reports
SELECT page.page_title AS `Article`, CONCAT('Draft:', draft.page_title) AS `Draft` FROM pagetriage_page JOIN page ON ptrp_page_id = page_id JOIN ( SELECT page_title FROM page WHERE page_namespace = 118 AND page_is_redirect = 0 ) draft ON page.page_title = draft.page_title...
{"resultsets": [{"headers": ["page_title", "pl_title", "page_latest"], "rowcount": 5}], "runningtime": "54.87"}
enwiki
Main topic classifications from an article
null
select c7.cl_to, count(*) from categorylinks c7 join (select p7.page_id from page p7 join (select c6.cl_to from categorylinks c6 join (select p6.page_id from page p6 join (select c5.cl_to from categorylinks c5 ...
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "1.32"}
enwiki
wd22 - prueba2
null
use wikidatawiki_p; select count(rc_id) as edits, actor_name as user from recentchanges_userindex left join actor on rc_actor = actor_id left join comment on rc_comment_id = comment_id where comment_text like '%The Distributed Game (83)%' and rc_timestamp > '20221214' and rc_timestamp < '20230108' group by rc_actor or...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "actor_id", "actor_user", "actor_name"], "rowcount": 0}], "runningtime": "0.03"}
wikidatawiki_p
enWikiquote: #SheSaid tagged new articles (01-Oct-22 : 31-Dec-22)
New #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022. 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 last length size (in the #SheSaid campaign peri...
SELECT CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New WikiQuote #SheSaid article", actor_name AS "Creator", CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ', MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created", ...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "actor_id", "actor_user", "actor_name"], "rowcount": 2}], "runningtime": "0.05"}
enwikiquote_p
Wikidata Latam Contest Results
null
use wikidatawiki_p; select count(rc_id) as edits, actor_name as user from recentchanges_userindex left join actor on rc_actor = actor_id left join comment on rc_comment_id = comment_id where comment_text like '%The Distributed Game (83)%' and rc_timestamp > '20221214' and rc_timestamp < '20230109' group by rc_actor or...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "actor_id", "actor_user", "actor_name"], "rowcount": 0}], "runningtime": "0.04"}
wikidatawiki_p
Wikidata Latam Contest Results
null
use wikidatawiki_p; select count(rc_id) as edits, actor_name as user from recentchanges_userindex left join actor on rc_actor = actor_id left join comment on rc_comment_id = comment_id where comment_text like '%The Distributed Game (83)%' and rc_timestamp > '20221214' and rc_timestamp < '20230108' group by rc_actor or...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "actor_id", "actor_user", "actor_name"], "rowcount": 0}], "runningtime": "0.05"}
wikidatawiki_p
ChatGPT in edit summary
null
select actor_name, page_title, rev_timestamp, comment_text from archive, comment, revision, actor, page where revision.rev_comment_id = comment.comment_id and revision.rev_actor=actor.actor_id and revision.rev_page=page.page_id and rev_timestamp > "20221201" and rev_timestamp < "20221215" and comment...
{"resultsets": [{"headers": ["ptrt_tag_id", "ptrt_tag_name", "ptrt_tag_desc"], "rowcount": 18}], "runningtime": "0.07"}
enwiki
ChatGPT in edit summary (faster) (November 2022)
null
select actor_name, rev_timestamp, comment_text from archive, comment, revision, actor where revision.rev_comment_id = comment.comment_id and revision.rev_actor=actor.actor_id and rev_timestamp > "20221101" and rev_timestamp < "20221201" and comment_text like "%ChatGPT%" limit 250
{"resultsets": [{"headers": ["@actor1", "@all_edits", "@article_edits", "@talk_page_edits", "@user_edits", "@user_talk_edits", "@wikipedia_edits", "@wikipedia_talk_edits", "@mediawiki_edits", "@mediawiki_talk_edits", "@template_edits", "@template_talk_edits", "@category_edits", "@category_talk_edits", "@help_edits", "@...
enwiki
JSTOR/Stable Link Search (TWL)
For getting link numbers for JSTOR now that Special:LinkSearch has a cap.
select count(*) from page, externallinks where page_id = el_from and el_index like 'https://www.persee.fr/authority/'
{"resultsets": [{"headers": ["@actor1", "@all_edits", "@article_edits", "@talk_page_edits", "@user_edits", "@user_talk_edits", "@wikipedia_edits", "@wikipedia_talk_edits", "@mediawiki_edits", "@mediawiki_talk_edits", "@template_edits", "@template_talk_edits", "@category_edits", "@category_talk_edits", "@help_edits", "@...
frwiki_p
Links to https://www.persee.fr (only) in frwiki
Links to http://jnul.huji.ac.il/heb in hewiki
use frwiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%http://www.persee.fr/search' and el_from = page_id and page_namespace = 0 limit 500000;
{"connection_id": 67576433}
frwiki_p
Links to https://www.persee.fr/articleAsPDF/ in frwiki
Links to http://jnul.huji.ac.il/heb in hewiki
use frwiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%https://www.persee.fr/articleAsPDF/%' and el_from = page_id and page_namespace = 0 limit 500000;
{"resultsets": [{"headers": ["Username", "cnt"], "rowcount": 80}], "runningtime": "26.99"}
frwiki_p
Links to https://www.persee.fr/issue/ in frwiki
Links to http://jnul.huji.ac.il/heb in hewiki
use frwiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%http://www.persee.fr/issue/%' and el_from = page_id and page_namespace = 0 limit 500000;
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 3398}], "runningtime": "24.17"}
frwiki_p
ChatGPT in edit summary (faster) (December 2022)
null
select actor_name, rev_timestamp, comment_text from archive, comment, revision, actor where revision.rev_comment_id = comment.comment_id and revision.rev_actor=actor.actor_id and rev_timestamp >= "20221201" and rev_timestamp < "20221215" and comment_text like "%ChatGPT%" limit 250
{"resultsets": [{"headers": ["actor_name", "count"], "rowcount": 1467}], "runningtime": "6.00"}
enwiki
Links to https://www.persee.fr/doc/ in frwiki
Links to http://jnul.huji.ac.il/heb in hewiki
use frwiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%http://www.persee.fr/doc/%' and el_from = page_id and page_namespace = 0 limit 500000;
{"resultsets": [{"headers": ["ss_total_edits"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_editcount", "user_admin", "user_bot"], "rowcount": 828}], "runningtime": "7.48"}
frwiki_p
Links to https://www.persee.fr/authority/ in frwiki
Links to http://jnul.huji.ac.il/heb in hewiki
use frwiki_p; select el_from, page_title, el_to from externallinks, page where el_to like '%http://www.persee.fr/authority/%' and el_from = page_id and page_namespace = 0 limit 500000;
{"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 101}], "runningtime": "15.78"}
frwiki_p