title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
جميع التصنيفات التي بحاجة لتصانيف معادلة من الإنجليزية | null | use arwiki_p;
select concat("تصنيف:",p.page_title) as page_title, group_concat(el.ll_title SEPARATOR '***') as "cats"
from page p
inner join langlinks l1
on l1.ll_from = p.page_id
inner join enwiki_p.page
on enwiki_p.page.page_title = replace(replace(l1.ll_title, "Category:",""), " ", "_")
inner join enwiki_p.categoryl... | {"runningtime": "0.10", "resultsets": [{"rowcount": 2, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_text", "ar_comment_id", "ar_user", "ar_user_text", "ar_actor", "ar_timestamp", "ar_minor_edit", "ar_flags", "ar_rev_id", "ar_text_id", "ar_deleted", "ar_len", "ar_page_id", "ar_parent_id", "ar_sha1", "ar_content_... | null |
arwp interwiki links from wikidata where the article no longer exists | null | USE arwiki_p;
SELECT CONCAT('Q', ips_item_id), ips_site_id, ips_site_page
FROM wikidatawiki_p.wb_items_per_site
LEFT JOIN page ON REPLACE(ips_site_page, ' ', '_') = page_title AND page_namespace = 0
WHERE page_title IS NULL
AND ips_site_id = 'arwiki'
AND ips_site_page NOT LIKE '%:%'; | {"runningtime": "3.38", "resultsets": [{"rowcount": 843, "headers": ["page_title", "length(page_title)"]}]} | null |
arwp interwiki links from wikidata where the article no longer exists | null | USE arwiki_p;
SELECT CONCAT('Q', ips_item_id), ips_site_id, ips_site_page
FROM wikidatawiki_p.wb_items_per_site
LEFT JOIN page ON REPLACE(ips_site_page, ' ', '_') = page_title AND page_namespace = 0
WHERE page_title IS NULL
AND ips_site_id = 'arwiki'
AND ips_site_page NOT LIKE '%:%'; | {"runningtime": "3.32", "resultsets": [{"rowcount": 843, "headers": ["page_title", "length(page_title)", "SUBSTR( page_title, 1, LENGTH(page_title) - 1)"]}]} | null |
أوصاف تحتوي وصف "عربية" | null | USE wikidatawiki_p;
SELECT CONCAT('https://www.wikidata.org/wiki/', term_full_entity_id, '?action=history') AS item, term_language, term_text
FROM wb_terms
WHERE term_type = 'description'
#AND LENGTH(term_text) = 1
#AND term_text NOT RLIKE "\p{Han}"
AND term_text IN (
'العربية', 'عربية', 'c', 'd', 'e', 'كلب', 'g'
); | {"runningtime": "0.35", "resultsets": [{"rowcount": 7, "headers": ["page_title", "length(page_title)", "SUBSTR( page_title, 1, LENGTH(page_title) - 7)"]}]} | null |
Короткие статьи | null | use ruwiki_p;
select page_title, page_len
from page
where (page_namespace = 0) AND (page_is_redirect = 0) AND (page_len < 600)
AND not exists (select * from templatelinks where (tl_from = page.page_id) AND (tl_title in ("Неоднозначность","К_удалению"))); | {"runningtime": "30.17", "resultsets": [{"rowcount": 512, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_page_id"]}]} | null |
Wikiproject Cleanup Contributions (Copy) | null | use arwiki_p;
SET @rank=0;
SELECT CONCAT('{{إحصاءات مساهم في مشروع ويكي الصيانة|',@rank:=@rank+1,'|') AS rank, s.*
FROM (
SELECT
rev_user_text,
CONCAT('|',COUNT(*),'}}')
FROM revision_userindex
WHERE rev_comment like "%وب:م و ص%"
GROUP BY rev_user_text
ORDER BY COUNT(*) DESC) s; | {"runningtime": "1.07", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_user", "rev_user_text", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format", "comment_id", "comment... | null |
Articles without WikiProject on talk page | sorted by ascending page id | SELECT
DISTINCT CONCAT('*[[', replace(article.page_title, '_', ' '), ']]') AS title
FROM
page article
LEFT JOIN page_assessments ON article.page_id = pa_page_id
WHERE
article.page_namespace = 0
AND pa_page_id IS NULL
AND article.page_is_redirect = 0 | {"runningtime": "0.08", "resultsets": []} | null |
ORES preferences (does not work) | null | USE huwiki_p;
-- SELECT * FROM user_properties_anon WHERE up_property IN ('rcOresDamagingPref', 'ores-damaging-flag-rc', 'oresRCHideNonDamaging', 'oresDamagingPref', 'oresHighlight', 'oresWatchlistHideNonDamaging') LIMIT 20;
select distinct(up_property) from user_properties_anon; | {"runningtime": "2.57", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_user", "rev_user_text", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format", "comment_id", "comment... | null |
longest pages | null | use ukwiki_p;
SELECT P1.page_title, R.rev_len
FROM ukwiki_p.revision R
JOIN ukwiki_p.page P1 ON R.rev_page = P1.page_id
where R.rev_len > 100000
ORDER BY R.rev_len DESC
| {"runningtime": "1.18", "resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment_id", "rev_user", "rev_user_text", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format", "comment_id", "comment... | 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": 242874993} | null |
تحليل رقمي لسير تطور المقالات المختارة في ويكيبيديا العربية | This query has been written by Huji | use arwiki_p;
select ori.*, r1.rev_timestamp latest_revision, r1.rev_len latest_size,
DATEDIFF(str_to_date(r1.rev_timestamp, '%Y%m%d'), str_to_date(created_when, '%Y%m%d')) growth_period,
ROUND(100 * (r1.rev_len / original_size - 1)) growth_percentage,
30 * ROUND(100 * (r1.rev_len / original_size - 1)) / DATEDIFF(str_t... | {"runningtime": "0.18", "resultsets": [{"rowcount": 27, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
redirected articles, still in Wikidata | first try, just copied from elsewhere and switched to enwiki | USE enwiki_p;
SELECT CONCAT('Q', ips_item_id), ips_site_id, ips_site_page
FROM wikidatawiki_p.wb_items_per_site
LEFT JOIN page ON REPLACE(ips_site_page, ' ', '_') = page_title AND page_namespace = 0
WHERE page_title IS NULL
AND ips_site_id = 'enwiki'
AND ips_site_page NOT LIKE '%:%'
LIMIT 50; | {"connection_id": 225030107} | null |
Templates starting with "WP" | null | SET @regex_pattern = "^WP";
SET @like_pattern = "WP%";
USE enwiki_p;
SELECT page_title
FROM page
WHERE
page_namespace = 10
AND page_title LIKE "WP%"
AND page_is_redirect = 0 | {"connection_id": 225167885} | null |
Hewiki fair use unused pictures 1 | null | use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists
(select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as
p2 where p2.page_namespace = 14 and p2.pag... | {"runningtime": "3.18", "resultsets": [{"rowcount": 1, "headers": ["lang", "timestamp", "count"]}]} | 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": 1, "headers": ["page_title"]}]} | null |
الملفات التي تحتوي تغييرات في الملفات أو القوالب | null | use arwiki_p;
select concat("ملف:",page_title) from flaggedpages
inner join page
on page_id = fp_page_id
where page_namespace = 6
and page_is_redirect = 0
and fp_reviewed = 0
and page_title in (select il_to from imagelinks where il_to = page_title)
and fp_pending_since is null; | {"runningtime": "1.69", "resultsets": [{"rowcount": 22, "headers": ["ipb_id", "ipb_address", "ipb_timestamp", "comment_text"]}]} | null |
المقالات التي تحتوي تغييرات في الملفات أو القوالب | null | use arwiki_p;
select concat(page_title) from flaggedpages
inner join page
on page_id = fp_page_id
where page_namespace = 0
and page_is_redirect = 0
and fp_reviewed = 0
and fp_pending_since is null; | {"runningtime": "1.16", "resultsets": [{"rowcount": 0, "headers": ["ipb_id", "ipb_address", "ipb_timestamp", "comment_text"]}]} | null |
980401 # of fa articles | null | USE fawiki_p;
SELECT COUNT(page_id)
FROM page
WHERE page_is_redirect = 0
AND page_namespace = 0; | {"runningtime": "0.84", "resultsets": [{"rowcount": 84, "headers": ["Tables_in_wikidatawiki_p"]}, {"rowcount": 10, "headers": ["slot_revision_id", "slot_role_id", "slot_content_id", "slot_origin"]}]} | null |
980401 mp1 # of redirected links to DAB pages (pages) | null | USE fawiki_p;
SELECT COUNT(pl_title)
FROM pagelinks
LEFT JOIN page ON pl_namespace = page_namespace AND pl_title = page_title
LEFT JOIN redirect ON page_id = rd_from
WHERE page_is_redirect = 1
AND page_namespace = 0
AND rd_namespace = 0
AND pl_from IN (
SELECT page_id
FROM page
WHERE page_is_redirect=0
AND ... | {"runningtime": "0.40", "resultsets": [{"rowcount": 84, "headers": ["Tables_in_wikidatawiki_p"]}]} | null |
980401 mp1 # of DAB pages | null | USE fawiki_p;
SELECT COUNT(page_title)
FROM page
WHERE page_id IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'); | {"runningtime": "0.67", "resultsets": [{"rowcount": 10, "headers": ["row_id", "pid1", "qid1", "pid2", "count", "probability", "context"]}, {"rowcount": 84, "headers": ["Tables_in_wikidatawiki_p"]}]} | null |
cawikibooks_p.user | null | select user_editcount, user_name
from cawikibooks_p.user
where user_editcount >= 500
order by user_editcount desc | {"runningtime": "0.23", "resultsets": [{"rowcount": 10, "headers": ["actor_id", "actor_user", "actor_name"]}]} | null |
owp2.2 fa templates containing links to orphan articles + articles (for AWB) | null | USE fawiki_p;
SELECT p1.page_title Article, p2.page_title Template#, COUNT(p2.page_title)
#SELECT concat('# {{الگوب|',p2.page_title,'}}') Template, COUNT(p2.page_title) count
FROM page AS p1 JOIN pagelinks ON pl_title = p1.page_title JOIN page AS p2 ON pl_from = p2.page_id
WHERE pl_from_namespace = 10
AND pl_namespace... | {"connection_id": 252031171} | null |
Revisions on my talk pages by day | null | use fawiki_p;
SELECT
LEFT(rev_timestamp, 8) AS rev_date,
COUNT(*) AS freq
FROM page
JOIN revision
ON rev_page = page_id
AND page_namespace = 3
AND (
page_title LIKE 'Huji/%'
OR page_title = 'Huji'
)
AND rev_timestamp > '20190101000000'
GROUP BY rev_date
ORDER BY rev_date
| {"runningtime": "1502.15", "resultsets": [{"rowcount": 35, "headers": ["wikitext"]}]} | null |
........... | null | null | {"runningtime": "0.35", "resultsets": [{"rowcount": 85, "headers": ["Artikel", "www-Rotlink"]}]} | null |
Which user's talk pages are most edited by non-bots in svwiki? | null | use svwiki_p;
SELECT
user_name,
SUM(freq) AS total_edits
FROM
(
SELECT
page_title,
CASE
WHEN LOCATE('/', page_title) > 0 THEN LEFT(page_title, LOCATE('/', page_title) - 1)
ELSE page_title
END AS user_name,
freq
FROM
(
SELECT
page_title,
COUNT(*) freq
FROM page
... | {"runningtime": "0.62", "resultsets": [{"rowcount": 77, "headers": ["Artikel", "www-Rotlink"]}]} | null |
Which user's talk pages are most edited in fawiki? | null | use fawiki_p;
SELECT
user_name,
SUM(freq) AS total_edits
FROM
(
SELECT
page_title,
CASE
WHEN LOCATE('/', page_title) > 0 THEN LEFT(page_title, LOCATE('/', page_title) - 1)
ELSE page_title
END AS user_name,
freq
FROM
(
SELECT
page_title,
COUNT(*) freq
FROM page
... | {"runningtime": "11.88", "resultsets": [{"rowcount": 47, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 10, "headers": ["linter_cat", "count(*)"]}, {"rowcount": 16, "headers": ["page_namespace", "count(*)"]}]} | null |
Which user's talk pages are most edited in rowiki? | null | use rowiki_p;
SELECT
user_name,
SUM(freq) AS total_edits
FROM
(
SELECT
page_title,
CASE
WHEN LOCATE('/', page_title) > 0 THEN LEFT(page_title, LOCATE('/', page_title) - 1)
ELSE page_title
END AS user_name,
freq
FROM
(
SELECT
page_title,
COUNT(*) freq
FROM page
... | {"runningtime": "0.10", "resultsets": [{"rowcount": 1, "headers": ["Artikel", "www-Rotlink"]}]} | null |
Wikimedia Commons media with Romanian 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": 258043156} | null |
Which user's talk pages are most edited by non-bots in fawiki? | null | use kowiki_p;
SELECT
user_name,
SUM(freq) AS total_edits
FROM
(
SELECT
page_title,
CASE
WHEN LOCATE('/', page_title) > 0 THEN LEFT(page_title, LOCATE('/', page_title) - 1)
ELSE page_title
END AS user_name,
freq
FROM
(
SELECT
page_title,
COUNT(*) freq
FROM page
... | {"connection_id": 258290666} | null |
Which user's talk pages are most edited by non-bots in fawiki? | null | use ukwiki_p;
SELECT
user_name,
SUM(freq) AS total_edits
FROM
(
SELECT
page_title,
CASE
WHEN LOCATE('/', page_title) > 0 THEN LEFT(page_title, LOCATE('/', page_title) - 1)
ELSE page_title
END AS user_name,
freq
FROM
(
SELECT
page_title,
COUNT(*) freq
FROM page
... | {"connection_id": 259045533} | null |
tmplp1 Templates linking to a specific article | null | USE fawiki_p;
SELECT page_title template, pl_title article
FROM pagelinks JOIN page ON page_id = pl_from
WHERE pl_from_namespace = 10
AND pl_namespace = 0
AND pl_title = "نان" | {"runningtime": "411.69", "resultsets": [{"rowcount": 450, "headers": ["page_title", "pl_title"]}]} | null |
tmplp3 Articles transcluding a specific template | null | USE fawiki_p;
SELECT page_title article, tl_title template
FROM templatelinks JOIN page ON tl_from = page_id
WHERE tl_namespace = 10
AND tl_from_namespace = 0
AND tl_title = "نان" | {"runningtime": "682.15", "resultsets": [{"rowcount": 29, "headers": ["page_title", "rev_timestamp", "COUNT(page_title)"]}]} | null |
tmplp4 Article transcluds a template, template has no link to the article | either remove template from the article or add article to the template | USE fawiki_p;
SELECT par.page_title article, tl_title template
FROM templatelinks JOIN page AS par ON tl_from = par.page_id
WHERE tl_namespace = 10
AND tl_from_namespace = 0
AND tl_title = "نان"
AND par.page_title NOT IN (
SELECT pl_title
FROM pagelinks JOIN page AS ptl ON ptl.page_id = pl_from
WHERE pl_from_na... | {"runningtime": "34.74", "resultsets": [{"rowcount": 591, "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": "48.72", "resultsets": [{"rowcount": 41, "headers": ["CONCAT('[[Kullan\u0131c\u0131:',user_name,'|',user_name,']]')", "COUNT(*)"]}]} | null |
# | null | null | {"runningtime": "0.13", "resultsets": [{"rowcount": 10, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
Wikimedia Commons media with Czech description needing categories | null | SELECT CONCAT('*[[:File:', page_title, ']]') AS wikitext FROM commonswiki_p.page JOIN commonswiki_p.categorylinks ON cl_from = page_id JOIN commonswiki_p.templatelinks ON tl_from = page_id WHERE page_namespace = 6 AND cl_to IN (SELECT page_title FROM commonswiki_p.categorylinks JOIN commonswiki_p.page ON cl_from = page... | {"runningtime": "24.68", "resultsets": [{"rowcount": 809, "headers": ["Page title", "cl_to"]}]} | null |
Random sample of 20k edits (GL Wikipedia) | null | USE glwiki_p;
SELECT rev_id FROM revision WHERE rev_timestamp BETWEEN "20180624" AND "20190624" ORDER BY RAND() LIMIT 60000; | {"runningtime": "13.34", "resultsets": [{"rowcount": 133, "headers": ["Page title", "R", "Categories (of primary 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... | {"connection_id": 267573234} | null |
الملفات التي تحتوي تغييرات في الملفات أو القوالب | null | use arwiki_p;
select concat("ملف:",page_title) from flaggedpages
inner join page
on page_id = fp_page_id
where page_namespace = 6
and page_is_redirect = 0
and fp_reviewed = 0
and page_title in (select il_to from imagelinks where il_to = page_title)
and fp_pending_since is null; | {"runningtime": "0.38", "resultsets": [{"rowcount": 16, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
القوالب التي تحتوي تغييرات في الملفات أو القوالب | null | use arwiki_p;
select concat("قالب:",page_title) from flaggedpages
inner join page
on page_id = fp_page_id
where page_namespace = 10
and page_is_redirect = 0
and fp_reviewed = 0
and page_title in (select tl_title from templatelinks where tl_title = page_title and tl_from_namespace = 0 and tl_namespace = 10)
and fp_pen... | {"runningtime": "0.60", "resultsets": [{"rowcount": 15, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
المقالات التي تحتوي تغييرات في الملفات أو القوالب | null | use arwiki_p;
select concat(page_title) from flaggedpages
inner join page
on page_id = fp_page_id
where page_namespace = 0
and page_is_redirect = 0
and fp_reviewed = 0
and fp_pending_since is null; | {"runningtime": "0.36", "resultsets": [{"rowcount": 15, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
Total count of AfC reviews | Last run 24 Feb '19
This query counts the number of AfC submissions reviewed during the past 30 days by reading the edit comment associated with each review. Includes drafts in the "Draft" namespace and "User" space.
You can re-run this query and get new data at any time by following these steps:
1. log into quarry.w... | use enwiki_p;
select count(rc_id) as edits, user_name
from recentchanges_userindex
left join user on rc_user = user_id
inner join comment c on rc_comment_id = c.comment_id
where (rc_namespace = 118 or rc_namespace = 2) and (comment_text like "Declining submission:%" or comment_text like "%Publishing accepted%")
gr... | {"runningtime": "1.03", "resultsets": [{"rowcount": 162, "headers": ["user_id", "user_name", "num_edits"]}]} | null |
Статистика удалений | null | USE ruwiki_p;
SELECT actor_name, total, article, file, template, category, userpage, talk
FROM (SELECT COUNT(log_id) AS Total,
SUM(log_namespace = 0) AS article,
SUM(log_namespace = 6) AS file,
SUM(log_namespace = 10) AS template,
SUM(log_namespace = 14) AS category,
... | {"runningtime": "55.59", "resultsets": [{"rowcount": 8, "headers": ["page_title"]}]} | null |
المستخدمون العرب في ويكي بيانات | null | use wikidatawiki_p;
select user_name from revision
inner join user
on rev_actor = user_id
where user_name in (select arwiki_p.user.user_name from arwiki_p.user inner join arwiki_p.user_groups
on arwiki_p.user.user_id = arwiki_p.user_groups.ug_user
where arwiki_p.user_groups.u... | {"runningtime": "0.88", "resultsets": [{"rowcount": 138, "headers": ["\u9801\u9762", "\u4fdd\u8b77\u65e5\u8a8c", "\u671f\u9650"]}]} | null |
Number of deleted revisions | null | SELECT count(rev_id) FROM revision
WHERE rev_deleted > 0; | {"runningtime": "824.47", "resultsets": [{"rowcount": 10000, "headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"]}]} | null |
Number of revisions (by id) | null | SELECT MAX(rev_id) - MIN(rev_id) FROM revision; | {"runningtime": "578.54", "resultsets": [{"rowcount": 10000, "headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"]}]} | null |
Number of revisions | null | # 1M took 30 seconds
SELECT count(*) FROM revision
WHERE rev_id < 10000000; | {"runningtime": "583.60", "resultsets": [{"rowcount": 10000, "headers": ["rev_id", "rev_page", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id"]}]} | null |
Skin usage by cohort | null | USE enwiki_p;
SELECT count(user_id) AS number,
FROM enwiki_p.user_properties
INNER JOIN enwiki_p.user ON up_user=user_id
WHERE up_property = 'skin'
GROUP BY skin, | {"runningtime": "8.39", "resultsets": [{"rowcount": 1769, "headers": ["eu_entity_id"]}]} | null |
Skin usage by cohort | Not working yet! | USE enwiki_p;
SELECT count(user_id) AS number,
up_value AS skin
FROM user_properties
INNER JOIN user ON up_user=user_id
WHERE up_property = 'skin' AND user_name = 'KSFT'; | {"runningtime": "512.85", "resultsets": [{"rowcount": 96110, "headers": ["rev_user", "edits"]}]} | null |
Wikidata - tables - wb_terms - describe table, sample data | null | use wikidatawiki_p;
SELECT CURRENT_DATE;
DESCRIBE wb_terms;
SHOW INDEXES FROM wb_terms; | {"connection_id": 234921813} | null |
Sample revisions of Objectionable Content | null | # https://en.wikipedia.org/wiki/Category:Wikipedia_objectionable_content
# https://www.mediawiki.org/wiki/Manual:Categorylinks_table
# Count executed in 1297.57 seconds as of Tue Jun 25 2019, count: 276,607
SELECT revision.rev_id, revision.rev_comment_id, revision.rev_timestamp,
revision.rev_minor_edit, revision.... | {"runningtime": "8.63", "resultsets": [{"rowcount": 584, "headers": ["page_title"]}]} | null |
Earliest undo | null | SELECT MIN(rev_id), MIN(rev_timestamp) FROM revision
JOIN change_tag ON change_tag.ct_rev_id = revision.rev_id
JOIN change_tag_def ON change_tag_def.ctd_id = change_tag.ct_tag_id
WHERE change_tag_def.ctd_name = "mw-undo"
AND rev_id >= 818668006 AND rev_id < 820000000; | {"runningtime": "0.12", "resultsets": [{"rowcount": 1, "headers": ["1"]}]} | null |
к-сть користувачів emacs та vim | Кількість користувачів Emacs та Vim у Вікіпедії | SELECT (SELECT cat_pages FROM ukwiki_p.category WHERE cat_title = 'Користувачі_GNU_Emacs') AS emacs,
(SELECT cat_pages FROM ukwiki_p.category WHERE cat_title = 'Вікіпедія:Користувачі_Vim') AS vim; | {"runningtime": "14.59", "resultsets": [{"rowcount": 584, "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.13", "resultsets": [{"rowcount": 1, "headers": ["gu_id", "gu_name", "gu_enabled", "gu_enabled_method", "gu_home_db", "gu_email", "gu_email_authenticated", "gu_salt", "gu_password", "gu_locked", "gu_hidden", "gu_registration", "gu_password_reset_key", "gu_password_reset_expiration", "gu_auth_token"]}]... | null |
Most demanded missing Wikidata labels in arwiki | null | USE arwiki_p;
SELECT eu_entity_id, en.term_text, COUNT(*)
FROM (SELECT * FROM wbc_entity_usage WHERE eu_aspect = "L.ar") AS eusage
JOIN wikidatawiki_p.page
ON page_namespace = 0 AND page_title = eu_entity_id
JOIN wikidatawiki_p.wb_entity_per_page
ON epp_entity_type = "item" AND epp_page_id = page_id
LEFT JOIN (... | {"runningtime": "295.02", "resultsets": [{"rowcount": 28, "headers": ["page_title"]}]} | null |
zhwiki template name contains "stub" but not "-stub" | null | USE zhwiki_p;
SELECT page_id, page_title
FROM page
WHERE page_title REGEXP "[^-][Ss]tub$"
AND page_namespace = 10;
SELECT page_id, page_title
FROM page
WHERE page_title REGEXP "-[Ss]tub$"
AND page_namespace = 10; | {"connection_id": 279510446} | null |
Sample from tagged revisions | null | # Count failed
# Adding "AND RAND() < 0.001" changes from 0.26 secs to 342 secs
SELECT revision.rev_id, revision.rev_comment_id, revision.rev_timestamp,
revision.rev_minor_edit, revision.rev_parent_id, revision.rev_len, page.*, change_tag.*, change_tag_def.* FROM revision
JOIN page on revision.rev_page = page.page... | {"runningtime": "0.58", "resultsets": [{"rowcount": 131, "headers": ["Editors", "Articles"]}]} | null |
Sample revisions of Controversial Topics | null | # https://en.wikipedia.org/wiki/Category:Wikipedia_objectionable_content
# https://www.mediawiki.org/wiki/Manual:Categorylinks_table
# took 497 seconds for 10M rev ids
SELECT revision.rev_id, revision.rev_comment_id, revision.rev_timestamp,
revision.rev_minor_edit, revision.rev_parent_id, revision.rev_len, page.* ... | {"connection_id": 240324895} | null |
Skin count | null | SELECT up_value, COUNT(*)
FROM user_properties
WHERE up_property='skin'
GROUP BY up_value; | {"runningtime": "17.71", "resultsets": [{"rowcount": 0, "headers": ["gt_lat", "gt_lon", "gt_page_id", "gt_name", "title", "gt_country", "gt_region"]}, {"rowcount": 6, "headers": ["gt_lat", "gt_lon", "gt_primary", "gt_page_id", "gt_name", "title", "gt_country", "gt_region"]}]} | 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": "5.28", "resultsets": [{"rowcount": 1, "headers": ["ss_total_edits"]}, {"rowcount": 1, "headers": ["SUM(user_editcount)"]}, {"rowcount": 789, "headers": ["userid", "name", "editcount", "admin", "bot"]}]} | null |
Users with the bot flag | null | USE enwiki_p;
SELECT user_name FROM user
LEFT JOIN user_groups ON ug_user = user_id
-- LEFT JOIN actor ON actor_user = user_id
-- LEFT JOIN revision ON rev_actor = actor_id
WHERE
ug_group = 'bot'
-- GROUP BY user_id
-- LIMIT 100 | {"runningtime": "27.24", "resultsets": [{"rowcount": 5793, "headers": ["cl_from", "page_title", "page_namespace", "page_id"]}]} | null |
futbolisti pēc navbox līgas | Premier League football club squad templates
| select now();
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where p.page_namespace=0 and p.page_title in (
select distinct pl_title
from pagelinks pl
join categorylinks cl on cl.cl_from=pl.pl_from and cl.cl_to="La_Liga_football_club_squad_templates" and pl.pl_from_namespace=... | {"runningtime": "0.19", "resultsets": [{"rowcount": 19, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}]} | null |
Pre-2009 enwiki indef non-range IP blocks | In preparation for a bot run to unblock them all. | SELECT ipb_id, ipb_address, ipb_timestamp, comment_text
FROM ipblocks_ipindex LEFT JOIN `comment` ON(ipb_reason_id = comment_id)
WHERE ipb_user = 0 AND ipb_timestamp < '20090101000000' AND ipb_expiry = 'infinity'
AND ipb_range_start = ipb_range_end AND (IS_IPV4(ipb_address) OR IS_IPV6(ipb_address))
ORDER BY ipb_id... | {"runningtime": "0.17", "resultsets": [{"rowcount": 1, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
validates pages for a book | 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.25", "resultsets": [{"rowcount": 13, "headers": ["ug_user", "ug_group", "ug_expiry", "user_name"]}]} | null |
Proof-reader pages for a book | 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.37", "resultsets": [{"rowcount": 88, "headers": ["page_title", "rd_namespace", "rd_title"]}]} | null |
Proof-reader pages for a book | 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": "2.00", "resultsets": [{"rowcount": 100, "headers": ["page_title", "rd_namespace", "rd_title"]}]} | null |
validates pages for a book | 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.26", "resultsets": [{"rowcount": 0, "headers": ["user_id", "user_name", "user_registration", "user_editcount"]}]} | null |
Proof-reader pages for a book | 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": "44.94", "resultsets": [{"rowcount": 8, "headers": ["user_id", "user_name", "user_registration", "user_editcount"]}]} | null |
validates pages for a book | 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": "4.40", "resultsets": [{"rowcount": 50, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 10, "headers": ["linter_cat", "count(*)"]}, {"rowcount": 16, "headers": ["page_namespace", "count(*)"]}]} | null |
validates pages for a book | 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": "3.59", "resultsets": [{"rowcount": 48, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 10, "headers": ["linter_cat", "count(*)"]}, {"rowcount": 16, "headers": ["page_namespace", "count(*)"]}]} | null |
validates pages for a book | 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.16", "resultsets": [{"rowcount": 8, "headers": ["model_id", "model_name"]}]} | null |
Proof-reader pages for a book | 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.50", "resultsets": [{"rowcount": 100, "headers": ["content_id", "content_size", "content_sha1", "content_model", "content_address"]}]} | null |
Proof-reader pages for a book | 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": "6.73", "resultsets": [{"rowcount": 100, "headers": ["rc_namespace", "rc_title", "rc_cur_id", "log_types", "log_actions", "types", "timestamps", "users", "diffs", "prev_diffs"]}]} | null |
Proof-reader pages for a book | 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": "4.00", "resultsets": [{"rowcount": 100, "headers": ["rc_namespace", "rc_title", "rc_cur_id", "log_types", "log_actions", "types", "timestamps", "actors", "diffs", "prev_diffs"]}]} | null |
validates pages for a book | 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.58", "resultsets": [{"rowcount": 100, "headers": ["rc_namespace", "rc_title", "rc_cur_id", "log_types", "log_actions", "types", "timestamps", "actors", "diffs", "prev_diffs"]}, {"rowcount": 1, "headers": ["FOUND_ROWS()"]}]} | null |
validates pages for a book | 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": 242815342} | null |
Site Stats | null | SELECT * FROM site_stats; | {"runningtime": "10.50", "resultsets": [{"rowcount": 1464, "headers": ["cl_from", "CONCAT('[[Talk:', pg1.page_title, ']]')", "page_namespace", "page_id"]}]} | null |
Earliest revision deletion | null | SELECT MIN(log_timestamp)
FROM logging
WHERE log_type="delete"
AND log_action="revision"
AND log_namespace IN (0, 1, 2, 3); | {"runningtime": "0.47", "resultsets": [{"rowcount": 100, "headers": ["img_name", "img_size", "img_width", "img_height", "img_metadata", "img_bits", "img_media_type", "img_major_mime", "img_minor_mime", "img_description_id", "img_user", "img_user_text", "img_actor", "img_timestamp", "img_sha1"]}]} | null |
Number of Reversions | null | SELECT COUNT(*) FROM revision
JOIN page on revision.rev_page = page.page_id
AND page_namespace IN (0, 1, 2, 3)
AND rev_timestamp >= 20180104220317
AND rev_timestamp <= 20190626000000; | {"runningtime": "13.24", "resultsets": [{"rowcount": 575, "headers": ["page_title"]}]} | null |
Sample revisions by editing protection level | null | SELECT *
FROM page_restrictions
WHERE pr_expiry > 0
AND pr_level = 'sysop'
ORDER BY pr_expiry ASC
LIMIT 50;
#SELECT DISTINCT(pr_level) FROM page_restrictions;
#SELECT DISTINCT(pr_type) FROM page_restrictions; | {"runningtime": "0.38", "resultsets": [{"rowcount": 85, "headers": ["Tables_in_fawiki_p"]}]} | null |
980401 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.... | {"connection_id": 286537985} | null |
تحويلات مكسورة 2 | null | use arwiki_p;
select p1.page_title, pl_title
from page p1
inner join pagelinks
on pl_from=p1.page_id
where p1.page_is_redirect= 1
and p1.page_namespace = 0
and pl_from_namespace = 0
and pl_namespace = 0
and pl_title not in (select page_title from page where page_title = pl_title and pl_from_namespace = page_namespace)
... | {"runningtime": "1495.99", "resultsets": [{"rowcount": 3550, "headers": ["page_title", "cl_to"]}]} | null |
IP talk pages (elwiki) | null | USE elwiki_p;
SELECT
concat('[[Συζήτηση χρήστη:',page_title,']]')
FROM page
WHERE page_namespace = 3
AND page_title RLIKE '^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'
| {"runningtime": "242.94", "resultsets": [{"rowcount": 3, "headers": ["rev_user", "COUNT(rev_id)"]}]} | null |
Atelier Wikiquote Côte d'Ivoire (2019) | null | SET @participants = ("Yasield,Tways2017,Abiba Pauline,Kod B,Peny99, Petrus yh,Aya.ndja,Koffi.noel,Lamagniguitoure,Aristidek5maya");
SET @datestart = 20190305000001;
SET @dateend = 20200305235959;
SELECT a.actor_name AS Contributors,
COUNT(p.page_title) AS Edits,
COUNT(DISTINCT p.page_title) AS Articles
FROM
... | {"runningtime": "161.97", "resultsets": [{"rowcount": 3, "headers": ["rev_user", "COUNT(rev_id)", "COUNT(IF(rev_timestamp>'20180529000000',0,1))", "MIN(rev_timestamp)"]}]} | null |
بوت الصيانة - مقالات بحاجة لإضافة قالب كومنز | null | use arwiki_p;
select page_title from
page
inner join page_props
on pp_page = page_id
where page_id not in (select arwiki_p.categorylinks.cl_from from arwiki_p.categorylinks where arwiki_p.categorylinks.cl_from = arwiki_p.page.page_id and arwiki_p.categorylinks.cl_to like "%كومنز%")
and pp_propname like "%wikibase_ite... | {"runningtime": "178.40", "resultsets": [{"rowcount": 571, "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.18", "resultsets": [{"rowcount": 10, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}]} | null |
STEM Girls Updated | List of articles created for STEM Girls context (WMUA), with the user who created them. | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
created,
total_len,
articles
FROM
(
SELECT
CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as... | {"runningtime": "0.54", "resultsets": [{"rowcount": 9, "headers": ["Contributors", "Edits", "Articles"]}]} | null |
Files with an extra space | ...before the extension | USE commonswiki_p;
#SELECT CONCAT('[[:File:', REPLACE(img_name, '_', ' '), ']]') AS FILE FROM image
SELECT img_name FROM image
WHERE img_name LIKE '%^_.jpg' ESCAPE '^'
AND CONCAT(SUBSTRING(img_name, LENGTH(img_name) - 5), '.jpg') NOT IN (SELECT img_name FROM image)
LIMIT 10000 | {"runningtime": "11.04", "resultsets": [{"rowcount": 1, "headers": ["count(rc_id)"]}]} | null |
মোট সম্পাদনার সংখ্যা | ০২-০৯-২০১৮ | 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": "11.14", "resultsets": [{"rowcount": 1, "headers": ["count(rc_id)"]}]} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ১৫-০২-২০১৯ অনুসারে | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",user_name,"|",user_name,"]]") AS user_name,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM user INNER JOIN revision
ON revision.rev_user = user.user_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev_timestamp <... | {"runningtime": "0.50", "resultsets": [{"rowcount": 100, "headers": ["rc_log_action"]}]} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ১৫-০২-২০১৯ অনুসারে | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",user_name,"|",user_name,"]]") AS user_name,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM user INNER JOIN revision
ON revision.rev_user = user.user_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev_timestamp <... | {"runningtime": "0.43", "resultsets": [{"rowcount": 100, "headers": ["rc_log_action"]}]} | null |
Redirect articles in Fawiki | null | use fawiki_p;
SELECT COUNT(*)
FROM page
WHERE page_is_redirect = 1
AND page_namespace = 0; | {"connection_id": 291171803} | null |
Hewiki fair use unused pictures 1 | null | use hewiki_p; select concat('# [[:קובץ:', replace(page_title, "_", " "), ']]') as Suspicious_file_title from page as p1 join image on exists
(select * from categorylinks as cl1 where cl_from = page_id and (cl_to = "ויקיפדיה_-_תמונות_שימוש_הוגן" or exists (select * from page as
p2 where p2.page_namespace = 14 and p2.pag... | {"runningtime": "0.13", "resultsets": [{"rowcount": 20, "headers": ["ptrt_tag_id", "ptrt_tag_name", "ptrt_tag_desc"]}]} | null |
روابط شقيقة | null | use arwiki_p;
select (page_title) from
page
inner join page_props
on pp_page = page_id
where page_id not in (select tl_from from templatelinks where tl_from = page_id and tl_from_namespace = 0 and tl_title like "%كومنز%")
and page_id not in (select tl_from from templatelinks where tl_from = page_id and tl_from_namesp... | {"runningtime": "0.24", "resultsets": [{"rowcount": 20, "headers": ["ptrt_tag_id", "ptrt_tag_name", "ptrt_tag_desc"]}]} | null |
قوالب بذور بحاجة لربط مع المقابل الإنجليزي | null | use arwiki_p;
select concat("قالب:بذرة_",page_title), concat("template:",ll_title, "-stub")
from page
inner join langlinks
on ll_from = page_id
where page_namespace = 0
and page_is_redirect = 0
and ll_lang = "en"
and concat("بذرة_",page_title) in (select page_title from page where page_namespace = 10 and page_is_redire... | {"runningtime": "0.09", "resultsets": [{"rowcount": 0, "headers": ["Page", "Redlink"]}]} | null |
فارغ | null | null | {"runningtime": "0.17", "resultsets": [{"rowcount": 20, "headers": ["ptrt_tag_id", "ptrt_tag_name", "ptrt_tag_desc"]}]} | null |
Distribution of registration time for users with 5+ edits (enwiki) | null | SELECT SUBSTR(user_registration, 1, 6) AS registration_date, count(*) AS new_users FROM (SELECT user_id, user_registration, count(*) AS recent_edits FROM user JOIN actor ON user_id = actor_user JOIN recentchanges ON actor_id = rc_actor AND rc_timestamp > DATE_FORMAT(NOW() -INTERVAL 30 DAY, '%Y%m%d%H%i%s') GROUP BY user... | {"runningtime": "200.45", "resultsets": [{"rowcount": 0, "headers": ["CONCAT('# [[:File:', page_title, ']]')"]}]} | null |
Active editors fi >100 | null | use orwiki_p;
select t.y,t.m,count(*) from (select rev_user, rev_user_text, YEAR(rev_timestamp) y,MONTH(rev_timestamp) m, rev_timestamp, count(*) from revision where lower(CONVERT (rev_user_text USING latin1)) not like '%bot%' and rev_user !=0 group by YEAR(rev_timestamp), MONTH(rev_timestamp), rev_user having count(*)... | {"runningtime": "0.86", "resultsets": [{"rowcount": 32, "headers": ["REGEXP_SUBSTR(el_to, 'Q[0-9]*')", "P18", "CONCAT(\"\\\"\", REPLACE(page_title, \"_\", \" \"), \"\\\"\")"]}]} | null |
Overused non-free files (hywiki) | From en:Wikipedia:Database reports/Overused non-free files | USE orwiki_p;
SELECT
concat("[[:File:",REPLACE(page_title, '_', ' '),"]]"),
COUNT(*)
FROM imagelinks
JOIN (SELECT
page_id,
page_title
FROM page
JOIN categorylinks
ON cl_from = page_id
WHERE cl_to IN ("Բոլոր_ոչ_ազատ_պատկերներ", "Files with no machine-readable author",
... | {"runningtime": "11.84", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | null |
Categories with "parameter" in their title | null | SELECT page_title
FROM page
WHERE
page_namespace = 14
AND page_title LIKE '%parameter%' | {"connection_id": 349254} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.