title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
enwiki '%List_of%_genera
null
SELECT page_title FROM page AS p WHERE page_namespace = 0 AND page_title LIKE '%List_of%_genera' AND page_is_redirect = 0 #GROUP BY page_title LIMIT 999;
{"runningtime": "39.64", "resultsets": [{"rowcount": 1, "headers": ["Count", "Size_GB"]}]}
enwiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"resultsets": [{"rowcount": 95, "headers": ["page_title"]}], "runningtime": "1.05"}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "0.85", "resultsets": [{"rowcount": 501, "headers": ["page_title", "A", "B", "C"]}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "1.05", "resultsets": [{"rowcount": 501, "headers": ["page_title", "B"]}]}
commonswiki_p
eshteb-contr-001
null
USE fawiki_p; show tables;
{"resultsets": [{"rowcount": 0, "headers": ["page_title", "fpp_quality", "fpp_rev_id", "fpp_pending_since"]}], "runningtime": "0.06"}
fawiki_p
top rollbacker
null
SELECT actor_name as user, COUNT(*) as cnt FROM revision JOIN change_tag ON rev_id = ct_rev_id JOIN actor ON actor_id = rev_actor WHERE ct_tag_id = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'mw-undo') GROUP BY user ORDER BY cnt DESC LIMIT 100;
{"runningtime": "0.07", "resultsets": [{"rowcount": 1, "headers": ["page_title", "fpp_rev_id", "fpp_pending_since"]}]}
bnwiki
SDC edits by user and edit summary, distinct pages edited, #WMSE-GLAM-NM_Fataburen
null
SELECT DISTINCT page_title FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page LEFT JOIN comment_revision ON comment_id = r1.rev_comment_id LEFT JOIN revision r2 ON r1.rev_parent_id = r2.rev_id WHERE actor_name IN ('AliciaFagervingWMSE-bot') AND comme...
{"runningtime": "352.85", "resultsets": [{"rowcount": 1, "headers": ["pages_with_disambig_but_not_redir"]}, {"rowcount": 978, "headers": ["user_id", "user_name", "user_articles", "user_latestcreation"]}]}
commonswiki_p
SDC edits by user and edit summary #WMSE-GLAM-NM_Fataburen
null
SELECT page_title, comment_text FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page LEFT JOIN comment_revision ON comment_id = r1.rev_comment_id LEFT JOIN revision r2 ON r1.rev_parent_id = r2.rev_id WHERE actor_name IN ('AliciaFagervingWMSE-bot') AND ...
{"resultsets": [{"rowcount": 5455, "headers": ["page_title", "user"]}], "runningtime": "16.30"}
commonswiki_p
Crossref edityear-regyear 1
null
select edit_year, sum(c) as cc, sum(reg_year IS NULL) as yUnknown, sum(reg_year=2002) as y2002, sum(reg_year=2003) as y2003, sum(reg_year=2004) as y2004, sum(reg_year=2005) as y2005, sum(reg_year=2006) as y2006, sum(reg_year=2007) as y2007, sum(reg_yea...
{"runningtime": "0.08", "resultsets": [{"rowcount": 4, "headers": ["page_id", "actor_name"]}]}
fiwiki
Austrian categories correctors
Count the number of edits on WikiDaheim images after upload done by users other than the uploader.
USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(revision.rev_parent_id) as edit_count FROM actor, /*user_groups,*/ revision, revision as revision0, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND actor.actor_id = revision.rev_actor AND image.i...
{"runningtime": "18.80", "resultsets": [{"rowcount": 3703, "headers": ["C\u00edm", "T\u00f6rt\u00e9net", "Szerkeszt\u0151k"]}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "70.68", "resultsets": [{"rowcount": 10, "headers": ["page_title", "timestamp"]}]}
commonswiki_p
שרי האלפים שרי המאות, בדיקה של יגאל וביקורת
null
select user_name, count(page_title) from user join revision_userindex join page join actor on user_id = actor_user and rev_page = page_id and rev_actor = actor_id where page_namespace = 0 and not page_is_redirect and rev_parent_id = 0 and rev_deleted = 0 group by user_name having count(page_title) >= 50 order by count(...
{"resultsets": [{"rowcount": 3703, "headers": ["C\u00edm", "T\u00f6rt\u00e9net", "Szerkeszt\u0151k"]}], "runningtime": "7.21"}
hewiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"resultsets": [{"rowcount": 3123, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}], "runningtime": "46.73"}
commonswiki_p
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
USE bnwiki_p; SELECT CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম, COUNT(rev_id) AS মোট_নিবন্ধ FROM actor INNER JOIN revision ON revision.rev_actor = actor.actor_id JOIN page ON page.page_id = revision.rev_page WHERE page_is_redirect = 0 AND rev_parent_id = 0 AND page_namespace = 0 AND rev...
{"resultsets": [{"rowcount": 3, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}], "runningtime": "9.36"}
bnwiki_p
Map files used where? (ja.wiki)
null
#USE ukwiki_p; #SELECT DISTINCT CONCAT('# [[:File:', p.page_title, ']]'), i.il_from, d.page_title #GROUP_CONCAT(i.il_from_namespace ORDER BY i.il_from_namespace SEPARATOR ', ') #SELECT CONCAT('# [[:File:', p.page_title, ']]'), GROUP_CONCAT(i.il_from_namespace SEPARATOR ', ') SELECT CONCAT('[[:File:', p.page_title, ']...
{"runningtime": "7.01", "resultsets": [{"rowcount": 3478, "headers": ["C\u00edm", "T\u00f6rt\u00e9net", "Szerkeszt\u0151k"]}]}
jawiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"resultsets": [{"rowcount": 1229602, "headers": ["title", "backlinks"]}], "runningtime": "2216.26"}
commonswiki_p
most thanked users in bnwiki
বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী
USE bnwiki_p; SELECT log_title, COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY log_title ORDER BY COUNT(*) DESC LIMIT 500;
{"resultsets": [{"rowcount": 0, "headers": ["up_user", "up_property", "up_value"]}], "runningtime": "0.10"}
bnwiki_p
File talk pages without file in bnwiki
null
USE bnwiki_p; SELECT concat('* [[File talk:', p.page_title, ']] ') as pagetitle FROM page p LEFT OUTER JOIN page i_p ON i_p.page_title = p.page_title AND i_p.page_namespace = 6 LEFT OUTER JOIN commonswiki_p.page ci_p ON ci_p.page_title = p.page_title AND ci_p.page_namespace = 6 WHERE p.page_namespace = 7 AND i_p.page_t...
{"runningtime": "5.41", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('# [[:File:', page_title, ']]')"]}]}
bnwiki_p
bnwiki editors by number of file upload
null
USE bnwiki_p; SELECT actor_name, COUNT(*) FROM logging JOIN actor ON log_actor=actor_id WHERE log_type="upload" GROUP BY actor_name ORDER BY COUNT(*) DESC LIMIT 500;
{"resultsets": [{"rowcount": 50, "headers": ["cl_to"]}], "runningtime": "0.22"}
bnwiki_p
Number of links to WP:Supervote
null
select count(*) from pagelinks where pl_namespace = 4 and pl_title = 'Supervote';
{"resultsets": [{"rowcount": 50, "headers": ["cl_to"]}], "runningtime": "5.11"}
enwiki_p
Articles not connected to Wikidata items by author on lvwiki
null
USE lvwiki_p; SELECT CONCAT('[[User:',rev_user_text,']]'), COUNT(*) AS counting FROM page LEFT JOIN langlinks ON ll_from = page_id LEFT JOIN (SELECT * FROM page_props WHERE pp_propname = 'wikibase_item') AS props ON pp_page = page_id LEFT JOIN revision ON rev_page = page_id WHERE page_namespace = 0 AND page_is_redirect...
{"runningtime": "14.26", "resultsets": [{"headers": ["page_title"], "rowcount": 99}]}
lvwiki_p
Crossref edityear-regyear 2
null
select edit_year, sum(c) as cc, sum(reg_year IS NULL) as yUnknown, sum(reg_year=2002) as y2002, sum(reg_year=2003) as y2003, sum(reg_year=2004) as y2004, sum(reg_year=2005) as y2005, sum(reg_year=2006) as y2006, sum(reg_year=2007) as y2007, sum(reg_yea...
{"runningtime": "0.07", "resultsets": [{"headers": ["count"], "rowcount": 1}]}
fiwiki
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "19.31", "resultsets": [{"headers": ["page_id", "page_title", "cl_to"], "rowcount": 632}]}
commonswiki_p
Crossref edityear-regyear 2
null
select edit_year, sum(c) as cc, sum(reg_year IS NULL) as yUnknown, sum(reg_year=2002) as y2002, sum(reg_year=2003) as y2003, sum(reg_year=2004) as y2004, sum(reg_year=2005) as y2005, sum(reg_year=2006) as y2006, sum(reg_year=2007) as y2007, sum(reg_yea...
{"runningtime": "0.14", "resultsets": [{"headers": ["cl_from"], "rowcount": 56}]}
fiwiki
editors graph sample data
null
with pageusers as (SELECT rev_page, a.actor_user, up.up_value gender FROM revision r JOIN categorylinks cl ON cl.cl_to = 'Pornodarsteller' AND r.rev_page = cl.cl_from JOIN actor a ON a.actor_id = r.rev_actor LEFT JOIN user_properties up ON up.up_user = a.actor_user and up.up_property = 'gender' GROUP BY 1, 2, 3) SELECT...
{"runningtime": "63.17", "resultsets": [{"headers": ["pl_from"], "rowcount": 44541}]}
dewiki_p
Number of review of article in bnwiki
null
USE bnwiki_p; SELECT log_title, COUNT(*) FROM logging WHERE log_type="review" GROUP BY log_title ORDER BY COUNT(*) DESC LIMIT 500;
{"runningtime": "67.17", "resultsets": [{"headers": ["pl_from"], "rowcount": 47411}]}
bnwiki_p
Enhanced source usage: last 90d, fr.wiki
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from frwiki_p.change_tag ct inner join frwiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join frwiki_p.actor act on rat.revactor_actor = act.actor_id inner join frwiki_p.change_tag_def on ct_tag_i...
{"runningtime": "0.12", "resultsets": [{"headers": ["COUNT(DISTINCT pl_from)", "COUNT(indirect)"], "rowcount": 1}]}
frwiki_p
Cswiki DT source enhanced
null
select actor_name, count(*) as total from ( select ct.ct_id, ct.ct_rev_id, actor_user, actor_name from cswiki_p.change_tag ct inner join cswiki_p.revision_actor_temp rat on ct.ct_rev_id = rat.revactor_rev inner join cswiki_p.actor act on rat.revactor_actor = act.actor_id inner join cswiki_p.change_tag_def on ct_tag_i...
{"runningtime": "0.18", "resultsets": [{"headers": ["COUNT(DISTINCT pl_from)", "COUNT(indirect)"], "rowcount": 1}, {"headers": ["COUNT(pl_from)", "COUNT(indirect)"], "rowcount": 1}]}
cswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "253.35", "resultsets": [{"headers": ["C\u00edm", "T\u00f6rt\u00e9net", "Szerkeszt\u0151k"], "rowcount": 159}]}
commonswiki_p
Afwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Laf", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='afwiki' AND NOT EXISTS ( SELECT wbit_item_id FROM wbt_item_terms INNER JOIN wbt_term_in_lang ON wbtl_id = wbit_term_in_lang_id INNER JOIN wbt_text_in_lang ON wbxl_id = wbtl_...
{"runningtime": "0.18", "resultsets": [{"headers": ["COUNT(DISTINCT pl_from)", "COUNT(indirect)", "COUNT(direct)"], "rowcount": 1}, {"headers": ["COUNT(pl_from)", "COUNT(indirect)"], "rowcount": 1}]}
wikidatawiki
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "14.00", "resultsets": [{"headers": ["page_title"], "rowcount": 4}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "13.87", "resultsets": [{"headers": ["page_title"], "rowcount": 1}]}
commonswiki_p
For a given page, timestamp and page len
null
SELECT rev_timestamp, rev_len FROM revision WHERE rev_page = 66097941; # https://en.wikipedia.org/wiki/2020_United_States_federal_government_data_breach
{"runningtime": "13.83", "resultsets": [{"headers": ["page_title"], "rowcount": 8}]}
enwiki_p
Cat creations
null
SET STATEMENT max_statement_time = 30 FOR SELECT DISTINCT p.page_title FROM category AS c INNER JOIN categorylinks AS cl ON (c.cat_title = cl.cl_to) INNER JOIN page AS p ON (cl.cl_from = p.page_id) INNER JOIN revision_userindex AS r ON (r.rev_page = p.page_id) INNER JOIN actor AS a ON (r.rev_actor = a.act...
{"runningtime": "0.07", "resultsets": [{"headers": ["img_name", "img_metadata", "License"], "rowcount": 1}]}
enwiki_p
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
USE bnwiki_p; SELECT CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম, COUNT(rev_id) AS মোট_নিবন্ধ FROM actor INNER JOIN revision ON revision.rev_actor = actor.actor_id JOIN page ON page.page_id = revision.rev_page WHERE page_is_redirect = 0 AND rev_parent_id = 0 AND page_namespace = 0 AND rev...
{"runningtime": "13.89", "resultsets": [{"headers": ["page_title"], "rowcount": 8}]}
bnwiki_p
Redlinks on plwiki that start with a given substring
https://pl.wikipedia.org/w/index.php?title=Wikipedia:Kawiarenka/Kwestie_techniczne&diff=63482090&oldid=63481809
set @target = "Ulica\_%"; select p1.page_title, pl_title from pagelinks inner join page as p1 on pl_from = p1.page_id left join page as p2 on pl_title = p2.page_title where pl_title like @target and pl_namespace = 0 and pl_from_namespace = 0 and p2.page_id is null order by p1.page_title, pl_title;
{"connection_id": 3990350}
plwiki_p
وسائط قالب:صندوق معلومات سيرة كرة قدم
null
use arwiki_p; select CONCAT('[[',page_title,']]') AS "مثال صفحة", cl_sortkey_prefix AS "الوسيط غير المدعوم", COUNT(*) AS "عدد الاستخدامات" #page_namespace, page_title, cl_sortkey_prefix, COUNT(*) from categorylinks join page on cl_from = page_id where cl_to = "صفحات_تستخدم_قالب:صندوق_معلومات_سيرة_كرة_قدم_مع_وسائط_غ...
{"connection_id": 4868312}
arwiki
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"connection_id": 4869138}
commonswiki_p
Seitenvorschaubild bei Artikeln mit Infobox Chemikalie
Die Query kann nur die Existenz eines Seitenvorschaubildes feststellen, aber nicht alle werden auch angezeigt. ca. 1800 Artikel haben kein Seitenvorschaubild.
SELECT CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') AS 'Artikel', CONCAT('[[:Datei:', REPLACE(pp_value, '_', ' '), ']]') AS 'Vorschaubild' FROM templatelinks, page LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'page_image_fre...
{"runningtime": "76.15", "resultsets": [{"headers": ["page_title"], "rowcount": 0}]}
dewiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"resultsets": [{"headers": ["CONCAT(\"Draft:\",page_title)", "rev_timestamp_", "actor_name_"], "rowcount": 5689}], "runningtime": "21.24"}
commonswiki_p
Files on map-bms.wiki NOT in spec categories (no license)
null
#USE tewiki_p; SELECT CONCAT("# [[:File:", img_name, "]]") AS file, 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 FROM image JOIN page ON page_namespace=6 AND page_title = img_name AND pag...
{"runningtime": "6.00", "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": 785}]}
map_bmswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "4.78", "resultsets": [{"headers": ["rc_patrolled", "count"], "rowcount": 4}, {"headers": ["user", "unpatrolled"], "rowcount": 10}, {"headers": ["day", "unpatrolled", "manually patrolled", "autopatrolled", "total"], "rowcount": 31}, {"headers": ["rc_namespace", "unpatrolled"], "rowcount": 9}, {"headers"...
commonswiki_p
Articles without talk pages on cswiki
Number of all mainspace pages and number of mainspace pages without corresponding talk pages on the Czech Wikipedia.
USE cswiki_p; -- Count of all mainspace pages SELECT COUNT(*) FROM page WHERE page_namespace = 0 AND page_is_redirect = 0; -- Count of mainspace pages without corresponding talk pages SELECT COUNT(*) FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_title NOT IN (SELECT page_title FROM page WHERE pa...
{"runningtime": "1.20", "resultsets": [{"headers": ["Count", "Size_GB"], "rowcount": 1}]}
cswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "15.51", "resultsets": [{"headers": ["page_title"], "rowcount": 3}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"connection_id": 4424956}
commonswiki_p
Afwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Laf", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='afwiki' AND NOT EXISTS ( SELECT wbit_item_id FROM wbt_item_terms INNER JOIN wbt_term_in_lang ON wbtl_id = wbit_term_in_lang_id INNER JOIN wbt_text_in_lang ON wbxl_id = wbtl_...
{"runningtime": "13.53", "resultsets": [{"headers": ["page_title"], "rowcount": 0}]}
wikidatawiki
Bnwiki lb
null
USE wikidatawiki_p; SELECT CONCAT("Q",ips_item_id), "Lbn", CONCAT('"',ips_site_page,'"') FROM wb_items_per_site WHERE ips_site_id='bnwiki' AND NOT EXISTS ( SELECT wbit_item_id FROM wbt_item_terms INNER JOIN wbt_term_in_lang ON wbtl_id = wbit_term_in_lang_id INNER JOIN wbt_text_in_lang ON wbxl_id = wbtl_...
{"runningtime": "13.65", "resultsets": [{"headers": ["page_title"], "rowcount": 1}]}
wikidatawiki
GND xxx eingetragen
null
SELECT actor_name, comment_text, page_title FROM page, revision, comment, actor WHERE rev_comment_id = comment_id AND comment_text LIKE "GND % eingetragen" AND rev_actor = actor_id AND rev_timestamp > '20210000000000' AND page_id = rev_page AND page_namespace = 0
{"runningtime": "0.08", "resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 0}]}
dewiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "1.99", "resultsets": [{"headers": ["gu_name", "gu_home_db"], "rowcount": 1426}]}
commonswiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "0.07", "resultsets": [{"headers": ["Tables_in_centralauth_p"], "rowcount": 9}]}
commonswiki_p
top rollbacker
null
SELECT actor_name as user, COUNT(*) as cnt FROM revision JOIN change_tag ON rev_id = ct_rev_id JOIN actor ON actor_id = rev_actor WHERE ct_tag_id = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'mw-rollback') GROUP BY user ORDER BY cnt DESC LIMIT 100;
{"runningtime": "3.06", "resultsets": [{"headers": ["main_title"], "rowcount": 17}]}
bnwiki
First Wikipedia Edits
null
Select actor_name,page_title,rev_timestamp from revision join page on rev_page = page_id join actor on rev_actor = actor_id order by rev_timestamp limit 50;
{"runningtime": "0.48", "resultsets": [{"headers": ["Artikel", "Difflink"], "rowcount": 77}]}
idwiki
Most pending changes accepts (last 30 days)
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' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"runningtime": "16.58", "resultsets": [{"headers": ["user", "review_cnt"], "rowcount": 308}]}
enwiki
Most pending changes accepts (last 30 days)
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' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"runningtime": "12.98", "resultsets": [{"headers": ["bucket", "cnt"], "rowcount": 436}]}
enwiki
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "96.58", "resultsets": [{"headers": ["pages_with_disambig_but_not_redir"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_articles", "user_latestcreation"], "rowcount": 979}]}
commonswiki_p
Main pl.wiki query 1
null
#RESULTSET_1 SELECT CONCAT('# [[',page_title,']]') AS page_title, CONCAT('[[',rd_title,']]') AS rd_title FROM page JOIN redirect ON rd_FROM = page_id AND NOT EXISTS (SELECT * FROM page AS p1 WHERE p1.page_title = rd_title AND p1.page_namespace = rd_namespace) AND page_namespace = 0 AND rd_namespace = 0; #RESULTSET_2 SE...
{"runningtime": "14.58", "resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "pl_title", "pl_title_underscore"], "rowcount": 15}]}
lawiki_p
Edits and users with certain edit summary (svwiki, diffedit)
Edits on Swedish Wikipedia made using https://meta.wikimedia.org/wiki/User:Jon_Harald_S%C3%B8by/diffedit
set @dbname = 'lawiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); SELECT page_title, actor_name, r2.rev_timestamp, comment_text FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page ...
{"runningtime": "14.83", "resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "pl_title", "pl_title_underscore"], "rowcount": 15}]}
lawiki_p
Edits and users with certain edit summary (svwiki, diffedit)
Edits on Swedish Wikipedia made using https://meta.wikimedia.org/wiki/User:Jon_Harald_S%C3%B8by/diffedit
SELECT page_title, actor_name, r2.rev_timestamp, comment_text FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page ON page_id = r1.rev_page LEFT JOIN comment_revision ON comment_id = r1.rev_comment_id LEFT JOIN revision r2 ON r1.rev_parent_id = r2.rev_id WHERE comment_text LIK...
{"runningtime": "43.24", "resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "pl_title", "pl_title_underscore"], "rowcount": 0}, {"headers": ["log_id", "log_type", "log_action", "log_timest...
lawiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "41.73", "resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "pl_title", "pl_title_underscore"], "rowcount": 10}, {"headers": ["log_id", "log_type", "log_action", "log_times...
commonswiki_p
Tewiki: Disambig pages showing the number of outgoing links
null
select page_title,count(page_title) from pagelinks,page #join page on page_id=pl_from where page_id = pl_from and page_id in (select pp_page from page_props where pp_propname ="disambiguation") and pl_namespace = 0 and page_namespace = 0 group by page_title -- having count(page_title) < 4 order by ...
{"runningtime": "2.26", "resultsets": [{"headers": ["file"], "rowcount": 1235}]}
tewiki
Missing Commons creator templates on Wikidata
Get a list of Qid's and name of Commons creator templates based on https://commons.wikimedia.org/wiki/Category:Creator_templates_with_Wikidata_link:_item_missing_P1472 so we can add it using quickstatements.
SELECT iwl_title as 'qid', (CONCAT("\"", REPLACE(page_title, "_", " "), "\"") FROM categorylinks) as 'P1472' JOIN page ON cl_from=page_id AND page_namespace=100 AND page_is_redirect=0 JOIN iwlinks ON cl_from=iwl_from AND page_id=cl_from AND iwl_prefix='wikidata' AND iwl_title LIKE 'Q%' WHERE cl_to='Creator_templates_wi...
{"runningtime": "2.27", "resultsets": [{"headers": ["log_title", "COUNT(*)"], "rowcount": 500}]}
commonswiki_p
Articles created by CX in eswiki
null
use lawiki_p; SELECT page_id, page_namespace, page_title, MAX(ct_rev_id), ct_params, user_name, rev_timestamp FROM `change_tag`, `revision`, `user`, `page` WHERE ctd_tag = 'contenttranslation' AND page_namespace = 0 AND rev_id = ct_rev_id AND rev_page = page_...
{"runningtime": "0.67", "resultsets": [{"headers": ["page_namespace", "page_title", "pp_value"], "rowcount": 68}]}
lawiki_p
Deletion Ratios for one wiki during 2020
Example data for task https://phabricator.wikimedia.org/T246324. Shows ratio of main namespace articles that were created using Content Translation and not using Content Translation and subsequently deleted. This sample works for the Hungarian Wikipedia (huwiki) for 2019.
use lawiki_p; SELECT page_id, page_namespace, page_title, MAX(ct_rev_id), ct_params, user_name, rev_timestamp FROM `change_tag`, `revision`, `user`, `page` WHERE ct_tag = 'contenttranslation' AND page_namespace = 0 AND rev_id = ct_rev_id AND rev_page = page_i...
{"runningtime": "0.48", "resultsets": [{"headers": ["change_id", "change_type", "change_time", "change_object_id", "change_revision_id", "change_user_id", "change_info"], "rowcount": 100}]}
lawiki_p
Articles created by CX in eswiki
null
use lawiki_p; SELECT page_id, page_namespace, page_title, MAX(cx_rev_id), cx_params, user_name, rev_timestamp FROM `change_tag`, `revision`, `user`, `page` WHERE cx_tag = 'contenttranslation' AND page_namespace = 0 AND rev_id = ct_rev_id AND rev_page = page_i...
{"runningtime": "27.26", "resultsets": [{"headers": ["page_title"], "rowcount": 446}]}
lawiki_p
Articles created by CX in eswiki
null
set @dbname = 'lawiki'; SELECT page_id, page_namespace, page_title, MAX(ct_rev_id), ct_params, user_name, rev_timestamp FROM `change_tag`, `revision`, `user`, `page` WHERE ct_tag = 'contenttranslation' AND page_namespace = 0 AND rev_id = ct_rev_id AND rev_pa...
{"runningtime": "0.06", "resultsets": [{"headers": ["ir_ipb_id"], "rowcount": 0}]}
lawiki_p
Top Wikipedia Page by Bytecounts (This Day)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
select * from (select rc_title, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex where rc_timestamp >= 20210601000000 and rc_timestamp <= 20210602000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') group by rc_title) a order by tdif desc limit 30
{"runningtime": "40.93", "resultsets": [{"headers": ["page_title", "rev_timestamp"], "rowcount": 4}]}
idwiki
Articles created by CX in lawiki in 2020
null
-- When appropriate, change 'contenttranslation' to 'sectiontranslation' set @cx_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); SELECT rev_timestamp, actor_name, page_title, page_namespace, page_id, MAX(ct_rev_id) FROM `cha...
{"runningtime": "1.57", "resultsets": [{"headers": ["file"], "rowcount": 987}]}
lawiki_p
ip_changes table test
null
USE enwiki_p; SELECT ipc_hex FROM ip_changes WHERE ipc_hex BETWEEN "v6-0x2a0107a0000000000000000000000000" AND "v6-0x2a0107a7ffffffffffffffffffffffff" #WHERE ipc_hex BETWEEN 0 AND 65536 GROUP BY ipc_hex ORDER BY ipc_hex LIMIT 501
{"runningtime": "1.77", "resultsets": [{"headers": ["C\u00edm", "T\u00f6rt\u00e9net", "Ellen\u0151riz", "Szerkeszt\u0151k", "Utols\u00f3 m\u00f3dos\u00edt\u00e1s"], "rowcount": 645}]}
enwiki_p
Files on ce.wiki NOT in spec categories (no license)
null
#USE tewiki_p; SELECT CONCAT("# [[:File:", img_name, "]]") AS file, 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 FROM image JOIN page ON page_namespace=6 AND page_title = img_name AND pag...
{"runningtime": "0.11", "resultsets": [{"headers": ["user_id"], "rowcount": 1}]}
cewiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "0.16", "resultsets": [{"headers": ["New CX articles", "New non-CX articles", "Deleted CX articles", "Deleted non-CX articles", "Deleted CX %", "Deleted non-CX %", "Deletion % difference"], "rowcount": 1}]}
commonswiki_p
Articles created by CX in siwiki in 2021
null
-- When appropriate, change 'contenttranslation' to 'sectiontranslation' set @cx_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); SELECT rev_timestamp, actor_name, page_title, page_namespace, page_id, MAX(ct_rev_id) FROM `cha...
{"runningtime": "94.78", "resultsets": [{"headers": ["count(*)"], "rowcount": 1}]}
siwiki_p
User Groups by Gender
null
SELECT * FROM user_groups ug LEFT JOIN user u ON u.user_id = ug_user LEFT JOIN page p ON p.page_title = 'Benutzer_Diskussion:' || u.user_name WHERE ug_group in ('sysop', 'bureaucrat')
{"connection_id": 6126928}
dewiki_p
Admins
null
SELECT * FROM user_groups ug LEFT JOIN user u ON u.user_id = ug_user WHERE ug_group in ('sysop', 'bureaucrat')
{"connection_id": 6128562}
dewiki_p
Löschkandidaten Kommentatoren nach Gender
null
SELECT up_value, count(1) FROM revision r JOIN page p ON p.page_title LIKE 'Löschkandidaten/%' and p.page_namespace = 4 and r.rev_page = p.page_id LEFT JOIN actor ra ON r.rev_actor = ra.actor_id LEFT JOIN user_properties up ON up.up_user = ra.actor_user and up.up_property = 'gender' GROUP BY 1
{"connection_id": 6139764}
dewiki_p
unesco links in enwiki
null
SELECT COUNT(*) FROM externallinks WHERE el_index_60 LIKE 'https://org.unesco.%';
{"runningtime": "39.59", "resultsets": [{"headers": ["File name", "Date", "Size", "Uploader's name"], "rowcount": 51}]}
enwiki_p
unesco links in enwiki
null
SELECT COUNT(*) FROM externallinks WHERE el_index_60 LIKE 'https://*.unesco.%';
{"runningtime": "0.09", "resultsets": [{"headers": ["page_title", "Wiki_ID", "date", "article_size"], "rowcount": 10}]}
enwiki_p
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "1.26", "resultsets": [{"headers": ["page_title", "Wiki_ID", "date", "article_size"], "rowcount": 10}]}
commonswiki_p
Deleted once-orphan talk pages on plwiktionary
null
select l1.log_timestamp as "sygnatura czasowa", concat("[[Dyskusja:", replace(l1.log_title, "_", " "), "]]") as "strona dyskusji", concat("<nowiki>", comment_text, "</nowiki>") as "uzasadnienie" from logging as l1 left join logging as l2 on l1.log_title = l2.log_title and l2.log_namespace = 0 and l2.log_type ...
{"runningtime": "7.17", "resultsets": [{"headers": ["CONCAT('# [[:File:', p.page_title, ']]')"], "rowcount": 4966}]}
plwiktionary_p
Admins w/o actions in 5 years
Administrators without any (un)deletions, (un)protections, or (un)blocks performed in the last five years. For [[WT:ADMIN#Floater for simple inactively policy change]] circa 2 June 2021.
SELECT actor_name, DATE_FORMAT(MAX(log_timestamp), '%Y-%m-%d %H:%i:%s') AS 'last action' FROM actor LEFT JOIN user_groups ON ug_user = actor_user LEFT JOIN logging_userindex ON log_actor = actor_id AND log_type IN ('delete', 'protect', 'block') WHERE ug_group = 'sysop' GROUP BY actor_name HAVING (MAX(log_timesta...
{"runningtime": "1.42", "resultsets": [{"headers": ["page_title", "Wiki_ID", "date", "article_size"], "rowcount": 100}]}
enwiki
A magyar Wikipédia mérete
https://hu.wikipedia.org/wiki/Szerkesztő:Samat/A_magyar_Wikipédia_mérete
USE huwiki_p; /* Real data */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page_id) AS articles, AVG(page_len) AS 'average (B)' FROM page WHERE page_namespace = 0 AND page_is_redirect = 0; /* With redirects */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page...
{"runningtime": "8.28", "resultsets": [{"headers": ["CONCAT('# [[:File:', p.page_title, ']]')"], "rowcount": 4966}]}
huwiki
A magyar Wikipédia mérete
https://hu.wikipedia.org/wiki/Szerkesztő:Samat/A_magyar_Wikipédia_mérete
USE huwiki_p; /* Real data */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page_id) AS articles, AVG(page_len) AS 'average (B)' FROM page WHERE page_namespace = 0 AND page_is_redirect = 0; /* With redirects */ SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page...
{"runningtime": "11.66", "resultsets": [{"headers": ["New CX articles", "New non-CX articles", "Deleted CX articles", "Deleted non-CX articles", "Deleted CX %", "Deleted non-CX %", "Deletion % difference"], "rowcount": 1}]}
enwiki
Basic example for using MariaDB as Oracle (pl/sql-Stored procedure)
null
SET SQL_MODE='ORACLE'; Begin FOR i IN 1..10 LOOP select i AS ''; END LOOP; END;
{"runningtime": "0.09", "resultsets": [{"headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editc...
hewikisource_p
ספר החוקים הפתוח - טבלה ראשית
null
SET SQL_MODE='ORACLE'; use hewikisource_p; SELECT text.* FROM text #JOIN pagelinks #WHERE page_id = pl_from #AND page_title like '%עותומני%' #WHERE page_namespace = 116
{"runningtime": "151.69", "resultsets": [{"headers": ["New CX articles", "New non-CX articles", "Deleted CX articles", "Deleted non-CX articles", "Deleted CX %", "Deleted non-CX %", "Deletion % difference"], "rowcount": 1}]}
hewikisource_p
lag(rev_timestamp)
null
SET statement max_statement_time = 10 for -- select * from ( select rc_timestamp as t, lag(rc_timestamp) over (order by rc_timestamp) as p from recentchanges where rc_timestamp > "20210603000000" and rc_timestamp < "20210603000100" order by rc_timestamp limit 5 -- ) ;
{"connection_id": 6524163}
enwiki_p
User's today activity (improved speed)
null
set @target = "Adesio2010"; select actor_id into @aid from actor where actor_name = @target limit 1; select page_title, CONCAT(substr(rev_timestamp,1,4),"-",substr(rev_timestamp,5,2), "-",substr(rev_timestamp,7,2)," ",substr(rev_timestamp,9,2)+7,":",substr(rev_timestamp,11,2)) as 'Timestamp' from (select rev_page,rev_...
{"runningtime": "452.28", "resultsets": [{"headers": ["page_namespace", "page_title", "actor_name"], "rowcount": 100}]}
idwiki
unesco links in enwiki
null
SELECT * FROM externallinks WHERE el_index_60 LIKE 'https://com.cnn.%';
{"runningtime": "41.73", "resultsets": [{"headers": ["rev_id", "rev_timestamp"], "rowcount": 1}, {"headers": ["Edits", "actor_name"], "rowcount": 20}]}
enwiki_p
Top Wikipedia User by Bytecounts (This day) (en)
Verify each user's contribution here : https://quarry.wmflabs.org/query/54879
select * /*sum(tdif)*/ from (select actor_name, sum( cast(rc_new_len as int) - cast(rc_old_len as int)) tdif from recentchanges_userindex left join actor on rc_actor = actor_id where rc_timestamp >= 20210603000000 and rc_timestamp <= 20210604000000 and rc_bot = 0 and (rc_source = 'mw.new' or rc_source='mw.edit') ...
{"runningtime": "177.49", "resultsets": [{"headers": ["rev_id", "rev_timestamp"], "rowcount": 1}, {"headers": ["Edits", "actor_name"], "rowcount": 20}]}
enwiki
جام2
null
#id #select category.cat_id from category where category.cat_title = replace("Connecticut politician stubs"," ","_"); #select langlinks.ll_title as page_title select count(categorylinks.cl_to) as c,categorylinks.cl_to from categorylinks inner join langlinks on langlinks.ll_from = categorylinks.cl_from where categor...
{"runningtime": "12.26", "resultsets": [{"headers": ["page_namespace", "page_title", "actor_name", "DATE(rev_timestamp)", "diff"], "rowcount": 50}]}
enwiki
Indef sysop creation protection
doesn't work.
SELECT CONCAT ("[[",page_title,"]]") # wikitable formatting AS 'Page' FROM page JOIN page_restrictions ON page_id = pr_page WHERE pr_type = 'create' AND pr_level = 'sysop' AND page_namespace = 0 AND page_is_redirect = 0 AND pr_expiry = 'infinity'
{"runningtime": "0.08", "resultsets": [{"headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editc...
enwiki
Indef sysop creation protection
null
SELECT CONCAT ("[[",pt_title,"]]") AS 'Page', user_name AS "Protecting admin", pt_timestamp AS "Time", comment_text AS "Summary" FROM protected_titles JOIN comment ON comment_id = pt_reason_id JOIN user on user_id = pt_user WHERE pt_expiry = 'infinity' AND pt_create_perm = 'sysop' AND pt_namespace = 0; AND pt_title LI...
{"runningtime": "0.10", "resultsets": [{"headers": ["cat_id", "cat_pages", "page_title", "page_len", "count( distinct(cl.cl_from))"], "rowcount": 1}]}
enwiki
جام
null
#id #select category.cat_id from category where category.cat_title = replace("Connecticut politician stubs"," ","_"); #select langlinks.ll_title as page_title #select concat("*[[",langlinks.ll_title,"]]") as page_title select langlinks.ll_title from categorylinks inner join langlinks on langlinks.ll_from = categoryli...
{"runningtime": "40.11", "resultsets": [{"headers": ["@t := now()"], "rowcount": 1}, {"headers": ["user_name", "user_registration", "user_editcount"], "rowcount": 46}]}
enwiki
Fæ correctors (after first revision)
Count the number of edits on WikiDaheim images after upload done by users other than the uploader.
#USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(revision.rev_parent_id) as edit_count FROM actor, /*user_groups,*/ revision, revision as revision0, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND actor.actor_id = revision.rev_actor AND image...
{"runningtime": "1.31", "resultsets": [{"headers": ["page_title"], "rowcount": 694}]}
commonswiki
Matlin correctors (after first revision)
Count the number of edits on WikiDaheim images after upload done by users other than the uploader.
#USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(revision.rev_parent_id) as edit_count FROM actor, /*user_groups,*/ revision, revision as revision0, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND actor.actor_id = revision.rev_actor AND image...
{"runningtime": "1.32", "resultsets": [{"headers": ["page_title"], "rowcount": 693}]}
commonswiki
János_Korom correctors (after first revision)
Count the number of edits on WikiDaheim images after upload done by users other than the uploader.
#USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(revision.rev_parent_id) as edit_count FROM actor, /*user_groups,*/ revision, revision as revision0, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND actor.actor_id = revision.rev_actor AND image...
{"runningtime": "1.36", "resultsets": [{"headers": ["page_title"], "rowcount": 690}]}
commonswiki
All orphan non-free files on ro.wiki
null
#USE ukwiki_p; #SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p SELECT CONCAT('[[User:', actor_name, ']]') as Uploader, CONCAT('[[:File:', p.page_title, ']]') as file FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from LEFT JOIN imagelinks i ...
{"runningtime": "9.98", "resultsets": [{"headers": ["editor", "accepts", "recent_edits"], "rowcount": 1608}]}
rowiki_p
WikiDaheim Natural heritage correctors 2020 (after first revision)
Count the number of edits on WikiDaheim images after upload done by users other than the uploader.
#USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(revision.rev_parent_id) as edit_count FROM actor, /*user_groups,*/ revision, revision as revision0, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND actor.actor_id = revision.rev_actor AND image...
{"runningtime": "0.15", "resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]}
commonswiki
WikiDaheim Natural heritage correctors 2020 (after first revision)
Count the number of edits on WikiDaheim images after upload done by users other than the uploader.
#USE commonswiki_p; SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(revision.rev_parent_id) as edit_count FROM actor, /*user_groups,*/ revision, revision as revision0, image, page, categorylinks WHERE page.page_id=categorylinks.cl_from AND actor.actor_id = revision.rev_actor AND image...
{"runningtime": "0.18", "resultsets": [{"headers": ["COUNT(*)"], "rowcount": 1}]}
commonswiki
Most pending changes accepts (last 30 days)
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' AND DATEDIFF(NOW(), log_timestamp) < 30 GROUP BY log_actor ORDER BY manual_accept...
{"runningtime": "7.29", "resultsets": [{"headers": ["user_name", "rc_this_oldid", "comment_text"], "rowcount": 5}]}
enwiki
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('#[[:File:', page_title, ']]') AS wikitext FROM categorylinks JOIN templatelinks ON tl_from = cl_from JOIN page ON page_id = cl_from WHERE cl_to LIKE 'All\_media\_needing\_categories\_as\_of%' AND cl_type = 'file' AND page_namespace = 6 AND tl_namespace = 10 AND tl_title = 'Cs' ORDER BY page_title; /* SEL...
{"runningtime": "25.97", "resultsets": [{"headers": ["user_name", "rc_this_oldid", "comment_text"], "rowcount": 1}]}
commonswiki_p
User's today activity
null
set @target = "Anhar Karim"; select page_title, CONCAT(substr(rev_timestamp,1,4),"-",substr(rev_timestamp,5,2), "-",substr(rev_timestamp,7,2)," ",substr(rev_timestamp,9,2)+7,":",substr(rev_timestamp,11,2)) as 'Timestamp' from revision left join page on rev_page = page_id left join actor on rev_actor = actor_id where...
{"runningtime": "311.50", "resultsets": [{"headers": ["actor_name"], "rowcount": 6}]}
idwiki