title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
990501 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": "282.85", "resultsets": [{"rowcount": 79, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]} | null |
Organi[sz]ation categories not transcluding certain templates | null | select * from page
where page_title like '%_rgani_ation%'
and page_namespace = 14 -- NS_CATEGORY
and page_is_redirect = 0
and not exists (
select 1 from templatelinks
where templatelinks.tl_from = page.page_id
and templatelinks.tl_namespace = 10 -- NS_TEMPLATE, shouldn't be needed but just in case
and (
tem... | {"connection_id": 285788874} | null |
Cats matching regex not transcluding templates | Non-redirect category pages whose title matches /\b[Oo]rgani[sz]ations?\b/ and don't transclude [[Template:Category redirect]] or [[Template:Category disambiguation]].
For [[WP:VPT#Can anyone help me build an SQL query?]] circa 25 July 2020. | SELECT page_title
FROM page
WHERE page_namespace = 14
AND page_is_redirect = 0
-- page_title stores spaces as underscores, which aren't recognized as word boundaries by the regex engine; so change them back first
AND REPLACE(page_title, '_', ' ') RLIKE '\\b[Oo]rgani[sz]ations?\\b'
AND NOT EXISTS (SELECT 1 FROM ... | {"runningtime": "2.35", "resultsets": [{"rowcount": 20, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 9, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 7, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Talk pages Redirects without any link to (arwiki) | null | USE arwiki_p;
SELECT distinct CONCAT('# [[:نقاش:',page_title,']]') AS page_title, str_to_date(rev_timestamp, '%Y%m%d%H%i%s') AS rev_timestamp
FROM categorylinks
RIGHT JOIN page
ON cl_to = page_title
JOIN revision
ON rev_page = page_id
WHERE page_namespace = 1
AND page_is_redirect = 1
AND rev_parent_id = 0
AND cl_to IS ... | {"runningtime": "36.69", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('# [[:File:', page_title, ']]')"]}]} | 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": "45.70", "resultsets": [{"rowcount": 10, "headers": ["user"]}]} | null |
Pages and subcategories directly on a specific category, Database management systems | null | use enwiki_p;
SELECT IF(page_namespace = 14, 'category', 'article') as type, page_title FROM categorylinks JOIN page ON page_id = cl_from WHERE cl_to = 'Database_management_systems' | {"runningtime": "7.62", "resultsets": [{"rowcount": 3, "headers": ["user"]}]} | null |
Test | null | USE dewiki_p;
SELECT page_title,page_latest
FROM flaggedpage_pending
JOIN page ON fpp_page_id = page_id
JOIN revision ON page_latest = rev_id
JOIN comment ON rev_comment_id = comment_id
AND comment_text like "Inhalt hinzugefügt"
LIMIT 50 | {"runningtime": "0.29", "resultsets": [{"rowcount": 78, "headers": ["img name", "img height", "file name", "version name"]}]} | null |
List of all categories | List of all categories | SELECT
DISTINCT page_id, page_title
FROM
page
INNER JOIN templatelinks on tl_from = page_id
WHERE
page_namespace = 14
AND page_is_redirect = 0
AND page_title RLIKE "[[:<:]][Oo]rgani[sz]ations?[[:>:]]"
AND tl_title NOT IN(
"Category redirect",
"Category disambiguation"
)
LIMIT
2; | {"runningtime": "11.66", "resultsets": [{"rowcount": 14, "headers": ["rev_actor"]}]} | null |
Indef'ed IP's before 2009 | null | use tawiki_p;
SELECT ipb_address AS ip,
ipb_by_text AS admin,
ipb_timestamp AS timestamp,
ipb_expiry,
ipb_enable_autoblock,
ipb_anon_only,
ipb_create_account,
ipb_allow_usertalk,
comment_text AS reason
FROM ipblocks
JOIN comment
ON ... | {"connection_id": 292540342} | null |
Number of all photos by user | včetně nových verzí a smazaných | USE commonswiki_p;
SELECT
COUNT(rev_page)
FROM revision_userindex
JOIN page ON page.page_id = revision_userindex.rev_page
JOIN actor ON actor.actor_id = revision_userindex.rev_actor
WHERE
actor_name ="Packa"
AND
rev_parent_id=0 /* nově založené, tj. nemělo minulou revizi */
AND
page.page_namespace = ... | {"connection_id": 292542499} | null |
רשימת ערכים חדשים מטווח תאריכים | null | use hewiki_p;
select page_title from revision inner join page
on page_id = rev_page
where not rev_parent_id
and not page_namespace
and rev_timestamp >= 20191022210000 and rev_timestamp <= 20191110000000
order by rev_timestamp | {"runningtime": "0.65", "resultsets": [{"rowcount": 16, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 8, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 6, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Potentially extraneous homepage links | goal: find extraneous external links like in "[http://example.com/page foo] on [http://example.com/ example site]" - without parsing dumps, but with reasonably few false positives | USE enwiki_p; SET @language = 'en';
SELECT
CONCAT('https://', @language , '.wikipedia.org/wiki/' ,page_title, '?action=edit&veswitched=1#:~:text=', rooturl) AS page_edit_link,
# try to highlight homepage URL in source wikitext
rooturl,
SUM(IF( url=rooturl, 1, 0) ) AS rootlinks,
SUM(1) AS alllinks
FROM (
SELECT
... | {"runningtime": "112.88", "resultsets": [{"rowcount": 1, "headers": ["count(el_id)"]}]} | null |
RedWarn users | null | USE enwiki_p;
SELECT actor_name, user_editcount, user_registration, (user_editcount > 500 AND user_registration < 20200627000000) as `30/500`, COUNT(*) as `RedWarn edits`, COUNT(*)/user_editcount*100 as `RedWarn %`
FROM revision_userindex
JOIN change_tag ON ct_rev_id = rev_id
JOIN actor_revision ON rev_actor = actor_id... | {"runningtime": "0.73", "resultsets": [{"rowcount": 6, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 3, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
pipe in sortkey | null | use dewiki_p;
SELECT page_title, cl_to, cl_sortkey_prefix
FROM page
join categorylinks on page_id=cl_from
WHERE cl_sortkey_prefix != "" and
page_namespace = 0 and
cl_sortkey_prefix like "%|%"
; | {"runningtime": "1.13", "resultsets": [{"rowcount": 9, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 5, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 5, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
ruwiki: Convenient Discussions script usage: number of edits by month (edits with tag) | null | use ruwiki_p;
select substring(rev_timestamp, 1, 6) date_, count(*) c
from revision
join change_tag
on
rev_id = ct_rev_id and
ct_tag_id = 79 # convenient-discussions
group by date_
order by date_ asc | {"runningtime": "2.78", "resultsets": [{"rowcount": 10, "headers": ["title", "edits", "created", "updated"]}]} | 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": "0.03", "resultsets": []} | 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": "0.02", "resultsets": []} | 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.02", "resultsets": []} | 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.04", "resultsets": []} | null |
Sample ores_classification in wikidata | null | use wikidatawiki_p;
select * from ores_classification join ores_model on oresc_model = oresm_id limit 5; | {"runningtime": "0.02", "resultsets": []} | null |
List of all hard-redirected categories | List of all categories | SELECT page_title FROM page WHERE page_namespace = 14 AND page_is_redirect = 1; | {"runningtime": "0.02", "resultsets": []} | null |
pipe in sortkey | null | use dewiki_p;
SELECT page_title, cl_to, cl_sortkey_prefix
FROM page
join categorylinks on page_id=cl_from
WHERE cl_sortkey_prefix != "" and
page_namespace = 0 and
cl_sortkey_prefix like "%|%"
; | {"runningtime": "5.06", "resultsets": [{"rowcount": 36, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | null |
slash in sortkeys (but not in title) | null | use dewiki_p;
SELECT page_title, cl_to, cl_sortkey_prefix
FROM page
join categorylinks on page_id=cl_from
WHERE cl_sortkey_prefix != "" and
page_namespace = 0 and
cl_sortkey_prefix like "%/%" and
page_title not like "%/%"
; | {"runningtime": "1.37", "resultsets": [{"rowcount": 10, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 6, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Jawiki GFDL files by upload date | null | USE jawiki_p;
SELECT CONCAT("File:", page_title) as File, img_timestamp, actor_name
FROM templatelinks
JOIN page ON tl_from = page_id
JOIN image ON img_name = page_title AND page_namespace = 6
JOIN actor_image ON img_actor = actor_id
WHERE
tl_title = "GFDL"
AND tl_namespace = 10
ORDER BY img_timestamp DESC | {"runningtime": "285.49", "resultsets": [{"rowcount": 41830, "headers": ["actor_name", "number"]}]} | null |
New jawiki GFDL file revisions by user | null | USE jawiki_p;
SELECT CONCAT("File:", page_title) as File, img_timestamp, actor_name
FROM templatelinks
JOIN page ON tl_from = page_id
JOIN image ON img_name = page_title AND page_namespace = 6
JOIN actor_image ON img_actor = actor_id
WHERE
tl_title = "GFDL"
AND tl_namespace = 10
AND img_timestamp > 2009080000... | {"runningtime": "0.09", "resultsets": [{"rowcount": 0, "headers": ["el_id", "el_to", "el_index"]}]} | null |
EXPERIENCED' Gujarati editor, account created more than 2 years ago (between May2008-May2018), with 20-10k edits in last two years (since May2019) | null | use guwiki_p;
select
rev_actor,
actor_name,
count(rev_id) as edit_count,
substr(user_registration, 1, 8) as registration_date
from
revision,
actor,
user
where
actor_user = user_id and
user_registration between 20080500000000 and 20180500000000 and
rev_timestamp > 20180500000000 and
rev_act... | {"connection_id": 7498103} | null |
Cats matching '\\b[Oo]rgani[sz]ations?\\b', not redirect or dab | Non-redirect category pages whose title matches /\b[Oo]rgani[sz]ations?\b/ and don't transclude [[Template:Category redirect]] or [[Template:Category disambiguation]].
For [[WP:VPT#Can anyone help me build an SQL query?]] circa 25 July 2020. | SELECT page_title
FROM page
WHERE page_namespace = 14
AND page_is_redirect = 0
-- page_title stores spaces as underscores, which aren't recognized as word boundaries by the regex engine; so change them back first
AND REPLACE(page_title, '_', ' ') RLIKE '\\b[Oo]rgani[sz]ations?\\b' | {"connection_id": 296866407} | null |
Cats matching '\\b[Oo]rgani[sz]ations?\\b', not redirect or dab | Non-redirect category pages whose title matches /\b[Oo]rgani[sz]ations?\b/ and don't transclude [[Template:Category redirect]] or [[Template:Category disambiguation]].
For [[WP:VPT#Can anyone help me build an SQL query?]] circa 25 July 2020. | SELECT page_title
FROM page
WHERE page_namespace = 14
AND page_is_redirect = 0
-- page_title stores spaces as underscores, which aren't recognized as word boundaries by the regex engine; so change them back first
AND REPLACE(page_title, '_', ' ') RLIKE '\\b[Oo]rgani[sz]ations?\\b'
AND EXISTS (SELECT 1 FROM temp... | {"runningtime": "189.43", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 153, "headers": ["wpage"]}]} | null |
nuke | null | use zhwiki_p;
select log_timestamp, log_title, comment_text from logging
join comment on log_comment_id = comment_id
where log_action = 'delete' and log_timestamp >= 20200101000000 and comment_text like "大量删除%"
order by log_timestamp desc;
| {"connection_id": 297342594} | null |
Proofread-shobia-கிரேக்கஒலிம்பிக்பந்தயங்கள் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
#... | {"runningtime": "0.90", "resultsets": [{"rowcount": 6, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 3, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Proofread-DeepaArulKaniyam-அம்புலிப்பயணம் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
#... | {"runningtime": "5.97", "resultsets": [{"rowcount": 596, "headers": ["page_title"]}]} | null |
Proofread-DeepaArulKaniyam-வேங்கடம்முதல்குமரிவரை1 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
#... | {"runningtime": "0.26", "resultsets": [{"rowcount": 1, "headers": ["actor_id", "actor_user", "actor_name"]}]} | null |
proofread-fathima-மணிபல்லவம்1 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
#... | {"runningtime": "0.78", "resultsets": [{"rowcount": 1, "headers": ["page_title"]}]} | null |
Proofread-VijayalakshmiThiyagarajan-kaniyam-வாழ்க்கை_நலம் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "0.09", "resultsets": [{"rowcount": 1, "headers": ["actor_id", "actor_user", "actor_name"]}]} | null |
Wikidata items without Malayalam label | null | use wikidatawiki_p;
select CONCAT("Q",ips_item_id), CONCAT("Lml"), CONCAT('"',ips_site_page,'"')
from wb_items_per_site i
#join wb_terms on ips_item_id = term_entity_id and term_type = "label"
where i.ips_site_id='mlwiki' and not exists
(select term_entity_id from wb_terms where i.ips_item_id = term_entity_id and
te... | {"runningtime": "23.55", "resultsets": [{"rowcount": 1, "headers": ["page_title"]}]} | null |
Links to redirects | null | use hewiki_p;
select *
from pagelinks limit 10; | {"connection_id": 9245722} | null |
مقالات محذوفة بتاريخ 202007 | null | use arwiki_p;
select ar_title, ar_timestamp from archive
where ar_parent_id = 0
and ar_namespace = 0
and ar_timestamp like "202007%"
#limit 1000; | {"runningtime": "25.65", "resultsets": [{"rowcount": 0, "headers": ["rev_page", "rev_actor", "coun"]}]} | null |
Hidden_categories | null | use enwiki_p;
select
CONCAT('Category:', cl_to) as category_name,
count(*) as fawiki_counterparts
from (
select cl_to
from categorylinks
join page
on page_id = cl_from
join langlinks
on ll_from = cl_from
and ll_lang = 'fa'
where cl_to in (
select page_title
from categorylinks
join ... | {"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["pl_from", "pl_namespace", "pl_title", "pl_from_namespace"]}]} | 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": "36.92", "resultsets": [{"rowcount": 13164, "headers": ["page_title"]}]} | 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.37", "resultsets": [{"rowcount": 8, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | 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.52", "resultsets": [{"rowcount": 8, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Right to vote users in ptwiki | null | use ptwiki_p;
# select ug_group, count(*) from user_groups group by ug_group order by 2 asc;
# select * from user where user_name = 'HenriqueCrang';
# select * from user_rights;
select * from user where
#user_name = 'HenriqueCrang' and
user_editcount > 300 and
20200730000000 - user_registration > 90
; | {"runningtime": "278.55", "resultsets": [{"rowcount": 42, "headers": ["actor_name", "c"]}]} | null |
New accounts in ptwiki | null | use ptwiki_p;
# select ug_group, count(*) from user_groups group by ug_group order by 2 asc;
# select * from user where user_name = 'HenriqueCrang';
# select * from user_rights;
select * from user where
#user_name = 'HenriqueCrang' and
20200730000000 - user_registration < 5
; | {"runningtime": "3.86", "resultsets": [{"rowcount": 320, "headers": ["actor_name", "count"]}]} | null |
Ainz Ooal Gown edits in Commons: | null | USE commonswiki_p;
SELECT LEFT(rev_timestamp, 6) as month, page_title LIKE "Deletion_requests/%" as `DR page?`, COUNT(*)
FROM revision_userindex
JOIN page ON rev_page = page_id
WHERE
rev_actor = (SELECT actor_id FROM actor_revision WHERE actor_name = "Ainz Ooal Gown")
AND page_namespace = 4
GROUP BY LEFT(rev_time... | {"connection_id": 11995976} | null |
Newbie users in ptwiki | null | use ptwiki_p;
select * from user where
user_editcount < 11
or 20200730000000 - user_registration < 5
; | {"runningtime": "82.42", "resultsets": [{"rowcount": 169, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | null |
Ainz Ooal Gown edits in Commons: | null | SELECT drs.month, drs.num, other.num, drs.num/other.num*100
FROM (
SELECT LEFT(rev_timestamp, 6) as `month`, COUNT(*) as `num`
FROM commonswiki_p.revision_userindex
JOIN commonswiki_p.page ON rev_page = page_id
WHERE
rev_actor = (SELECT actor_id FROM actor_revision WHERE actor_name = "Ainz Ooal... | {"runningtime": "5.14", "resultsets": [{"rowcount": 1, "headers": ["ss_total_edits"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}, {"rowcount": 809, "headers": ["userid", "name", "editcount", "admin", "bot"]}]} | null |
Sysops in ptwiki | null | use ptwiki_p;
select ug_user, ug_group from user_groups where ug_group='sysop' | {"runningtime": "22.60", "resultsets": [{"rowcount": 1, "headers": ["item", "ips_site_page"]}]} | null |
Ainz Ooal Gown DRs created vs edited | null | USE commonswiki_p;
SELECT IF(rev_parent_id = 0,"create", "edit"), LEFT(rev_timestamp, 6), COUNT(page_id)
FROM revision_userindex
JOIN page ON rev_page = page_id
WHERE
rev_actor = (SELECT actor_id FROM actor_revision WHERE actor_name = "Ainz Ooal Gown")
AND page_namespace = 4
AND page_title LIKE "Deletion_requ... | {"connection_id": 12166980} | null |
Ainz Ooal Gown DRs created vs edited | null | USE commonswiki_p;
SELECT IF(rev_parent_id = 0,"create", "edit"), LEFT(rev_timestamp, 6), COUNT(DISTINCT page_id)
FROM revision_userindex
JOIN page ON rev_page = page_id
WHERE
rev_actor = (SELECT actor_id FROM actor_revision WHERE actor_name = "Ainz Ooal Gown")
AND page_namespace = 4
AND page_title LIKE "Dele... | {"runningtime": "4.27", "resultsets": [{"rowcount": 1, "headers": ["count(page_title)"]}]} | null |
Ainz Ooal Gown edits in Commons: | null | USE commonswiki_p;
SELECT LEFT(rev_timestamp, 6) as month, SUBSTRING_INDEX(page_title,'/',1), COUNT(*)
FROM revision_userindex
JOIN page ON rev_page = page_id
WHERE
rev_actor = (SELECT actor_id FROM actor_revision WHERE actor_name = "Ainz Ooal Gown")
AND page_namespace = 4
GROUP BY LEFT(rev_timestamp, 6), SUBSTRI... | {"runningtime": "0.13", "resultsets": [{"rowcount": 10, "headers": ["wbit_id", "wbit_item_id", "wbit_term_in_lang_id"]}]} | null |
Ainz Ooal Gown edits in Commons: | null | USE commonswiki_p;
SELECT LEFT(rev_timestamp, 6) as month, COUNT(*)
FROM revision_userindex
JOIN page ON rev_page = page_id
JOIN comment_revision ON rev_comment_id = comment_id
WHERE
rev_actor = (SELECT actor_id FROM actor_revision WHERE actor_name = "Ainz Ooal Gown")
AND page_namespace = 3
AND (
commen... | {"runningtime": "0.12", "resultsets": [{"rowcount": 1, "headers": ["term_language", "term_text", "COUNT(*)"]}]} | null |
Cats not redirect or dab, no CatAutoTOC | Non-redirect category pages which don't transclude [[Template:Category redirect]] or [[Template:Category disambiguation]] or [[Template:CatAutoTOC]]. | SELECT page_title
FROM page
WHERE page_namespace = 14
AND page_is_redirect = 0
AND NOT EXISTS (SELECT 1 FROM templatelinks
WHERE tl_from = page_id
AND tl_namespace = 10
AND tl_title IN ('Category_redirect', 'Category_disambiguation', 'CatAutoTOC')); | {"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["term_row_id", "term_entity_id", "term_full_entity_id", "term_entity_type", "term_language", "term_type", "term_text", "term_search_key", "term_weight"]}]} | null |
Talk page to mainspace redirects | For use at https://en.wikipedia.org/wiki/Wikipedia:Bot_requests#Fix_talk_page_to_mainspace_redirects. | USE enwiki_p;
select * from page pg
join redirect rd on rd.rd_from = pg.page_id
where pg.page_namespace = 1 and rd.rd_namespace = 0
order by pg.page_latest desc | {"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["item", "wbxl_language", "wbx_text"]}]} | null |
Ainz Ooal Gown patrols | null | USE commonswiki_p;
SELECT log_timestamp, log_title
FROM logging_userindex
LEFT JOIN change_tag ON ct_log_id = ct_rev_id and ct_tag_id = 116
WHERE
log_actor = (SELECT actor_id FROM actor_logging WHERE actor_name = "Ainz Ooal Gown")
AND ct_id IS NULL
AND log_type = "patrol"
AND log_action = "patrol"
AND... | {"runningtime": "0.12", "resultsets": [{"rowcount": 10, "headers": ["wbit_item_id", "wbxl_language", "wbx_text"]}]} | null |
Talk page to mainspace redirects | null | USE enwiki_p;
SELECT
CONCAT("Talk:", pg.page_title) as `from`,
rd.rd_title as `to`,
pg.page_title = rd.rd_title as `unnecessary`,
pr.page_is_redirect AND NOT pg.page_title = rd.rd_title as `would_double`
FROM page pg
JOIN redirect rd ON rd.rd_from = pg.page_id
LEFT JOIN page pr ON pr.page_namespace = 1... | {"runningtime": "0.27", "resultsets": [{"rowcount": 49, "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", "cl_from", "cl_to", "cl_sortkey", "cl_... | 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": "3.56", "resultsets": [{"rowcount": 581, "headers": ["page_title"]}]} | null |
WikiGap 2020 New | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
created,
total_len,
articles,
newbie
FROM
(
SELECT
CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name,
COUNT(1) AS created,
SUM(article.p... | {"runningtime": "15.55", "resultsets": [{"rowcount": 1, "headers": ["page_title", "arr"]}]} | null |
Proofread-Kaleeswari-எனதுகதைகளின்கதைகள் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "0.10", "resultsets": [{"rowcount": 4, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1"]}]} | null |
Validated-Deepa_arul_kaniyam-கிரேக்கஒலிம்பிக்பந்தயங்கள் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "1.04", "resultsets": [{"rowcount": 1, "headers": ["page_title", "arr"]}]} | null |
Validated-Deepa_arul_kaniyam-வாழ்க்கையில்வெற்றிபெற்றவர்களின்கதைகள் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "47.72", "resultsets": [{"rowcount": 1, "headers": ["page_title", "arr"]}]} | null |
Validated-Deepa_arul_kaniyam-பெஞ்சமின்ஃபிராங்ளினின்நம்மைமேம்படுத்தும்எண்ணங்கள் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"connection_id": 300531745} | null |
Validated-Deepa_arul_kaniyam-மணிபல்லவம்1 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "207.40", "resultsets": [{"rowcount": 1, "headers": ["page_title"]}, {"rowcount": 1, "headers": ["el_to", "counting"]}]} | null |
Validated-Deepa_arul_kaniyam-பழையகணக்கு | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "140.02", "resultsets": [{"rowcount": 1, "headers": ["page_title", "arr"]}]} | null |
Validated-Rabiyathul_kaniyam-அம்புலிப்பயணம் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"connection_id": 14505264} | null |
Validated-Rabiyathul_kaniyam-திருக்குறளில்செயல்திறன் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"connection_id": 300541393} | null |
Validated-Rabiyathul_kaniyam-திருக்குறள்புதைபொருள்1 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "494.32", "resultsets": [{"rowcount": 1, "headers": ["page_title", "arr"]}]} | null |
Validated-Rabiyathul_kaniyam-திருக்குறள்புதைபொருள்2 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "0.31", "resultsets": [{"rowcount": 27, "headers": ["MID", "P6305", "OTRS", "CONCAT(\"File:\",page_title)"]}]} | null |
Validated-Rabiyathul_kaniyam-புத்தர்பொன்மொழிநூறு | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "0.07", "resultsets": [{"rowcount": 0, "headers": ["el_id", "el_to", "el_index"]}]} | null |
Validated-Rabiyathul_kaniyam-வேங்கடம்முதல்குமரிவரை1 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["el_id", "el_to", "el_index"]}]} | null |
Validated-Rabiyathul_kaniyam-வேங்கடம்முதல்குமரிவரை3 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "259.82", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | null |
Validated-Rabiyathul_kaniyam-வேங்கடம்முதல்குமரிவரை-தமிழகத்துக்கோயில்கள்-2 | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "0.53", "resultsets": [{"rowcount": 10, "headers": ["Count(*)", "cl_to"]}]} | null |
Validated-Rabiyathul_kaniyam-முகஅழகைக்காப்பதுஎப்படி | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"connection_id": 14535382} | null |
Validated-Fathima-எனதுகதைகளின்கதைகள் | Change the actor_name and page_title for your search.
Choose either validated or proofread line and comment another | use tawikisource_p;
SELECT distinct page_title as Title, actor_name as user, comment_text as comment
FROM revision
join page ON page_id = rev_page
join comment on comment_id = rev_comment_id
join actor ON rev_actor = actor_id where
#(comment_text like "%மெய்ப்புப் பார்க்கப்பட்டவை%" or comment_text like "%Proofread%")
... | {"runningtime": "0.24", "resultsets": [{"rowcount": 10, "headers": ["Count(*)", "cl_to"]}]} | 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": "42.44", "resultsets": [{"rowcount": 100, "headers": ["Count(*)", "cl_to"]}]} | null |
Suche Links | null | USE dewiki_p;
SELECT Count(* #"[[Spezial:Diff/"+revision_userindex.rev_id+"]]" AS diff
FROM revision_userindex#, page, externallinks
WHERE ABS(revision_userindex.rev_timestamp) BETWEEN 20200720000000 AND 20200720000002
#AND page.page_namespace=0
#AND revision_userindex.rev_page=page.page_id
#AND externallinks.el_from ... | {"runningtime": "0.34", "resultsets": [{"rowcount": 2, "headers": ["Weiterleitungsseite", "\u00c4nderungskommentar"]}]} | null |
Antarctic Month | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
newbie
FROM
(
SELECT
CONCAT(actor_name) as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as total_len,
GROUP_CONCAT(
DISTINCT
-- [[Н... | {"runningtime": "312.11", "resultsets": [{"rowcount": 26382, "headers": ["page_title", "el_id", "el_to", "el_index"]}]} | null |
WLM Month [for midpoint] | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
newbie
FROM
(
SELECT
CONCAT(actor_name) as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as total_len,
GROUP_CONCAT(
DISTINCT
-- [[Н... | {"runningtime": "0.34", "resultsets": [{"rowcount": 10, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 4, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
USpolitics Month [for midpoint] | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
newbie
FROM
(
SELECT
CONCAT(actor_name) as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as total_len,
GROUP_CONCAT(
DISTINCT
-- [[Н... | {"runningtime": "410.18", "resultsets": [{"rowcount": 26382, "headers": ["page_title", "el_id", "el_to", "el_index"]}]} | null |
Diplomacy Month [for midpoint] | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
newbie
FROM
(
SELECT
CONCAT(actor_name) as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as total_len,
GROUP_CONCAT(
DISTINCT
-- [[Н... | {"runningtime": "1757.55", "resultsets": [{"rowcount": 100, "headers": ["Count(*)", "cl_to"]}]} | null |
Turkic Month [for midpoint] | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
newbie
FROM
(
SELECT
CONCAT(actor_name) as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as total_len,
GROUP_CONCAT(
DISTINCT
-- [[Н... | {"runningtime": "4.35", "resultsets": [{"rowcount": 73, "headers": ["title"]}]} | null |
Bird Week [for midpoint] | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
newbie
FROM
(
SELECT
CONCAT(actor_name) as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as total_len,
GROUP_CONCAT(
DISTINCT
-- [[Н... | {"runningtime": "0.14", "resultsets": [{"rowcount": 4, "headers": ["page_title", "page_len"]}]} | null |
Broken links from He wikipedia to wikisource | null | use hewikisource_p;
use hewiki_p;
select * from hewiki_p.iwlinks join hewiki_p.page
on hewiki_p.iwlinks.iwl_from = hewiki_p.page.page_id
WHERE hewiki_p.iwlinks.iwl_prefix = 's'
and hewiki_p.page.page_namespace=0
and hewiki_p.iwlinks.iwl_title not like '%:%'
and NOT EXISTS
(select hewikisource_p.page.page_title FROM hew... | {"connection_id": 15043813} | null |
Wikimarathon 2020 [with newbies for metrics] | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
newbie
FROM
(
SELECT
CONCAT(actor_name) as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as total_len,
GROUP_CONCAT(
DISTINCT
-- [[Н... | {"runningtime": "5.11", "resultsets": [{"rowcount": 1276, "headers": ["title"]}]} | null |
Files on vi also on Commons with filenames | null | USE viwiki_p;
SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki, CONCAT("[[:File:", b.img_name, "]]") AS Commons, b.img_timestamp
FROM image a
INNER JOIN page p ON p.page_title = a.img_name AND p.page_namespace = 6
INNER JOIN categorylinks c ON c.cl_from = p.page_id
join commonswiki_p.image b on b.img_name != a.im... | {"runningtime": "219.85", "resultsets": [{"rowcount": 1, "headers": ["count(rev_page)"]}]} | 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": "157.65", "resultsets": [{"rowcount": 1, "headers": ["count(rev_page)"]}]} | null |
RedWarn users | null | USE enwiki_p;
SELECT actor_name, user_editcount, user_registration, (user_editcount > 500 AND user_registration < 20200627000000) as `30/500`, COUNT(*) as `RedWarn edits`, COUNT(*)/user_editcount*100 as `RedWarn %`, ipb_sitewide
FROM revision_userindex
JOIN change_tag ON ct_rev_id = rev_id
JOIN actor_revision ON rev_ac... | {"runningtime": "34.95", "resultsets": [{"rowcount": 12161, "headers": ["page_title", "page_len"]}]} | null |
Files on ja also on Commons with filenames | null | USE jawiki_p;
SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki, CONCAT("[[:File:", b.img_name, "]]") AS Commons, b.img_timestamp
FROM image a
INNER JOIN page p ON p.page_title = a.img_name AND p.page_namespace = 6
INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = "コモンズへの移動により即時削除対象となったファイル"
join ... | {"runningtime": "12.11", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]} | null |
RedWarn users | null | USE enwiki_p;
SELECT actor_name, user_editcount, user_registration, (user_editcount > 500 AND user_registration < 20200627000000) as `30/500`, COUNT(*) as `RedWarn edits`, COUNT(*)/user_editcount*100 as `RedWarn %`
FROM revision_userindex
JOIN change_tag ON ct_rev_id = rev_id
JOIN actor_revision ON rev_actor = actor_id... | {"runningtime": "37.75", "resultsets": [{"rowcount": 1000, "headers": ["ll_count", "title_en", "title_zh", "title", "wb_item"]}]} | null |
RedWarn users | null | USE enwiki_p;
SELECT actor_name, user_editcount, user_registration, (user_editcount > 500 AND user_registration < 20200627000000) as `30/500`, COUNT(*) as `RedWarn edits`, COUNT(*)/user_editcount*100 as `RedWarn %`, ipb_sitewide
FROM revision_userindex
JOIN change_tag ON ct_rev_id = rev_id
JOIN actor_revision ON rev_ac... | {"runningtime": "61.46", "resultsets": [{"rowcount": 260, "headers": ["page_title"]}]} | null |
RedWarn users without rollback | null | USE enwiki_p;
SELECT actor_name, user_editcount, user_registration, (user_editcount > 500 AND user_registration < 20200627000000) as `30/500`, COUNT(*) as `RedWarn edits`, COUNT(*)/user_editcount*100 as `RedWarn %`, ipb_sitewide
FROM revision_userindex
JOIN change_tag ON ct_rev_id = rev_id
JOIN actor_revision ON rev_ac... | {"connection_id": 17822213} | null |
Využití neexistujících podšablon šablony Data státu | null | use cswiki_p;
select pl_title, count(*) from pagelinks where pl_from_namespace%2 like 0 and pl_from_namespace not like 2 and pl_from not like 661530 and pl_namespace like 10 and pl_title like 'Data_státu/%' and pl_title not in (select page_title from page where page_namespace like 10) and pl_title not like 'Data_státu/... | {"connection_id": 303230730} | null |
Test ja also on Commons with filenames | null | USE hiwiki_p;
SELECT * FROM commonswiki_p.logging WHERE log_title IN (
SELECT b.img_name #, CONCAT("# [[:File:", a.img_name, "]]") AS Wiki, CONCAT("[[:File:", b.img_name, "]]") AS Commons, b.img_timestamp#, d.log_timestamp
FROM image a
INNER JOIN page p ON p.page_title = a.img_name AND p.page_namespace = 6
INNER JOIN ... | {"runningtime": "86.44", "resultsets": [{"rowcount": 0, "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", "p... | null |
Test ja also on Commons with filenames | null | USE hiwiki_p;
SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki, CONCAT("[[:File:", b.img_name, "]]") AS Commons, b.img_timestamp, d.log_timestamp, d.log_type
FROM image a
INNER JOIN page p ON p.page_title = a.img_name AND p.page_namespace = 6
INNER JOIN categorylinks c ON c.cl_from = p.page_id # AND c.cl_to = "コモ... | {"runningtime": "30.17", "resultsets": [{"rowcount": 10, "headers": ["ca", "tl_title"]}]} | 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.14", "resultsets": [{"rowcount": 13, "headers": ["linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}]} | null |
Test hi also on Commons with filenames | null | USE hiwiki_p;
SELECT CONCAT("# [[:File:", a.img_name, "]]") AS Wiki,
CONCAT("[[:File:", b.img_name, "]]") AS Commons,
b.img_timestamp,
d.log_timestamp,
d.log_type
FROM image a
#INNER JOIN page p
# ON p.page_title = a.img_name AND p.page_namespace = 6
#INNER JOIN categorylinks c
# ... | {"runningtime": "2.67", "resultsets": [{"rowcount": 1, "headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_options", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_tim... | null |
File orfani non liberi ordinati per utente | null | USE itwiki_p;
SELECT CONCAT('* [[Utente:', actor_name, ']] - [[:File:', page_title, ']]')
FROM page, revision, actor
WHERE page_namespace = 6
AND page_is_redirect = 0
AND page_id IN (SELECT cl_from
FROM categorylinks
WHERE cl_to = 'Immagini_orfane_con_licenza_non_libera_-_agosto_2020')
AND rev_page = page_id
AN... | {"runningtime": "178.28", "resultsets": [{"rowcount": 200, "headers": ["page_title", "page_count"]}]} | null |
All orphan non-free files on ja.wiki | null | USE jawiki_p;
SELECT CONCAT('# [[:File:', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), ']]') FROM page p
INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from
LEFT JOIN imagelinks i ON p.page_title = i.il_to AND (i.il_from_namespace = 0)
#LEFT JOIN categorylinks c2 ON p.page_id = c2.cl_from AND c2.... | {"runningtime": "0.20", "resultsets": [{"rowcount": 12, "headers": ["REGEXP_SUBSTR(el_to, 'Q[0-9]*')", "P18", "CONCAT(\"\\\"\", REPLACE(page_title, \"_\", \" \"), \"\\\"\")"]}]} | null |
enwiki_p Wikipedia:Featured topics mystery | null | USE enwiki_p;
SELECT page_id,page_namespace,page_title,rev_id,rev_timestamp
FROM revision, (
SELECT page.*
FROM templatelinks, page
WHERE tl_from=3263291 AND tl_namespace=page_namespace AND tl_title=page_title
) p
WHERE page_latest=rev_id
ORDER BY rev_timestamp DESC
LIMIT 10 | {"runningtime": "126.68", "resultsets": [{"rowcount": 6, "headers": ["pl_from", "pl_title"]}]} | null |
fix islanda categories | null | use arwiki_p;
select
CONCAT('* [[:تصنيف:',page_title, ']]>') AS cat1
, REPLACE(CONCAT( '[[:تصنيف:' , page_title , ']]' ) , 'أيسلند'
,'آيسلند' ) AS cat2
from page
where page_title like "%أيسلند%"
AND page_namespace = 14
and page_id not in (select cl_from from categorylinks where cl_to = "تحويلات_تصنيفات_... | {"runningtime": "6.48", "resultsets": [{"rowcount": 2199, "headers": ["page_title", "page_len"]}]} | 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": "0.64", "resultsets": [{"rowcount": 10, "headers": ["c", "log_title"]}]} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.