title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
Edits made by quick statements in a given day
null
select count(*) from recentchanges join change_tag on rc_id = ct_rc_id join change_tag_def on ctd_id = ct_tag_id where ctd_name = 'OAuth CID: 1776' and rc_timestamp like '20220803%';
{"resultsets": [{"headers": ["page_title"], "rowcount": 59}], "runningtime": "0.12"}
wikidatawiki_p
Climate-change content on enwiki
Get all climate-change-related articles from English Wikipedia based on tagging by WikiProject Climate Change (https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Climate_change)
SELECT pa_page_id AS page_id, page_title AS page_title, pa_class AS quality_class, pa_importance AS importance_class FROM page_assessments INNER JOIN page_assessments_projects ON (pap_project_id = pa_project_id AND pap_project_title in ('Disability','Politics','Agriculture','Medicine','Education','Water...
{"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", "page_len", "page_content_...
enwiki_p
Protect stats by time interval (huwiki)
FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days.
use huwiki_p; SELECT CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#', user_name as 'Szerkesztő', count(*) as 'Total' FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'protect' # https://www.mediawiki.org/wiki/Manual:Log_actions AND lo...
{"resultsets": [{"headers": ["page_namespace", "page_title", "cl_sortkey_prefix"], "rowcount": 2144}], "runningtime": "2.39"}
huwiki_p
Deletion stats by time interval (huwiki)
FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days.
use huwiki_p; SELECT CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#', user_name as 'Szerkesztő', count(*) as 'Total' FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'delete' # https://www.mediawiki.org/wiki/Manual:Log_actions AND log...
{"resultsets": [{"headers": ["page_namespace", "page_title", "cl_sortkey_prefix"], "rowcount": 2144}], "runningtime": "2.35"}
huwiki_p
Log and revision deletion stats by time interval (huwiki)
FlaggedRevs reviewer (patroller) stats / ranking based on actions in the last 30 days.
use huwiki_p; SELECT CONCAT(ROW_NUMBER() OVER(ORDER BY count(*) DESC),'.') AS '#', user_name as 'Szerkesztő', count(*) as 'Total' FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'delete' # https://www.mediawiki.org/wiki/Manual:Log_actions AND log...
{"resultsets": [{"headers": ["page_title", "cl_to", "exists"], "rowcount": 775}], "runningtime": "1.53"}
huwiki_p
all talk page FAQs
null
SELECT count(*) FROM page WHERE page_namespace = "1" AND page_title LIKE "%/FAQ"; SELECT page_title AS title, page_len AS length FROM page WHERE page_namespace = "1" AND page_title LIKE "%/FAQ" # All arbitration reports #AND page_title LIKE "Wikipedia_Signpost%rbitratio%" #AND page_title LIKE "Wikipedia_Signpost/2021-...
{"resultsets": [{"headers": ["page_title"], "rowcount": 350}, {"headers": ["page_title", "cl_to", "exists"], "rowcount": 6}], "runningtime": "1.32"}
enwiki_p
sport-iat.de count
null
SELECT COUNT(*) FROM externallinks JOIN page ON page_id = el_from WHERE page_namespace = 0 AND (el_index LIKE 'http://de.sport-iat%' OR el_index LIKE 'https://de.sport-iat%')
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 182}], "runningtime": "0.90"}
enwiki_p
enwiki perm removals
null
SELECT log_timestamp, actor_name, log_title, comment_text, REGEXP_SUBSTR(LOG_PARAMS, 'oldgroups";a:\\d+:\\K.*?\\}') AS old_groups, REGEXP_SUBSTR(LOG_PARAMS, 'newgroups";a:\\d+:\\K.*?\\}') AS new_groups, CONCAT("https://en.wikipedia.org/wiki/Special:Log?logid=", log_id) AS link FRO...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 140}], "runningtime": "123.32"}
enwiki_p
enwiki perm removals
null
SELECT LOG_PARAMS, CAST(REGEXP_SUBSTR(LOG_PARAMS, 'oldgroups";a:\\K\\d+') AS INTEGER) AS `oldgroups_cast`, CAST(REGEXP_SUBSTR(LOG_PARAMS, 'newgroups";a:\\K\\d+') AS INTEGER) AS `newgroups_cast`, log_timestamp, actor_name, log_title, REGEXP_SUBSTR(LOG_PARAMS, 'oldgroups";a:\\d+:\\K.*?\\}') AS old_groups, REGEXP_SUBSTR(L...
{"resultsets": [{"headers": ["page_title"], "rowcount": 1483}], "runningtime": "2.96"}
enwiki_p
Flags in disambiguation pages on plwiki
https://pl.wikipedia.org/w/index.php?title=Wikipedia:Zadania_dla_bot%C3%B3w&oldid=67739159#Flagi
select page_title, tl_title from page inner join templatelinks on tl_from = page_id inner join page_props on pp_page = page_id where page_namespace = 0 and tl_namespace = 10 and tl_title in ("Państwo", "PaństwoL", "Państwolink") and pp_propname = "disambiguation" ;
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 145}], "runningtime": "123.25"}
plwiki_p
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title"], "rowcount": 0}, {"headers": ["tl_title"], "rowcount": 0}, {"headers": ["page_title", "rev_timestamp"], "rowcount": 1}, {"headers": ["page_title", "rd_title"], "rowcount": 0}, {"headers": ["page_title", "pp_propname"], "r...
eswiki
Lugnuts articles - no other significant contributions
This is a list of articles that Lugnuts has created and that no other editor has made significant contributions to.
WITH creations as (SELECT page_title, page_id, rev_timestamp FROM revision_userindex JOIN actor_revision ON actor_id = rev_actor JOIN page ON page_id = rev_page WHERE rev_parent_id = 0 AND page_is_redirect = 0 AND actor_name = "Lugnuts" AND page_namespace = 0 AND rev_len > 150) SELECT page_title, rev_timestamp...
{"resultsets": [{"headers": ["page_title"], "rowcount": 62875}], "runningtime": "114.17"}
enwiki_p
Page IDs of files in both Category:Self-published_work and Category:All_free_media
null
# 110,000 Self-published_work, 174,000 All_free_media SELECT cl_from FROM categorylinks WHERE cl_to = "Self-published_work" AND cl_from IN ( SELECT cl_from FROM categorylinks WHERE cl_to = "All_free_media" )
{"resultsets": [{"headers": ["user_name", "pageCondition"], "rowcount": 1}], "runningtime": "64.52"}
enwiki
Articles created primarily by Lugnuts
This query produces a list of small articles that are created and primarily contain content by Lugnuts. This is currently defined as articles with a page length under 4000 with Lugnuts contributing more than half the content, but can be adjusted. In addition, redirects, lists and disambiguation pages are excluded.
WITH creations as (SELECT page_title, page_id, rev_timestamp, page_len, rev_len FROM revision_userindex JOIN page ON page_id = rev_page WHERE rev_parent_id = 0 AND page_is_redirect = 0 AND rev_actor = 482 AND page_namespace = 0) SELECT page_title, rev_timestamp FROM (SELECT creations.page_title, creations.page...
{"resultsets": [{"headers": ["cl_to", "COUNT(cl_to)"], "rowcount": 1}], "runningtime": "0.34"}
enwiki_p
Women's biographies written by Lugnuts
List of women's biographies written by Lugnuts, requested at Wikipedia talk:WikiProject Women in Red#Cricket players may be under threat
SELECT DISTINCT(Article.page_title), rev_timestamp FROM revision_userindex JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0 JOIN page AS Talk ON Article.page_title = Talk.page_title AND Talk.page_namespace = 1 JOIN categorylinks AS ArticleCat ON ArticleCat.cl_from = Article.page_id JOI...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "page_is_redirect"], "rowcount": 4}], "runningtime": "56.22"}
enwiki_p
new query10500
null
SELECT CONCAT( CASE WHEN page_namespace = 4 THEN "ВП:" WHEN page_namespace = 5 THEN "Обсуждение ВП:" WHEN page_namespace = 12 THEN "Справка:" WHEN page_namespace = 13 THEN "Обсуждение Справки:" WHEN page_namespace = 100 THEN "Портал:" WHEN page_namespace = 101 THEN "Обсуждение портала:" WH...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "page_is_redirect"], "rowcount": 3}], "runningtime": "292.90"}
ruwiki_p
Image EXIF test
null
USE enwiki_p; SELECT img_name,img_metadata from image WHERE img_name = '20160104-Capture1.JPG' LIMIT 1;
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "actor_id", "actor_user", "actor_name", "user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_touched",...
enwiki_p
NL-vandalismebestrijding, IP-patrolling
null
# anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION SELECT 'total...
{"resultsets": [{"headers": ["count(ll_from)"], "rowcount": 1}], "runningtime": "0.20"}
nlwiki_p
lista redaktorów plwikisource z ponad 10 edycjami w ostatnim 3/4 roku
lista redaktorów plwikisource z ponad 10 edycjami w ostatnim roku
USE plwikisource_p; SELECT actor_name FROM (SELECT COUNT(*) AS n, actor_name FROM revision JOIN actor ON rev_actor = actor_id JOIN user_groups ON actor_user = ug_user JOIN page ON page_id = rev_page WHERE ug_group = 'editor' AND rev_timestamp > '20210901000000' AND page_namespace % ...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "page_is_redirect"], "rowcount": 2}], "runningtime": "56.86"}
plwikisource_p
Biographies written by Lugnuts
List of biographies written by Lugnuts, requested at Wikipedia talk:WikiProject Women in Red#Cricket players may be under threat
SELECT DISTINCT(Article.page_title), rev_timestamp FROM revision_userindex JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0 JOIN page AS Talk ON Article.page_title = Talk.page_title AND Talk.page_namespace = 1 JOIN categorylinks AS ArticleCat ON ArticleCat.cl_from = Article.page_id JOI...
{"resultsets": [{"headers": ["page_title", "edits"], "rowcount": 1183}], "runningtime": "1.70"}
enwiki_p
Women's biographies written by Lugnuts
List of women's biographies written by Lugnuts, requested at Wikipedia talk:WikiProject Women in Red#Cricket players may be under threat. Limited to those very likely to violate [[WP:NOTDATABASE]]
SELECT DISTINCT(Article.page_title), rev_timestamp FROM revision_userindex JOIN page AS Article ON Article.page_id = rev_page AND Article.page_namespace = 0 JOIN page AS Talk ON Article.page_title = Talk.page_title AND Talk.page_namespace = 1 JOIN categorylinks AS ArticleCat ON ArticleCat.cl_from = Article.page_id JOI...
{"resultsets": [], "runningtime": "0.03"}
enwiki_p
IP-patrolling - vandalismebestrijding nlwiki
399, 13:09 (CEST) 07-08-2022
# anonymous edits totals SELECT CASE rc_patrolled WHEN 0 THEN 'unpatrolled' WHEN 1 THEN 'manually patrolled' WHEN 2 THEN 'autopatrolled' END AS rc_patrolled, COUNT(*) AS 'count' FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL GROUP BY rc_patrolled UNION SELECT 'total...
{"resultsets": [{"headers": ["page_title"], "rowcount": 294}], "runningtime": "0.51"}
nlwiki_p
Wikidata edits count [Translate Wikidata properties event]
null
select actor_name, count(*) as edits from wikidatawiki_p.revision_userindex r join wikidatawiki_p.actor a on r.rev_actor = a.actor_id join wikidatawiki_p.page p on r.rev_page = p.page_id where actor_name in ( "Ngostary2k", "Obuezie", "Akwugo", "Accuratecy051", "Kingsley Nkem", "Timzy D'Great", "Lebron jay", "Dera xoxo"...
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "ct_id", "ct_rc_id", "ct_log_id", "ct_rev_id", "ct_params", "ct_tag_id", "ctd_id", "ctd_name", "ctd_user_defined", "ctd_count", "actor_id", "actor_u...
wikidatawiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["MONTH(NOW())"], "rowcount": 1}], "runningtime": "0.06"}
enwiki_p
Check whether page is a disambiguation page
null
# This works thanks to [[mw:Extension:Disambiguator]] which is installed on enwiki SELECT page.*, page_props.* FROM page JOIN page_props ON pp_page = page_id WHERE page_id = 51115546 AND pp_propname = 'disambiguation'
{"resultsets": [{"headers": ["MONTH(rev_timestamp)"], "rowcount": 2}], "runningtime": "0.26"}
enwiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["user_name", "user_registration", "user_editcount", "ipb_address", "ipb_expiry", "ipb_sitewide"], "rowcount": 1}], "runningtime": "58.67"}
enwiki_p
FM editors
(Requested)
use arwiki_p; select COUNT(user_name) from user where user_registration BETWEEN 20030101000000 AND 20170809000000 AND user_id in (select ug_user from user_groups where ug_group = 'editor') AND user_id in (select up_user from user_properties where up_property = 'gender' AND up_value = 'female');
{"resultsets": [{"headers": ["user_name", "user_registration", "user_editcount", "ipb_address", "ipb_expiry", "ipb_sitewide"], "rowcount": 18}], "runningtime": "46.99"}
arwiki_p
Users by rights 2017 date
requested
select COUNT(user_name), ug_group from user inner join user_groups on ug_user = user_id where user_registration BETWEEN 20030101000000 AND 20170809000000 GROUP BY ug_group;
{"resultsets": [{"headers": ["page_title"], "rowcount": 115}], "runningtime": "0.27"}
arwiki_p
FM Users by rights 2017 date
requested
select COUNT(user_name), ug_group from user inner join user_groups on ug_user = user_id where user_registration BETWEEN 20030101000000 AND 20170809000000 AND user_id in (select up_user from user_properties where up_property = 'gender' AND up_value = 'female') GROUP BY ug_group;
{"resultsets": [{"headers": ["page_title"], "rowcount": 57}], "runningtime": "0.23"}
arwiki_p
Users by rights 2022 date
requested
select COUNT(user_name), ug_group from user inner join user_groups on ug_user = user_id GROUP BY ug_group;
{"resultsets": [{"headers": ["page_title"], "rowcount": 28}], "runningtime": "0.17"}
arwiki_p
FM Users by rights 2022 date
requested
select COUNT(user_name), ug_group from user inner join user_groups on ug_user = user_id where user_id in (select up_user from user_properties where up_property = 'gender' AND up_value = 'female') GROUP BY ug_group;
{"resultsets": [{"headers": ["page_title"], "rowcount": 258}], "runningtime": "0.42"}
arwiki_p
No-rights users 2022 date
requested
select COUNT(user_name) from user where user_id not in (select ug_user from user_groups);
{"resultsets": [{"headers": ["page_title"], "rowcount": 89}], "runningtime": "0.25"}
arwiki_p
No-rights users 2017 date
requested
select COUNT(user_name) from user where user_id not in (select ug_user from user_groups) AND user_registration BETWEEN 20030101000000 AND 20170809000000;
{"resultsets": [{"headers": ["main_title"], "rowcount": 2}], "runningtime": "5.57"}
arwiki_p
No-rights FM users 2022 date
requested
select COUNT(user_name) from user where user_id not in (select ug_user from user_groups) AND user_id in (select up_user from user_properties where up_property = 'gender' AND up_value = 'female');
{"resultsets": [{"headers": ["page_title"], "rowcount": 1381}], "runningtime": "1.58"}
arwiki_p
No-rights FM users 2017 date
requested
select COUNT(user_name) from user where user_id not in (select ug_user from user_groups) AND user_registration BETWEEN 20030101000000 AND 20170809000000 AND user_id in (select up_user from user_properties where up_property = 'gender' AND up_value = 'female');
{"resultsets": [{"headers": ["page_title"], "rowcount": 1290}], "runningtime": "1.43"}
arwiki_p
Bad disambiguation page titles (eswiki)
Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki).
use eswiki_p; select page_title as main_title from (page join redirect on page_id = rd_from) where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
{"resultsets": [{"headers": ["portal_redirect"], "rowcount": 28}], "runningtime": "0.13"}
eswiki
log_id 134292915 lower case
arbcom blocks
select * from logging, comment where log_comment_id = comment_id and log_id = 133730963 ;
{"resultsets": [{"headers": ["COUNT(page_title)"], "rowcount": 1}], "runningtime": "3.23"}
enwiki_p
Third-party ArbCom blocks since Jan 1, 2020
arbcom blocks
select log_id, log_action, date_format(log_timestamp, '%Y-%b-%d %H:%i:%s'), comment_text from logging, comment where log_comment_id = comment_id and comment_text like '%ArbCom%' and comment_text not like '%{{ArbCom%' and log_timestamp > '20200000000000' and log_type = 'block' and log_action != 'unblock' ;
{"resultsets": [{"headers": ["page_title"], "rowcount": 331}], "runningtime": "0.62"}
enwiki_p
Third-party ArbCom blocks in the past 10 years
arbcom blocks
select log_id, log_action, date_format(log_timestamp, '%Y-%b-%d %H:%i:%s'), comment_text from logging, comment where log_comment_id = comment_id and comment_text like '%ArbCom%' and comment_text not like '%{{ArbCom%' and log_type = 'block' and log_action != 'unblock' and log_timestamp > '20200809000000' ;
{"resultsets": [{"headers": ["page_title"], "rowcount": 285}], "runningtime": "0.49"}
enwiki_p
Peek at user_name, see if it uses spaces or underscores
Answer: it uses spaces, not underscores
SELECT user_name FROM user ORDER BY user_id DESC LIMIT 500
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 161}], "runningtime": "101.69"}
enwiki
Image metadata of files in both Category:Self-published_work and Category:All_free_media
null
# 110,000 Self-published_work, 174,000 All_free_media SELECT img_name, actor_id, user_id, user_name, img_metadata FROM categorylinks JOIN page ON page_id = cl_from JOIN image ON img_name = page_title LEFT JOIN actor_image ON actor_id = img_actor LEFT JOIN user ON user_id = actor_user WHERE cl_to = "Self-published_work...
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 0}], "runningtime": "0.05"}
enwiki
are VRT blocks a thing on enwiki?
null
SELECT actor_name, user_name, log_timestamp, log_id, comment_text FROM logging LEFT JOIN user ON user_name = REPLACE(log_title, "_", " ") INNER JOIN user_groups ON ug_user = user_id INNER JOIN actor ON actor_id = log_actor INNER JOIN comment ON comment_id = log_comment_id WHERE log_type = "block" AND log_...
{"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 39}], "runningtime": "0.11"}
enwiki_p
DatGuy's edits to [[WP:AIV]]/[[WP:RFPP]]/[[WP:ITNC]] by month
DatGuy's edits to the areas he plans to admin in, by month and page. For [[Wikipedia:Requests for adminship/DatGuy]] circa 9 August 2022.
SELECT LEFT(rev_timestamp, 6) AS 'year/month', page_title, EXISTS (SELECT 1 FROM change_tag JOIN change_tag_def ON ctd_id = ct_tag_id WHERE ct_rev_id = rev_id AND ctd_name IN ('huggle', 'twinkle')) AS edits_are_automated, COUNT(*) FROM r...
{"resultsets": [{"headers": ["page_title", "page_len", "cat_pages", "rev_timestamp", "rev_actor"], "rowcount": 1}], "runningtime": "59.76"}
enwiki_p
voweliness of enwiki RfA candidates' usernames
This was a good use of my time.
SELECT RANK() OVER (ORDER BY vowel_freq DESC) AS rank, SUBSTRING(page_title, 24) AS candidate, LENGTH(REGEXP_REPLACE(SUBSTRING(page_title, 24), "[^aeiouAEIOU]", "")) / (LENGTH(page_title) - 23) AS vowel_freq FROM page WHERE page_is_redirect = 0 AND page_namespace = 4 AND page_title LIKE "Requests_for_adminshi...
{"resultsets": [{"headers": ["page", "prio", "reason"], "rowcount": 29}], "runningtime": "0.09"}
enwiki_p
nlwiki Categories by language
null
SELECT m.page_title, GROUP_CONCAT(s.page_title) FROM page m, page s, categorylinks WHERE m.page_namespace=14 AND m.page_title REGEXP '_naar_taal$' AND cl_from=m.page_id AND cl_to=s.page_title AND s.page_namespace=14 GROUP BY m.page_title LIMIT 10
{"resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 1}], "runningtime": "0.06"}
nlwiki
Image metadata of files in gl.wiki
null
# 110,000 Self-published_work, 174,000 All_free_media SELECT img_name, img_metadata#, actor_id, user_id, user_name FROM categorylinks JOIN page ON page_id = cl_from JOIN image ON img_name = page_title #LEFT JOIN actor_image ON actor_id = img_actor #LEFT JOIN user ON user_id = actor_user WHERE cl_to = "Imaxes_de_Lugo" ...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "43.56"}
glwiki
log_id 134292915 mixed case
arbcom blocks
select log_id, log_timestamp, comment_text from logging, comment where log_comment_id = comment_id and comment_text like '%ArbCom%' and log_id = 134292915 ;
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "38.76"}
enwiki_p
AfC review counts, last 30 days
Credit to KylieTastic, who I forked this from so I could pull the latest data.
use enwiki_p; select ROW_NUMBER() OVER(ORDER BY reviews DESC) AS rank, count(rc_id) as reviews, actor_name, SUM(comment_text like "%Publishing accepted%") as "accept", SUM(comment_text like "Declining submission:%") as "decline", SUM(comment_text like "Rejecting submission:%") as "reject", ...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "42.63"}
enwiki
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["user_name", "user_registration", "user_editcount", "ipb_address", "ipb_expiry", "ipb_sitewide"], "rowcount": 9}], "runningtime": "17.09"}
enwiki_p
log_id 134292915 lower case
arbcom blocks
select log_id, log_timestamp, comment_text from logging, comment where log_comment_id = comment_id and lower(convert(comment_text using utf8mb4)) like '%arbcom%' and log_id = 134292915 ;
{"resultsets": [{"headers": ["ipb_id", "ipb_address", "ipb_user", "ipb_reason_id", "ipb_timestamp", "ipb_auto", "ipb_anon_only", "ipb_create_account", "ipb_expiry", "ipb_range_start", "ipb_range_end", "ipb_enable_autoblock", "ipb_deleted", "ipb_block_email", "ipb_by_actor", "ipb_allow_usertalk", "ipb_parent_block_id", ...
enwiki_p
Third-party ArbCom blocks
arbcom blocks
select log_id, log_action, date_format(log_timestamp, '%Y-%b-%d %H:%i:%s'), comment_text from logging, comment where log_comment_id = comment_id and lower(convert(comment_text using utf8mb4)) like '%arbcom%' and (lower(convert(comment_text using utf8mb4)) like '%consult%' or lower(convert(comment_text using utf8mb...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "34.82"}
enwiki_p
Links to non-existing portals in cswiki
null
SELECT pages.page_title, pl_title, pages.page_latest FROM pagelinks LEFT JOIN page AS portals ON portals.page_title = pl_title AND portals.page_namespace = pl_namespace JOIN page AS pages ON pages.page_id = pl_from WHERE pl_namespace = 100 AND portals.page_title IS NULL AND pl_from_namespace = 0 ORDER BY pages.page_lat...
{"resultsets": [{"headers": ["user_name", "user_registration", "user_editcount", "ipb_address", "ipb_expiry", "ipb_sitewide"], "rowcount": 9}], "runningtime": "45.08"}
cswiki_p
dewiki admins w/ <100 edits since 2018
null
SELECT user_name, COUNT(rev_id) FROM user JOIN user_groups ON ug_user = user_id JOIN actor_revision ON actor_user = user_id JOIN revision_userindex ON rev_actor = actor_id WHERE ug_group = 'sysop' AND rev_timestamp >= '2018' GROUP BY user_name HAVING COUNT(rev_id) < 100 ORDER BY COUNT(rev_id) ASC;
{"resultsets": [{"headers": ["page_id", "title", "edits", "users", "score"], "rowcount": 1000}], "runningtime": "2.08"}
dewiki
Properties created by user
Properties created by Property Creator
use wikidatawiki_p; SELECT actor_name AS 'User', COUNT(*) AS 'Properties created', CASE WHEN EXISTS ( SELECT 1 FROM user_groups WHERE ug_user = actor_user AND ug_group = 'bureaucrat' ) THEN 'Current bureaucrat' WHEN EXISTS ( SELECT 1 FROM user_groups WHERE ug_use...
{"resultsets": [{"headers": ["el_to", "page_title"], "rowcount": 14}], "runningtime": "17.41"}
wikidatawiki_p
Links to non-existing portals in cswiki
null
SELECT pages.page_title, pl_title, pages.page_latest FROM pagelinks LEFT JOIN page AS portals ON portals.page_title = pl_title AND portals.page_namespace = pl_namespace JOIN page AS pages ON pages.page_id = pl_from WHERE pl_namespace = 100 AND portals.page_title IS NULL AND pl_from_namespace = 0 ORDER BY pages.page_lat...
{"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 9}, {"headers": ["avg_edits_per_day"], "rowcount": 1}, {"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 9}, {"headers": ["avg_edits_per_day"], "rowcount": 1}], "runningtime": "0.57"}
cswiki_p
move log on ns 2 (eswiki)
null
SELECT * FROM logging WHERE log_timestamp >= 20220710000000 AND log_namespace = 2 AND log_type = "move";
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 43}], "runningtime": "169.49"}
eswiki_p
Basic user data (wikidata)
Basic user stats available
SELECT user_id, user_name, user_registration, user_editcount FROM user LIMIT 10
{"resultsets": [{"headers": ["REGEXP_REPLACE(log_params,'.*:','')", "comment_text", "source"], "rowcount": 9}], "runningtime": "0.72"}
wikidatawiki
WSta வெள்ளிவிழாசொற்பொழிவுகள்1993
This Query will provide the list of users who did edit on given book with its all pages.
Use tawikisource_p; SET @w:=0; select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book WHERE rev_page IN (select p...
{"resultsets": [{"headers": ["cl_to"], "rowcount": 9269}], "runningtime": "436.99"}
tawikisource_p
Edits per month - ffwiki
null
select substring(rev_timestamp, 1, 6) as month, count(rev_id) from revision group by month order by month DESC;
{"resultsets": [{"headers": ["revision_id", "comment_text", "source"], "rowcount": 9}], "runningtime": "0.71"}
ffwiki_p
Links to non-existing portals in cswiki
null
SELECT pages.page_title, pl_title, pages.page_latest FROM pagelinks LEFT JOIN page AS portals ON portals.page_title = pl_title AND portals.page_namespace = pl_namespace JOIN page AS pages ON pages.page_id = pl_from WHERE pl_namespace = 100 AND portals.page_title IS NULL AND pl_from_namespace = 0 ORDER BY pages.page_lat...
{"resultsets": [{"headers": ["revision_id", "comment_text", "source"], "rowcount": 0}], "runningtime": "0.05"}
cswiki_p
IP blocks by Tamzin
null
SELECT log_id, log_timestamp, log_title, log_params, comment_text FROM logging LEFT JOIN comment on comment_id = log_comment_id WHERE log_actor = 785255 -- Tamzin AND log_type = "block" AND log_action = "block" AND log_title RLIKE "^[\\d.:/]+$" -- Yes, messy as fuck but should work
{"resultsets": [{"headers": ["page_id"], "rowcount": 10}], "runningtime": "0.07"}
enwiki_p
টুইংকলের নতুন সংস্করণ ব্যবহার করে সম্পাদনার পরিসংখ্যান
হালনাগাদ দেখার জন্য 'Fork'-এ ক্লিক করে পুনরায় কোয়েরি সাবমিট করুন
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 = 'twinkle') GROUP BY user ORDER BY cnt DESC LIMIT 1000;
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 2}], "runningtime": "66.99"}
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": [{"headers": ["page_id", "page_title", "cl_to"], "rowcount": 10}], "runningtime": "0.07"}
bnwiki_p
Links to non-existing portals in cswiki
null
SELECT pages.page_title, pl_title, pages.page_latest FROM pagelinks LEFT JOIN page AS portals ON portals.page_title = pl_title AND portals.page_namespace = pl_namespace JOIN page AS pages ON pages.page_id = pl_from WHERE pl_namespace = 100 AND portals.page_title IS NULL AND pl_from_namespace = 0 ORDER BY pages.page_lat...
{"resultsets": [{"headers": ["page_id", "page_title", "cl_to"], "rowcount": 10}], "runningtime": "0.07"}
cswiki_p
মোট সম্পাদনার সংখ্যা
১ এপ্রিল ২০২০। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে HTML ক্লিক করুন।
USE bnwiki_p; SET @counter:=0; SELECT CONCAT("}}{{subst:সসংঅউতা|",@counter:=@counter+1,"") AS rank, CONCAT("|",user_name,"|") AS user_name, user_editcount FROM user WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot') AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)" ORDER BY user_editcount DESC...
{"resultsets": [{"headers": ["page_id", "page_title", "cl_to"], "rowcount": 10}], "runningtime": "0.06"}
bnwiki_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": [{"headers": ["page_title", "cl_to", "pp_propname"], "rowcount": 100}], "runningtime": "1.27"}
bnwiki_p
Wikidata descriptions (zh-mo)
null
SELECT wbt_text.wbx_text as description, count(*) as c FROM wbt_item_terms JOIN wbt_term_in_lang ON wbt_item_terms.wbit_term_in_lang_id = wbt_term_in_lang.wbtl_id JOIN wbt_text_in_lang ON wbt_term_in_lang.wbtl_text_in_lang_id = wbt_text_in_lang.wbxl_id AND wbt_text_in_lang.wbxl_language = 'zh-mo' J...
{"connection_id": 10577053}
wikidatawiki_p
টুইংকলের নতুন সংস্করণ ব্যবহার করে সম্পাদনার পরিসংখ্যান
হালনাগাদ দেখার জন্য 'Fork'-এ ক্লিক করে পুনরায় কোয়েরি সাবমিট করুন
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 = 'twinkle') GROUP BY user ORDER BY cnt DESC LIMIT 1000;
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 57}], "runningtime": "0.29"}
bnwiki
Links to non-existing portals in cswiki
null
SELECT pages.page_title, pl_title, pages.page_latest FROM pagelinks LEFT JOIN page AS portals ON portals.page_title = pl_title AND portals.page_namespace = pl_namespace JOIN page AS pages ON pages.page_id = pl_from WHERE pl_namespace = 100 AND portals.page_title IS NULL AND pl_from_namespace = 0 ORDER BY pages.page_lat...
{"resultsets": [{"headers": ["month", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 3}], "runningtime": "0.21"}
cswiki_p
orphaned talks
null
SELECT page_namespace, page_id, page_title, page_is_redirect, page_len ...
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 82}], "runningtime": "0.31"}
enwiki_p
Venturekit query
null
SELECT CONCAT('[[Special:Diff/', r1.rev_id, ']]') AS diff, r1.rev_len-r2.rev_len AS delta, r1.rev_timestamp, CONCAT('[[{{ns:', page_namespace, '}}:', page_title, ']]') AS pagename, comment_text FROM revision_userindex r1 JOIN actor_revision ON actor_id = r1.rev_actor LEFT JOIN page O...
{"resultsets": [{"headers": ["page_title"], "rowcount": 3}], "runningtime": "47.86"}
enwiki
T315055 check templatelinks enwiki
null
SELECT tl_from, tl_namespace, tl_title, tl_target_id, lt_namespace, lt_title FROM templatelinks LEFT JOIN linktarget ON tl_target_id = lt_id WHERE tl_from = 71505978
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 1}, {"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev...
enwiki_p
Check a user's usergroups
null
SELECT * FROM user JOIN user_groups ON ug_user = user_id WHERE user_name = 'Bedford'
{"resultsets": [{"headers": ["concat(\"\ucd08\uc548:\",page.page_title)", "page_len"], "rowcount": 2740}], "runningtime": "2.90"}
enwiki
Check a user's user properties
fancysig, gender, nickname
SELECT * FROM user JOIN user_properties ON up_user = user_id WHERE user_name = 'Bedford'
{"resultsets": [{"headers": ["TIMESTAMPDIFF(day, DATE_FORMAT(now(), '%Y%m%d%H%i%s'), (DATE_FORMAT(now(), '%Y%m%d%H%i%s') - 9600000000))"], "rowcount": 1}], "runningtime": "0.07"}
enwiki
See if user is currently blocked
null
SELECT * FROM ipblocks JOIN user ON user_id = ipb_user WHERE user_name = 'Bedford'
{"resultsets": [{"headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata", "img_bits", "img_media_type", "img_major_mime", "img_minor_mime", "img_description_id", "img_actor", "img_timestamp", "img_sha1"], "rowcount": 1}], "runningtime": "0.07"}
enwiki
New Page Reviewers eligible for barnstars - 2021(articles) - show blocked
null
SELECT actor_name AS `reviewer`, sum(case when logtemp.page_is_redirect = 0 then 1 else 0 end) as `Article Reviews`, ipb_sitewide AS blocked FROM ( SELECT log_actor, log_page, page_is_redirect FROM logging_userindex JOIN page ON page_title = log_title AND page_namespace = log_namespace WHERE log_timesta...
{"resultsets": [{"headers": ["mvi_id", "mvi_sha1", "mvi_rand", "mvi_priority"], "rowcount": 1}], "runningtime": "0.06"}
enwiki_p
New Page Reviewers eligible for barnstars - 2021(articles) - hide blocked
null
SELECT actor_name AS `reviewer`, sum(case when logtemp.page_is_redirect = 0 then 1 else 0 end) as `Article Reviews`, actor_user FROM ( SELECT log_actor, log_page, page_is_redirect FROM logging_userindex JOIN page ON page_title = log_title AND page_namespace = log_namespace WHERE log_timestamp BETWEEN 202101010000...
{"resultsets": [{"headers": ["user_name", "user_registration", "user_editcount", "ipb_address", "ipb_expiry", "ipb_sitewide"], "rowcount": 3}], "runningtime": "22.88"}
enwiki_p
[cswiki] RfA evaluation Felix220 (edits before voting)
null
SELECT actor_name, COUNT(*) FROM revision_userindex JOIN actor ON rev_actor=actor_id JOIN page ON rev_page=page_id WHERE page_namespace=0 -- TODO: replace with start timestamp of election AND rev_timestamp < '20220802084000' AND actor_user IN ( SELECT DISTINCT actor_user ...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "48.24"}
cswiki
New Page Reviewers eligible for barnstars - 2021(articles) - hide blocked
null
SELECT actor_name AS `reviewer`, sum(case when logtemp.page_is_redirect = 0 then 1 else 0 end) as `Article Reviews`, actor_user FROM ( SELECT log_actor, log_page, page_is_redirect FROM logging_userindex JOIN page ON page_title = log_title AND page_namespace = log_namespace WHERE log_timestamp BETWEEN 202101010000...
{"resultsets": [{"headers": ["total", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 1}], "runningtime": "19.19"}
enwiki_p
Candidates for Reviewer of the year - 2021
NPP - candidates for reviewer of the year - 2021
SELECT actor_name AS `Reviewer`, COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `Article Reviews` FROM ( SELECT distinct log_actor, log_page, page_is_redirect FROM logging_userindex JOIN page ON page_title = log_title AND page_namespace = log_namespace WHERE log_timestamp BETW...
{"resultsets": [{"headers": ["month", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 3}], "runningtime": "0.22"}
enwiki_p
قوالب الشرح اليتيمة
null
SELECT p1.page_namespace,p1.page_title FROM page AS p1 WHERE p1.page_title LIKE '%/شرح' and p1.page_is_redirect = 0 and p1.page_namespace in (10) AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 10 AND p2.page_title = ...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 1}], "runningtime": "64.75"}
arwiki_p
Telugu Wikipedia edits by bots
null
SELECT rev_id, MONTH(rev_timestamp) AS emonth, YEAR(rev_timestamp) AS eyear, CASE WHEN ug_group IN ("bot") THEN 'bot' ELSE 'not bot' END AS egroup FROM revision JOIN actor a ON a.actor_id = revision.rev_actor JOIN user u on u.user_id = a.actor_user JOIN user_groups ug ON ug.ug_user = u.user_i...
{"resultsets": [{"headers": ["lang", "en_title", "es_title"], "rowcount": 304}], "runningtime": "0.92"}
tewiki_p
Links to non-existing portals in cswiki
null
SELECT pages.page_title, pl_title, pages.page_latest FROM pagelinks LEFT JOIN page AS portals ON portals.page_title = pl_title AND portals.page_namespace = pl_namespace JOIN page AS pages ON pages.page_id = pl_from WHERE pl_namespace = 100 AND portals.page_title IS NULL AND pl_from_namespace = 0 ORDER BY pages.page_lat...
{"resultsets": [{"headers": ["page_title", "cat_pages", "cat_subcats"], "rowcount": 7}], "runningtime": "3.48"}
cswiki_p
Third-party ArbCom blocks
arbcom blocks
select log_id, log_action, log_title, date_format(log_timestamp, '%Y-%b-%d %H:%i:%s'), comment_text from logging, comment where log_comment_id = comment_id and lower(convert(comment_text using utf8mb4)) like '%arbcom%' and (lower(convert(comment_text using utf8mb4)) like '%consult%' or lower(convert(comment_text u...
{"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 0}], "runningtime": "32.69"}
enwiki_p
Capture QuickStatement external links of {{Institution}} templates
null
use commonswiki_p; SELECT REPLACE(REPLACE(REPLACE(el_to, 'https://quickstatements.toolforge.org/#/v1=',''), '%7C','|'),'||','#') FROM externallinks JOIN page ON page_id = el_from JOIN categorylinks ON cl_from = page_id WHERE page_namespace = 106 and cl_to='Institution_templates_with_Wikidata_link:_item_missing_l...
{"resultsets": [{"headers": ["user_id", "user_name", "user_editcount", "user_registration"], "rowcount": 77}], "runningtime": "660.24"}
commonswiki_p
enwiki: G13 drafts
English Wikipedia drafts eligible for speedy deletion under [[WP:G13]]
select concat('[[Draft:', page_title, ']]') Draft, concat('[[', page_title, ']]') Article from page p left join revision r on p.page_latest = r.rev_id where page_namespace = 118 and page_is_redirect = 0 and not exists (select 1 from templatelinks where tl_from = p.page_id and tl_namespace = 10 ...
{"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"], "rowcount": 5}], "runningtime": "15.28"}
enwikipedia
Active incubator wikis (based on revision table), August 2022
null
WITH base_table AS ( SELECT DISTINCT rev_id, rev_actor, rev_timestamp, rev_len, rev_parent_id, page_namespace, page_id, actor_id, REGEXP_SUBSTR(page_title, 'W[a-z]/[a-z]+') AS prefix, rc_new_len - rc_old_len AS byte_diff, ...
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 1}], "runningtime": "91.97"}
incubatorwiki
Links to non-existing portals in cswiki
null
SELECT pages.page_title, pl_title, pages.page_latest FROM pagelinks LEFT JOIN page AS portals ON portals.page_title = pl_title AND portals.page_namespace = pl_namespace JOIN page AS pages ON pages.page_id = pl_from WHERE pl_namespace = 100 AND portals.page_title IS NULL AND pl_from_namespace = 0 ORDER BY pages.page_lat...
{"resultsets": [{"headers": ["CONCAT(\"https://en.wikipedia.org/wiki/Special:Log/Delete/User:Fastily\")"], "rowcount": 170887}], "runningtime": "253.34"}
cswiki_p
trwiki articles without any statements in Wikidata
null
SELECT ips_site_page FROM wb_items_per_site,page_props,page WHERE ips_site_id IN ('trwiki') AND page_namespace=0 AND ips_item_id=substr(page_title,2)*1 AND page_id=pp_page AND pp_propname='wb-claims' AND pp_sortkey=0
{"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_type", "rc_log_acti...
wikidatawiki_p
no wd item by infobox [trwiki]
null
USE trwiki_p; SELECT tl_title, COUNT(page_title) as pages FROM page join templatelinks on tl_from=page_id left JOIN (SELECT * FROM page_props WHERE pp_propname = 'wikibase_item') AS props ON pp_page = page_id WHERE tl_namespace = 10 and tl_title like "%kutusu" and page_namespace = 0 AND page_is_redirect = 0 AND pp_...
{"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_type", "rc_log_acti...
trwiki_p
zhwiki: Pages which title contains by year
null
USE zhwiki_p; SELECT page_id, page_title FROM page WHERE page_namespace = 14 AND page_is_redirect = 0 AND page_title LIKE "%歷年%" OR "%历年%"; SELECT page_id, page_title FROM page WHERE page_namespace = 14 AND page_is_redirect = 0 AND page_title LIKE "%每年%"; # 0/1 main 2/3 user 4/5 wp 6/7 ...
{"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_type", "rc_log_acti...
zhwiki_p
no wd item by cat [trwiki]
null
USE trwiki_p; SELECT cl_to, COUNT(page_title) as pages FROM page join categorylinks on cl_from=page_id left JOIN (SELECT * FROM page_props WHERE pp_propname = 'wikibase_item') AS props ON pp_page = page_id WHERE page_namespace = 0 AND page_is_redirect = 0 AND pp_value is NULL #and page_id not in (select m.ll_from f...
{"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_type", "rc_log_acti...
trwiki_p
Most used infoboxes at trwiki
null
use trwiki_p; SELECT Concat('[[Şablon:',tl_title,']]'), COUNT(*) FROM templatelinks WHERE tl_namespace = 10# and tl_from_namespace=0# tl_from_namespace=0 and tl_title like "%bilgi_kutusu" GROUP BY tl_title ORDER BY COUNT(*) DESC LIMIT 4000;
{"connection_id": 11171516}
trwiki_p
Redirects hiding Commons files [trwiki]
null
SELECT w.page_id, w.page_title FROM trwiki_p.page w INNER JOIN commonswiki_p.page c ON c.page_title = w.page_title #INNER JOIN commonswiki_p.image c ON c.img_name = w.page_title WHERE w.page_namespace = 6 AND w.page_is_redirect = 1 AND c.page_namespace = 6 LIMIT 100
{"resultsets": [{"headers": ["page_title"], "rowcount": 303}], "runningtime": "1.40"}
trwiki_pwikidatawiki_p
Infobox single without song length (P2047)
null
use trwiki_p; SELECT p.page_title, pp.pp_value, count(l.ll_lang) FROM page as p JOIN langlinks l on l.ll_from = p.page_id join templatelinks tl on tl.tl_from=p.page_id and tl.tl_title="Infobox_single" and tl.tl_namespace=10 and tl.tl_from_namespace=0 JOIN page_props as pp ON pp.pp_page = p.page_id AND pp.pp_propname = ...
{"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 59}], "runningtime": "0.59"}
trwiki_p
Redirects connected with Wikidata (trwiki)
null
SELECT page_namespace, page_title, pp_value AS item FROM (SELECT * FROM page_props WHERE pp_propname = 'wikibase_item') AS props JOIN (SELECT * FROM page WHERE page_is_redirect = 1) AS page ON page_id = pp_page ORDER BY page_title;
{"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_type", "rc_log_acti...
trwiki_p
Number of edits on lexemes per user (fixed)
null
SELECT `actor_name`, COUNT(*) AS `count` FROM `revision_userindex`, `page`, `actor_revision` WHERE `revision_userindex`.`rev_page` = `page`.`page_id` AND `revision_userindex`.`rev_actor` = `actor_revision`.`actor_id` AND `page`.`page_namespace` = 146 GROUP BY `actor_revision`.`actor_user` ORDER BY `count` DESC
{"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 105}], "runningtime": "121.75"}
wikidatawiki_p
Wikidata items with Qs in descrtiption
null
USE wikidatawiki_p; SELECT CONCAT('Q', wbit_item_id) AS full_entity_id, wbxl_language, wbx_text FROM wbt_item_terms JOIN wbt_term_in_lang ON wbtl_id = wbit_term_in_lang_id JOIN wbt_text_in_lang ON wbxl_id = wbtl_text_in_lang_id JOIN wbt_type ON wby_id = wbtl_type_id JOIN wbt_text ON wbx_id = wbxl_text_id WHERE wby_name...
{"resultsets": [{"headers": ["user_id", "user_name", "user_editcount", "user_registration"], "rowcount": 0}], "runningtime": "0.06"}
wikidatawiki_p
Most thanking/thanked users (total, last year) on etwiki
null
USE etwiki_p; -- Most thanked, total SELECT log_title as thanked, COUNT(*) as count FROM logging WHERE log_type = "thanks" GROUP BY log_title ORDER BY count DESC, log_title LIMIT 100; -- Most thanking, total SELECT actor_name as thanking, COUNT(*) as count FROM logging,...
{"resultsets": [{"headers": ["page_namespace", "page_title"], "rowcount": 11}], "runningtime": "32.41"}
etwiki_p
Pages recently converted from dabs by newer editors
null
SELECT rc_timestamp, page_namespace, page_title, actor_name FROM recentchanges JOIN revision ON rev_id = rc_this_oldid JOIN page ON page_id = rev_page AND page_namespace != 118 JOIN actor ON actor_id = rc_actor LEFT JOIN comment ON comment_id = rc_comment_id WHERE rc_type=6 AND rc_namespace=14 AND rc_title="All_disambi...
{"resultsets": [{"headers": ["rank", "page_title", "total_edits"], "rowcount": 117}], "runningtime": "55.09"}
enwiki_p