title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
spamblacklist log on bnwiki by editor | null | USE bnwiki_p;
SELECT actor_name, COUNT(*)
FROM logging
JOIN actor ON log_actor=actor_id
WHERE log_type="spamblacklist"
GROUP BY actor_name
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "4.53", "resultsets": [{"rowcount": 1170, "headers": ["page_namespace", "page_title"]}]} | null |
block action by bnwiki admin | null | USE bnwiki_p;
SELECT actor_name, COUNT(*)
FROM logging
JOIN actor ON log_actor=actor_id
WHERE log_type="block"
GROUP BY actor_name
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "0.37", "resultsets": [{"rowcount": 1, "headers": ["count(*)"]}]} | null |
Special:WantedCategories replica 2 | Cats in red linked categories | use enwiki_p;
SELECT
page_title,
cl_to
FROM page
JOIN
(SELECT DISTINCT
cl_to , cl_from
FROM categorylinks
LEFT JOIN page
ON cl_to = page_title
AND page_namespace = 14
WHERE page_title IS NULL
AND cl_to <> "Wikipedians_with_red-linked_categories_on_their_user_page"
AND cl_to <> "Wiki... | {"connection_id": 448372057} | null |
Titles in langs to it_id 1-10 | Checking titles in different languages and their ips_item_id | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT * FROM wb_items_per_site
WHERE ips_site_page in ("Ablaktasjon",
"Activated charcoal cleanse",
"Adelgazamiento",
"AdhocImage0.jpg",
"Afslankproduct",
"Alergedd gwenith",
"Aliment biologique",
"Alimentación macrobiótica",
"Alimentation à calorie négative",
"Alime... | {"runningtime": "30.32", "resultsets": [{"rowcount": 2218, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}]} | null |
Titles in langs to it_id 11-25 | Checking titles in different languages and their ips_item_id | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT * FROM wb_items_per_site
WHERE ips_site_page in ("Alimentation macrobiotique",
"Alimentation saine",
"Alimento integral",
"Alkaline diet",
"Alternative detoxification",
"Alvise Corner",
"Ambronite",
"Ambronite",
"Ăn chay",
"Ăn kiêng",
"Anatrim",
"Andreas Eenf... | {"runningtime": "121.62", "resultsets": [{"rowcount": 9, "headers": ["Title"]}]} | null |
Titles in langs to it_id 26-70 | Checking titles in different languages and their ips_item_id | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT * FROM wb_items_per_site
WHERE ips_site_page in ("Anthropology of food",
"Åreforkalking",
"Åreforkalkning",
"Arnaldus avoid large meals before bedtime.jpg",
"Arnaldus healthy drink.jpg",
"Arnaldus healthy food.jpg",
"Arnold Ehret",
"Ateriankorvike",
"Atkins diet... | {"runningtime": "0.66", "resultsets": [{"rowcount": 11, "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 |
Titles in langs to it_id 61-360 | Checking titles in different languages and their ips_item_id | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT * FROM wb_items_per_site
WHERE ips_site_page in ("Bernardus de Gordonio. Book of traditional medicine in Latin. Wellcome L0049764.jpg",
"Bernardus de Gordonio. Book of traditional medicine in Latin. Wellcome L0049765.jpg",
"Bernardus de Gordonio. Book of traditional m... | {"runningtime": "182.61", "resultsets": [{"rowcount": 617, "headers": ["page_title", "actor_name", "comment_text", "rev_timestamp"]}]} | null |
Titles in langs to it_id 361-900 | Checking titles in different languages and their ips_item_id | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT * FROM wb_items_per_site
WHERE ips_site_page in ("Gluten-free, casein-free diet",
"Glutenfri kost",
"Glutenvrij dieet",
"Glykogen",
"Glyx-Diät",
"Grains & cereals serves.jpg",
"Grapefruit diet",
"Grignotage (nutrition)",
"Grovkarbo",
"Halal",
"Halal en haram",... | {"runningtime": "0.60", "resultsets": [{"rowcount": 100, "headers": ["MID", "P1259", "coordinates", "P7787", "heading", "/* extracted from {{Location}} template */"]}]} | null |
Titles in langs to it_id 901-1051 | Checking titles in different languages and their ips_item_id | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT * FROM wb_items_per_site
WHERE ips_site_page in ("حمية البحر الأبيض المتوسط",
"حمية البروتين",
"حمية الجريب فروت",
"حمية السكري",
"حمية السوائل",
"حمية الطعام النيء",
"حمية العصر الحجري",
"حمية الكوكيز الغذائية",
"حمية المستئذب",
"حمية الموز الصباحية",
"حمية أ... | {"runningtime": "7.84", "resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}]} | null |
Titles in langs to it_id (0)-(-9) | Checking titles in different languages and their ips_item_id | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT * FROM wb_items_per_site
WHERE ips_site_page in ("\Why Loyal Americans are Keeping the Pledge to eat less Wheat and Meat...What the food situation is...\" - NARA - 512579.tif""",
"24-hour diet recall",
"5 A Day",
"5 am Tag",
"5 في اليوم",
"5:2-dieten",
"5:2-diette... | {"runningtime": "0.35", "resultsets": [{"rowcount": 100, "headers": ["MID", "P1259", "coordinates", "P7787", "heading", "CONCAT(\"File:\",page_title)", "el_to"]}]} | null |
all unique it_id | Checking titles in different languages and their ips_item_id | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT * FROM wb_items_per_site
WHERE ips_item_id in (245442,
4641039,
16001246,
28456893,
3773406,
4359034,
380778,
333203,
718113,
4413030,
7988517,
836302,
79529703,
2736577,
3613463,
746457,
3616411,
2853051,
83364,
5627639,
389140,
17003683,
2532779,... | {"runningtime": "7.51", "resultsets": [{"rowcount": 1, "headers": ["COUNT(*)"]}]} | null |
GA/FA and GAN/FAC linked from September 23 | GA/FA and GAN/FAC linked from [[September 23]] | SELECT
page_title #Faster than just selecting the page title and id, but only those are needed
FROM
page pg1
WHERE
pg1.page_namespace = 0 #Only care about articles
AND pg1.page_title IN ( #Where page is linked from a specified other page
SELECT
pl_title
FROM
pagelinks
WHERE
pl_from... | {"runningtime": "34.65", "resultsets": [{"rowcount": 1, "headers": ["Count", "Size_GB", "Type"]}]} | null |
GA/FA and GAN/FAC linked from September 24 | GA/FA and GAN/FAC linked from [[September 24]] | SELECT
page_title #Faster than just selecting the page title and id, but only those are needed
FROM
page pg1
WHERE
pg1.page_namespace = 0 #Only care about articles
AND pg1.page_title IN ( #Where page is linked from a specified other page
SELECT
pl_title
FROM
pagelinks
WHERE
pl_from... | {"runningtime": "1.98", "resultsets": [{"rowcount": 40, "headers": ["user", "img_count"]}]} | null |
Page count | null | select count(*) from page | {"runningtime": "3.54", "resultsets": [{"rowcount": 1, "headers": ["cat_id", "cat_pages"]}]} | null |
select into a variable | null | use tewiki_p;
set @dbname = 'tewiki';
set @ct_tag_id = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'contenttranslation'
);
select
actor_name,
LEFT(rev_timestamp,8) as date,
CONCAT("[[",page_title,"]]") as pagename,ct_id
from
change_tag,
page,
revision,
a... | {"runningtime": "1536.24", "resultsets": [{"rowcount": 603, "headers": ["page_title", "cl_to"]}]} | null |
Fiwikis rv_tags | tags were set on reverts between 2016-2018 by SeulojaBot based on SQL query.
https://fi.wikipedia.org/wiki/Toiminnot:Loki?type=tag&user=SeulojaBot+&page=&wpdate=&tagfilter= | use fiwiki_p;
SELECT
rc_id, rc_title,
rc_user_text,
ts_tags,
comment_text,
rc_timestamp
FROM
recentchanges
LEFT JOIN comment ON comment_id=rc_comment_id
LEFT JOIN tag_summary ON ts_rc_id=rc_id
WHERE
rc_source="mw.edit"
AND rc_comment REGEXP "(\\b[Rr][Vv][Vv]?\\b|[Ss]otkemis|... | {"runningtime": "0.59", "resultsets": [{"rowcount": 61, "headers": ["title"]}]} | null |
most thanked users in bnwiki | বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী | USE bnwiki_p;
SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="thanks"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"runningtime": "1.30", "resultsets": [{"rowcount": 100, "headers": ["MID", "CONCAT(\"File:\",page_title)", "page_links_updated", "page_touched", "rev_len", "rev_timestamp"]}]} | null |
most active users by edit on bnwikibooks | সর্বশেষ হালনাগাদ ২৩ সেপ্টেম্বর ২০২০ | USE bnwikibooks_p;
SET @counter:=0; SELECT CONCAT("|",@counter:=@counter+1,"") AS rank, CONCAT("[[ব্যবহারকারী:",user_name,"|",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 use... | {"runningtime": "11.67", "resultsets": [{"rowcount": 540, "headers": ["page_title"]}]} | null |
nlwiki_p Decade redirects | null | USE nlwiki_p;
SELECT page_title, rd_title
FROM page LEFT JOIN redirect ON page_id=rd_from
WHERE
page_namespace=0 AND
page_title REGEXP '^Jaren_' AND CONVERT(page_title USING UTF8MB4) REGEXP '^Jaren_(.[0-9]0|nul|[a-z]+tig)$'
| {"runningtime": "2.60", "resultsets": [{"rowcount": 15, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 5, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 6, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}]} | null |
Files imported to Commonswiki, by month | null | use commonswiki_p;
select
count(*) as `num`,
left(rev_timestamp, 6) as `year_month`
from templatelinks
join page on tl_from = page_id
join revision on page_id = rev_page
where
tl_from_namespace = 6 -- NS_FILE
and tl_namespace = 10 -- NS_TEMPLATE
and tl_title = 'Original_upload_log'
and (rev_parent_id is null o... | {"runningtime": "185.52", "resultsets": [{"rowcount": 10, "headers": ["page_id", "page_len", "pp_propname", "pp_value", "revid"]}]} | null |
Files imported to Commonswiki, by month | null | use commonswiki_p;
select
count(*) as `num`,
left(rev_timestamp, 6) as `year_month`
from templatelinks
join page on tl_from = page_id
join revision on page_id = rev_page
where
tl_from_namespace = 6 -- NS_FILE
and tl_namespace = 10 -- NS_TEMPLATE
and tl_title = 'Original_upload_log'
and (rev_parent_id is null o... | {"runningtime": "1.66", "resultsets": [{"rowcount": 21, "headers": ["date", "images"]}]} | null |
ForcePoint Blocks | null | SELECT ipb_address,
ipb_anon_only,
actor_name,
comment_text
FROM ipblocks
JOIN actor ON actor_id = ipb_by_actor
JOIN comment ON comment_id = ipb_reason_id
WHERE comment.comment_text LIKE "%forcepoint%" COLLATE utf8_general_ci; | {"runningtime": "14.86", "resultsets": [{"rowcount": 695, "headers": ["page_title", "page_len", "rev_timestamp"]}]} | null |
Testing category query | null | USE enwiki_p;
SELECT cl_to, count(cl_from)
FROM categorylinks
WHERE cl_to in (SELECT page_title FROM categorylinks JOIN page ON cl_from = page_id WHERE cl_to = "A-Class_articles" and page_namespace = 14)
GROUP BY cl_to | {"runningtime": "1.22", "resultsets": [{"rowcount": 23, "headers": ["date", "images"]}]} | null |
Arabic creators Wiktionary (naive) | null | use enwiktionary_p;
select actor_name, count(*) as `articles created` from categorylinks
join revision on rev_page = cl_from
join actor on actor_id = rev_actor and rev_parent_id = 0
where cl_to in ('Arabic_lemmas', 'Arabic_non-lemma_forms')
and cl_type = 'page'
group by actor_id; | {"runningtime": "7.33", "resultsets": [{"rowcount": 32, "headers": ["user", "edit_count"]}]} | null |
Moroccan Arabic creators Wiktionary (naive) | null | use enwiktionary_p;
select actor_name, count(*) as `articles created` from categorylinks
join revision on rev_page = cl_from
join actor on actor_id = rev_actor and rev_parent_id = 0
where cl_to in ('Moroccan_Arabic_lemmas', 'Moroccan_Arabic_non-lemma_forms')
and cl_type = 'page'
group by actor_id; | {"runningtime": "24.73", "resultsets": [{"rowcount": 424, "headers": ["page_title", "page_len", "rev_timestamp"]}]} | null |
scowiki:Articles written by a single editor (draft) | null | # TODO
# Join with actor table to get username, in order to exclude bots
# Group by page_title (subquery?) and get only those whose count is 1
USE scowiki_p;
SELECT DISTINCT p.page_title, p.page_len , r.rev_actor
FROM page p
LEFT JOIN revision_userindex r
ON r.rev_page = p.page_id
WHERE r.rev_actor = "16487"
LIMIT 100 | {"connection_id": 300352212} | null |
Creators of Finnish entries | See the query that was forked for more details | use enwiktionary_p;
set @language = 'Finnish';
select actor_name as `user`, count(*) as `articles created` from categorylinks
join revision on rev_page = cl_from
join actor on actor_id = rev_actor and rev_parent_id = 0
where cl_to in (concat(@language, '_lemmas'), concat(@language, '_non-lemma_forms'))
and cl_type = ... | {"connection_id": 300521687} | null |
Creators of Hebrew lemmas | Entries may be shared with Yiddish, Ladino, etc., so not entirely reliable | use enwiktionary_p;
select actor_name, count(*) as `articles created` from categorylinks
join revision on rev_page = cl_from
join actor on actor_id = rev_actor and rev_parent_id = 0
where cl_to in ('Hebrew_lemmas')
and cl_type = 'page'
group by actor_id; | {"runningtime": "49.10", "resultsets": [{"rowcount": 16067, "headers": ["page_title"]}]} | null |
WikiDaheim users 2020 (by first revision, by uploader) | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count
FROM actor, revision, image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND actor.actor_id = revision.rev_actor
AND image.img_name = page.page_title
and revision.r... | {"runningtime": "97.04", "resultsets": [{"rowcount": 129, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]} | null |
describe revision_userindex | null | USE scowiki_p;
describe revision_userindex | {"runningtime": "217.40", "resultsets": [{"rowcount": 4, "headers": ["Title"]}]} | null |
Baby's first query | null | USE scowiki_p;
SELECT
rev_page,
rev_timestamp
FROM
revision_userindex
WHERE
rev_actor = 40
AND
rev_parent_id = 0
ORDER BY
rev_timestamp desc; | {"runningtime": "0.33", "resultsets": [{"rowcount": 110, "headers": ["Tables_in_enwiki_p"]}]} | null |
Articles with edit history of solely reverting vandalism | null |
USE scowiki_p;
SELECT
page_title,
rev_timestamp
FROM
revision_userindex
JOIN page ON page_id = rev_page
JOIN text ON old_id = rev_id
WHERE rev_page IN (
select distinct
rev_page
from
revision_userindex
where
rev_actor = 40
and
rev_parent_id = 0
)
AND old_... | {"runningtime": "2.57", "resultsets": [{"rowcount": 308, "headers": ["user_name"]}]} | null |
show scowiki tables | null | USE scowiki_p;
show tables | {"runningtime": "0.18", "resultsets": [{"rowcount": 24, "headers": ["date", "images"]}]} | null |
tarkistettavia muokkauksia | null | use fiwiki_p;
select
CONCAT("[[", page_title, "]]") as article,
sum(cast(r1.rev_len as signed)-cast(r2.rev_len as signed)) as diff_len,
count(distinct(r1.rev_id)) as edits,
max(r1.rev_timestamp) as max_ts
from
page,
actor_revision,
revision_userindex as r1
LEFT JOIN revision_userinde... | {"runningtime": "993.97", "resultsets": [{"rowcount": 25000, "headers": ["MID", "P6305", "OTRS", "CONCAT(\"File:\",page_title)", "num_transclusions"]}]} | null |
Articles written by a single editor (tests) | Find articles that have only been edited by one human editor. Such articles have higher chances of requiring attention. | # Find articles that have only been edited by one human editor. Such articles have higher chances of requiring attention.
USE enwiki_p;
SELECT page_title, page_len, COUNT(rev_actor) FROM
(
SELECT p.page_title, p.page_len, r.rev_actor, a.actor_name
FROM
(
SELECT page_title, page_len, page_id
FROM page
... | {"runningtime": "4.56", "resultsets": [{"rowcount": 34, "headers": ["user", "edit_count"]}]} | null |
Articles written by a single editor (posted) | Find articles that have only been edited by one human editor. Such articles have higher chances of requiring attention. | USE enwiki_p;
SELECT page_title, page_len, COUNT(rev_actor) FROM (
SELECT p.page_title, r.rev_actor, a.actor_name, page_len
FROM (
SELECT page_title, page_len, page_id
FROM page
WHERE page_namespace = 0 # Mainspace
AND NOT page_is_redirect
AND page_len > 1000 # Avoid most disambiguation page... | {"runningtime": "6.92", "resultsets": [{"rowcount": 79, "headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"]}]} | null |
Articles with a single editor | null | USE enwiki_p;
SELECT DISTINCT concat('# [[',REPLACE(page_title,'_',' '),']]'), actor_name
FROM revision AS r1 JOIN page AS p1 ON r1.rev_page = p1.page_id JOIN actor ON r1.rev_actor = actor_id
WHERE p1.page_namespace = 0
AND p1.page_is_redirect = 0
AND LOWER(actor_name) NOT LIKE "%bot"
AND NOT EXISTS (
SELECT null
F... | {"runningtime": "34.67", "resultsets": [{"rowcount": 119, "headers": ["page_title"]}]} | null |
Hindi creators Wiktionary (naive) | null | use enwiktionary_p;
select actor_name, count(*) as `articles created` from categorylinks
join revision on rev_page = cl_from
join actor on actor_id = rev_actor and rev_parent_id = 0
where cl_to in ('Ukrainian_lemmas')
and cl_type = 'page'
group by actor_id; | {"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"]}]} | null |
Articles with a single editor (inspired by Saeidpourbabak) | null | SET @MAGIC := 1000;
USE enwiki_p;
SELECT DISTINCT concat('# [[',REPLACE(page_title,'_',' '),']] (',p1.page_len,' characters)') AS title
FROM revision AS r1
JOIN page AS p1 ON r1.rev_page = p1.page_id
JOIN actor ON r1.rev_actor = actor_id
WHERE p1.page_namespace = 0 # Mainspace.
AND p1.page_is_redirect = 0
AND p1.page_l... | {"runningtime": "73.08", "resultsets": [{"rowcount": 51, "headers": ["page_title"]}]} | null |
Tool Labs metadata database | Content of the metadata database; see https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Database#Metadata_database for more information. | use meta_p;
SELECT * FROM wiki; | {"connection_id": 311451062} | null |
translation list for a user | null | use hewiki_p; -- NB: Select the wiki
set @ct_tag_id = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'contenttranslation'
);
SELECT
page_title
FROM
actor,
revision,
change_tag,
page
WHERE
rev_timestamp > 20150115000000 AND -- When CX was deployed
actor_name = 'Amire80' AND -- NB: write ... | {"runningtime": "25.05", "resultsets": [{"rowcount": 83, "headers": ["CONCAT('File:', REPLACE(page_title,'_',' '))"]}]} | 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": "34.40", "resultsets": [{"rowcount": 10, "headers": ["page_title"]}]} | null |
Users with protected root user talk pages | null | select concat('[[User_talk:', page_title, ']]'), page_is_redirect from page inner join page_restrictions on(pr_page=page_id) where page_namespace=3 and pr_type='edit' and page_title not like '%/%'; | {"runningtime": "0.08", "resultsets": [{"rowcount": 10, "headers": ["el_from", "el_to"]}]} | 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": "0.16", "resultsets": [{"rowcount": 2, "headers": ["el_from", "el_to"]}]} | null |
Human in all langs | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_items_per_site;
SELECT * FROM wb_items_per_site WHERE ips_item_id = 5 LIMIT 10000; | {"connection_id": 313615396} | null |
AFC+Autopatrol | null | USE enwiki_p;
SELECT user_name
FROM `user`
JOIN pagelinks ON REPLACE(pl_title, "_", " ") = user_name AND pl_namespace = 2
JOIN user_groups `autopatrol` ON autopatrol.ug_user = user_id AND autopatrol.ug_group = "autoreviewer"
LEFT JOIN user_groups `npr` ON npr.ug_user = user_id AND npr.ug_group = "patroller"
WHERE
pl_... | {"runningtime": "0.11", "resultsets": [{"rowcount": 10, "headers": ["page_title"]}]} | null |
Ideologies in all langs - all | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_items_per_site;
SELECT * FROM wb_items_per_site WHERE ips_site_page in
(
"Anarchism", "Anarquismo", "Анархизм", "Anarchismus", "آنارشیسم", "Anarchisme", "アナキズム", "Anarşizm", "Anarchizm", "Anarchismo", "Αναρχισμός", "Anarkisme", "无政府主义", "Anarkism", ... | {"connection_id": 315974852} | null |
Ideologies in all langs - en | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_items_per_site;
SELECT * FROM wb_items_per_site WHERE ips_site_id = 'enwiki' AND ips_site_page in
(
"Anarchism",
"Corporatism",
"Hardline",
"Conservatism",
"Cosmopolitanism",
"Egalitarianism",
"Eurasianism",
"Globalism",
"Fascism",
"Green politics",
"H... | {"runningtime": "48.77", "resultsets": [{"rowcount": 232, "headers": ["page_title", "cl_to", "cl_sortkey_prefix"]}]} | null |
Ideologies all ips_item_ids | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_items_per_site;
SELECT * FROM wb_items_per_site WHERE ips_item_id in
(
"66677938",
"77924746",
"169390",
"184558",
"492050",
"3634733",
"4463021",
"30325066",
"23018230",
"2385364",
"167323",
"3614115",
"6199",
"3893909",
"1278791",
"192424",
"18... | {"runningtime": "0.69", "resultsets": [{"rowcount": 27, "headers": ["date", "images"]}]} | null |
Query for Jeeputer | null | use fawiki_p;
select
page_title
from page
join templatelinks
on tl_from = page_id
and tl_title = 'Infobox_country'
join categorylinks
on cl_from = page_id
and cl_to = 'Pages_with_non-numeric_formatnum_arguments' | {"runningtime": "54.01", "resultsets": [{"rowcount": 7, "headers": ["page_id", "page_title", "rd_namespace", "rd_title"]}]} | null |
InternationalObservancesEnAllTitles | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_items_per_site;
SELECT * FROM wb_items_per_site WHERE ips_site_page in (
"May Day",
"World Press Freedom Day",
"International Midwives'' Day",
"Midsummer",
"International Women''s Day",
"Hora (dance)",
"Ognyena Maria",
"Commonwealth Day",
"Europe Day",
"L... | {"runningtime": "0.25", "resultsets": [{"rowcount": 61, "headers": ["page_title", "cl_from", "dest"]}]} | null |
InternationalObservances - like '% Day' | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_items_per_site;
SELECT * FROM wb_items_per_site WHERE ips_site_page like '% Day'
limit 500000; | {"runningtime": "0.16", "resultsets": [{"rowcount": 31, "headers": ["page_title"]}]} | null |
InternationalObservancesAllenTitles | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_items_per_site;
SELECT * FROM wb_items_per_site WHERE ips_site_id = 'enwiki' AND ips_site_page in ("May Day",
"World Press Freedom Day",
"International Midwives' Day",
"Midsummer",
"International Women's Day",
"Hora (dance)",
"Ognyena Maria",
"Commonwealth ... | {"runningtime": "0.03", "resultsets": []} | null |
نشاط المضيفين + التعديلات في طلبات المضيفين آخر شهر | null | use metawiki_p;
select concat ("{{u|",user_name,"}}") as "username",
(select count(*) from logging
inner join actor on actor_id = log_actor
where actor_user = user_id and log_type = "gblblock"
and log_timestamp > DATE_SUB(NOW(), INTERVAL 1 MONTH)) as ... | {"runningtime": "0.58", "resultsets": [{"rowcount": 28, "headers": ["date", "images"]}]} | null |
Special:WantedCategories replica 2 | Cats in red linked categories | use enwiki_p;
SELECT
page_title,
cl_to
FROM page
JOIN
(SELECT DISTINCT
cl_to , cl_from
FROM categorylinks
LEFT JOIN page
ON cl_to = page_title
AND page_namespace = 14
WHERE page_title IS NULL
AND cl_to <> "Wikipedians_with_red-linked_categories_on_their_user_page"
AND cl_to <> "Wiki... | {"runningtime": "25.25", "resultsets": [{"rowcount": 0, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "user_id", "user_name"]}]} | null |
Categories categorized in red-linked categories | Cats in red linked categories | use enwiki_p;
SELECT
page_title,
cl_to
FROM page
JOIN
(SELECT
cl_to,
cl_from
FROM categorylinks
LEFT JOIN page
ON cl_to = page_title
AND page_namespace = 14
WHERE page_title IS NULL) AS cattmp
ON cattmp.cl_from = page_id
WHERE page_namespace = 14
AND cl_to not like "%_media"
/* AND cl_to no... | {"runningtime": "86.96", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_title", "rd_namespace", "rd_title"]}]} | null |
IOallallIt_ids | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_items_per_site;
SELECT * FROM wb_items_per_site WHERE ips_item_id in ("748539",
"387827",
"4707947",
"16251115",
"1969422",
"20631457",
"2792065",
"2878771",
"477413",
"506340",
"852316",
"2655805",
"37081",
"31600",
"129152",
"2704890",
"367523", ... | {"runningtime": "2.73", "resultsets": [{"rowcount": 363, "headers": ["File", "img_timestamp", "actor_name"]}]} | null |
WikiDaheim users 2020 (by first revision, by uploader) | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count
FROM actor, revision, image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND actor.actor_id = revision.rev_actor
AND image.img_name = page.page_title
and revision.r... | {"runningtime": "0.71", "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 |
Change tag mappings | null | Select * from change_tag_def | {"runningtime": "127.82", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_title", "rd_namespace", "rd_title"]}]} | null |
Ricordi files by usage and available article translations | Sorted by number of connected pages which lack the file, filtered to remove the files which are already available in all or most of the connected pages. | USE itwiki_p;
SELECT CONCAT('[[:File:', page_title, ']]') AS file, CONCAT('[[', g.gil_page_title, ']]') as article, COUNT(distinct(gil_wiki)) AS wikis, COUNT(distinct(ll_lang)) AS translations, COUNT(distinct(ll_lang))-COUNT(distinct(gil_wiki))+1 as difference
FROM commonswiki_p.categorylinks c
JOIN commonswiki_p.page ... | {"runningtime": "0.10", "resultsets": [{"rowcount": 10, "headers": ["comment_id", "comment_hash", "comment_text", "comment_data"]}]} | null |
WikiDaheim users 2020 (by first revision, by uploader) | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count
FROM actor, revision, image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND actor.actor_id = revision.rev_actor
AND image.img_name = page.page_title
and revision.r... | {"runningtime": "0.66", "resultsets": [{"rowcount": 201, "headers": ["wbit_item_id", "wbx_text", "ct"]}]} | null |
List of articles a user created without edits from other users | 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": "7.20", "resultsets": [{"rowcount": 288, "headers": ["Title", "user", "comment"]}]} | 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": "1.20", "resultsets": [{"rowcount": 29, "headers": ["date", "images"]}]} | null |
List of short articles a user created with edits from one other user | 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
... | {"connection_id": 320261288} | null |
List of articles created by a 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 = 40
and
rev_parent_id = 0
and
page_is_redirect = 0
... | {"runningtime": "2.18", "resultsets": [{"rowcount": 77, "headers": ["Title", "user", "comment"]}]} | null |
full-protected articles with drafts | null | USE enwiki_p;
SELECT p0.page_title
FROM page p0
JOIN page_restrictions ON pr_page = p0.page_id
JOIN page p1 ON p0.page_title = p1.page_title AND p1.page_namespace = 118
WHERE
pr_type = 'edit'
AND pr_level = 'sysop'
AND p0.page_namespace = 0 | {"runningtime": "84.09", "resultsets": [{"rowcount": 7, "headers": ["time", "user", "namespace", "page", "comment"]}]} | null |
sysop create-protected articles with drafts | null | USE enwiki_p;
SELECT pt_title
FROM protected_titles
JOIN page p1 ON pt_title = p1.page_title AND p1.page_namespace = 118
WHERE
pt_create_perm = 'sysop'
AND pt_namespace = 0 | {"runningtime": "358.61", "resultsets": [{"rowcount": 16089, "headers": ["wbit_item_id", "wbx_text", "ct"]}]} | null |
Unexisting categories on plwiki | null | USE plwiki_p;
SELECT CONCAT('# [[:Kategoria:',cl_to,'|Kategoria:',cl_to,']]') AS cl_to, COUNT(*) AS count_cl_to
FROM page, categorylinks
WHERE page_id = cl_from
AND page_namespace = 0
AND cl_to NOT LIKE 'Polacy_odznaczeni_francuskim_Krzyżem_Wojennym'
AND cl_to NOT LIKE 'Majorzy_II_Rzeczypospolitej'
AND cl_to NOT LIKE '... | {"runningtime": "37.97", "resultsets": [{"rowcount": 2226, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}]} | null |
sysop create-protected articles with drafts | null | USE enwiki_p;
SELECT pt_title, pt_timestamp
FROM protected_titles
JOIN page p1 ON pt_title = p1.page_title AND p1.page_namespace = 118
WHERE
pt_create_perm = 'sysop'
AND pt_namespace = 0
AND pt_timestamp > 20170000000000 | {"runningtime": "0.09", "resultsets": [{"rowcount": 10, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"]}]} | null |
ruwiki: Convenient Discussions script usage: total number of edits | null | use ruwiki_p;
select count(*)
from comment
join revision on comment_id = rev_comment_id
where
comment_text like "%JWBTH/CD%" | {"runningtime": "0.97", "resultsets": [{"rowcount": 239, "headers": ["rank", "IFNULL(actor_name, '\u0412\u0441\u044c\u043e\u0433\u043e')", "created", "total_len", "articles", "newbie"]}]} | null |
Edits from SLU users | null | USE svwiki_p;
SELECT * FROM user AS u
JOIN recentchanges AS r ON u.user_id = r.rc_actor
WHERE
user_name LIKE '%(SLU)%'
| {"runningtime": "1.75", "resultsets": [{"rowcount": 26, "headers": ["Title", "user", "comment"]}]} | null |
Wanted Panoramio ID categories | null | USE commonswiki_p;
SELECT cat_title, cat_pages
FROM category
WHERE cat_title like 'Photos_from_Panoramio_ID_%'
AND NOT cat_title in (SELECT page_title
FROM page
JOIN categorylinks on cl_from = page_id
WHERE cl_to = 'Photos_from_Panoramio_by_ID'
AND page_namespace = 14)
ORDER BY 2 DESC;
#AND page_namespace = 14 | {"connection_id": 469617211} | 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": 100, "headers": ["comment_text"]}]} | null |
Meta inactivity 2020-10 | To be used in the upcoming October 2020 inactivity check. | USE metawiki_p;
-- Modify startdate and enddate to change dates
SET @startdate = '20200401000000';
SET @enddate = '20201001000000';
-- regex for exempt users
SET @exempt_username_pattern = ' \\(WMF\\)$|-WMF$|WMFOffice';
-- Define for what is a sysop action
SET @sysoplogtype = CAST(
"(
'abusefilter',
'block',... | {"runningtime": "0.30", "resultsets": [{"rowcount": 13, "headers": ["page_title"]}]} | null |
Number of files categorised by Panoramio ID | null | USE commonswiki_p;
SELECT SUM(cat_files)
FROM category
WHERE cat_title like 'Photos_from_Panoramio_ID_%' | {"connection_id": 470563867} | null |
Files on ja also on Commons with filenames by cat | 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 = "基礎自治体位置図" #"Files_uploaded_by_みん... | {"runningtime": "5.92", "resultsets": [{"rowcount": 24, "headers": ["actor_name", "user_editcount", "user_registration", "30/500", "RedWarn edits", "RedWarn %", "ipb_sitewide", "actor_id"]}]} | 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": 330315216} | null |
Checker transclusion | null | SELECT
tl_title,
p.page_title
FROM
enwikisource_p.templatelinks
JOIN
enwikisource_p.page AS p ON p.page_id = tl_from
WHERE
tl_title LIKE 'UN_Treaty_Series_-_vol_221.pdf/%' # beware underscores!
AND tl_namespace = 104
AND tl_from_namespace = 0
ORDER BY
tl_title
| {"runningtime": "11.71", "resultsets": [{"rowcount": 6, "headers": ["Wiki", "Commons", "img_timestamp", "log_timestamp", "log_type"]}]} | null |
Count of Pages in enwiki | null | USE enwiki_p;
SELECT COUNT(page_id) AS `page_count` FROM page | {"runningtime": "0.29", "resultsets": [{"rowcount": 3, "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 |
Bad disambiguation page titles (eswiki) | Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki). | use eswiki_p;
select page_title as main_title
from (page join redirect on page_id = rd_from)
where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
| {"runningtime": "530.87", "resultsets": [{"rowcount": 1, "headers": ["timestamp"]}, {"rowcount": 1000, "headers": ["wpage"]}]} | null |
lista botów z edycjami w plwictionary | null | USE plwiktionary_p;
SELECT actor_id FROM user JOIN actor ON actor_user = user_id
WHERE user_editcount > 0 AND (user_name LIKE '%BOT%' OR user_name LIKE '%Bot%' OR user_name LIKE '%bot%')
AND user_name NOT IN ('Botev','Botaurus') OR user_name IN ('CommonsDelinker', 'Interwicket')
ORDER BY 1
;
| {"runningtime": "1.92", "resultsets": [{"rowcount": 456, "headers": ["cat1", "cat2"]}]} | null |
WikiDaheim users 2020 (by first revision, by uploader) | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DISTINCT actor_name AS user, COUNT(image.img_name) as img_count
FROM actor, revision, image, page, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND actor.actor_id = revision.rev_actor
AND image.img_name = page.page_title
and revision.r... | {"runningtime": "11.62", "resultsets": [{"rowcount": 401, "headers": ["cat1", "cat2"]}]} | null |
Proofread index status filtered by category | null | use itwikisource_p;
select
page_namespace AS namespace,
page_title AS title,
cat_title AS category,
pr_count,
pr_q0,
pr_q1,
pr_q2,
pr_q3,
pr_q4
from pr_index
join page on page_id = pr_page_id
join categorylinks on cl_from = page_id
join category on cat_title = cl_to
where cat_title = 'Pagine... | {"runningtime": "0.12", "resultsets": [{"rowcount": 1, "headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"]}]} | null |
Quechua wikipedia - Bot users | null | use quwiki_p;
select user_name, ug_group from user, user_groups where user_id = ug_user and ug_group = 'bot'; | {"runningtime": "23.30", "resultsets": [{"rowcount": 5000, "headers": ["title"]}]} | null |
de_wiki: red links count gt 120 | output for https://de.wikipedia.org/wiki/Wikipedia:Fehlende_Artikel | use specieswiki_p;
#SET sql_mode='PIPES_AS_CONCAT';
#select '- [['||REPLACE(pl_title, '_', ' ')||']] <!-- '|| c ||' Links -->' as output
select pl_title
from pagelinks AS pl
where pl_from_namespace=0 and pl_namespace=0
left join page
on (pl_title=page_title and page_namespace= pl_namespace)
WHERE page... | {"runningtime": "234.48", "resultsets": [{"rowcount": 1000, "headers": ["day", "actor_name", "count"]}]} | null |
de_wiki: red links count gt 120 | output for https://de.wikipedia.org/wiki/Wikipedia:Fehlende_Artikel | use specieswiki_p;
SET sql_mode='PIPES_AS_CONCAT';
select '- [['||REPLACE(pl_title, '_', ' ')||']] <!-- '|| c ||' Links -->' as output
from (select pl_title , count(*) as c , pl_namespace
from pagelinks
where pl_from_namespace=0 and pl_namespace=0
group by pl_title, pl_namespace
having count(*)... | {"runningtime": "31.10", "resultsets": [{"rowcount": 5000, "headers": ["title"]}]} | null |
Lemma mit nur einem Zeichen | Siehe https://de.wikipedia.org/w/index.php?title=Wikipedia:Fragen_zur_Wikipedia&oldid=182254353#Suche_nach_Länge_des_Lemmas | USE specieswiki_p;
SELECT CONCAT('[[', page_title, ']]') AS Lemma
FROM page
INNER JOIN pagelinks ON pl_from = page_id
WHERE page_namespace = 0
AND pl_title LIKE "Akimoto"
AND page_title IS NULL
#AND LEFT(CONVERT(page_title USING utf8), 1) = CONVERT(page_title USING utf8)
LIMIT 3; | {"runningtime": "5.53", "resultsets": [{"rowcount": 920, "headers": ["page_title", "edits"]}]} | 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": "713.13", "resultsets": [{"rowcount": 343, "headers": ["cl_to", "count_cl_to"]}]} | null |
Liczba edycji w plwiktionary w całej historii | null | USE plwiktionary_p;
SET @w:=0;
SET @s:=0;
SELECT @w:=@w+1 AS 'Lp', ile AS 'Liczba edycji', user_name AS 'Użytkownik', @s:=@s+ile AS 'Narastająco'
FROM (
SELECT user_name, COUNT(*) AS ile, rev_actor
FROM actor JOIN revision ON rev_actor=actor_id JOIN user ON actor_user=user_id JOIN page ON rev_page=page_id
WHERE page... | {"runningtime": "52.72", "resultsets": [{"rowcount": 2482, "headers": ["page_title"]}]} | null |
ru | null | USE ruwiki_p;
SELECT
count(*) AS count,
p.page_title
FROM
page p, langlinks l1
where p.page_namespace = 0
and p.page_id = l1.ll_from
and not exists (select 1 from langlinks l2 where l1.ll_from=l2.ll_from and l2.ll_lang='en')
group by p.page_id, p.page_title
order by count(*) desc... | {"runningtime": "11.93", "resultsets": [{"rowcount": 478, "headers": ["line"]}]} | null |
el | null | USE elwiki_p;
SELECT
count(*) AS count,
p.page_title
FROM
page p, langlinks l1
where p.page_namespace = 0
and p.page_id = l1.ll_from
and not exists (select 1 from langlinks l2 where l1.ll_from=l2.ll_from and l2.ll_lang='en')
group by p.page_id, p.page_title
order by count(*) desc... | {"runningtime": "0.66", "resultsets": [{"rowcount": 33, "headers": ["date", "images"]}]} | null |
uk | null | USE ruwiki_p;
SELECT
count(*) AS count,
p.page_title
FROM
page p, langlinks l1
where p.page_namespace = 0
and p.page_id = l1.ll_from
and not exists (select 1 from langlinks l2 where l1.ll_from=l2.ll_from and l2.ll_lang='uk')
group by p.page_id, p.page_title
order by count(*) desc... | {"runningtime": "0.69", "resultsets": [{"rowcount": 3, "headers": ["user", "img_count", "user_registration"]}, {"rowcount": 1, "headers": ["Overall image count for above users"]}, {"rowcount": 3, "headers": ["user", "img_name"]}]} | null |
Protected pages count | null | use enwiki_p;
select
pr_level,
count(pr_page)
from
page_restrictions
group by
pr_level; | {"runningtime": "3.31", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('*{{\u03b1\u03c1\u03c7\u03b5\u03af\u03bf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}]} | null |
WikiDaheim 2020 media uploaded not in competition time | null | USE commonswiki_p;
SELECT /* SLOW_OK */ DATE_FORMAT(DATE_ADD(img_timestamp, INTERVAL 2 Hour),'%Y-%m-%d') AS date, img_name
FROM image, page, revision, categorylinks
WHERE page.page_id=categorylinks.cl_from
AND image.img_name = page.page_title
and revision.rev_page = page.page_id
and re... | {"connection_id": 335970737} | null |
Find all mainspace pages without associated talk pages | See title. | SELECT page_title FROM page page1 WHERE page_namespace = 0 AND page_is_redirect=0 AND page_title NOT IN (SELECT page_title FROM page WHERE page_namespace=1) LIMIT 300 | {"runningtime": "0.32", "resultsets": [{"rowcount": 52, "headers": ["page_title"]}]} | null |
Templates without documentation | null | use itwikisource_p;
select page_title
from page p
where page_namespace = 10
and page_is_redirect = 0
and page_title not like '%/%'
and not exists (
select 1 from page d
where d.page_namespace = 10
and d.page_title = concat(p.page_title, '/doc')
)
order by p.page_title | {"runningtime": "59.76", "resultsets": [{"rowcount": 95, "headers": ["actor_name", "c"]}]} | null |
de_wiki: red links count gt 120 | output for https://de.wikipedia.org/wiki/Wikipedia:Fehlende_Artikel | use specieswiki
select pl_title
from pagelinks AS pl
INNER JOIN page
WHERE pl_title=page_title and page_namespace= pl_namespace
AND page_id is null
order by desc
LIMIT 3;
| {"runningtime": "0.08", "resultsets": [{"rowcount": 0, "headers": ["page_title", "cl_from"]}]} | null |
تحويلات مكسورة | null | use arwiki_p;
select * from redirect
inner join page
on page_id =rd_from
where rd_title not in (select page_title from page where page_title= rd_title and rd_namespace = page_namespace)
and page_is_redirect = 1
and rd_namespace >= 0
and rd_interwiki = ""
limit 100; | {"runningtime": "0.71", "resultsets": [{"rowcount": 9, "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 |
All female editors on German Wikipedia, sorted by username | null | USE dewiki_p;
SELECT
user_name,
user_id
FROM user
JOIN user_properties ON user_properties.up_user = user.user_id
WHERE user_properties.up_value = "female"
ORDER BY user_name ASC
LIMIT 100000; | {"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["wbit_item_id", "wbx_text", "ct"]}]} | null |
All male editors on German Wikipedia, sorted by user_id | null | USE dewiki_p;
SELECT
user_name,
user_id
FROM user
JOIN user_properties ON user_properties.up_user = user.user_id
WHERE user_properties.up_value = "male"
ORDER BY user_id ASC
LIMIT 100000; | {"connection_id": 340358071} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.