title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Reply Tool usage/user | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from enwiki_p.change_tag ct
inner join enwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join enwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join enwiki_p.change_tag_def
on ct_tag_i... | {"runningtime": "0.96", "resultsets": [{"rowcount": 35, "headers": ["date", "images"]}]} | null |
Reply Tool usage/user [before May-2020] | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from enwiki_p.change_tag ct
inner join enwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join enwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join enwiki_p.change_tag_def
on ct_tag_i... | {"runningtime": "0.11", "resultsets": [{"rowcount": 2, "headers": ["user_id", "user_name"]}]} | null |
Reply Tool usage/user [before June-2020] | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from enwiki_p.change_tag ct
inner join enwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join enwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join enwiki_p.change_tag_def
on ct_tag_i... | {"runningtime": "5.97", "resultsets": [{"rowcount": 445, "headers": ["actor_name", "count"]}]} | null |
Reply Tool usage/user [before July-2020] | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from enwiki_p.change_tag ct
inner join enwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join enwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join enwiki_p.change_tag_def
on ct_tag_i... | {"runningtime": "75.90", "resultsets": [{"rowcount": 2000, "headers": ["CONCAT('Q', Lwbit.wbit_item_id)", "label", "description"]}]} | null |
Reply Tool usage/user [before August-2020] | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from enwiki_p.change_tag ct
inner join enwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join enwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join enwiki_p.change_tag_def
on ct_tag_i... | {"runningtime": "107.29", "resultsets": [{"rowcount": 98, "headers": ["actor_name", "c"]}]} | null |
Reply Tool usage/user [before September-2020] | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from enwiki_p.change_tag ct
inner join enwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join enwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join enwiki_p.change_tag_def
on ct_tag_i... | {"runningtime": "0.82", "resultsets": [{"rowcount": 8, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 5, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Reply Tool usage/user [before October-2020] | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from enwiki_p.change_tag ct
inner join enwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join enwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join enwiki_p.change_tag_def
on ct_tag_i... | {"runningtime": "0.27", "resultsets": [{"rowcount": 5, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 3, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 3, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Empty Lexemes | Wikidata Lexemes with no Statements, Senses, or Forms. | USE wikidatawiki_p;
SELECT page.page_title
FROM page
JOIN page_props AS forms
ON forms.pp_page = page.page_id
JOIN page_props AS senses
ON forms.pp_page = senses.pp_page
JOIN page_props AS statements
ON forms.pp_page = statements.pp_page
WHERE forms.pp_propname = 'wbl-forms'
AND forms.pp_sortkey = 0
AND senses.p... | {"runningtime": "3.59", "resultsets": [{"rowcount": 1000, "headers": ["page_id", "page_full_title", "page_len"]}]} | null |
All female editors on German Wikipedia, sorted by user_id | null | USE dewiki_p;
SELECT
user_name,
user_email,
user_id
FROM user
JOIN user_properties ON user_properties.up_user = user.user_id
WHERE user_properties.up_user = user.user_id
AND user_properties.up_value = "female"
OR user_properties.up_property != "disablemail"
ORDER BY user_id ASC
LIMIT 100000; | {"runningtime": "101.78", "resultsets": [{"rowcount": 2000, "headers": ["CONCAT('Q', Lwbit.wbit_item_id)", "label", "description"]}]} | null |
All female editors on German Wikipedia, sorted by user_id | null | USE dewiki_p;
SELECT
up_user,
up_property,
up_value,
user.user_name
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
WHERE user_properties.up_value = "female"
AND (NOT EXISTS ( SELECT
up_property,
up_user,
user.user_id
FROM... | {"runningtime": "122.04", "resultsets": [{"rowcount": 30721, "headers": ["count(tl_title)"]}]} | null |
All female editors on German Wikipedia with Wikimail set, sorted by user_id | null | USE dewiki_p;
SELECT
up_user,
user.user_editcount,
user.user_name
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "202... | {"runningtime": "0.11", "resultsets": [{"rowcount": 10, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]} | null |
All female editors on German Wikipedia with Wikimail set, sorted by user_id | null | USE dewiki_p;
SELECT
up_user,
user.user_editcount,
user.user_name
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "202... | {"runningtime": "4.36", "resultsets": [{"rowcount": 20, "headers": ["user_name", "page_title", "count(*)"]}]} | null |
All female editors on German Wikipedia with Wikimail set, sorted by user_id | null | USE dewiki_p;
SELECT
up_user,
user.user_editcount,
user.user_name
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "202... | {"runningtime": "306.26", "resultsets": [{"rowcount": 497, "headers": ["page_title", "cl_to"]}]} | null |
All female editors on German Wikipedia with Wikimail set, sorted by user_id | null | USE arwiki_p;
SELECT
up_user,
user.user_editcount,
user.user_name
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "202... | {"runningtime": "0.37", "resultsets": [{"rowcount": 100, "headers": ["actor_name", "rev_timestamp"]}]} | null |
List of articles with 3 edits and only one editor | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp AS "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE p.page_latest in (
select distinct
v.rev_id
from
revision_userindex v
join page e ON e.page_id = v.rev_page
w... | {"runningtime": "334.79", "resultsets": [{"rowcount": 14, "headers": ["CONVERT(cl_to USING utf8)", "COUNT(*)"]}]} | null |
List of articles with 4 edits and only one editor | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp AS "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE p.page_latest in (
select distinct
v.rev_id
from
revision_userindex v
join page e ON e.page_id = v.rev_page
w... | {"runningtime": "1.82", "resultsets": [{"rowcount": 0, "headers": ["concat (\"\u0646\u0642\u0627\u0634:\",page_title)"]}]} | null |
List of articles with 5 edits and only one editor | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp AS "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE p.page_latest in (
select distinct
v.rev_id
from
revision_userindex v
join page e ON e.page_id = v.rev_page
w... | {"runningtime": "0.03", "resultsets": []} | null |
List of articles with 6 edits and only one editor | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp AS "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE p.page_latest in (
select distinct
v.rev_id
from
revision_userindex v
join page e ON e.page_id = v.rev_page
w... | {"runningtime": "177.48", "resultsets": [{"rowcount": 50825, "headers": ["page_title"]}]} | null |
মোট সম্পাদনার সংখ্যা | ১ এপ্রিল ২০২০। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে 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... | {"runningtime": "383.69", "resultsets": [{"rowcount": 28, "headers": ["page_title", "cl_to"]}]} | null |
Cultural heritage monuments in Iran with no category file counter on Commons | null | use commonswiki_p;
select count(cl_from) as Counter, concat("{{/Template|!",cl_sortkey_prefix, "}}") as ID, concat("[[:File:", page_title, "]]") as Example, "" as "عنوان ثبتی", "" as توضیح
from categorylinks
join page
on page_id = cl_from
where cl_to = "Cultural_heritage_monuments_in_Iran_with_known_IDs"
and cl_type = ... | {"runningtime": "175.91", "resultsets": [{"rowcount": 11633, "headers": ["page_title"]}]} | null |
trwiki:Unexisting links in articles within the scope of Vikiproje Felsefe | null | USE trwiki_p;
SELECT CONCAT("[[",REPLACE(pl_title,"_"," "),"]]"), COUNT(pl_title) AS counting
FROM pagelinks, page_assessments
WHERE pl_from = pa_page_id
AND pa_project_id=264
AND pl_from_namespace = 0
AND pl_namespace = 0
AND NOT EXISTS
(SELECT p1.page_title FROM page p1
WHERE p1.page_title = pl_title
AND pl_namespace... | {"runningtime": "5.53", "resultsets": [{"rowcount": 2, "headers": ["pywiki"]}]} | null |
Number of creations of subpages of Template:Did you know nominations for a certian user | Get the subpages of Template:Did you know nominations which were created by a specific user. Because DYK nominations are created by the user | SELECT * FROM page INNER JOIN revision revision1 ON page.page_id = revision1.rev_page INNER JOIN (SELECT rev_id, MIN(rev_timestamp) FROM revision GROUP BY rev_page) revision2 ON revision1.rev_id = revision2.rev_id
WHERE page.page_title LIKE "Template:Did you know nominations/%" AND revision2.rev_id = revision1.rev_id ... | {"runningtime": "0.08", "resultsets": [{"rowcount": 10, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]} | null |
Proportion of damaging edits in ptwiki predicted by ORES | null | USE ptwiki_p;
SELECT
DAY,
c TOTAL_EDITS,
CONCAT(p, ' (', TRUNCATE(p * 100 / c, 1), '%)') DAMAGING_ACCORDING_TO_ORES
FROM (SELECT
SUBSTR(rc_timestamp, 1, 8) DAY,
COUNT(*) c,
SUM(oresc_is_predicted) p
FROM recentchanges
INNER JOIN ores_classification ON oresc_rev = rc_this_oldid
WHERE rc_type IN (0, 1) AN... | {"connection_id": 357339802} | null |
Account creation and users blocked per day in ptwiki | null | USE ptwiki_p;
SELECT
SUBSTR(log_timestamp, 1, 8) DAY,
SUM((log_type, log_action) = ('newusers', 'create')) ACCUNTS_CREATED,
SUM((log_type, log_action) = ('block', 'block')) BLOCKS,
SUM((log_type, log_action) = ('block', 'block') AND log_title NOT RLIKE '^(\\d+\\.\\d+\\.|[0-9a-fA-F]+:[0-9a-fA-F]+)') REGISTERED_USERS... | {"runningtime": "26.62", "resultsets": [{"rowcount": 5269, "headers": ["page_title"]}]} | null |
Unique registered users that edited ptwiki per day | Note that this query use rechentchanges table, where the oldest and newest days are incomplete. | USE ptwiki_p;
SELECT
DAY,
COUNT(*) TOTAL_USERS,
SUM(user_registration IS NULL OR user_registration < SUBDATE(DAY * 1000000, 365)) USERS_REG_MORE_THAN_1_YEAR_BEFORE,
SUM(user_registration > SUBDATE(DAY * 1000000, 30)) USERS_REG_LESS_THAN_30_DAYS_BEFORE
FROM (SELECT DISTINCT
SUBSTR(rc_timestamp, 1, 8) DAY,
actor... | {"connection_id": 484201574} | null |
Revert edits per day in ptwiki | null | USE ptwiki_p;
SELECT
SUBSTR(rc_timestamp, 1, 8) DAY,
COUNT(*) REVERT_EDIT
FROM recentchanges
INNER JOIN comment ON rc_comment_id = comment_id
WHERE
comment_text LIKE 'Foram [[WP:REV|%'
OR comment_text LIKE 'Reversão de uma ou mais edições de%'
GROUP BY DAY; | {"runningtime": "17.78", "resultsets": [{"rowcount": 5269, "headers": ["page_title", "page_id"]}]} | null |
A magyar Wikipédia mérete | https://hu.wikipedia.org/wiki/Szerkesztő:Samat/A_magyar_Wikipédia_mérete | USE huwiki_p;
/* Real data */
SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page_id) AS articles, AVG(page_len) AS 'average (B)'
FROM page
WHERE page_namespace = 0 AND page_is_redirect = 0;
/* With redirects */
SELECT NOW() AS date, SUM(page_len)/(1024*1024) AS 'total (MiB)', COUNT(page... | {"runningtime": "503.93", "resultsets": [{"rowcount": 156, "headers": ["page_title", "cl_to"]}]} | null |
990701 mp1 # of DAB pages | null | USE fawiki_p;
SELECT COUNT(page_title)
FROM page
WHERE page_id IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'); | {"runningtime": "37.19", "resultsets": [{"rowcount": 30, "headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"]}]} | null |
990701 # of fa articles | null | USE fawiki_p;
SELECT COUNT(page_id)
FROM page
WHERE page_is_redirect = 0
AND page_namespace = 0; | {"runningtime": "49.57", "resultsets": [{"rowcount": 484, "headers": ["page_title"]}]} | null |
990701 mp1 # of redirected links to DAB pages (pages) | null | USE fawiki_p;
SELECT COUNT(pl_title)
FROM pagelinks
LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title
LEFT JOIN redirect ON page_id = rd_from
WHERE page_is_redirect = 1
AND page_namespace = 0
AND rd_namespace = 0
AND pl_from IN (
SELECT page_id
FROM page
WHERE page_is_redirect=0
AND ... | {"runningtime": "43.10", "resultsets": [{"rowcount": 11, "headers": ["page_title"]}]} | null |
990701 mp1 # of DAB pages with redirected link (pages) | null | USE fawiki_p;
SELECT COUNT(DISTINCT(page_title))
FROM pagelinks
LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title
LEFT JOIN redirect ON page_id = rd_from
WHERE page_is_redirect = 1
AND page_namespace = 0
AND rd_namespace = 0
AND pl_from IN (
SELECT page_id
FROM page
WHERE page_is_redir... | {"runningtime": "17.62", "resultsets": [{"rowcount": 483, "headers": ["page_title"]}]} | null |
990701 owp1 All orphan articles | null | USE fawiki_p;
SELECT concat('# [[',p1.page_title,']]')
FROM page AS p1
WHERE p1.page_is_redirect = 0
AND p1.page_namespace = 0
# not a DAB page
AND p1.page_id NOT IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'
)
# not receiving direct link
AND NOT (
p1.page_title IN (
SELECT pl1.... | {"runningtime": "45.59", "resultsets": [{"rowcount": 10, "headers": ["page_title"]}]} | null |
990701 mp1 # of direct links to DAB pages (pages) | null | USE fawiki_p;
SELECT COUNT(page_id)
FROM pagelinks JOIN page
WHERE page_is_redirect=0
AND page_namespace=0
AND page_id IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'
)
AND pl_from IN (
SELECT page_id
FROM page
WHERE page_is_redirect=0
)
AND pl_title=page_title
AND pl_namespace ... | {"connection_id": 361115199} | null |
990701 mp1 # of DAB pages with direct link (pages) | null | USE fawiki_p;
SELECT COUNT(DISTINCT(page_title))
FROM pagelinks JOIN page
WHERE page_is_redirect=0
AND page_namespace=0
AND page_id IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation')
AND pl_from IN (
SELECT page_id
FROM page
WHERE page_is_redirect=0)
AND pl_title=page_title
AND pl_nam... | {"runningtime": "24.13", "resultsets": [{"rowcount": 273, "headers": ["CONCAT('# [[', page_title, ']]')"]}]} | null |
Category:Minnesota geography stubs | null | select count(*), tl_title
from templatelinks
where tl_title in (
select page_title
from page
where page_id in (
select cl_from
from categorylinks
where cl_to = 'Minnesota_geography_stubs'
)
and page_namespace = 10
)
and tl_namespace = 10
group by tl_title; | {"runningtime": "0.22", "resultsets": [{"rowcount": 13, "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": 15, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "... | 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... | {"runningtime": "550.15", "resultsets": [{"rowcount": 0, "headers": ["wikitext"]}]} | 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... | {"runningtime": "227.75", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 1000, "headers": ["wpage"]}]} | null |
Actor lookup (bot) | null | USE scowiki_p;
SELECT
actor_name,
actor_id
FROM
actor
WHERE
actor_name = 'AvicBot' | {"runningtime": "183.19", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_title", "rd_namespace", "rd_title"]}]} | null |
fix tv categories | null | select
CONCAT('* [[:',ll_title, ']]>') AS cat1
, REPLACE(CONCAT( '[[:' , ll_title , ']]' ) , 'دينيون'
,'دينية' ) AS cat2
, CONCAT("#Category:", p1.page_title) AS title
from page AS p1, langlinks
where p1.page_title like "%Religious%" AND ll_title like "%تلفزيونية_دينيون%"
#where p1.page_title like ... | {"runningtime": "0.04", "resultsets": []} | null |
film redirects to create | null | use simplewiki_p;
select page_title, replace(page_title, "movie)", "film)") as redirect_title
from page
where page_is_redirect = 0
and page_namespace = 0
and page_title like '%movie)'
and page_title not in (
select replace(page_title, "film)", "movie)")
from page
where page_is_redirect = 1
and page_title like ... | {"runningtime": "469.09", "resultsets": [{"rowcount": 0, "headers": ["item_id", "wbxl_language", "text"]}]} | null |
Page creations by autopatrolled editors, last 24 hours | null | USE enwiki_p;
SELECT TIMESTAMP(rc_timestamp) AS Timestamp, CONCAT('[[', REPLACE(rc_title, '_', ' '), ']]') AS Title, actor_name, page_is_redirect
FROM recentchanges
JOIN actor_revision ON rc_actor = actor_id
JOIN user_groups ON actor_user = ug_user
JOIN page ON rc_cur_id = page_id
WHERE
rc_namespace = 0
AND ug_gr... | {"connection_id": 487640086} | null |
MID of files in a category | null | use commonswiki_p;
SELECT concat("M",page_id)
FROM page
JOIN categorylinks ON page_id=cl_from AND cl_to='GNU_Free_Documentation_License,_version_1.2_or_later_missing_SDC_copyright_license'
WHERE
page_namespace = 6
| {"runningtime": "0.26", "resultsets": [{"rowcount": 22, "headers": ["page_title"]}]} | null |
List of articles a user created where the last edit is also that user - | null | USE scowiki_p;
SELECT
page_title,
rev_timestamp
FROM
revision_userindex
JOIN page ON page_id = rev_page
WHERE rev_parent_id IN (
select distinct
rev_id
from
revision_userindex
where
rev_actor = 40
and
rev_parent_id = 0
)
AND page_latest in (
select dis... | {"runningtime": "38.39", "resultsets": [{"rowcount": 5, "headers": ["page_title"]}]} | null |
Wikidata redirects with text | null | USE specieswiki_p;
SELECT page_title
FROM page
WHERE page_is_redirect=1
AND page_namespace=0
AND page_len > 100
ORDER BY page_len DESC
LIMIT 3; | {"runningtime": "150.20", "resultsets": [{"rowcount": 4, "headers": ["page_id", "page_title", "rd_namespace", "rd_title"]}]} | null |
enwiki:Pages in WikiProject Women% and WikiProject Philosophy without trwiki interwikis | null | SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:en:",REPLACE(article.page_title,"_"," "),"|en]])")
FROM page talk
INNER JOIN page article ON
talk.page_title = article.page_title
INNER JOIN categorylinks ON
cl_from = talk.page_id
WHERE
talk.page_namespace = 1 AND
article.page_namespace ... | {"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["actor_id", "actor_user", "actor_name"]}]} | null |
Discussion tools users at cswiki | null | use cswiki_p; select actor_name, count(*) from change_tag join revision on ct_rev_id=rev_id join actor on actor_id=rev_actor where ct_tag_id=(select ctd_id from change_tag_def where ctd_name="discussiontools") group by actor_id order by count(*) | {"runningtime": "0.30", "resultsets": [{"rowcount": 13, "headers": ["user_name", "DATE_FORMAT(user_registration, \"%D/%M/%Y %H:%i:%s\")"]}]} | null |
Fiwikin useimmin arvioidut käyttäjät | null | use fiwiki_p;
-- Generic timestamp limit
-- This is for filtering the stuff what we want
SET @timestamp = 20200004153051;
-- Do not inspect older revisions than @revlimit
-- This is for speeding up the query
-- 18630374 = 1.1.2020
-- DO NOT CHANGE
SET @revlimit = 18630374;
select
actor_name,
count(distinct(re... | {"runningtime": "0.11", "resultsets": [{"rowcount": 12, "headers": ["user_name", "DATE_FORMAT(user_registration, \"%D/%M/%Y %H:%i:%s\")"]}]} | null |
enwiki:Pages in WikiProject Philosophy and WikiProject Biography without trwiki interwikis | null | SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:en:",REPLACE(article.page_title,"_"," "),"|en]])"),
(CASE
WHEN cl_to="Top-importance_Philosophy_articles" THEN "En"
WHEN cl_to="High-importance_Philosophy_articles" THEN "Çok"
WHEN cl... | {"runningtime": "3.63", "resultsets": [{"rowcount": 4, "headers": ["user", "img_count", "user_registration"]}, {"rowcount": 1, "headers": ["Overall image count for above users"]}, {"rowcount": 14, "headers": ["user", "img_name"]}]} | null |
WikiDaheim 2020 media by date | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DATE_FORMAT(DATE_ADD(img_timestamp, INTERVAL 2 Hour),'%Y-%m-%d') AS date, COUNT(image.img_name) as images
FROM image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND image.img_name = page.page_title
AND categorylinks.cl_to = "Media_from_... | {"runningtime": "0.11", "resultsets": [{"rowcount": 1, "headers": ["af_id", "af_pattern", "af_user", "af_user_text", "af_timestamp", "af_enabled", "af_comments", "af_public_comments", "af_hidden", "af_hit_count", "af_throttled", "af_deleted", "af_actions", "af_global", "af_group"]}]} | null |
WikiDaheim 2020 media by date | null | USE commonswiki_p;
SELECT /* SLOW_OK */ page_title AS date
FROM image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND image.img_name = page.page_title
AND categorylinks.cl_to = "Media_from_WikiDaheim_2020_in_Austria/all"
AND img_timestamp BETWEEN 20201004220000 AND 20... | {"runningtime": "0.29", "resultsets": [{"rowcount": 3, "headers": ["af_id", "af_pattern", "af_user", "af_user_text", "af_timestamp", "af_enabled", "af_comments", "af_public_comments", "af_hidden", "af_hit_count", "af_throttled", "af_deleted", "af_actions", "af_global", "af_group"]}]} | null |
World-map files | null | USE jawiki_p;
SELECT CONCAT("File:", page_title), GROUP_CONCAT(tl_title ORDER BY tl_title SEPARATOR ', ')
FROM page p0
JOIN templatelinks ON tl_from = page_id
JOIN categorylinks ON cl_from = page_id
WHERE
cl_to = "Japan_map"
AND tl_title IN (
SELECT page_title
FROM page
JOIN categorylinks ON cl_f... | {"runningtime": "1241.34", "resultsets": [{"rowcount": 52, "headers": ["page_title", "cl_to"]}]} | null |
Ruwiki IWRM.js usage → wikitable | null | USE ruwiki_p;
SELECT
CONCAT('[[User:', actor_name, '|]]') AS User,
COUNT(rev_id) AS Edits
FROM revision
JOIN actor ON rev_actor = actor_id
JOIN change_tag ON ct_rev_id = rev_id
JOIN change_tag_def ON ct_tag_id = ctd_id
WHERE ctd_name = 'iwrm'
GROUP BY rev_actor
ORDER BY edits DESC; | {"runningtime": "9.69", "resultsets": [{"rowcount": 3, "headers": ["pywiki"]}]} | null |
enwiki:Pages in WikiProject Women Scientists and WikiProject History of Science without trwiki interwikis | null | SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:en:",REPLACE(article.page_title,"_"," "),"|en]])"),
(CASE
WHEN cl_to="Top-importance_history_of_science_articles" THEN "En"
WHEN cl_to="High-importance_history_of_science_articles" THEN "Çok"
... | {"runningtime": "3.67", "resultsets": [{"rowcount": 0, "headers": ["pywiki"]}]} | null |
trwiki:Vikiprojes | null | select * from trwiki_p.page_assessments_projects;
select * from trwiki_p.page_assessments where pa_class="A" limit 10; | {"runningtime": "21.87", "resultsets": [{"rowcount": 43, "headers": ["Lp", "U\u017cytkownik", "Liczba edycji"]}]} | null |
enwiki:Pages in WikiProject Women% and WikiProject History of Science without trwiki interwikis | null | SELECT DISTINCT CONCAT("# [[",REPLACE(article.page_title,"_"," "),"]] ([[:en:",REPLACE(article.page_title,"_"," "),"|en]])"),
(CASE
WHEN cl_to="Top-importance_history_of_science_articles" THEN "En"
WHEN cl_to="High-importance_history_of_science_articles" THEN "Çok"
... | {"runningtime": "11.03", "resultsets": [{"rowcount": 1096, "headers": ["page_title"]}]} | null |
Fawiki election #11 eligible voters (part 1) | null | use fawiki_p;
select
user_id,
user_name
from user
join actor
on actor_user = user_id
join
(
select rev_actor
from revision_userindex
join page
on page_id = rev_page
where
page_namespace = 0
and rev_timestamp > '20191012000000' -- last 12 months leading to nomination start date
and rev_tim... | {"runningtime": "535.27", "resultsets": [{"rowcount": 49, "headers": ["page_title", "cl_to"]}]} | null |
scowiki users having over 625 edits, sorted by edit count | This takes into account bots that don't have official bot status, but are nonetheless members of Categorie:Roboți Wikipedia. It also tells whether an account is an admin or a bot. | USE scowiki_p;
SELECT ss_total_edits FROM site_stats;
SELECT SUM(user_editcount) FROM user AS u
WHERE user_editcount <= 650;
SELECT *
FROM (
SELECT fi.id AS userid, fi.name AS name, fi.edits AS editcount,
CASE
WHEN fi.admin=1 OR se.admin=1 THEN 1
ELSE 0
END AS admin,
CASE
WHEN (fi.bot=1 AND fi.bot IS NO... | {"runningtime": "32.47", "resultsets": [{"rowcount": 100, "headers": ["user_id", "user_name", "user_editcount"]}]} | null |
List of articles a user created (simple) | null | USE scowiki_p;
SELECT DISTINCT page_title, page_len, rev_len
FROM revision_userindex
JOIN page ON page_id = rev_page
WHERE rev_actor = 40
AND rev_parent_id = 0
AND page_is_redirect = 0
AND page_namespace = 0; | {"runningtime": "0.64", "resultsets": [{"rowcount": 100, "headers": ["user_id", "user_name", "user_editcount"]}]} | null |
List of articles created by a diff user with no edits since | null | USE scowiki_p;
SELECT
page_title,
rev_timestamp
FROM
revision_userindex
JOIN page ON page_id = rev_page
WHERE page_latest IN (
select distinct
rev_id
from
revision_userindex
where
rev_actor in (4114 /*Fixer88*/, 79723 /* MJL */, 54357 /*Mock wurzel soup*/, 95806 /*Lee... | {"runningtime": "0.52", "resultsets": [{"rowcount": 100, "headers": ["rank", "user_id", "user_name", "user_editcount"]}]} | null |
Articles created by user with 2 edits of just that user or another | null | USE scowiki_p;
SELECT DISTINCT
p.page_title AS "page_title",
u.rev_timestamp as "rev_timestamp"
FROM
revision_userindex u
JOIN page p ON p.page_id = u.rev_page
WHERE u.rev_parent_id IN (
select distinct
r.rev_id
from
revision_userindex r
where
r.rev_actor = 40
and
... | {"runningtime": "0.56", "resultsets": [{"rowcount": 100, "headers": ["rank", "user_id", "user_name", "user_editcount"]}]} | null |
Actor lookup | null | USE scowiki_p;
SELECT
actor_name,
actor_id
FROM
actor
WHERE
actor_name = 'MJL' | {"runningtime": "3.25", "resultsets": [{"rowcount": 1000, "headers": ["rank", "user_id", "user_name", "user_editcount"]}]} | null |
Most frequent domains (frwiki) | This query compiles a list of 10 000 external links (from the main namespace of the French Wikipedia) grouped by website. | USE enwiki_p;
SELECT url, COUNT(*)
FROM (
SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to) + 3), '/', 1) url
FROM externallinks
WHERE el_from IN (
SELECT page_id
FROM page
WHERE page_namespace = 0
)
) tmp_table
#where url LIKE "quarry.wmflabs.org%"
GROUP BY url
HAVING COUNT(*) > 10000
OR... | {"runningtime": "15.88", "resultsets": [{"rowcount": 5588, "headers": ["log_title", "log_timestamp", "actor_name", "comment_text"]}]} | null |
projects with no main page linked in wikidata | null | use wikidatawiki_p;
select site_global_key, concat('https://', substr(reverse(site_domain), 2)) as site_url
from sites
where site_global_key not in (
select ips_site_id
from wb_items_per_site
where ips_item_id = 5296 -- Wikimedia main page https://www.wikidata.org/wiki/Q5296
)
and site_global_key not in (
selec... | {"connection_id": 372206077} | null |
Uusimmat automaattisestiseulotut | null | use fiwiki_p;
SELECT
l1.log_title,
a1.actor_name,
l1.log_timestamp,
l1.log_params,
count(distinct(l1.log_id)) as c
FROM
logging_userindex as l1,
actor_logging as a1,
logging_userindex as l2,
actor_logging as a2
WHERE
l1.log_action="rights"
AND l1.log_actor=a1.actor_id
AND l1.... | {"runningtime": "0.11", "resultsets": [{"rowcount": 10, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]} | null |
Uusimmat automaattisestiseulotut | null | use fiwiki_p;
SELECT
log_title,
actor_name,
log_timestamp,
log_params,
count(distinct(log_id)) as c
FROM
logging_userindex,
actor_logging
WHERE
log_action="rights"
AND log_actor=actor_id
AND log_id>10603067
AND log_timestamp>20200023061016
AND
(
(
log_params NOT lik... | {"runningtime": "35.55", "resultsets": [{"rowcount": 10, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]} | null |
Miten automaattiseulottujen automaattisestihyväksyttyjen muokkausten määrät | null | use fiwiki_p;
SELECT
/* l1.log_title, */
a1.actor_name,
floor(l1.log_timestamp/10000000000) as year,
/* l1.log_params, */
count(distinct(l1.log_id)) as rights_given,
count(distinct(l2.log_id)) as number_of_autoreviews,
count(distinct(l2.log_page)) as number_of_autoreview_pages,
count(dis... | {"connection_id": 373797560} | null |
pages by name | query pages by name
| use hewiki_p;
select p.page_title from page p
where p.page_namespace=0 and p.page_title like 'א%'
limit 10; | {"runningtime": "9.76", "resultsets": [{"rowcount": 3241, "headers": ["base_id", "id", "page_title"]}]} | null |
Templates without documentation | null | use ukwiki_p;
select page_title
from page p
where page_namespace = 10
and page_is_redirect = 0
order by p.tl_title | {"runningtime": "0.11", "resultsets": [{"rowcount": 1, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]} | null |
Popular templates on Ukrainian Wikipedia | Lists the 1000 most popular templates on Ukrainian Wikipedia. Only counts templates from the Template: namespace. Does not filter on where the templates are transcluded into. | use ukwiki_p;
select tl_title, count(tl_title) as count from templatelinks where tl_namespace=10 group by tl_title order by count(tl_title) desc limit 1000; | {"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]} | null |
Uk most transcluded templates | null | use ukwiki_p;
select tl_title as "template", count(tl_from) as "count" from templatelinks
where tl_namespace = 10
and not tl_title like "%/%"
group by tl_title
order by count(tl_from) desc
limit 100
| {"runningtime": "0.09", "resultsets": [{"rowcount": 1, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]} | null |
Miten automaattiseulottujen automaattisestihyväksyttyjen muokkausten määrät | linkitetty kahvihuoneesta. Älä editoi.
Huom: log_paramsissa käytettiin oldgroups/newgroups tallennusta ensimmäisen kerran 20121123133852 | use fiwiki_p;
SELECT
/* l1.log_title, */
a1.actor_name,
floor(l1.log_timestamp/10000000000) as year,
/* l1.log_params, */
count(distinct(l1.log_id)) as rights_given,
count(distinct(l2.log_id)) as number_of_autoreviews,
count(distinct(l2.log_page)) as number_of_autoreview_pages,
count(dis... | {"runningtime": "0.11", "resultsets": [{"rowcount": 1, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]} | null |
daily_contributors | null | SELECT
concat(substr(rev_timestamp,1,4) , '-', substr(rev_timestamp,5,2) ,'-' ,substr(rev_timestamp,7,2)),
count(distinct rev_actor)
from revision
GROUP BY 1
ORDER BY 1 ASC | {"runningtime": "0.12", "resultsets": [{"rowcount": 0, "headers": ["ug_user", "ug_expiry", "user_id", "user_name", "user_registration", "user_editcount"]}]} | null |
Popular templates on Ukrainian Wikipedia | Lists the 1000 most popular templates on Ukrainian Wikipedia. Only counts templates from the Template: namespace. Does not filter on where the templates are transcluded into. | use ukwiki_p;
select tl_title, count(tl_title) as count from templatelinks where tl_namespace=10 group by tl_title order by count(tl_title) desc limit 10000; | {"runningtime": "0.16", "resultsets": [{"rowcount": 38, "headers": ["ug_user", "ug_expiry", "user_id", "user_name", "user_registration", "user_editcount"]}]} | null |
Anzahl Sprachversionen in Artikeln einer Kategorie | null | USE dewiki_p;
SELECT page_title, CONCAT('Q', De.ips_item_id) AS "Wikidata Item", count(Other.ips_site_id) AS "Anzahl Sprachen"
FROM page, categorylinks,
wikidatawiki_p.wb_items_per_site AS De, wikidatawiki_p.wb_items_per_site AS Other
WHERE cl_to = REPLACE('Fußballspieler (FC Bayern München)', ' ', '_')
AN... | {"runningtime": "0.54", "resultsets": [{"rowcount": 112, "headers": ["actor_name", "c"]}]} | null |
get min/max revisions per year | null | use fiwiki_p;
SELECT
FLOOR(rev_timestamp/100000000) AS year,
MIN(rev_timestamp) AS min_ts,
MAX(rev_timestamp) AS max_ts,
MIN(rev_id) AS min_rev,
MAX(rev_id) AS max_rev
FROM
revision
GROUP BY year;
| {"runningtime": "0.12", "resultsets": [{"rowcount": 20, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
Flagged revs reviews stats (high volume editors) | null | use fiwiki_p;
SELECT
FLOOR(r1.rev_timestamp/100000000) AS yearmonth,
COUNT(DISTINCT(fr1.fr_user)) AS reviewers,
COUNT(DISTINCT(p1.page_title)) AS pages,
SUM(fr1.fr_rev_id IS NOT NULL) AS reviews,
SUM(fr1.fr_flags LIKE "%auto%") AS autoreviews,
SUM(fr1.fr_user = 324508 ) AS SeulojaBot_review... | {"runningtime": "0.39", "resultsets": [{"rowcount": 100, "headers": ["actor_name", "log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}]} | null |
Flagged revs reviews stats (without high volume editors) | without bots, awb, repetitive fix editors
Date/revlimits per year can be get from here
- https://quarry.wmflabs.org/query/48988 | use fiwiki_p;
SELECT
FLOOR(r1.rev_timestamp/100000000) AS yearmonth,
COUNT(DISTINCT(IF(fr1.fr_flags LIKE "%auto%", 0, IF(fr1.fr_user=324508,0,fr1.fr_user)))) AS reviewers,
COUNT(DISTINCT(p1.page_title)) AS pages,
SUM(fr1.fr_rev_id IS NOT NULL) AS reviews,
SUM(fr1.fr_flags LIKE "%auto%") AS autorevi... | {"runningtime": "0.10", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"]}]} | null |
pages by name | query pages by name
| use hewiki_p;
select p.page_title from page p
where p.page_namespace=0 and p.page_title like 'א%' and page_is_redirect = 0
limit 10; | {"runningtime": "38.34", "resultsets": [{"rowcount": 370, "headers": ["page_title", "page_len", "rev_timestamp"]}]} | null |
pages by name | query pages by name
| use hewiki_p;
select p.page_title from page p
where p.page_namespace=0 and p.page_title like 'א%' and page_is_redirect = 0
limit 100000; | {"runningtime": "41.10", "resultsets": [{"rowcount": 30, "headers": ["img_name"]}]} | null |
pages by name | query pages by name
| use hewiki_p;
select p.page_title from page p
where p.page_namespace=0 and p.page_title like 'א_-אי%' and page_is_redirect = 0
limit 100000; | {"runningtime": "34.57", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
pages by name | query pages by name
| use hewiki_p;
select p.page_title from page p
where p.page_namespace=0 and p.page_title like 'ב%' and page_is_redirect = 0
limit 100000; | {"connection_id": 493360892} | null |
State people | null | SELECT page_title FROM page
WHERE page_namespace = 0
AND page_is_redirect = 0
AND page_title REGEXP '\\((Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Illinois|Louisiana|Kentucky|Michigan|Minnesota|Missouri|New York|Texas)\\)'
AND exists(SELECT 1 FROM categorylinks WHERE page.... | {"runningtime": "3.22", "resultsets": [{"rowcount": 1, "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"]}]} | null |
State people 2.0 | null | SELECT page_title FROM page
WHERE page_namespace = 0
AND page_is_redirect = 0
AND page_title REGEXP '\\((Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Misso... | {"connection_id": 379744082} | null |
State people | See https://quarry.wmflabs.org/query/49000 for original SQL. | SELECT page_title FROM page
WHERE page_namespace = 0
AND page_is_redirect = 0
AND page_title REGEXP '\\((Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Misso... | {"connection_id": 379751056} | null |
arwiki tables | null | null | {"connection_id": 381167819} | null |
State people | See https://quarry.wmflabs.org/query/49000 for original SQL. | SELECT page.page_title FROM page
WHERE page.page_namespace = 0
AND page.page_is_redirect = 0
AND page.page_title REGEXP '\\((Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minneso... | {"runningtime": "4.57", "resultsets": [{"rowcount": 261, "headers": ["Title", "user", "comment"]}]} | null |
State people (2) | null | USE enwiki_p;
SELECT page.page_title, talk_page.page_title
FROM page
LEFT JOIN page AS talk_page ON talk_page.page_title = page.page_title AND talk_page.page_namespace = 1
WHERE
page.page_namespace = 0
AND page.page_is_redirect = 0
AND page.page_title REGEXP '\\((Alabama|Alaska|Arizona|Arkansas|California|Colorado|... | {"runningtime": "0.28", "resultsets": [{"rowcount": 62, "headers": ["page_namespace", "page_title"]}]} | null |
State people (2) | null | USE enwiki_p;
SELECT page.page_title, talk_page.page_title
FROM page
JOIN page AS talk_page ON talk_page.page_title = page.page_title AND talk_page.page_namespace = 1
WHERE
page.page_namespace = 0
AND page.page_is_redirect = 0
AND page.page_title REGEXP '\\((Alabama|Alaska|Arizona|Arkansas|California|Colorado|Conne... | {"runningtime": "8.89", "resultsets": [{"rowcount": 470, "headers": ["page_title"]}]} | null |
State people (2) | null | USE enwiki_p;
SELECT page.page_title
FROM categorylinks
JOIN page ON cl_from = page_id
WHERE
page.page_namespace = 0
AND page.page_is_redirect = 0
AND page.page_title REGEXP '\\((Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentuc... | {"runningtime": "0.12", "resultsets": [{"rowcount": 1, "headers": ["page_title", "antal"]}]} | null |
State people (2) | null | USE enwiki_p;
SELECT page.page_title, CONCAT("Talk:", page.page_title)
FROM page
WHERE
page.page_namespace = 0
AND page.page_is_redirect = 0
AND page.page_title LIKE "%(Vermont)%"
AND page.page_title IN (
SELECT p0.page_title
FROM categorylinks
JOIN page p0 ON cl_from = p0.page_id
WHERE ... | {"runningtime": "0.09", "resultsets": [{"rowcount": 1, "headers": ["page_title", "antal"]}]} | null |
pages by name | query pages by name
| use hewiki_p;
select p.page_title from page p
where p.page_namespace=0 and p.page_title like 'ג%' and page_is_redirect = 0
limit 100000; | {"runningtime": "0.25", "resultsets": [{"rowcount": 62, "headers": ["page_namespace", "page_title"]}]} | null |
1Lib1Ref fr.wp Most active users | null | use frwiki_p;
select actor_name, count(actor_name) c from revision
join page on page_id = rev_page
join comment on rev_comment_id = comment_id
join actor on rev_actor = actor_id
where comment_text like "%1lib1ref%"
and rev_timestamp > 20200101000000
group by actor_name
order by c desc | {"runningtime": "6.81", "resultsets": [{"rowcount": 53, "headers": ["page_title", "rev_timestamp"]}]} | null |
State people (2) | null | SELECT page.page_title, talk_page.page_title FROM page
LEFT JOIN page AS talk_page ON (talk_page.page_title = CONCAT("Talk:",page.page_title))
WHERE page.page_namespace = 0
AND page.page_is_redirect = 0
AND page.page_title REGEXP '\\((Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Geor... | {"runningtime": "31.11", "resultsets": [{"rowcount": 5, "headers": ["\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u0627\u0644\u0645\u0642\u0627\u0644\u0627\u062a", "(user_registration <= CURDATE() - INTERVAL 30 DAY)"]}]} | null |
no langlinks | null | null | {"runningtime": "56.52", "resultsets": [{"rowcount": 7, "headers": ["\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645", "\u0639\u062f\u062f \u0627\u0644\u0645\u0642\u0627\u0644\u0627\u062a"]}]} | null |
Users with "gender" setting "female" on dewiki | null | USE dewiki_p;
SELECT user_name as 'Accountname', user_registration as 'Datum der Registrierung', user_editcount as 'Editcounter'
From user_properties
inner join user
on user_properties.up_user = user.user_id
and user_properties.up_property = "gender"
and user_properties.up_value = "female"
and user_editcou... | {"runningtime": "0.10", "resultsets": [{"rowcount": 1, "headers": ["user_registration"]}]} | null |
Users with "gender" setting "female" on dewiki | Limited to users that were recently active | USE dewiki_p;
SELECT distinct user_name as 'Accountname', user_registration as 'Datum der Registrierung', user_editcount as 'Editcounter'
From user_properties
inner join user
on user_properties.up_user = user.user_id
and user_properties.up_property = "gender"
and user_properties.up_value = "female"
and use... | {"runningtime": "0.07", "resultsets": [{"rowcount": 0, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | 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... | {"runningtime": "0.07", "resultsets": [{"rowcount": 0, "headers": ["page_title", "page_id", "pp_propname", "cat_pages", "cat_subcats", "cat_files"]}]} | 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... | {"connection_id": 387382489} | null |
enwiki:Pages in WikiProject Museums without trwiki interwikis | null | SELECT DISTINCT article.page_id, article.page_title, article.page_len,
(CASE
WHEN cl_to="Top-importance_Museums_articles" THEN "En"
WHEN cl_to="High-importance_Museums_articles" THEN "Çok"
WHEN cl_to="Mid-importance_Museums_articles" THEN "Orta"
... | {"runningtime": "0.66", "resultsets": [{"rowcount": 148, "headers": ["actor_name", "pagename"]}]} | null |
enwiki:Pages in WikiProject COVID-19 with trwiki interwikis | null | SELECT DISTINCT article.page_id, article.page_len, article.page_title, ll_title
FROM page talk
INNER JOIN page article ON
talk.page_title = article.page_title
INNER JOIN categorylinks ON
cl_from = talk.page_id
INNER JOIN langlinks ON article.page_id = ll_from AND ll_lang='tr'
WHERE
talk.page_namespace = 1 AND
a... | {"runningtime": "0.08", "resultsets": [{"rowcount": 0, "headers": ["actor_name", "count"]}]} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.