title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
ltwiki articles without any statements in Wikidata
null
use wikidatawiki_p; SELECT * FROM wb_items_per_site,page_props,page WHERE ips_site_id IN ('ltwiki') AND page_namespace=0 AND ips_item_id=substr(page_title,2)*1 AND page_id=pp_page AND pp_propname='wb-claims' AND pp_sortkey=0
{"resultsets": [{"headers": ["title"], "rowcount": 13345}], "runningtime": "11.72"}
wikidatawiki_p
Without interwiki articles on ltwiki
null
USE ltwiki_p; SELECT CONCAT('[[',page_title,']]') AS "Title", page_len AS "Size" FROM page where page_id not in (SELECT ll_from FROM langlinks) AND page_namespace = 0 AND page_is_redirect = 0 ORDER BY page_len DESC LIMIT 1000;
{"resultsets": [{"headers": ["actor_name", "rc_this_oldid", "comment_text"], "rowcount": 39}], "runningtime": "83.30"}
ltwiki_p
Pictures used in et.wikiquote
null
SELECT CONCAT ('[[', REPLACE(gil_page_title,'_',' '),']]'), CONCAT ('[[:File:', gil_to, ']]') FROM globalimagelinks AS gi JOIN image AS im on im.img_name = gi.gil_to WHERE gil_wiki = 'etwikiquote' AND gil_page_namespace_id = 0 AND img_media_type = 'BITMAP'
{"resultsets": [{"headers": ["user_talk"], "rowcount": 19}], "runningtime": "8.17"}
commonswiki_p
Short articles by source size (excluding redirects and disambiguation pages) (ltwiki)
null
use ltwiki_p; SELECT CONCAT('[[',page_title,']]') AS "Title", page_len AS "Size" FROM page WHERE page_namespace=0 AND page_is_redirect!=1 AND page_id NOT IN (SELECT pp_page FROM page_props WHERE pp_propname='disambiguation') ORDER BY page_len ASC LIMIT 3000;
{"resultsets": [{"headers": ["page_title"], "rowcount": 80}], "runningtime": "0.14"}
ltwiki
Uncategorized articles (trwiki)
https://quarry.wmflabs.org/query/5269
SELECT CONCAT('# [[',page_title,']]') AS "Kategorisiz madde" FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id NOT IN ( SELECT p.page_id FROM page p INNER JOIN categorylinks cl ON cl.cl_from = p.page_id INNER JOIN page p2 ON cl.cl_to = p2.page_title AND p2.page_namespace = 14 # 14 = Category LEFT...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.05"}
trwiki_p
Average waiting time for pending changes
null
SELECT ROUND(AVG(DATEDIFF(CURDATE(), CAST(CONCAT(FLOOR(fpp_pending_since/10000000000),'-',LPAD(FLOOR(fpp_pending_since/100000000) MOD 100,2,'0'),'-',LPAD(FLOOR(fpp_pending_since/1000000) MOD 100,2,'0')) AS date))),0) FROM flaggedpage_pending INNER JOIN page on page_id = fpp_page_id
{"resultsets": [{"headers": ["log_title", "actor_name", "log_timestamp", "comment_text"], "rowcount": 12705}], "runningtime": "24.41"}
huwiki
ltwiki: red links count gt 120
null
use ltwiki_p; SET sql_mode='PIPES_AS_CONCAT'; select '- [['||REPLACE(pl_title, '_', ' ')||']] <!-- '|| c ||' Links -->' as output from (select pl_title , count(*) as c , pl_namespace from pagelinks where pl_from_namespace=0 and pl_namespace=0 group by pl_title, pl_namespace having count(*)>97) ...
{"resultsets": [{"headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"], "rowcount": 4668}], "runningtime": "25.80"}
ltwiki_p
All unreviewed articles submitted more than a week back
null
SELECT p.page_title, p.page_namespace FROM pagetriage_page JOIN page as p ON p.page_id = ptrp_page_id and p.page_namespace=0 and p.page_is_redirect='0' and ptrp_reviewed_updated < DATE_ADD(CURDATE(), INTERVAL -7 DAY) and ptrp_reviewed=0;
{"resultsets": [{"headers": ["user_name"], "rowcount": 24}], "runningtime": "0.07"}
enwiki
Main topic classifications from an article final
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": ["page_namespace", "count(page_id)"], "rowcount": 26}], "runningtime": "103.66"}
enwiki
Draftified pages by month
Pages moved from the main namespace to draft, each month since 2021/07. log_params is plain awful to try to work with. For [[WP:RAQ#For NPP]] circa 20 Aug 2022.
SELECT LEFT(log_timestamp,6), COUNT(*) FROM logging WHERE log_type = 'move' AND log_params RLIKE 's:[0-9]+:"4::target";s:[0-9]+:"Draft:' AND log_timestamp >= '201601' AND log_namespace = 0 GROUP BY LEFT(log_timestamp,6) ORDER BY log_timestamp ASC;
{"resultsets": [{"headers": ["regexp_substr(page_title, '[^( \\()]+')"], "rowcount": 1}], "runningtime": "0.06"}
enwiki_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": ["regexp_substr(page_title, '[^\\)]+')"], "rowcount": 1}], "runningtime": "0.05"}
enwikiquote_p
enWikiquote: #SheSaid tagged updated articles (01-Oct-22 : 31-Dec-22)
This is related to a query for new #SheSaid WikiQuote 2022 campaign articles. on English WikiQuote from Oct 1st 2022 till 31 Dec 2022 and lists individual articles that identify as having been modified in the campaign period. This query looks at mainspaces article only and precisely considers the articles that have a...
SELECT CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "WikiQuote updated article in #SheSaid 2022", rvmax.rev_len - NVL(rvprior.rev_len,0) "Campaign size increase", rvmax.rev_len "Current size", CONCAT( MID(rvmax.rev_timestamp,1,4),'-',MID(rvmax.rev_timestamp,5,2),'-',MID(rvmax.rev_timestamp,7,2),' ', ...
{"resultsets": [{"headers": ["regexp_substr(page_title, '[^\\(]+')"], "rowcount": 1}], "runningtime": "0.05"}
enwikiquote_p
enWikiquote: All new articles since 20221001
New articles. on English WikiQuote from 1-Ocotober-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 latest version leverages the current date through the NOW() function and is set to examines ne...
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"], "rowcount": 1060}], "runningtime": "76.49"}
enwikiquote_p
enWikiquote: #SheSaid Contributors (01-Oct-22 : 31-Dec-22)
This list is a list of #SheSaid 2022 contributors defined as people who have marked an edit contribution as #SheSaid or who created a new article in the period which is in the scope of #SheSaid. This includes a small number of articles that are up for deletion
SELECT actor_name "User", count(*) "#Created" FROM revision r JOIN page ON rev_page=page_id JOIN actor_revision ON rev_actor=actor_id LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'wikibase_item' WHERE rev_id in (SELECT rev_id FROM r...
{"resultsets": [{"headers": ["user_name", "user_registration"], "rowcount": 186}], "runningtime": "0.76"}
enwikiquote_p
G13 deletions by year
Total deletions and deletions with G13 in the comment, grouped by year, for namespace 0. Counts may include articles, redirects and disambiguation pages.
SELECT SUBSTRING(log_timestamp,1,4) AS Year, COUNT(log_namespace = 0) Deletions, SUM(comment_id IS NOT NULL) AS G13 FROM logging LEFT JOIN `comment` ON comment_id = log_comment_id AND comment_text REGEXP "\\bG13\\b" WHERE log_type='delete' AND log_action='delete' AND log_namespace % 2 = 0 /* Exclude Talk: namespaces */...
{"resultsets": [{"headers": ["#", "Usuario/a", "Total"], "rowcount": 100}], "runningtime": "1.00"}
enwiki_p
G13 deletions by year
Total deletions and deletions with G13 in the comment, grouped by year, for namespace 0. Counts may include articles, redirects and disambiguation pages.
SELECT SUBSTRING(log_timestamp,1,4) AS Year, COUNT(log_namespace = 0) Deletions, SUM(comment_id IS NOT NULL) AS G13 FROM logging LEFT JOIN `comment` ON comment_id = log_comment_id AND comment_text REGEXP "\\bA7\\b" WHERE log_type='delete' AND log_action='delete' AND log_namespace % 2 = 0 /* Exclude Talk: namespaces */ ...
{"resultsets": [{"headers": ["count(page_id)"], "rowcount": 1}], "runningtime": "29.27"}
enwiki_p
List of CSD G13 deletion log entries
For fine tuning https://quarry.wmcloud.org/query/71594
SELECT logging.*, comment_logging.* FROM logging JOIN comment_logging ON log_comment_id = comment_id WHERE comment_text LIKE '%CSD%G13%' AND log_type = 'delete' AND log_action = 'delete' LIMIT 1000
{"resultsets": [{"headers": ["page_title"], "rowcount": 76}], "runningtime": "0.30"}
enwiki
# of CSD G13 deletions by year
https://en.wikipedia.org/wiki/Wikipedia:Request_a_query#Statistics_on_speedy_deletion
SELECT LEFT(log_timestamp, 4), COUNT(*) FROM logging JOIN comment_logging ON log_comment_id = comment_id WHERE comment_text LIKE '%CSD%G13%' AND log_type = 'delete' AND log_action = 'delete' AND LEFT(log_timestamp, 4) <= 2022 # omit year 2023, data for it is incomplete since year is not over yet GROUP BY LEFT(log...
{"resultsets": [{"headers": ["page_title"], "rowcount": 72}], "runningtime": "0.14"}
enwiki
Longest articles by source size (ltwiki)
null
use ltwiki_p; SELECT CONCAT('[[',page_title,']]') AS "Title", page_len AS "Size" FROM page WHERE page_namespace=0 AND page_is_redirect!=1 AND page_id NOT IN (SELECT pp_page FROM page_props WHERE pp_propname='disambiguation') ORDER BY page_len DESC LIMIT 1000;
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 0}], "runningtime": "0.04"}
ltwiki
Average daily number of edits per year on plwiki
This query excludes edits made by accounts that are or were bots.
SELECT SUBSTRING(day, 1, 4) AS `Rok`, AVG(daily) AS `Średnia dzienna liczba edycji` FROM ( SELECT SUBSTRING(rev_timestamp, 1, 8) AS day, COUNT(*) as daily FROM revision JOIN actor ON rev_actor = actor_id LEFT JOIN user ON user_id = actor_user WHERE 'bot' NOT IN ( SELECT ug_group FROM user_groups W...
{"resultsets": [{"headers": ["cat1", "cat2", "title"], "rowcount": 23}], "runningtime": "0.07"}
plwiki_p
Files on tt.wiki NOT in spec categories
null
#USE ttwiki_p; SELECT CONCAT("# [[:File:", img_name, "]]") AS file, actor_name FROM image JOIN actor_image ON img_actor = actor_id # JOIN page ON page_namespace=6 AND page_title = img_name AND page_is_redirect=0 #AND NOT EXISTS( #SELECT * FROM categorylinks #WHERE page_id=cl_from #AND (cl_to="All_free_media" #O...
{"resultsets": [{"headers": ["Tables_in_metawiki_p"], "rowcount": 111}, {"headers": ["iw_prefix", "iw_url", "iw_local", "iw_trans", "iw_api", "iw_wikiid"], "rowcount": 0}], "runningtime": "0.19"}
ttwiki_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...
{"connection_id": 76877029}
tawikisource_p
WStaபுதுமைப்பித்தன்_உதிர்த்த_முத்துக்கள்
This Query will provide the list of users who did edit on given book with its all pages.
UseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUse 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...
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "78.89"}
tawikisource_p
Articles with full protection on enwiki (edits only) (no redirects)
null
SELECT page_namespace AS "Namespace", page_title AS "Title", pr_level AS "Level", pr_expiry AS "Expiry" FROM page, page_restrictions WHERE page_restrictions.pr_level = "sysop" AND page_restrictions.pr_type = "edit" AND page_restrictions.pr_page = page.page_id AND page.page_namespace = 0 AND page.page_is_redirect != 1 ...
{"resultsets": [{"headers": ["declined_then_deleted", "actor_name"], "rowcount": 156}], "runningtime": "32.25"}
enwiki
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": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 89}], "runningtime": "21.61"}
tawikisource_p
Number of ipblocks created/updated since 2023/01/01
null
SELECT CONCAT(SUBSTRING(r.rev_timestamp, 1, 4), "-", SUBSTRING(r.rev_timestamp, 5, 2), "-01") AS ym, COUNT(DISTINCT a.actor_name) AS unique_ips FROM (SELECT rev_timestamp, rev_actor FROM revision WHERE rev_timestamp > '202212' AND rev_deleted = 0) r JOIN (SELECT actor_id, actor_name FROM actor WHERE actor_us...
{"resultsets": [{"headers": ["page_title"], "rowcount": 10}], "runningtime": "0.07"}
enwiki
Number of ipblocks created/updated since 2023/01/01
null
SELECT COUNT(*) FROM (SELECT DISTINCT a.actor_name AS ip FROM (SELECT rev_timestamp, rev_actor FROM revision WHERE rev_timestamp > '202212' and rev_timestamp < '202301' AND rev_deleted = 0) r JOIN (SELECT actor_id, actor_name FROM actor WHERE actor_user IS NULL) a ON r.rev_actor = a.actor_id) d ...
{"resultsets": [{"headers": ["page_title", "lt_title"], "rowcount": 0}], "runningtime": "0.14"}
enwiki
CX pages zhwiki -> zh_yuewiki (2022)
null
SELECT * FROM logging_logindex JOIN change_tag ON change_tag.ct_log_id = logging_logindex.log_id JOIN comment_logging ON comment_logging.comment_id = logging_logindex.log_comment_id WHERE log_timestamp < 20230101000000 AND log_timestamp > 20211231235959 AND log_type = 'create' AND log_namespace = 0 AND ct_tag_id = 10 A...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 10}], "runningtime": "0.05"}
zh_yuewiki_p
Vandalismebestrijding nlwiki
Backlog / achterstand:
# 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": ["user_talk"], "rowcount": 90}], "runningtime": "35.88"}
nlwiki_p
PAWS links to update on Meta
List of pages with PAWS links on Meta that might need updated per https://phabricator.wikimedia.org/T328842
SELECT p.page_namespace AS page_namespace, p.page_title AS page_title, el_from AS paws_link FROM externallinks el INNER JOIN page p ON (el.el_from = p.page_id) WHERE el_to LIKE '%public.paws.wmcloud.org%' ORDER BY page_namespace, page_title
{"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...
metawiki_p
PAWS links to update on Meta
List of pages with PAWS links on Meta that might need updated per https://phabricator.wikimedia.org/T328842
SELECT p.page_namespace AS page_namespace, p.page_title AS page_title, el_from AS paws_link FROM externallinks el INNER JOIN page p ON (el.el_from = p.page_id) WHERE el_to LIKE '%hub.paws.wmcloud.org%' ORDER BY page_namespace, page_title
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "is_newcomer"], "rowcount": 39}], "runningtime": "0.08"}
wikidatawiki
Share of sighted articles
null
SELECT COUNT(*) FROM flaggedpages INNER JOIN page ON page_id = fp_page_id WHERE page_namespace = 0 AND page_is_redirect = 0; SELECT COUNT(*) FROM flaggedpage_pending INNER JOIN page ON page_id = fpp_page_id WHERE page_namespace = 0 AND page_is_redirect = 0; SELECT COUNT(*) FROM page WHERE page_namespace = 0 AND page_is...
{"resultsets": [{"headers": ["page_title", "page_len", "rev_timestamp", "comment_text"], "rowcount": 384}], "runningtime": "30.59"}
huwiki
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_title", "page_len", "rev_timestamp", "comment_text"], "rowcount": 230}], "runningtime": "19.98"}
enwiki_p
Contas na Wikipédia em português com gênero definido como "female"
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": ["U2_page"], "rowcount": 770}], "runningtime": "149.20"}
ptwiki_p
p vs np related articles
trying to visualize a framework around the p = np question, according to wikipedia relations -
SELECT pl_title, pl_from from pagelinks where pl_from= (SELECT MIN(page_id) from page where page_title="P_versus_NP_problem")
{"resultsets": [{"headers": ["actor_name", "count(log_actor)"], "rowcount": 210}], "runningtime": "0.66"}
enwiki
DESCRIBE templatelinks;
null
DESCRIBE templatelinks;
{"resultsets": [{"headers": ["page_title"], "rowcount": 390}], "runningtime": "0.69"}
enwiki_p
APPERbot: Fix Wikilink mit Klammerlemma
Angezeigt wird der Artikel und der diff-Link
SELECT CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') AS Artikel, CONCAT('[[Spezial:Diff/', rev_id, ']]') AS "Diff", CONCAT(SUBSTR(rev_timestamp, 1, 4), ' ', SUBSTR(rev_timestamp, 5, 2), ' ', SUBSTR(rev_timestamp, 7, 2), ' ', SUBSTR(rev_timestamp, 9, 2), ':', SUBSTR(rev_timestamp, 11, 2),...
{"resultsets": [{"headers": ["ns", "page_title", "page_len"], "rowcount": 123}], "runningtime": "453.20"}
dewiki_p
Cup Finals
Titles with "(The xxx song)"
select page_title from page where page_namespace=0 and (page_title like '%Cup_Finals) and page_is_redirect=0
{"resultsets": [{"headers": ["editor", "accepts", "recent_edits", "Blocked"], "rowcount": 1812}], "runningtime": "13.88"}
en_wiki
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": ["reviews", "rc_title", "accepted", "accept %", "declined", "decline %"], "rowcount": 1214}], "runningtime": "18.24"}
tawikisource_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": ["total", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 1}], "runningtime": "23.39"}
tawikisource_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": ["declined_then_deleted", "actor_name"], "rowcount": 153}], "runningtime": "26.07"}
tawikisource_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": ["date", "reviews", "accepts", "declines", "rejects", "accept %", "decline %", "reject %"], "rowcount": 31}], "runningtime": "21.09"}
tawikisource_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": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 97}], "runningtime": "16.23"}
tawikisource_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": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 8}, {"headers": ["avg_edits_per_day"], "rowcount": 1}, {"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 9}, {"headers": ["avg_edits_per_day"], "rowcount": 1}], "runningtime": "0.39"}
tawikisource_p
WikiMedia
null
select * from page where page_title = 'Harry Potter';
{"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 3}], "runningtime": "107.30"}
enwikip
amFOSS workshop
null
SELECT * FROM page WHERE page_title = "Mars_Orbiter_Mission" AND page_namespace = 0;
{"resultsets": [{"headers": ["CONCAT('# [[',REPLACE(page_title,'_',' '),']]')"], "rowcount": 134}], "runningtime": "130.16"}
enwiki
wiki
null
SELECT * FROM page WHERE page_title = "Elon_Musk" AND page_namespace = 0;
{"resultsets": [{"headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"], "rowcount": 63}], "runningtime": "1.33"}
enwiki
title
null
select * from page where page_table = "Mars_Orbiter_Misssion" and page_namespace = 0;
{"resultsets": [{"headers": ["user_talk"], "rowcount": 2}], "runningtime": "1.23"}
enwikip
title
null
select * from page where page_title= "Mars_Orbiter_Misssion" and page_namespace = 0;
{"resultsets": [{"headers": ["page_title"], "rowcount": 10}], "runningtime": "88.02"}
enwiki
WIKI
null
SELECT * FROM page WHERE page_title = "Mars_Orbiter_Mission" AND page_namespace = 0;
{"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", "page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "...
enwiki
Wiki_hack
null
select * from page_title ="Virat_Kohli" and page_namespace=0;
{"resultsets": [{"headers": ["lt_title"], "rowcount": 44}], "runningtime": "9.06"}
enwiki
উইকিউক্তির শীর্ষ ভুক্তি প্রণেতা
১৫-০৫-২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে wikitable ক্লিক করুন।
SET @ct:=0; SELECT CONCAT("{{subst:formatnum:",@ct:=@ct+1,"}}") AS নং, CONCAT("{{u|",user,"}}") AS ব্যবহারকারী_নাম, CONCAT("{{subst:formatnum:",cnt,"}}") AS মোট_নিবন্ধ FROM ( SELECT actor_name AS user, COUNT(rev_id) AS cnt FROM actor JOIN revision ON rev_actor = actor_id JOIN page ON page_id = rev_page WH...
{"resultsets": [{"headers": ["page_id", "page_title"], "rowcount": 30}], "runningtime": "2.23"}
bnwikiquote
New articles created by a User
null
/* SELECT COUNT (p.page_id) FROM revision r, page p WHERE r.rev_parent_id = 0 AND p.page_namespace = 0 AND p.page_is_redirect = 0 AND r.rev_page = p.page_id AND r.rev_actor = 4193345; */ SELECT CONCAT("# [[",p.page_title,"]]") AS Sayfa, /*r.rev_timestamp,*/ p.page_len FROM revision r, page p /*, categorylinks c,...
{"resultsets": [{"headers": ["page_namespace", "page_title", "page_len", "rev_id"], "rowcount": 100}], "runningtime": "0.13"}
trwiki_p
Random sample of 92k revisions from English Wiktionary
null
SELECT rev_id FROM revision WHERE rev_timestamp BETWEEN "20230201" AND "20230224" ORDER BY RAND() LIMIT 5000;
{"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": 300}], "runningtime": "0.32"}
enwiki_p
humanwikipedia english
null
{ "version" : "1", "entities" : [ { "type" : "property", "properties" : [ { "property" : "P31", "rank" : "non-deprecated", "type" : "entityid", "value" : "Q5" } ] } ], "samplingPercent" : 100, "statements" : [ { "properties" : null, "rank" : "all", "simple" : tr...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 87}], "runningtime": "45.39"}
humanwikienglish
thwiki editors with between 1k-10k mobile edits since Jan2021
null
set @mobile_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'mobile edit' ); select rev_actor, actor_name, count(rev_id) as edit_count from revision, change_tag, actor where rev_timestamp > 20220100000000 and ct_rev_id = rev_id and ct_tag_id = @mobile_edit_tag ...
{"resultsets": [{"headers": ["actor_name", "edits", "reverted_edits", "total_edits"], "rowcount": 12}], "runningtime": "0.06"}
arwiki_p
thwiki editors with between 1k-10k mobile edits since Jan2021
null
set @desktop_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'desktop edit' ); select rev_actor, actor_name, count(rev_id) as edit_count from revision, change_tag, actor where rev_timestamp > 20220100000000 and ct_rev_id = rev_id and ct_tag_id = @desktop_edit_t...
{"connection_id": 116897441}
arwiki_p
Disambiguation pages that aren't disambig-class or tagged with WikiProject Disambiguation
The minimal fixes to get this working. For [[WP:RAQ#Disambiguation pages with no WikiProject banner]] circa 25 August 2022.
SELECT Pa.page_title FROM categorylinks JOIN page Pa ON Pa.page_namespace = 0 AND Pa.page_is_redirect = 0 AND Pa.page_id = cl_from JOIN page Pt ON Pt.page_title = Pa.page_title AND Pt.page_namespace = 1 WHERE cl_to = "All_disambiguation_pages" AND NOT EXISTS (SELECT 1 FROM categorylinks WHERE cl_from = Pt.page_id AND c...
{"resultsets": [{"headers": ["basepage_title"], "rowcount": 1236}], "runningtime": "60.00"}
enwiki_p
List_of_ambassadors_to%'
null
#NB! some redirects still here SELECT CONCAT("Category:",page_title,"") FROM page WHERE page_is_redirect = 0 #AND page_title LIKE 'List_of_ambassadors_to%' AND page_namespace = 0 #GROUP BY page_title #ORDER BY page_title ASC LIMIT 250000;
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 16}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 7}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 6}], "runningtime": "0.38"}
etwiki_p
ويكيبيديا:إخطار الإداريين/أسماء مستخدمين للفحص
null
select logging.log_title,user.* from logging inner join user on user.user_name = logging.log_title where log_type in ("newusers") and log_timestamp > DATE_SUB(NOW(), INTERVAL 1 day) and user.user_id NOT IN (SELECT ipb_user FROM ipblocks)
{"resultsets": [{"headers": ["Offending user", "Blocked user", "Blocked user tagged sock?", "Blocked user block time", "Most recent interaction"], "rowcount": 727}], "runningtime": "53.44"}
arwiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["basepage_title"], "rowcount": 416}], "runningtime": "16.09"}
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": ["basepage_title"], "rowcount": 416}], "runningtime": "15.48"}
enwiki_p
WC Qualifiers
null
select page_title from page where page_namespace=0 and (page_title like '%_World_Cup_Qualifier') and page_is_redirect=0
{"connection_id": 83552134}
enwiki
DESCRIBE categorylinks;
null
DESCRIBE categorylinks;
{"resultsets": [{"headers": ["rc_cur_id", "rc_title", "rc_patrolled"], "rowcount": 1341}], "runningtime": "1.44"}
enwiki_p
my spambot blocks
null
SELECT ipb_address, actor_name, ipb_timestamp, comment_text FROM ipblocks INNER JOIN actor ON ipblocks.ipb_by_actor = actor.actor_id INNER JOIN comment ON ipblocks.ipb_reason_id = comment.comment_id WHERE lower(cast(comment_text as CHAR)) RLIKE 'spambot' AND actor_name = 'Blablubbs' ORDER BY ipb_t...
{"resultsets": [{"headers": ["count(page_id)"], "rowcount": 1}], "runningtime": "32.73"}
enwiki_p
Fiwiki Wikidata edits in last 30 days (summary)
wikidata edits by fiwiki users
-- 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 SELECT count(distinct(rc_user_text)) as users_with_editcount100, count(distinct(page_title)) as distinct...
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 31}], "runningtime": "0.11"}
fiwiki_p
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": ["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": 119}], "runningtime": "0.33"}
fiwiki_p
Article/talk join test
null
SELECT Article.page_title, Article.page_id, Talk.page_id FROM page AS Article JOIN page AS Talk ON Article.page_title = Talk.page_title AND Talk.page_namespace = 1 WHERE Article.page_namespace = 0 AND Article.page_title = "Fish"
{"resultsets": [{"headers": ["WikiQuote updated article in #SheSaid 2022", "Campaign size increase", "Current size", "Last update", "Wikidata item"], "rowcount": 1}], "runningtime": "0.16"}
enwiki_p
Article/talk join test 4
null
SELECT Article.page_title, Article.page_id, Talk.page_id FROM ( SELECT * FROM page WHERE page_id = 4699587 ) AS Article JOIN page AS Talk ON Article.page_title = Talk.page_title AND Talk.page_namespace = 1
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 500}], "runningtime": "70.98"}
enwiki_p
DESCRIBE page;
null
DESCRIBE page;
{"resultsets": [{"headers": ["rc_cur_id", "rc_title", "rc_patrolled"], "rowcount": 1672}], "runningtime": "2.03"}
enwiki_p
SHOW INDEX FROM page;
null
SHOW INDEX FROM page;
{"resultsets": [{"headers": ["rfn", "redirect", "article"], "rowcount": 158}], "runningtime": "0.24"}
enwiki_p
Article/talk join test 5
null
SELECT Article.page_title, Article.page_id, Talk.page_id FROM ( SELECT * FROM page WHERE page_id = 4699587 ) AS Article JOIN ( SELECT * FROM page WHERE page_namespace = 1 ) As Talk WHERE Article.page_title = Talk.page_title
{"resultsets": [{"headers": ["rfn", "redirect", "article"], "rowcount": 463}], "runningtime": "0.48"}
enwiki_p
Article/talk join test 6
null
SELECT Article.page_title, Article.page_id, Talk.page_id FROM page AS Article JOIN page AS Talk ON Article.page_title = Talk.page_title WHERE Talk.page_title = "Fish" AND Article.page_title = "Fish"
{"resultsets": [{"headers": ["rfn", "redirect", "article"], "rowcount": 239}], "runningtime": "0.29"}
enwiki_p
testing wlm2022 but not prev wlms
null
use commonswiki_p; SELECT CONCAT(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") and rev_actor NOT IN ( select rev_actor...
{"resultsets": [{"headers": ["rfn", "redirect", "article"], "rowcount": 104}], "runningtime": "0.15"}
commonswiki_p
Deletion rates of CX and non-CX articles for a wiki
For one wiki, shows how many articles were created using Content Translation (CX articles) and how frequently they were deleted, compared to articles created using other methods (non-CX articles).
SET @start_time = '20220101'; -- 1 Jan 2020 SET @end_time = '20230101'; -- 1 Jan 2021 SET @cx_tag_id = ( SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'wikieditor' ); WITH nondeleted_new_articles AS ( SELECT SUM(IF(ct_tag_id = @cx_tag_id, 1, 0)) AS cx, SUM(IF(ct_tag_id IS NULL, 1, ...
{"resultsets": [{"headers": ["count(page_len)", "min(page_len)", "max(page_len)", "avg(page_len)", "std(page_len)", "variance(page_len)"], "rowcount": 1}], "runningtime": "0.06"}
bnwiki_p
Article/talk join test
This query should return immediately. But it doesn't. Why? See also https://quarry.wmcloud.org/query/71842 Now fixed: the reason was two columns with the same name on output; renaming one of them using AS made thequery run fine.
SELECT article.page_title, article.page_id, talk.page_id AS talkpageid FROM page AS article INNER JOIN page AS talk ON talk.page_title = article.page_title WHERE article.page_title = "Fish" AND article.page_namespace = 0 and talk.page_namespace = 1
{"resultsets": [{"headers": ["user_talk"], "rowcount": 4116}], "runningtime": "1946.58"}
enwiki_p
Article/talk join test, now expanded
null
SELECT article.page_title, article.page_id, talk.page_id AS talkpageid FROM page AS article INNER JOIN page AS talk ON talk.page_title = article.page_title WHERE article.page_namespace = 0 and talk.page_namespace = 1 LIMIT 100
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 14}], "runningtime": "7.80"}
enwiki_p
Edit count LGBT studies articles
null
WITH ids AS (SELECT cl_from FROM categorylinks WHERE cl_to = "WikiProject_LGBT_studies_articles"), title AS (SELECT page_title FROM ids JOIN page ON page_id = cl_from), article AS (SELECT page_id FROM page WHERE page_namespace = 0 AND page_title IN (SELECT * FROM...
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 0}], "runningtime": "1.04"}
enwiki_p
Wikidata descriptions (ig)
null
SELECT wbt_text.wbx_text as description, count(*) as c FROM wbt_item_terms JOIN wbt_term_in_lang ON wbt_item_terms.wbit_term_in_lang_id = wbt_term_in_lang.wbtl_id JOIN wbt_text_in_lang ON wbt_term_in_lang.wbtl_text_in_lang_id = wbt_text_in_lang.wbxl_id AND wbt_text_in_lang.wbxl_language = 'ig' JOIN...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 500}], "runningtime": "54.99"}
wikidatawiki_p
Edit count BLP articles summary
null
WITH ids AS (SELECT cl_from FROM categorylinks WHERE cl_to = "Living_people"), article AS (SELECT page_id FROM ids JOIN page ON page_id = cl_from WHERE page_namespace = 0), counts AS (SELECT edits, reverted_edits, user_editcount AS total_edits FROM user RIGHT JOIN (SELECT actor_user, acto...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 2}], "runningtime": "48.42"}
enwiki_p
Edit count all articles summary
null
WITH article AS (SELECT page_id FROM page WHERE page_namespace = 0), 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 article JOIN revision ON page_id = rev_page JOIN actor ON acto...
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 0}], "runningtime": "5.90"}
enwiki_p
's crown
null
SELECT page_title FROM page WHERE (page_title LIKE '%\'s_crown' OR page_title LIKE '%\'s_Crown') AND page_namespace = 0 AND page_is_redirect = 0
{"resultsets": [{"headers": ["user_talk"], "rowcount": 9880}], "runningtime": "4220.26"}
enwiki_p
Crown of
null
SELECT page_title FROM page WHERE page_title LIKE 'Crown_of_%' AND page_namespace = 0 AND page_is_redirect = 0
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 0}], "runningtime": "0.97"}
enwiki_p
Edit count LGBT studies articles summary
null
WITH ids AS (SELECT cl_from FROM categorylinks WHERE cl_to = "WikiProject_LGBT_studies_articles"), title AS (SELECT page_title FROM ids JOIN page ON page_id = cl_from), article AS (SELECT page_id FROM page WHERE page_namespace = 0 AND page_title IN (SELECT * FROM...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 2500}], "runningtime": "952.36"}
enwiki_p
Edit count Pakistan articles summary
null
WITH ids AS (SELECT cl_from FROM categorylinks WHERE cl_to = "WikiProject_Pakistan_articles"), title AS (SELECT page_title FROM ids JOIN page ON page_id = cl_from), article AS (SELECT page_id FROM page WHERE page_namespace = 0 AND page_title IN (SELECT * FROM tit...
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 93}], "runningtime": "0.29"}
enwiki_p
The Troubles categories
https://quarry.wmcloud.org/BilledMammal
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 ("The_Troubles_(Northern_Ireland)") AND page_namespace = 14 ) UNION ( SELEC...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 1790}], "runningtime": "728.44"}
enwiki_p
Edit count 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 ("The_Troubles_(Northern_Ireland)") AND page_namespace = 14 ) UNION ( SELEC...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 1368}], "runningtime": "527.52"}
enwiki_p
Edit count Kashmir articles summary
null
WITH ids AS (SELECT cl_from FROM categorylinks WHERE cl_to = "WikiProject_Jammu_and_Kashmir_articles"), title AS (SELECT page_title FROM ids JOIN page ON page_id = cl_from), article AS (SELECT page_id FROM page WHERE page_namespace = 0 AND page_title IN (SELECT * ...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 1732}], "runningtime": "669.72"}
enwiki_p
Edit count Kurds articles summary
null
WITH ids AS (SELECT cl_from FROM categorylinks WHERE cl_to = "WikiProject_Kurdistan_articles"), title AS (SELECT page_title FROM ids JOIN page ON page_id = cl_from), article AS (SELECT page_id FROM page WHERE page_namespace = 0 AND page_title IN (SELECT * FROM ti...
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 3}], "runningtime": "10.69"}
enwiki_p
Edit count Afghanistan articles summary
null
WITH ids AS (SELECT cl_from FROM categorylinks WHERE cl_to = "WikiProject_Afghanistan_articles"), title AS (SELECT page_title FROM ids JOIN page ON page_id = cl_from), article AS (SELECT page_id FROM page WHERE page_namespace = 0 AND page_title IN (SELECT * FROM ...
{"resultsets": [{"headers": ["Page", "Count"], "rowcount": 0}], "runningtime": "0.86"}
enwiki_p
Edit count India articles summary
null
WITH ids AS (SELECT cl_from FROM categorylinks WHERE cl_to = "WikiProject_India_articles"), title AS (SELECT page_title FROM ids JOIN page ON page_id = cl_from), article AS (SELECT page_id FROM page WHERE page_namespace = 0 AND page_title IN (SELECT * FROM title)...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 1464}], "runningtime": "615.01"}
enwiki_p
Edit count contentious 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 ("Wikipedia_pages_about_contentious_topics") AND page_namespace = 14 ) UNION ( ...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 1}], "runningtime": "49.41"}
enwiki_p
Wikisource gadget counts
null
SELECT up_property, COUNT(*) FROM enwikisource_p.user_properties_anon WHERE up_property LIKE 'gadget-%%' AND up_value = 1 GROUP BY up_property;
{"resultsets": [{"headers": ["ipb_address", "ipb_timestamp", "ipb_expiry", "comment_text"], "rowcount": 4}], "runningtime": "0.06"}
enwikisource_p
ويكيبيديا:إحصاءات الشهر
null
# https://ar.wikipedia.org/w/index.php?title=%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7:%D8%A5%D8%AD%D8%B5%D8%A7%D8%A1%D8%A7%D8%AA_%D8%A7%D9%84%D8%B4%D9%87%D8%B1&oldid=59981404 SET @start_date = '20221101000000'; SET @end_date = '20221130235959'; # عدد التعديلات يشمل عدد التعديلات المخفية من خلال الوصف او...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "1.85"}
arwiki_p
collect all images for WLM per year with country
null
SELECT subcat.page_title, catlink2.cl_from, pg_img.page_title FROM page AS subcat INNER JOIN categorylinks AS catlink1 ON subcat.page_id = catlink1.cl_from INNER JOIN categorylinks AS catlink2 ON subcat.page_title = catlink2.cl_to INNER JOIN page AS pg_img ON pg_img.page_id = catlink2.cl_from WHERE catlink1....
{"resultsets": [{"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_reviewed_by"], "rowcount": 1}], "runningtime": "0.06"}
commonswiki_p
Fiwiki good diffs
log_action 'approve', 'approve2' is Flagged revs manually approved edits
SET @datelimit = DATE_FORMAT(NOW() - INTERVAL 1 day,'%Y%m%d%H%i%s'); SELECT log_title, r1.rev_page, r1.rev_id, r2.rev_id, concat("https://fi.wikipedia.org/w/index.php?diff=", r1.rev_id , "&oldid=", r2.rev_id ) AS diff FROM logging_userindex, revision AS r1, revision AS r2 WHERE log_action I...
{"resultsets": [{"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_reviewed_by"], "rowcount": 1}, {"headers": ["ptrpt_page_id", "ptrpt_tag_id", "ptrpt_value"], "rowcount": 10}], "runningtime": "0.10"}
fiwiki_p
Article/talk join test
This query should return immediately. But it doesn't. Why? See also https://quarry.wmcloud.org/query/71842
SELECT article.page_title, article.page_id, talk.page_id FROM page AS article INNER JOIN page AS talk ON talk.page_title = article.page_title WHERE article.page_title = "Fish" AND article.page_namespace = 0 and talk.page_namespace = 1
{"resultsets": [{"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_reviewed_by"], "rowcount": 1}, {"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_rev...
enwiki_p
Unicode letters without talk pages
null
SELECT page_title FROM page AS articles LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'disambiguation' WHERE page_namespace = 0 AND page_is_redirect = 0 AND pp_page IS NULL AND NOT EXISTS (SELECT 1 FROM page WHERE page_namespace = 1 AND page_title = articles.page_title) AND NOT EXISTS (SELECT 1 FROM templ...
{"resultsets": [{"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_reviewed_by"], "rowcount": 1}, {"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_rev...
enwiki_p
DESCRIBE page_props;
null
DESCRIBE page_props;
{"resultsets": [{"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_reviewed_by"], "rowcount": 1}, {"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_rev...
enwiki_p
Wikidata entity values for enwiki pages
null
SELECT page_title, pp_value FROM page LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'wikibase_item' WHERE page_namespace = 0 AND pp_value IS NOT NULL LIMIT 100
{"resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 1}], "runningtime": "0.06"}
enwiki_p