title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Pages edited by a cohort
...during a specified time period. Last run November 26, 2014. See comments (marked with a "#") for customization instructions
#to customize your query, follow the numbers to the instructions #listed below the query. contact jmorgan@wikimedia.org if you need help. SELECT DISTINCT(page_id), page_title #1 FROM commonswiki_p.page p JOIN #2 wikidatawiki_p.revision r ON p.page_id = r.rev_page WHERE r.rev_user_text IN #3 ( "Jan Macura (lektor)" ...
{"runningtime": "0.62", "resultsets": [{"headers": ["Page title", "Date", "Edit count"], "rowcount": 1}]}
null
أكثر المستخدمين تعديلًا في مشروع ويكي طب
null
use arwiki_p; select actor_name, count(rev_id) from revision inner join actor on actor_id = rev_actor inner join page p1 on p1.page_id = rev_page where (select p2.page_id from page p2 where p2.page_title = p1.page_title and p2.page_namespace = (p1.page_namespace+1) and p2.page_is_redirect = 0) ...
{"runningtime": "0.25", "resultsets": [{"headers": ["page_title"], "rowcount": 0}]}
null
Validated-Fathima kaniyam-தாய்லாந்து
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"rowcount": 6, "headers": ["page_title"]}], "runningtime": "13.87"}
null
Validated-Fathimakaniyam-தனித்_தமிழ்க்_கிளர்ச்சி
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") (...
{"resultsets": [{"rowcount": 30, "headers": ["text"]}], "runningtime": "0.85"}
null
Proofread-Fathima kaniyam-சிலம்பு_பிறந்த_கதை
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"resultsets": [{"rowcount": 93, "headers": ["text"]}], "runningtime": "4.54"}
null
Proofread-DeepaArulKaniyam-மார்ட்டின்_லூதர்_கிங்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where (comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") #...
{"resultsets": [{"rowcount": 12, "headers": ["text"]}], "runningtime": "0.64"}
null
Validated-Fathima kaniyam-மார்ட்டின்_லூதர்_கிங்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"runningtime": "0.96", "resultsets": [{"headers": ["text"], "rowcount": 92}]}
null
المقالات التي حجمها أقل من 2500 بايت (بدون توضيح)
null
use arwiki_p; select page_title from page where page_len < 2500 and page_is_redirect = 0 and page_namespace = 0 and page_id not in (select cl_from from categorylinks where cl_from = page_id and cl_to = "صفحات_توضيح");
{"connection_id": 33093388}
null
Hewiki fair use unused pictures 1
null
use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists (select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as p2 where p2.page_namespace = 14 and p2.pag...
{"runningtime": "0.79", "resultsets": [{"headers": ["COUNT(page_id)"], "rowcount": 1}]}
null
Second bit
null
use wikidatawiki_p; SELECT concat('P',wbpt_property_id) AS page_title, wbx_text as term_text FROM wbt_property_terms INNER JOIN wbt_term_in_lang ON wbpt_term_in_lang_id = wbtl_id AND wbtl_type_id=1 /* label */ INNER JOIN wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id AND wbxl_language='en' INNER JOIN wbt_text ...
{"resultsets": [{"rowcount": 74, "headers": ["actor_name", "edits"]}], "runningtime": "28.64"}
null
Validated-Fathima_kaniyam- மார்ட்டின்_லூதர்_கிங்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"rowcount": 20, "headers": ["actor_name", "edits"]}], "runningtime": "0.54"}
null
Wikimedia Commons galleries edited in 2018
null
use commonswiki_p; select count(*) from ( select page_title from page inner join revision on rev_page = page_id and rev_timestamp > '20190101000000' where page_namespace = 0 and page_is_redirect = 0 group by page_title ) a;
{"runningtime": "291.70", "resultsets": [{"headers": ["comment_text", "COUNT(*)", "GROUP_CONCAT(log_title)", "comment_id", "log_actor"], "rowcount": 369}]}
null
enwiki inactive admin users
null
use enwiki_p; SELECT user_name, user_editcount, user_registration, rev_timestamp AS 'Last edit', log_timestamp AS 'Last log', ug1.ug_group AS 'user_group' FROM `user` LEFT JOIN user_groups ug1 ON user_id = ug1.ug_user AND ug1.ug_group IN ('bureaucrat') JOIN actor ON actor_user = user_id JOIN revision_userindex ON ...
{"resultsets": [{"rowcount": 948, "headers": ["page_title", "edits"]}], "runningtime": "9.27"}
null
Problematic links to deleted extensions
null
use mediawikiwiki_p; select pl_from_namespace, concat("Special:Redirect/page/",pl_from), pl_title from pagelinks join page on page.page_namespace=pl_namespace and page.page_title=pl_title join categorylinks on page_id=cl_from where cl_to="Deleted_extensions_with_security_vulnerabilities" and pl_from_namespace %2 = 0 ...
{"resultsets": [{"rowcount": 197562, "headers": ["oi_name", "max(oi_timestamp)"]}], "runningtime": "661.95"}
null
Participants in new sig requirements
<100 edits, or account created in the last week
SELECT user_name, user_editcount, COUNT(*) AS page_edits FROM mediawikiwiki_p.revision JOIN mediawikiwiki_p.actor ON actor_id=rev_actor JOIN mediawikiwiki_p.user ON user_id=actor_user WHERE rev_page=(SELECT page_id FROM mediawikiwiki_p.page WHERE page_namespace=1 AND page_title='New_requirements_for_user_signatures') /...
{"resultsets": [{"rowcount": 0, "headers": ["term_full_entity_id", "term_text"]}], "runningtime": "0.16"}
null
Users with most edits (arwiki)
null
USE arwiki_p; SELECT distinct u.user_name, u.user_editcount FROM user u inner join user_groups ug on ug.ug_user=u.user_id where ug.ug_group<>'bot' ORDER BY u.user_editcount desc LIMIT 300;
{"runningtime": "0.15", "resultsets": [{"headers": ["el_to"], "rowcount": 2}]}
null
Empty
null
USE arwiki_p; SELECT rev_user_text, COUNT(*) FROM revision JOIN page ON page_id = rev_page JOIN user ON rev_user_text = user_name JOIN user_groups ON user_id = ug_user WHERE ug_group = 'sysop' group by rev_user_text
{"runningtime": "1.93", "resultsets": [{"headers": ["actor_name", "count(rev_actor)"], "rowcount": 381}]}
null
Empty
null
USE arwiki_p; SET @rank=0; SELECT @rank:=@rank+1 AS "المركز", s.* FROM ( SELECT CONCAT("[[مستخدم:",actor_name,"|",actor_name,"]]") AS "المستخدم", COUNT(rev_actor) AS "عدد التعديلات" FROM revision JOIN actor ON actor_id = rev_actor WHERE actor_name NOT LIKE ucase ("%BOT") COLLATE utf8_general_ci AND actor_name NOT ...
{"runningtime": "0.14", "resultsets": [{"headers": ["el_to"], "rowcount": 2}]}
null
Articles in certain category by their size
null
SELECT P.page_title, P.page_len FROM ukwiki_p.page P JOIN ukwiki_p.page PT ON P.page_title=PT.page_title JOIN ukwiki_p.categorylinks CL ON PT.page_id=CL.cl_from WHERE P.page_namespace=0 AND PT.page_namespace=1 AND CL.cl_to="Статті_WikiGap_2020" ORDER BY P.page_len DESC
{"resultsets": [{"rowcount": 10, "headers": ["frp_user_id", "frp_editComments", "frp_uniqueContentPages", "frp_totalContentEdits", "frp_reviewedEdits", "frp_revertedEdits", "frp_demoted"]}], "runningtime": "0.13"}
null
Users with more than 1000 edits (arwiki)
null
USE arwiki_p; SELECT distinct u.user_name, u.user_editcount FROM user u inner join user_groups ug on ug.ug_user=u.user_id where ug.ug_group != 'bot' AND u.user_name NOT LIKE ucase ("%BOT") COLLATE utf8_general_ci AND u.user_name NOT LIKE ("%New_user_message") AND u.user_editcount > 1000 ORDER BY u.user_editcount desc;
{"resultsets": [{"rowcount": 10, "headers": ["frp_user_id", "frp_editComments", "frp_uniqueContentPages", "frp_totalContentEdits", "frp_reviewedEdits", "frp_revertedEdits", "frp_demoted"]}], "runningtime": "0.14"}
null
Test
null
USE arwiki_p; SELECT distinct u.user_name, u.user_editcount FROM user u inner join user_groups ug on ug.ug_user=u.user_id inner join revision r on r.rev_actor = u.user_id where ug.ug_group != 'editor' and ug.ug_group != 'bot' AND u.user_name NOT LIKE ucase ("%BOT") COLLATE utf8_general_ci AND u.user_name NOT LIKE ("%Ne...
{"resultsets": [{"rowcount": 1000, "headers": ["frp_user_id", "frp_editComments", "frp_uniqueContentPages", "frp_totalContentEdits", "frp_reviewedEdits", "frp_revertedEdits", "frp_demoted", "user_editcount", "days_since_registration"]}], "runningtime": "3.44"}
null
Editors with more than 5 edits in last 30 days (arwiki)
Results order by there edits count in the same period.
USE arwiki_p; select actor_name, count(rev_actor) from revision JOIN actor ON actor_id = rev_actor where rev_timestamp > DATE_SUB(NOW(), INTERVAL 1 MONTH) AND actor_name IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'editor') AND actor_name NOT IN (SELECT user_name...
{"runningtime": "0.14", "resultsets": [{"headers": ["actor_name"], "rowcount": 10}]}
null
تخصيص البذور حسب المقالات المشابهة حسب التصنيف
null
use arwiki_p; select concat("#[[", p1.page_title,"]]--->", group_concat(DISTINCT concat("<div class = \"stub-value ",cl4.cl_to,"\">", cl4.cl_to, "</div>") SEPARATOR ' '),"</br>") from page p1 inner join categorylinks cl1 on cl1.cl_from = p1.page_id inner join categorylinks cl2 on p1.page_id = cl2.cl_from inn...
{"resultsets": [{"rowcount": 322, "headers": ["frp_user_id", "frp_editComments", "frp_uniqueContentPages", "frp_totalContentEdits", "frp_reviewedEdits", "frp_revertedEdits", "frp_demoted", "user_editcount", "days_since_registration"]}], "runningtime": "6.72"}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"rowcount": 33, "headers": ["user_id", "user_name", "age", "user_editcount"]}], "runningtime": "9.37"}
null
تخصيص البذور حسب المقالات المشابهة حسب التصنيف
null
use arwiki_p; select concat("#[[", p1.page_title,"]]--->", group_concat(DISTINCT concat("<div class = \"stub-value ",cl4.cl_to,"\">", cl4.cl_to, "</div>") SEPARATOR ' '),"</br>") from page p1 inner join categorylinks cl1 on cl1.cl_from = p1.page_id inner join categorylinks cl2 on p1.page_id = cl2.cl_from inn...
{"connection_id": 45632413}
null
WikiGap 2020 New
List of articles created for the Investigative Journalism Week on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name, COUNT(1) AS created, SUM(article.page_len) as...
{"resultsets": [{"rowcount": 10, "headers": ["user_name", "user_registration", "user_touched", "rc_timestamp", "user_editcount"]}], "runningtime": "0.11"}
null
مقالات بوابة اليمن غير المقيمة (بدون نقاش)
null
USE arwiki_p; select DISTINCT concat("",p1.page_title, '') as pagename from page p1 , categorylinks where p1.page_id = cl_from AND p1.page_is_redirect = 0 -- no redirects # page_namespace : 0 , 4 , 10 , 14 , 101 , 829 AND p1.page_namespace = 0 AND cl_to = "بوابة_اليمن/مقالات_متعلقة" and not exists (select pp.p...
{"runningtime": "0.67", "resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "pa...
null
Meta inactivity 2020-04
null
USE metawiki_p; -- Modify startdate and enddate to change dates SET @startdate = '20191001000000'; SET @enddate = '20200401000000'; -- regex for exempt users SET @exempt_username_pattern = ' \\(WMF\\)$|-WMF$|WMFOffice'; -- Define for what is a sysop action SET @sysoplogtype = CAST( "( 'abusefilter', 'block',...
{"connection_id": 23003985}
null
Meta inactivity 2019-04
null
USE metawiki_p; -- Modify startdate and enddate to change dates SET @startdate = '20181001000000'; SET @enddate = '20190401000000'; -- regex for exempt users SET @exempt_username_pattern = ' \\(WMF\\)$|-WMF$|WMFOffice'; -- Define for what is a sysop action SET @sysoplogtype = CAST( "( 'abusefilter', 'block',...
{"runningtime": "0.08", "resultsets": [{"headers": ["bel", "el_id", "el_from", "el_to", "el_index", "el_index_60"], "rowcount": 0}]}
null
Recently edited declined AfC submissions
null
select page_namespace, page_title, rev_timestamp from categorylinks join page on page_id = cl_from join revision on rev_id = page_latest where cl_to = 'Declined_AfC_submissions' and cl_type = 'page' and rev_timestamp > 20200401000000 -- var date = new Date(); -- date.setDate(date.getDate() - 1); -- var pad = num => (...
{"resultsets": [{"rowcount": 252, "headers": ["bl", "el_id", "el_from", "el_to", "el_index", "el_index_60"]}], "runningtime": "0.92"}
null
Meta inactivity 2020-04
null
USE metawiki_p; -- Modify startdate and enddate to change dates SET @startdate = '20191001000000'; SET @enddate = '20200401000000'; -- regex for exempt users SET @exempt_username_pattern = ' \\(WMF\\)$|-WMF$|WMFOffice'; -- Define for what is a sysop action SET @sysoplogtype = CAST( "( 'abusefilter', 'block',...
{"runningtime": "0.73", "resultsets": [{"headers": ["time", "user", "Namespace", "page", "comment"], "rowcount": 0}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"rowcount": 109, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}], "runningtime": "83.73"}
null
gu_email
null
USE centralauth_p; SELECT gu_email, gu_email_authenticated FROM globaluser WHERE gu_name = "NahidSultan";
{"resultsets": [{"rowcount": 51636, "headers": ["page_title", "cl_to"]}], "runningtime": "586.19"}
null
files in a specific category
null
USE commonswiki_p; SELECT CONCAT("* [[:File:", img_name, "]]") AS file, img_timestamp AS img_creation # ^^Timestamp of when upload took place. Not necessarily the same timestamp as logging.log_timestamp. FROM image JOIN page ON page_namespace = 6 AND page_title = img_name JOIN categorylinks ON cl_from = page_id A...
{"runningtime": "89.35", "resultsets": [{"headers": ["page_title", "uses", "in_main", "page_is_redirect", "uses_wikidata", "deprecated", "to_merge"], "rowcount": 513}]}
null
Wikipedian viimeisimmät "rvv"-muokkaukset
null
use fiwiki_p; SELECT rc_title, rc_this_oldid, rc_timestamp, comment_text FROM recentchanges, comment_recentchanges WHERE rc_comment_id=comment_id AND comment_text LIKE "%rvv%" AND rc_source="mw.edit" ORDER BY rc_timestamp DESC;
{"resultsets": [{"rowcount": 1266, "headers": ["page_title", "rev_timestamp"]}], "runningtime": "910.33"}
null
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"runningtime": "141.81", "resultsets": [{"headers": ["page_title", "page_namespace", "pl_title"], "rowcount": 448}]}
null
zhwiki: rev count
null
USE zhwiki_p; SELECT COUNT(*) FROM revision LEFT JOIN actor ON rev_actor = actor_id LEFT JOIn user_groups ON actor_user = ug_user AND ug_group IN ('patroller', 'sysop', 'bot', 'autoreviewer') WHERE revision.rev_timestamp > '20200301000000' AND revision.rev_timestamp < '20200308000000' AND ug_group IS NOT NULL;
{"runningtime": "43.20", "resultsets": [{"headers": ["page_title", "el_to"], "rowcount": 2}]}
null
zhwiki: rev
null
USE zhwiki_p; SELECT rev_timestamp, rev_id, rev_actor, actor_name, user_registration, user_editcount, ug_group FROM revision LEFT JOIN actor ON rev_actor = actor_id LEFT JOIN user ON actor_user = user_id LEFT JOIn user_groups ON user_id = ug_user AND ug_group IN ('patroller', 'sysop', 'bot', 'autoreviewer') WHERE revi...
{"resultsets": [{"rowcount": 31, "headers": ["concat (\"\u0646\u0642\u0627\u0634:\",page_title)"]}], "runningtime": "13.00"}
null
zhwiki: rev count for EXTENDEDCONFIRMED
null
USE zhwiki_p; SELECT COUNT(*) FROM revision LEFT JOIN actor ON rev_actor = actor_id LEFT JOIN user ON actor_user = user_id LEFT JOIn user_groups ON actor_user = ug_user AND ug_group IN ('patroller', 'sysop', 'bot', 'autoreviewer') WHERE revision.rev_timestamp > '20200301000000' AND revision.rev_timestamp < '2020030800...
{"resultsets": [{"rowcount": 1, "headers": ["ss_total_edits"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}, {"rowcount": 804, "headers": ["userid", "name", "editcount", "admin", "bot"]}], "runningtime": "4.86"}
null
Wikipedian viimeisimmät "rvv"-muokkaukset
null
use fiwiki_p; SELECT @min_rev_id := MIN(fr_rev_id) FROM flaggedrevs WHERE datediff(now(), str_to_date(fr_rev_timestamp, "%Y%m%d%H%i%S")) < 60 AND fr_rev_id > 18457585; SELECT page_title, rev_id, rev_timestamp, comment_text FROM revision, page, comment_revision WHERE page_id=rev_page AND...
{"resultsets": [{"rowcount": 3035, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_le...
null
Wikipedian viimeisimmät "rvv"-muokkaukset
null
use fiwiki_p; SELECT page_title, rev_id, rev_timestamp, comment_text FROM revision, page, comment_revision WHERE page_id=rev_page AND rev_id > 18457585 AND rev_comment_id=comment_id AND comment_text LIKE "%rvv%" ORDER BY rev_timestamp DESC LIMIT 100
{"resultsets": [{"rowcount": 38615, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_l...
null
Wikidata - list of properties (English labels)
null
use wikidatawiki; SELECT CURRENT_DATE; SELECT CONCAT('P', term_entity_id), term_text from wb_terms WHERE term_entity_type = 'property' AND term_language = 'en' and term_type = 'label' ORDER bY term_entity_id desc;
{"runningtime": "22.69", "resultsets": [{"headers": ["CONCAT(\"Q\",ips_item_id)", "CONCAT(\"Lbn\")", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 158}]}
null
Science and Tech
null
select * from page;
{"runningtime": "23.32", "resultsets": [{"headers": ["current_date"], "rowcount": 1}, {"headers": ["page_title"], "rowcount": 6343}]}
null
Get first 1000 categories with category files.
null
select * from category where cat_title LIKE 'Computer_science' order by cat_subcats desc limit 1000;
{"runningtime": "22.10", "resultsets": [{"headers": ["page_title", "pl_title"], "rowcount": 311}]}
null
Empty
null
null
{"runningtime": "7.17", "resultsets": [{"headers": ["\u0639\u062f\u062f \u0627\u0644\u0635\u0641\u062d\u0627\u062a", "\u0627\u0644\u0639\u0646\u0648\u0627\u0646"], "rowcount": 1848}]}
null
Editors with more than 5 edits in last 30 days (arwiki)
Results order by there edits count in the same period.
USE arwiki_p; select actor_name, count(rev_actor) from revision JOIN actor ON actor_id = rev_actor where rev_timestamp > DATE_SUB(NOW(), INTERVAL 1 MONTH) AND actor_name IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'editor') AND actor_name NOT IN (SELECT user_name...
{"resultsets": [{"rowcount": 92, "headers": ["Tables_in_simplewiki_p"]}, {"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}], "runningtime": "0.46"}
null
To find number of new accounts created in a give time
null
use bnwiki_p; select user_name,user_editcount,user_registration from user where user_registration > '20180101000000' and user_registration < '20203101000000';
{"resultsets": [{"rowcount": 92, "headers": ["Tables_in_simplewiki_p"]}], "runningtime": "0.31"}
null
Spaceflight
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]" ) FROM templatelinks JOIN page ON tl_from = page_id WHERE tl_from_namespace = 0 AND tl_title = "Infobox_spaceflight" AND tl_namespace = 10 AND page_title NOT IN (SELECT page_title FROM templatelinks JOIN page O...
{"resultsets": [{"rowcount": 92, "headers": ["Tables_in_simplewiki_p"]}, {"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 10, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page...
null
Find all non-disambiguation mainspace pages without talk pages
See title.
SELECT page_title FROM page p1 WHERE p1.page_namespace = 0 AND p1.page_is_redirect = 0 AND NOT EXISTS (SELECT NULL FROM categorylinks c1 WHERE c1.cl_from = p1.page_id AND cl_to = "All_disambiguation_pages") AND NOT EXISTS (SELECT NULL FROM page p2 WHERE p2.page_namespace = "1" and p2.page_title = p1.page_title) LIMIT 5...
{"runningtime": "0.67", "resultsets": [{"headers": ["Tables_in_simplewiki_p"], "rowcount": 92}, {"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 3}, {"headers": ["actor_id", "actor_user", "actor_name"], "rowcount": 10}]}
null
Spaceflight
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]" ) FROM templatelinks JOIN page ON tl_from = page_id WHERE tl_from_namespace = 0 AND tl_title = "Infobox_spacecraft_class" AND tl_namespace = 10 AND page_title NOT IN (SELECT page_title FROM templatelinks JOIN p...
{"runningtime": "0.11", "resultsets": [{"headers": ["rev_page"], "rowcount": 10}]}
null
Spaceflight
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]" ) FROM templatelinks JOIN page ON tl_from = page_id WHERE tl_from_namespace = 0 AND tl_title = "Infobox_astronaut" AND tl_namespace = 10 AND page_title NOT IN (SELECT page_title FROM templatelinks JOIN page ON ...
{"resultsets": [{"rowcount": 92, "headers": ["Tables_in_simplewiki_p"]}, {"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 10, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page...
null
Spaceflight
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]" ) FROM templatelinks JOIN page ON tl_from = page_id WHERE tl_from_namespace = 0 AND tl_title = "Infobox_space_station" AND tl_namespace = 10 AND page_title NOT IN (SELECT page_title FROM templatelinks JOIN page...
{"resultsets": [{"rowcount": 911, "headers": ["Database"]}, {"rowcount": 92, "headers": ["Tables_in_simplewiki_p"]}, {"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 10, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_i...
null
Spaceflight
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]" ) FROM templatelinks JOIN page ON tl_from = page_id WHERE tl_from_namespace = 0 AND tl_title = "Infobox_space_station_module" AND tl_namespace = 10 AND page_title NOT IN (SELECT page_title FROM templatelinks JO...
{"runningtime": "0.90", "resultsets": [{"headers": ["Tables_in_simplewiki_p"], "rowcount": 92}, {"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 3}, {"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched",...
null
Spaceflight
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]" ) FROM templatelinks JOIN page ON tl_from = page_id WHERE tl_from_namespace = 0 AND tl_title = "Infobox_spacecraft_instrument" AND tl_namespace = 10 AND page_title NOT IN (SELECT page_title FROM templatelinks J...
{"runningtime": "0.40", "resultsets": [{"headers": ["Tables_in_simplewiki_p"], "rowcount": 92}]}
null
Milhist
Check for pages that potentially could be tagged for MILHIST wikiproject
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]" ) FROM templatelinks JOIN page ON tl_from = page_id WHERE tl_from_namespace = 0 AND tl_title = "Infobox_military_conflict" AND tl_namespace = 10 AND page_title NOT IN (SELECT page_title FROM templatelinks JOIN ...
{"runningtime": "0.56", "resultsets": [{"headers": ["Tables_in_enwiki_p"], "rowcount": 110}]}
null
Milhist
Check for pages that potentially could be tagged for MILHIST wikiproject
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]" ) FROM templatelinks JOIN page ON tl_from = page_id WHERE tl_from_namespace = 0 AND tl_title = "Infobox_military_person" AND tl_namespace = 10 AND page_title NOT IN (SELECT page_title FROM templatelinks JOIN pa...
{"resultsets": [{"rowcount": 92, "headers": ["Tables_in_simplewiki_p"]}, {"rowcount": 3, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_pa...
null
Get nlwiki page schema
null
DESCRIBE enwiki_p.templatelinks;
{"resultsets": [{"rowcount": 92, "headers": ["Tables_in_simplewiki_p"]}, {"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 10, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page...
null
Commons border categories with ndashes
2020 update
USE commonswiki_p; SELECT concat('{{move cat|',cat_title,'|',replace(cat_title,'–','-'),'|reason=[[Commons:Categories for discussion/2014/05/Category:International borders]]|user={{subst:REVISIONUSER}}}}') FROM category WHERE cat_title LIKE '%–%border' ;
{"runningtime": "0.35", "resultsets": [{"headers": ["Tables_in_scowiki_p"], "rowcount": 90}]}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"rowcount": 90, "headers": ["Tables_in_kuwiki_p"]}, {"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"]}], "runningtime": "0....
null
Get redirects leading to a page (NS=0) -> export as CSV
null
SELECT page_title FROM redirect LEFT JOIN page ON redirect.rd_from = page.page_id AND page.page_namespace = 0 WHERE rd_title = "IMDb" AND rd_namespace = 0 ORDER BY rd_from ASC;
{"connection_id": 52494230}
null
تخصيص البذور حسب المقالات المشابهة حسب التصنيف
null
use arwiki_p; select concat("#[[", p1.page_title,"]]--->", group_concat(DISTINCT concat("<div class = \"stub-value ",cl4.cl_to,"\">", cl4.cl_to, "</div>") SEPARATOR ' '),"</br>") from page p1 inner join categorylinks cl1 on cl1.cl_from = p1.page_id inner join categorylinks cl2 on p1.page_id = cl2.cl_from inn...
{"connection_id": 24199795}
null
Redirects in pagelinks leading to United_States (ns=0)
null
use enwiki_p; SELECT pagelinks.pl_from, page.page_title FROM pagelinks JOIN page ON page.page_id = pagelinks.pl_from WHERE pagelinks.pl_title = "United_States" AND pagelinks.pl_namespace = 0 AND pagelinks.pl_from_namespace = 0 AND page.page_is_redirect = 1 AND page.page_namespace = 0 LIMIT 130
{"runningtime": "3.57", "resultsets": [{"headers": ["Database"], "rowcount": 911}, {"headers": ["rev_page", "page_title", "rev_timestamp"], "rowcount": 10}]}
null
ᱥᱟᱱᱛᱟᱲᱤ ᱣᱤᱠᱤᱯᱤᱰᱤᱭᱟ ᱨᱮ ᱡᱟᱹᱥᱛᱤ ᱚᱱᱚᱞ ᱵᱮᱱᱟᱣ ᱵᱮᱵᱷᱟᱨᱤᱭᱟᱹ ᱠᱳᱣᱟᱜ ᱛᱟᱹᱞᱠᱟᱹ
null
USE satwiki_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": 10, "headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", ...
null
ruwiki: Convenient Discussions script usage: total number of edits
null
use ruwiki_p; select count(*) from comment join revision on rev_comment_id = comment_id where # rev_timestamp > "20180220000000" and # rev_id > 91041898 #and right(comment_text, 6) = "/CD]])"
{"connection_id": 52499534}
null
Commons border categories with ndashes
CfD closed
USE commonswiki_p; SELECT concat('{{move cat|',cat_title,'|',replace(cat_title,'–','-'),'|reason=[[Commons:Categories for discussion/2014/05/Category:International borders]]|user={{subst:REVISIONUSER}}}}') FROM category WHERE cat_title LIKE '%–%border' ;
{"resultsets": [{"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 13, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}, {"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_d...
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"rowcount": 17, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 7, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 7, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}], "runningtime": "1.43"}
null
Wikidata items with identical label and description
null
USE wikidatawiki_p; SELECT CONCAT('Q', Lwbit.wbit_item_id) AS item_id, wbxl_language, (SELECT wbx_text FROM wbt_text WHERE wbx_id = wbxl_text_id) AS text FROM wbt_item_terms AS Lwbit JOIN wbt_term_in_lang AS Lwbtl ON Lwbtl.wbtl_id = Lwbit.wbit_term_in_lang_id JOIN wbt_type AS Ly ON Ly.wby_id = Lwbtl.wbtl_t...
{"runningtime": "0.47", "resultsets": [{"headers": ["totale", "page_count_error", "weight"], "rowcount": 12}, {"headers": ["page_id", "page_title", "page_len", "totale", "linter_params", "ptotale"], "rowcount": 31}]}
null
Items without Czech label by usage (en)
null
USE arwiki_p; SELECT eu_entity_id, wbx_text, ct FROM (SELECT eu_entity_id, COUNT(*) AS ct FROM wbc_entity_usage WHERE eu_aspect = 'L.en' AND eu_entity_id LIKE 'Q%' GROUP BY eu_entity_id) AS wbc JOIN wikidatawiki_p.wbt_item_terms ON wbit_item_id = REPLACE(eu_entity_id, 'Q', '') JOIN wikidatawiki_p.wbt_term_in_lang ON wb...
{"resultsets": [{"rowcount": 11, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 6, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}], "runningtime": "2.37"}
null
Last VU upload
null
USE commonswiki_p; SELECT img_timestamp, img_name FROM `image` JOIN `comment` on img_description_id = comment_id WHERE comment_text LIKE "VicuñaUploader%" ORDER BY img_timestamp DESC LIMIT 1
{"resultsets": [{"rowcount": 200, "headers": ["page_title", "page_count"]}], "runningtime": "69.41"}
null
Last VU upload
null
USE commonswiki_p; SELECT LEFT(img_timestamp,8) as date, COUNT(*) FROM `image` JOIN `comment` on img_description_id = comment_id WHERE comment_text LIKE "VicuñaUploader%" and img_timestamp > 20200101000000 ORDER BY img_timestamp DESC LIMIT 100
{"resultsets": [{"rowcount": 32, "headers": ["af_id", "af_public_comments", "af_actions"]}], "runningtime": "0.21"}
null
Timed media needing timed text
null
USE commonswiki_p; SELECT CONCAT("[[:File:", img_name, "]]") FROM image JOIN globalimagelinks ON img_name = gil_to WHERE img_major_mime IN ("audio", "video") AND img_minor_mime != "midi" AND img_name NOT IN (SELECT LEFT(page_title, -7) FROM page WHERE page_namespace = 103)
{"connection_id": 24236397}
null
Validated-Fathima_kaniyam-மார்ட்டின்_லூதர்_கிங்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [], "runningtime": "0.03"}
null
GA/FA and GAN/FAC linked from April 9
GA/FA and GAN/FAC linked from [[April 9]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"runningtime": "268.26", "resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 170}]}
null
zhwiki: unprotectedtemps
null
USE zhwiki_p; SELECT tl_namespace, tl_title, COUNT(*) AS `cnt` FROM templatelinks GROUP BY tl_title HAVING `cnt` >= 500 ORDER BY `cnt` DESC
{"resultsets": [{"rowcount": 40218, "headers": ["rev_page", "page_title", "rev_timestamp", "rev_actor", "user_name"]}], "runningtime": "149.10"}
null
GA/FA and GAN/FAC linked from April 10
GA/FA and GAN/FAC linked from [[April 10]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"runningtime": "65.64", "resultsets": [{"headers": ["cnt", "tl_from_namespace"], "rowcount": 8}]}
null
Edits by me with "whitespace" in the comment
For T249649 but also illustrates the solution for T224866
SELECT p.page_title, c.comment_text FROM sewikimedia_p.revision r join sewikimedia_p.comment c on r.rev_comment_id = c.comment_id join sewikimedia_p.page p on r.rev_page = p.page_id join sewikimedia_p.actor a on r.rev_actor = a.actor_id WHERE a.actor_name = "André Costa (WMSE)" AND c.comment_text LIKE '%whitespac...
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 10000}], "runningtime": "33.51"}
null
Recent Changes (5 days, random sample 20%)
null
USE enwiki_p; SELECT rc_timestamp, rc_actor, rc_title, rc_minor, rc_type, rc_old_len, rc_new_len FROM recentchanges WHERE rc_timestamp >= DATE_ADD(NOW(), INTERVAL -5 DAY) AND rc_namespace = 0 AND rc_bot = 0 AND (ABS(MOD(rc_actor, 10)) = 7 OR ABS(MOD(rc_actor, 10)) = 5)
{"resultsets": [{"headers": ["page_title", "el_to"], "rowcount": 167}], "runningtime": "208.80"}
null
Validated-FathimaKaniyam-மார்ட்டின்_லூதர்_கிங்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"connection_id": 53190986}
null
Validated-Fathima-மார்ட்டின்_லூதர்_கிங்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"headers": ["rev_timestamp", "url", "rev", "tag", "page", "user"], "rowcount": 10}], "runningtime": "0.14"}
null
Wikimedia Commons media with Czech description needing categories
null
SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page...
{"resultsets": [{"headers": ["rev_timestamp", "url", "rev", "tag", "pns", "page", "user"], "rowcount": 10}], "runningtime": "0.11"}
null
Recent Changes (5 days, random sample 10%)
null
USE enwiki_p; SELECT rc_timestamp, rc_actor, rc_title, rc_minor, rc_type, rc_old_len, rc_new_len FROM recentchanges WHERE rc_timestamp >= DATE_ADD(NOW(), INTERVAL -7 DAY) AND rc_namespace = 0 AND rc_bot = 0 AND ABS(MOD(rc_actor, 10)) = 7 OR ABS(MOD(rc_actor, 10)) = 5
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 79}], "runningtime": "388.67"}
null
Validated-Fathima-தனித்_தமிழ்க்_கிளர்ச்சி
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"runningtime": "34.36", "resultsets": [{"headers": ["CONCAT(\"Q\",ips_item_id)", "CONCAT(\"Lbn\")", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 44}]}
null
Validated-Fathima-தாய்லாந்து
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"headers": ["Title"], "rowcount": 0}], "runningtime": "3.71"}
null
Validated-Fathima-கலீலியோவின்_நம்மை_மேம்படுத்தும்_எண்ணங்கள்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"connection_id": 53327371}
null
Validated-Fathima-கன்பூசியஸின்_நம்மை_மேம்படுத்தும்_எண்ணங்கள்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"resultsets": [{"headers": ["CURRENT_DATE"], "rowcount": 1}, {"headers": ["term_entity_type", "term_language", "labels", "descriptions", "aliases"], "rowcount": 49}], "runningtime": "302.42"}
null
GA/FA and GAN/FAC linked from April 12
GA/FA and GAN/FAC linked from [[April 12]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"headers": ["CONCAT(\"Q\",ips_item_id)", "CONCAT(\"Lbn\")", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 45}], "runningtime": "8.63"}
null
GA/FA and GAN/FAC linked from April 11
GA/FA and GAN/FAC linked from [[April 11]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"runningtime": "18.91", "resultsets": [{"headers": ["CONCAT(\"Q\",ips_item_id)", "CONCAT(\"Lbn\")", "CONCAT('\"',ips_site_page,'\"')"], "rowcount": 45}]}
null
Proofread-Ramesh-திருக்குறள்_செய்திகள்
Change the actor_name and page_title for your search. Choose either validated or proofread line and comment another
use tawikisource_p; SELECT distinct page_title as Title, actor_name as user, comment_text as comment FROM revision join page ON page_id = rev_page join comment on comment_id = rev_comment_id join actor ON rev_actor = actor_id where #(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%") ...
{"runningtime": "20.91", "resultsets": [{"headers": ["page_title"], "rowcount": 668}]}
null
Generating lists and metadata images from a specific category in Commons
null
USE commonswiki_p; SELECT * FROM categorylinks #categorylinks contains links between images and categories JOIN page ON categorylinks.cl_from = page.page_id JOIN image #by joining page with image table we can get the metadata from the image ON page.page_title=image.img_name WHERE cl_to LIKE 'Felis_silvestris_catus' AN...
{"resultsets": [{"headers": ["Tables_in_eswiki_p"], "rowcount": 93}], "runningtime": "0.37"}
null
Number of links leading to "United_States" and its redirects
null
select pl_title as title, count(*) as refcount from pagelinks where pl_namespace = 0 and pl_from_namespace = 0 and ( pl_title = "United_States" or pl_title = "AmericA" or pl_title = "UnitedStates" or pl_title = "US" or pl_title = "United_States/Introduction" or pl_title = "USA" o...
{"resultsets": [{"headers": ["Page title", "Date", "Edit count"], "rowcount": 1}], "runningtime": "1.74"}
null
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী
২৮ জানু ২০২০
USE bnwiki_p; SELECT CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম, COUNT(rev_id) AS মোট_নিবন্ধ FROM actor INNER JOIN revision ON revision.rev_actor = actor.actor_id JOIN page ON page.page_id = revision.rev_page WHERE page_is_redirect = 0 AND rev_parent_id = 0 AND page_namespace = 0 AND rev...
{"resultsets": [{"headers": ["i"], "rowcount": 1}], "runningtime": "0.17"}
null
Deletion Ratios for one wiki during 2019
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 huwiki_p; set @dbname = 'huwiki'; set @ct_tag_id = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); set @created_total = ( select count(rev_id) from page, revision where page_id = rev_page and page_namespace = 0 and rev_timestamp like '...
{"runningtime": "379.01", "resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 82}]}
null
Find all revisions of a page that match given revision
null
SELECT CONCAT("Special:Diff/", rev_id) AS diff, actor_name AS editor, DATE_FORMAT(rev_timestamp, '%Y-%m-%d %H:%i:%s') AS timestamp FROM revision JOIN page ON rev_page = page_id JOIN actor_revision ON actor_id = rev_actor WHERE page_title = 'Kareena Kapoor Khan' /* Title of page, without namespace, underscores instead o...
{"resultsets": [{"headers": ["Database"], "rowcount": 911}, {"headers": ["Tables_in_simplewiki_p"], "rowcount": 92}], "runningtime": "3.53"}
null
infobox settlement
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]") FROM revision_userindex JOIN page ON rev_page = page_id WHERE rev_actor = (SELECT actor_id FROM actor_revision WHERE actor_name = "JJMC89 bot") AND rev_timestamp <= 20170331000000 AND rev_timestamp >= 20170301000000
{"resultsets": [{"headers": ["totale", "page_count_error", "weight"], "rowcount": 12}, {"headers": ["page_id", "page_title", "page_len", "totale", "linter_params", "ptotale"], "rowcount": 51}], "runningtime": "0.52"}
null
infobox settlement then moved
null
USE enwiki_p; SELECT CONCAT("[[", page_title, "]]") FROM revision_userindex JOIN page ON rev_page = page_id JOIN logging_logindex ON page_title = log_title WHERE rev_actor = 14478 # JJMC89 bot AND rev_timestamp <= 20170331000000 AND rev_timestamp >= 20170301000000 AND log_type = "move" AND log_timesta...
{"runningtime": "2.96", "resultsets": [{"headers": ["totale", "page_count_error", "weight"], "rowcount": 12}, {"headers": ["page_id", "page_title", "page_len", "totale", "linter_params", "ptotale"], "rowcount": 51}]}
null
New user mainspace moves
null
USE enwiki_p; SELECT CONCAT("[[", log_title, "]]") as target FROM logging_userindex JOIN `actor` ON log_actor = actor_id JOIN `user` ON actor_user = user_id WHERE log_namespace = 0 AND log_type = "move" AND user_editcount < 15
{"resultsets": [{"headers": ["CONCAT('# [[:File:', page_title, ']]')"], "rowcount": 113}], "runningtime": "5.77"}
null
Articles only in hidden categories on etwiki
null
USE etwiki_p; SELECT CONCAT('# [[',p1.page_title,']]') AS page_title FROM page p1 LEFT OUTER JOIN categorylinks ON cl_from = p1.page_id LEFT JOIN page p2 ON cl_to = p2.page_title AND p2.page_namespace = 14 LEFT JOIN page_props ON p2.page_id = pp_page AND pp_propname = 'hiddencat' WHERE p1.page_namespace = 0 AND p1.page...
{"resultsets": [{"headers": ["c"], "rowcount": 1}], "runningtime": "258.13"}
null
GA/FA and GAN/FAC linked from April 13
GA/FA and GAN/FAC linked from [[April 13]]
SELECT page_title #Faster than just selecting the page title and id, but only those are needed FROM page pg1 WHERE pg1.page_namespace = 0 #Only care about articles AND pg1.page_title IN ( #Where page is linked from a specified other page SELECT pl_title FROM pagelinks WHERE pl_from...
{"resultsets": [{"headers": ["page_title", "el_to"], "rowcount": 0}], "runningtime": "0.30"}
null
مقالات ويكيبيديا حسب الموضوع
null
use arwiki_p; select replace(replace(cl_to, "بوابة_", ""),"/مقالات_متعلقة", "") as "الموضوع", count(cl_from) as "عدد المقالات", ((count(cl_from)/1019000)*100) as "النسبة" from categorylinks where cl_to like "بوابة_%متعلقة" and cl_from in (select page_id from page where page_id= cl_from and page_namespace = 0 and page_i...
{"runningtime": "2.08", "resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 18}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 6}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 8}]}
null
مقالات ويكيبيديا حسب الموضوع
null
use arwiki_p; select replace(replace(cl_to, "بوابة_", ""),"/مقالات_متعلقة", "") as "الموضوع", count(cl_from) as "عدد المقالات", ((count(cl_from)/1019000)*100) as "النسبة" from categorylinks where cl_to like "بوابة_%متعلقة" and cl_from in (select page_id from page where page_id= cl_from and page_namespace = 0 and page_i...
{"resultsets": [{"headers": ["totale", "page_count_error", "weight"], "rowcount": 12}, {"headers": ["page_id", "page_title", "page_len", "totale", "linter_params", "ptotale"], "rowcount": 49}], "runningtime": "4.13"}
null