title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
All female editors on German Wikipedia by registration date, 50+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(up_user)
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY ... | {"resultsets": [{"rowcount": 2173, "headers": ["pl_title", "counting", "ar_len", "mirada_bytes"]}], "runningtime": "30.49"} | null |
Hewiki multiwiki missing articles | null | use ruwiki_p;
select (select count(ll_lang) from langlinks
where ll_from = page_id) + 1 as "number", (select ll_title from langlinks where ll_from = page_id and ll_lang = "en") as "name"
from page
where page_namespace = 0
and (select count(ll_lang) from langlinks where ll_from = page_id) > 48
and exists (select... | {"resultsets": [{"rowcount": 117, "headers": ["CONCAT('# [[',page.page_title,']]')"]}], "runningtime": "74.54"} | null |
redirects | null | USE arwiki_p;
SELECT
article.page_title,
COUNT(*) AS edits
FROM revision
INNER JOIN page article ON
article.page_id = rev_page AND
article.page_namespace = 0 AND
article.page_is_redirect = 1
GROUP BY article.page_id
ORDER BY edits DESC
LIMIT 1000; | {"resultsets": [{"rowcount": 50, "headers": ["Lp", "U\u017cytkownik", "Liczba edycji"]}], "runningtime": "6.58"} | null |
Список користувачів за кількістю започаткованих статей | null | USE ukwiki_p;
SELECT @rownum := @rownum + 1 AS rank,
actor_name,
created,
percents
FROM
(
SELECT
CONCAT('[[Користувач:', actor_name, '|]]') as actor_name,
COUNT(1) AS created,
CONCAT(
ROUND(
COUNT(1) /
(SELECT COUNT(1)
FROM page
... | {"resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"]}], "runningtime": "0.10"} | null |
Список користувачів за кількістю започаткованих статей | null | USE ukwiki_p;
SELECT @rownum := @rownum + 1 AS rank,
actor_name,
created,
percents
FROM
(
SELECT
CONCAT('[[Користувач:', actor_name, '|]]') as actor_name,
COUNT(1) AS created,
CONCAT(
ROUND(
COUNT(1) /
(SELECT COUNT(1)
FROM page
... | {"resultsets": [{"rowcount": 10, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "comment_id", "comment_hash", "comment_text", "comment_data"]}], "runningtime": "0.36"} | null |
Sandbox | null | use hiwikiversity_p;
SELECT *
from user
limit 10; | {"resultsets": [{"rowcount": 97, "headers": ["reviews", "actor_name", "actor_id", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}], "runningtime": "21.39"} | null |
KCV sandbox 2 | null | USE commonswiki_p;
SELECT * FROM revision
INNER JOIN actor ON rev_actor = actor_id
WHERE rev_timestamp > "2019093000000" AND actor_name = "Jayprakash12345"
LIMIT 10 | {"resultsets": [{"rowcount": 10176, "headers": ["pl_title", "ar_len", "mirada_bytes"]}], "runningtime": "54.50"} | null |
Longest titles on mlwiki | making char_length work | USE mlwiki_p;
SELECT page_title, page_is_redirect, CHAR_LENGTH(CONVERT(page_title using utf8mb4)), LENGTH(page_title)
FROM page
WHERE page_namespace = 0
ORDER BY CHAR_LENGTH(CONVERT(page_title using utf8mb4)) DESC
LIMIT 100; | {"resultsets": [{"rowcount": 1306, "headers": ["page_title"]}], "runningtime": "3.72"} | null |
All titles with ZWJ charactes in MLWIKI | null | use mlwiki_p; SELECT * FROM page WHERE page_Title like '%%';
| {"resultsets": [{"rowcount": 7, "headers": ["cl_to"]}], "runningtime": "0.10"} | 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... | {"resultsets": [{"rowcount": 80, "headers": ["File name", "Date", "Size", "Uploader's name"]}], "runningtime": "936.40"} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM actor INNER JOIN revision
ON revision.rev_actor = actor.actor_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev... | {"resultsets": [{"rowcount": 2972, "headers": ["rev_id", "rev_timestamp", "comment_text"]}], "runningtime": "50.71"} | null |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | USE bnwiki_p;
SELECT
CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") AS ব্যবহারকারী_নাম,
COUNT(rev_id) AS মোট_নিবন্ধ
FROM actor INNER JOIN revision
ON revision.rev_actor = actor.actor_id
JOIN page
ON page.page_id = revision.rev_page
WHERE page_is_redirect = 0
AND rev_parent_id = 0
AND page_namespace = 0
AND rev... | {"resultsets": [{"rowcount": 11, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 4, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 7, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}], "runningtime": "0.58"} | null |
All female editors on German Wikipedia by registration date, 50+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user.user_name)
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GR... | {"resultsets": [{"rowcount": 3, "headers": ["term_type", "term_language", "terms"]}], "runningtime": "258.85"} | null |
Counting top 10 thankers in 2020 (Bengali Wikisource) | null | SELECT actor_name AS User,
COUNT(log_action) AS Actions
FROM bnwikisource_p.logging L JOIN bnwikisource_p.actor A ON A.actor_id = L.log_actor
WHERE log_action="thank"
AND LEFT(log_timestamp,4)="2020"
GROUP BY actor_id
ORDER BY COUNT(log_action) DESC
LIMIT 10; | {"resultsets": [], "runningtime": "0.26"} | null |
Tewiki: Deleted pages' count, creator-wise | null | use tewiki_p;
SELECT
actor.actor_name,
COUNT(actor.actor_name)
FROM
actor,
archive
WHERE
archive.ar_parent_id = 0 AND
actor.actor_id = archive.ar_actor and
ar_namespace = 0
GROUP BY ACTOR_NAME
HAVING COUNT(actor.actor_name) >= 2
order by COUNT(actor.actor_name) DESC
| {"resultsets": [{"rowcount": 207, "headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"]}, {"rowcount": 4, "headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "page_namespace", "page_title"]}], "runningtim... | null |
All female editors on German Wikipedia by registration date, 5+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(up_user)
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY ... | {"resultsets": [{"rowcount": 2552, "headers": ["LOWER(LEFT(img_name, 2))"]}], "runningtime": "35.18"} | null |
All editors on German Wikipedia by registration date, 5+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY edit_username
) AS last_edits
O... | {"resultsets": [{"rowcount": 6257, "headers": ["page_id", "page_title", "img_sha1"]}], "runningtime": "37.11"} | null |
All editors on German Wikipedia by registration date, 5+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user_name)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY edit_username
) AS last_edits
ON user_n... | {"resultsets": [{"rowcount": 17464, "headers": ["page_title"]}], "runningtime": "149.90"} | null |
[enwn] Number of published articles | null | USE enwikinews_p;
SELECT COUNT(DISTINCT p.page_title, published.cl_timestamp)
FROM page p
JOIN categorylinks category ON p.page_id = category.cl_from
JOIN categorylinks published ON p.page_id = published.cl_from
WHERE p.page_namespace = 0
AND published.cl_to = "Published"
ORDER BY published.cl_timestamp DESC
; | {"resultsets": [{"rowcount": 16523, "headers": ["LEFT(\n img_name,\n CASE\n WHEN img_name LIKE \"The_%\" THEN 5\n WHEN img_name RLIKE \"(Ma|Co|St|Lo|Ca|Ch|Sa|Ba)\" THEN 3\n ELSE 2\n END\n )", "COUNT(*)"]}], "runningtime": "51.78"} | null |
All editors on German Wikipedia by registration date, 5+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY edit_username
) AS last_edits
O... | {"resultsets": [{"rowcount": 3, "headers": ["Title", "user", "comment"]}], "runningtime": "33.20"} | null |
All female editors on German Wikipedia by registration date, 1000+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT
up_user,
user.user_name,
user.user_editcount
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "2020110... | {"resultsets": [{"rowcount": 5723, "headers": ["page_id", "page_title"]}], "runningtime": "15.95"} | null |
All female editors on German Wikipedia by registration date, 1000+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user.user_name)
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GR... | {"resultsets": [{"rowcount": 310, "headers": ["rev_timestamp", "page_name", "cmnt"]}], "runningtime": "3.48"} | null |
All editors on German Wikipedia by registration date, 1000+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user_name)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY edit_username
) AS last_edits
ON user_n... | {"resultsets": [{"rowcount": 844, "headers": ["line"]}], "runningtime": "34.33"} | null |
Potentielle Abkürzungen nicht in Kategorie | Lemma wie in Kategorie:Abkürzung_(Deutsch) von de.wiktionary, bei uns ist die Seite keine Weiterleitung und nicht in Kategorie Abkürzung | USE dewiki_p;
SELECT CONCAT('[[', page_title, ']]')
FROM page
WHERE page_namespace = 0
AND page_title IN (SELECT dewiktionary_p.page.page_title
FROM dewiktionary_p.page, dewiktionary_p.categorylinks
WHERE dewiktionary_p.page.page_id = dewiktionary_p.categorylinks.cl_... | {"connection_id": 735159654} | null |
Potentielle Abkürzungen nicht in Kategorie | Lemma besteht nur aus Großbuchstaben und ev. Zahlen und ist nicht in Kategorie Abkürzung. | USE dewiki_p;
SELECT CONCAT('[[', page_title, ']]')
FROM page
WHERE page_namespace = 0
AND page_title REGEXP "^[A-Z][A-Z0-9]*$"
AND NOT EXISTS (SELECT 1
FROM categorylinks
WHERE cl_from = page_id
AND cl_to = 'Abkürzung'
)
| {"resultsets": [{"rowcount": 84, "headers": ["ips_row_id", "ips_item_id", "ips_site_id", "ips_site_page"]}], "runningtime": "250.46"} | null |
All female editors on German Wikipedia by registration date, 5+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(up_user)
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY ... | {"resultsets": [{"rowcount": 3, "headers": ["page_title", "rev_timestamp"]}], "runningtime": "209.65"} | null |
All female editors on German Wikipedia by registration date, 1+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user.user_name)
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GR... | {"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_actor", "img_timestamp", "img_sha1"]}], "runningtime": "10.49"} | null |
All editors on German Wikipedia by registration date, 1+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY edit_username
) AS last_edits
O... | {"resultsets": [{"rowcount": 10, "headers": ["page_title"]}], "runningtime": "0.18"} | null |
All editors on German Wikipedia by registration date, 1+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user_name)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY edit_username
) AS last_edits
ON user_n... | {"resultsets": [{"rowcount": 62611, "headers": ["page", "Date"]}], "runningtime": "445.84"} | null |
All female editors on German Wikipedia by registration date, general | null | USE dewiki_p;
SELECT COUNT(user_name)
FROM user | {"resultsets": [{"rowcount": 4, "headers": ["Id", "User", "Host", "db", "Command", "Time", "State", "Info", "Progress"]}], "runningtime": "0.28"} | null |
All female editors on German Wikipedia by registration date, 5+ edits 2020-11-01+ | null | USE dewiki_p;
SELECT COUNT(user_name)
FROM user
JOIN user_properties ON user.user_id = user_properties.up_user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_after
FROM revision_compat
WHERE rev_timestamp > "20201001000000"
AND rev... | {"resultsets": [{"rowcount": 0, "headers": ["page_title", "pp_propname", "pp_value"]}], "runningtime": "14.05"} | null |
All female editors on German Wikipedia by registration date, general | null | USE dewiki_p;
SELECT COUNT(up_user)
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
WHERE (NOT EXISTS ( SELECT * FROM user_properties WHERE user_properties.up_user = user.user_id AND user_properties.up_property = "disablemail" ) )
AND up_value = "female" | {"resultsets": [{"rowcount": 0, "headers": ["page_title", "pp_propname", "pp_value"]}], "runningtime": "6.58"} | null |
All editors on German Wikipedia by registration date, general | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
WHERE user_registration > 20200101000000
AND user_registration < 20210101000000 | {"resultsets": [{"rowcount": 0, "headers": ["page_title", "pp_propname", "pp_value"]}], "runningtime": "35.46"} | null |
All editors on German Wikipedia by registration date, 50+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20201101000000"
GROUP BY edit_username
) AS last_edits
O... | {"connection_id": 195859180} | 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; | {"connection_id": 196060490} | null |
תבניות מידע שלא משתמשות בוויקינתונים | null | USE hewiki_p;
SELECT cl_from, cl_to, page_title, cl_type
FROM categorylinks
INNER JOIN page ON cl_from=page.page_id
where cl_to like "תבניות_מידע_%" and cl_type="page" and cl_from not in (
SELECT cl_from FROM categorylinks where cl_to="תבניות_שמשתמשות_בוויקינתונים"
) | {"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)"]}], "runningtime": "0.89"} | null |
Articles without talk pages on enwiki | Number of all mainspace pages and number of mainspace pages without corresponding talk pages on the English Wikipedia. | USE plwiki_p;
-- Count of all mainspace pages
SELECT COUNT(*) FROM page WHERE page_namespace = 0 AND page_is_redirect = 0;
-- Count of mainspace pages without corresponding talk pages
SELECT COUNT(*) FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_title NOT IN (SELECT page_title FROM page WHERE pa... | {"resultsets": [{"rowcount": 0, "headers": ["CONCAT(\"# [[\",ll_title,\"]] ([[:en:\",REPLACE(page_title,\"_\",\" \"),\"|en]])\")"]}], "runningtime": "1.53"} | null |
Tewiki: Discussion started by IP on Talk: pages but not progressed beyond it | Only IP. Only one edit. | use tewiki_p;
select actor_name,concat("[[చర్చ:",page_title,"]]") from page p
join revision on rev_page = page_id
join actor on actor_id = rev_actor
where page_is_new = 1
and page_namespace=1
and page_is_redirect = 0
and actor_user is null
and page_title not in (select rd_title from redirect where rd_nam... | {"resultsets": [{"rowcount": 3, "headers": ["cl_to", "count"]}], "runningtime": "107.81"} | null |
Tewiki: Discussion started on Talk: pages but not progressed beyond the first user | Only logged in users; no IPs. Only one edit. Only one editor. The page might need attention by other users | use tewiki_p;
select actor_name,concat("[[చర్చ:",page_title,"]]"),concat(left(rev_timestamp,4),"-",substr(rev_timestamp,5,2),"-",substr(rev_timestamp,7,2)) as Edit_Date from page p
join revision on rev_page = page_id
join actor on actor_id = rev_actor
where page_is_new = 1
and page_namespace=1
-- and actor_name = "... | {"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", "actor_id", "actor_user", "actor_name"]}, {"rowcount": 121, "headers": ["rev... | null |
looking for some weird file names (commonswiki) | null | USE commonswiki_p;
SELECT page_title FROM page
WHERE page_namespace = 6
AND page_is_redirect = 0
AND (page_title LIKE "%é%" OR page_title LIKE "%è%")
LIMIT 500; | {"resultsets": [{"rowcount": 97, "headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}], "runningtime": "416.08"} | null |
Aug-Okt, all editors on German Wikipedia by registration date, 1+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20200801000000"
AND rev_timestamp < "20201101000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 4731, "headers": ["img_name", "img_sha1"]}], "runningtime": "16.80"} | null |
Aug-Okt, All editors on German Wikipedia by registration date, 5+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20200801000000"
AND rev_timestamp < "20201101000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 4000, "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"]}], "runningtime": "13.63"} | null |
Commons media with HR 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 ... | {"resultsets": [{"rowcount": 624, "headers": ["ID", "IP", "Permite editar registrado", "Permite criar conta", "Expira em", "P\u00e1gina ou dom\u00ednio?", "Alvo de bloqueio"]}], "runningtime": "2.18"} | null |
Aug-Okt, All editors on German Wikipedia by registration date, 5+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20200801000000"
AND rev_timestamp < "20201101000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 1000, "headers": ["\u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0\u0995\u09be\u09b0\u09c0_\u09a8\u09be\u09ae", "\u09ae\u09cb\u099f_\u09a8\u09bf\u09ac\u09a8\u09cd\u09a7"]}], "runningtime": "38.17"} | null |
Aug–Okt, All editors on German Wikipedia by registration date, 250+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20200801000000"
AND rev_timestamp < "20201101000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 1, "headers": ["page_title"]}], "runningtime": "0.09"} | null |
Aug–Okt, All editors on German Wikipedia by registration date, 1000+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20200801000000"
AND rev_timestamp < "20201101000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 6, "headers": ["pl_from", "pl_title"]}], "runningtime": "91.23"} | null |
WMUA-WLM-UA Photo Competition participants 2020 not active in WLM-UA before | WLE-UA Photo Competition participants 2013-2017 not active in 2018 | use commonswiki_p;
SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line
FROM revision r_prev
join categorylinks on rev_page = cl_from
join actor on rev_actor = actor_id and actor_user is not null
WHERE rev_parent_id = 0
and cl_to IN (
"Images_from_Wiki_Loves_Monuments_2020_in_Ukra... | {"connection_id": 202945542} | null |
Count of external links to CNN.com | null | SELECT
COUNT(*)
FROM
externallinks
INNER JOIN page ON el_from = page_id
WHERE
page_namespace = 0 /* articles */
AND (
el_index LIKE "http://com.cnn.%"
OR el_index LIKE "https://com.cnn.%"
); | {"resultsets": [{"rowcount": 301, "headers": ["page_title"]}], "runningtime": "33.26"} | null |
testing wlm2020 but not prev wlms | null | use commonswiki_p;
SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line
FROM revision r_prev
join categorylinks on rev_page = cl_from
join actor on rev_actor = actor_id and actor_user is not null
WHERE rev_parent_id = 0
and cl_to IN (
"Images_from_Wiki_Loves_Monuments_2020_in_Ukra... | {"resultsets": [{"rowcount": 127, "headers": ["page_title"]}], "runningtime": "26.36"} | null |
Count of external links to BBC.com or BBC.co.uk | null | SELECT
COUNT(*)
FROM
externallinks
INNER JOIN page ON el_from = page_id
WHERE
page_namespace = 0 /* articles */
AND (
el_index LIKE "http://com.bbc.%"
OR el_index LIKE "https://com.bbc.%"
OR el_index LIKE "https://uk.co.bbc.%"
OR el_index LIKE "https://uk.co.bbc.%"
); | {"resultsets": [{"rowcount": 2, "headers": ["page_title"]}], "runningtime": "10.11"} | null |
y17m2&3 | null | select * from ip_changes
where ipc_rev_timestamp like "201707%" or ipc_rev_timestamp like "201708%" or ipc_rev_timestamp like "201709%" | {"resultsets": [{"rowcount": 13101, "headers": ["page_title", "link", "cnt", "totcount", "frac", "reliscore", "page_len"]}], "runningtime": "777.90"} | null |
testing wlm2020 but not prev wlms | null | use commonswiki_p;
SELECT CONCAT(actor_name) as line
FROM revision r_prev
join categorylinks on rev_page = cl_from
join actor on rev_actor = actor_id and actor_user is not null
WHERE rev_parent_id = 0
and cl_to IN (
"Images_from_Wiki_Loves_Monuments_2020_in_Ukraine") and
rev_actor NOT IN (
select rev_actor... | {"resultsets": [{"rowcount": 2, "headers": ["wikitext"]}], "runningtime": "275.50"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 1+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20140201000000"
AND rev_timestamp < "20140501000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 0, "headers": ["user_id", "username"]}], "runningtime": "0.07"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 5+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20140201000000"
AND rev_timestamp < "20140501000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 101, "headers": ["concat('* [[:\u0646\u0642\u0627\u0634_\u0627\u0644\u062a\u0635\u0646\u064a\u0641:',page_title,']]')"]}], "runningtime": "6.70"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 50+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20140201000000"
AND rev_timestamp < "20140501000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 15, "headers": ["page_title"]}], "runningtime": "0.38"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 250+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20140201000000"
AND rev_timestamp < "20140501000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 3628, "headers": ["page_title", "linter_id", "linter_page", "linter_cat", "linter_start", "linter_end", "linter_params"]}], "runningtime": "102.22"} | null |
Databases | null | SHOW databases LIKE "%wikivoyage_p"; | {"resultsets": [{"rowcount": 101, "headers": ["Tables_in_dewiki_p"]}], "runningtime": "0.34"} | null |
Count of enwiki pages which have tawiki link but not tewiki link | null | use enwiki_p;
select concat("# [[:en:", pa.page_title, "|", pa.page_title, "]]") as wl
from page pa
inner join langlinks ll on ll.ll_from = pa.page_id
where pa.page_namespace = 0
and pa.page_title like 'A%' and
pa.page_id in
(
select ll_from
from langlinks
where ll.ll_lang = "hi"
and ll.ll_lang <> "te"
)
order ... | {"resultsets": [{"rowcount": 0, "headers": ["cl_to", "count_cl_to"]}], "runningtime": "179.70"} | null |
All editors on German Wikipedia by registration date, 1+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20201201000000"
AND rev_timestamp < "20210101000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 2954, "headers": ["COUNT(*)", "site"]}], "runningtime": "34.93"} | null |
All editors on German Wikipedia by registration date, 1+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20200801000000"
AND rev_timestamp < "20201001000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 10, "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)"]}], "runningtime": "0.26"} | null |
All editors on German Wikipedia by registration date, 1+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20200801000000"
AND rev_timestamp < "20201001000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 11, "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)"]}], "runningtime": "0.84"} | null |
User number_female | null | USE bnwiki_p;
SELECT COUNT(up_user)
FROM user_properties
JOIN user ON user.user_id = user_properties.up_user
WHERE (NOT EXISTS ( SELECT * FROM user_properties WHERE user_properties.up_user = user.user_id AND user_properties.up_property = "disablemail" ) )
AND up_value = "female" | {"connection_id": 750221247} | null |
Users registered in 2019-20 | null | USE bnwiki_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 >= 20100100000000 AND
user_registration < 20120100000000 AND
rev_timestamp >= 20100100000... | {"resultsets": [{"rowcount": 5, "headers": ["CONCAT('*{{\u03b1\u03c1\u03c7\u03b5\u03af\u03bf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"]}], "runningtime": "6.24"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 1+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20070501000000"
AND rev_timestamp < "20070801000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 1082, "headers": ["img_timestamp", "CONCAT(\"File:\", img_name)", "CONCAT(\"File:\", fa_name)", "fa_timestamp"]}], "runningtime": "360.96"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 5+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20070501000000"
AND rev_timestamp < "20070801000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 2, "headers": ["page_title"]}], "runningtime": "7.30"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 50+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20070501000000"
AND rev_timestamp < "20070801000000"
GROUP BY edit... | {"connection_id": 213191574} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 50+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20070501000000"
AND rev_timestamp < "20070801000000"
GROUP BY edit... | {"connection_id": 753015910} | 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... | {"resultsets": [{"rowcount": 660, "headers": ["log_type", "dag", "antal"]}], "runningtime": "24.06"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 250+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20070501000000"
AND rev_timestamp < "20070801000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 11, "headers": ["title", "count"]}], "runningtime": "0.39"} | 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... | {"resultsets": [{"rowcount": 78, "headers": ["concat('* [[:\u0646\u0642\u0627\u0634_\u0627\u0644\u062a\u0635\u0646\u064a\u0641:',page_title,']]')"]}], "runningtime": "13.76"} | null |
No of article Pages by size | size wise distribution of all main space pages, excl redirects, disambigs | USE tewiki_p;
-- articles and disambiguation pages
-- SELECT ROUND(page_len, -2) AS bucket, COUNT(page_id) AS cnt FROM page WHERE page_is_redirect!=1 AND page_namespace=0 GROUP BY bucket;
-- articles only
-- SELECT ROUND(page_len, -2) AS bucket, COUNT(page_id) AS cnt FROM page WHERE page_namespace=0 AND page_is_redir... | {"resultsets": [{"rowcount": 95, "headers": ["concat('* [[:\u0646\u0642\u0627\u0634_\u0627\u0644\u062a\u0635\u0646\u064a\u0641:',page_title,']]')"]}], "runningtime": "12.07"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 1000+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20070501000000"
AND rev_timestamp < "20070801000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 13, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 6, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 7, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}], "runningtime": "0.61"} | null |
Feb–Apr, All editors on German Wikipedia by registration date, 1000+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20070501000000"
AND rev_timestamp < "20070801000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 4, "headers": ["Field", "Type", "Null", "Key", "Default", "Extra"]}], "runningtime": "0.10"} | null |
All editors on German Wikipedia by registration date, 1+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20070601000000"
AND rev_timestamp < "20070701000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 0, "headers": ["pr_page", "pr_type", "pr_level", "pr_cascade", "pr_user", "pr_expiry", "pr_id"]}], "runningtime": "0.07"} | null |
DiscussionTools change tag order | null | use enwiki_p;
select *
from change_tag_def
where ctd_name like 'discussiontools%'
order by ctd_id | {"resultsets": [{"rowcount": 5, "headers": ["page_title"]}], "runningtime": "0.12"} | null |
Tewiki:Talk pages of deleted pages -most of them with image request | null | use tewiki_p;
select DISTINCT concat ("[[చర్చ:",page_title,"]]") as page_name,page_len from page
inner join archive
on page.page_title = archive.ar_title
where page.page_namespace = 1
and archive.ar_namespace= 0
and page_is_redirect = 0
and page.page_title NOT LIKE '%/%'
and not page.page_title in (selec... | {"resultsets": [{"rowcount": 0, "headers": ["page_title"]}], "runningtime": "0.07"} | null |
/Comments pages that are not redirects (WP:DCS) | null | SELECT page_title FROM page
WHERE page_namespace = 1
AND page_is_redirect = 0
AND page_title LIKE "%/Comments"; | {"resultsets": [{"rowcount": 7972, "headers": ["page_title"]}], "runningtime": "23.64"} | null |
Admin gender on Bengali Wikipedia | Gender of admins and crats on enwiki. | SELECT up_value Gender, COUNT(DISTINCT ug_user) admins FROM bnwiki_p.user_groups JOIN bnwiki_p.user_properties ON ug_user=up_user
WHERE (ug_group='autopatrolled') AND (up_property='gender') GROUP BY up_value
# Copied from https://quarry.wmflabs.org/query/1888 by ICebear Sweden, with thanks. | {"resultsets": [{"rowcount": 5, "headers": ["page_title", "page_namespace"]}], "runningtime": "0.10"} | null |
All change tag order | null | use enwiki_p;
select *
from change_tag_def
order by ctd_id | {"resultsets": [{"rowcount": 1, "headers": ["COUNT(page_title)"]}], "runningtime": "0.26"} | null |
Find Number of Female Users (bnwiki) | null | USE knwiki_p;
SELECT user_name, user_editcount, user_registration
FROM user
RIGHT JOIN (SELECT up_user
FROM user_properties
WHERE up_property LIKE 'gender'
AND up_value LIKE 'female') as female ON female.up_user=user_id
#AND user_id NOT IN (SELECT ug_user FROM bnwiki_p.user_... | {"resultsets": [{"rowcount": 1, "headers": ["now()"]}, {"rowcount": 47687, "headers": ["rev_id", "rc_timestamp", "actor_name", "rc_title", "comment_text"]}], "runningtime": "243.08"} | null |
Find Number of male Users (bnwiki) | null | USE knwiki_p;
SELECT user_name, user_editcount, user_registration
FROM user
RIGHT JOIN (SELECT up_user
FROM user_properties
WHERE up_property LIKE 'gender'
AND up_value LIKE 'male') as male ON male.up_user=user_id
#AND user_id NOT IN (SELECT ug_user FROM hiwiki_p.user_group... | {"resultsets": [{"rowcount": 1, "headers": ["Annexe", "Conjugaison"]}], "runningtime": "0.30"} | null |
Fiwikistä 2020 merkittävyysperusteella poistetut uusien käyttäjien artikkelit | määritelmät:
- uusi käyttäjä = vuoden 2019 jälkeen rekisteröityneiden käyttäjä tai sisäänkirjautumaton käyttäjä.
- aikarajaus on 2010
| USE fiwiki_p;
SELECT
ar_title,
max_len,
t.log_comment as log_comment_create
FROM (
SELECT
MIN(log_id) AS t,
MAX(ar_len) AS max_len,
ar_title,
log_comment
FROM
logging_compat
LEFT JOIN page AS p1 ON p1.page_id=log_page
LEFT JOIN archive ON ar_title=log_title AND ar_n... | {"resultsets": [{"rowcount": 100, "headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"]}], "runningtime": "0.48"} | null |
First SUL users in Wikimedia | First SUL users in Wikimedia. | USE centralauth_p;
SELECT * FROM globaluser WHERE gu_id < 8;
| {"resultsets": [{"rowcount": 1, "headers": ["actor_name", "log_timestamp", "total"]}], "runningtime": "0.13"} | null |
Koronaviruspandemia 2019 muokkaukset | null | use fiwiki_p;
select
page_title
from
page,
categorylinks,
revision_compat
where cl_to IN (
"Koronaviruspandemia_2019–",
"Koronaviruspandemia_sijainneittain",
"Koronaviruspandemiassa_kuolleet",
"Koronaviruspandemia_Suomessa")
and page_namespace=0
and page_id=cl_from
... | {"resultsets": [{"rowcount": 100, "headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"]}], "runningtime": "12.63"} | null |
Data-collection redirects | a test to try to gather data-collection redirects | Use enwiki_p;
Select page_title, rd_title from page join redirect on page_id = rd_from
Where page_namespace = 1 and rd_namespace = 1; | {"resultsets": [{"rowcount": 1, "headers": ["user_id"]}], "runningtime": "0.11"} | null |
Mai–Jul, All editors on German Wikipedia by registration date, 250+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20070601000000"
AND rev_timestamp < "20070701000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 22, "headers": ["linter_cat", "page_namespace", "count(*)"]}, {"rowcount": 9, "headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"]}, {"rowcount": 8, "headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"]}], "runningtime": "1.79"} | null |
Mai–Jul, All editors on German Wikipedia by registration date, 250+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20140201000000"
AND rev_timestamp < "20140401000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 229, "headers": ["page_title", "edits"]}], "runningtime": "190.59"} | null |
Mai–Jul, All editors on German Wikipedia by registration date, 250+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20200901000000"
AND rev_timestamp < "20201001000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 100, "headers": ["actor_name", "pages", "edits", "reverts", "undo_c", "rollback_c", "flaggedrevs_undo", "flaggedrevs_review", "blocks", "abusefilteredits"]}], "runningtime": "94.96"} | null |
Mai–Jul, All editors on German Wikipedia by registration date, 250+ edits in one month | null | USE dewiki_p;
SELECT COUNT(user_registration)
FROM user
INNER JOIN (SELECT
rev_user_text AS edit_username,
COUNT(rev_id) AS edits_month
FROM revision_compat
WHERE rev_timestamp > "20201201000000"
AND rev_timestamp < "20210101000000"
GROUP BY edit... | {"resultsets": [{"rowcount": 100, "headers": ["actor_name", "pages", "edits", "reverts", "flaggedrevs_review", "blocks", "abusefilteredits"]}], "runningtime": "344.44"} | null |
T272822 test | null | SELECT page_id, COUNT(tl_from) AS transcluded_in
FROM page
INNER JOIN templatelinks
ON page_title=tl_title
AND page_namespace=828
AND page_content_model='Scribunto'
AND tl_namespace=828
GROUP BY page_id
LIMIT 500 | {"resultsets": [{"rowcount": 100, "headers": ["actor_name", "pages", "edits", "reverts", "flaggedrevs_review", "blocks", "abusefilteredits"]}], "runningtime": "282.70"} | null |
Past year of editors with texhtml in their signature | null | USE enwiki_p;
SELECT user_name, up_value
FROM user_properties
JOIN `user` ON user_id = up_user
WHERE
up_property = "nickname" AND
up_value LIKE "%texhtml%" AND
user_name IN (SELECT actor_name
FROM revision_userindex
JOIN actor_revision ON rev_actor = actor_id
WHERE rev_ti... | {"resultsets": [{"rowcount": 1, "headers": ["rd_title", "rd_namespace"]}], "runningtime": "0.10"} | null |
Editors with texhtml in their signature | null | USE enwiki_p;
SELECT user_name, up_value
FROM user_properties
JOIN `user` ON user_id = up_user
WHERE
up_property = "nickname" AND
up_value LIKE "%texhtml%" AND
up_user IN (SELECT up_user
FROM user_properties
WHERE up_property = "fancysig" AND up_value = 1)
ORDER BY up_user ASC | {"resultsets": [{"rowcount": 0, "headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"]}], "runningtime": "6.50"} | null |
bnwiki daily edits 2020 (mobile/all) | Based on query #50145. | use mswiki_p;
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 8) as day,
sum(ct_rev_id is not null) as mobile_revisions,
count(rev_id) as revisions,
concat(
if(
count(rev_id) = 0,
0,
format(... | {"resultsets": [{"rowcount": 1, "headers": ["total", "SterkeBak", "hywiki"]}], "runningtime": "0.11"} | null |
Список користувачів за кількістю започаткованих статей | null | USE ukwiki_p;
SELECT @rownum := @rownum + 1 AS rank,
actor_name,
created,
percents
FROM
(
SELECT
CONCAT('[[Користувач:', actor_name, '|]]') as actor_name,
COUNT(1) AS created,
CONCAT(
ROUND(
COUNT(1) /
(SELECT COUNT(1)
FROM page
... | {"resultsets": [{"rowcount": 121, "headers": ["Artikel", "Link"]}], "runningtime": "386.09"} | null |
Список ботів за кількістю започаткованих статей | null | USE ukwiki_p;
SELECT @rownum := @rownum + 1 AS rank,
actor_name,
created,
percents
FROM
(
SELECT
CONCAT('[[Користувач:', actor_name, '|]]') as actor_name,
COUNT(1) AS created,
CONCAT(
ROUND(
COUNT(1) /
(SELECT COUNT(1)
FROM page
... | {"resultsets": [{"rowcount": 0, "headers": ["page_title"]}], "runningtime": "0.07"} | null |
Label/description/alias stats for 8th Schedule tongues | THIS QUERY NO LONGER WORKS--SEE https://www.wikidata.org/wiki/User:Mr._Ibrahem/Language_statistics_for_items INSTEAD!
(Had to split the query since it kept getting killed lately. The rest of the languages are tracked in query #31655.)
Thanks, Pasleim, for the original query! | use wikidatawiki_p;
SELECT CURRENT_DATE;
SELECT
term_entity_type,
term_language,
count(if(term_type = 'label',1,null)) as labels,
count(if(term_type = 'description',1,null)) as descriptions,
count(if(term_type = 'alias',1,null)) as aliases
FROM wb_terms
WHERE term_language IN (
'as', 'bn', 'gom', 'gom-... | {"resultsets": [{"rowcount": 0, "headers": ["gt_lat", "gt_lon", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"]}, {"rowcount": 4338, "headers": ["gt_lat", "gt_lon", "gt_primary", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"]}], "runningtime": "49.28"} | null |
finding all lucas alive born before 1970 and born after 1900 | null | -- Pegar na wikidata
use wikidatawiki_p;
select
page.page_title
from
page
where
page_namespace = 0
and page.page_title LIKE 'Lucas%'
-- SELECT page_title FROM | {"resultsets": [{"rowcount": 88, "headers": ["page_title", "edit_count"]}], "runningtime": "1.73"} | null |
pl ws subpage counts | null | use plwikisource_p;
SELECT SUBSTRING(page_title, 1, LOCATE('/', page_title)) AS title, COUNT(*) AS subpage_count
FROM page
WHERE page_title LIKE '%/%' AND page_namespace = 0 AND page_is_redirect = 0
GROUP BY title
HAVING subpage_count > 500
ORDER BY subpage_count DESC | {"connection_id": 766199443} | 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... | {"resultsets": [{"rowcount": 127, "headers": ["CONCAT('# [[',page.page_title,']]')"]}], "runningtime": "15.73"} | 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... | {"resultsets": [{"rowcount": 83, "headers": ["Artikel", "Link"]}], "runningtime": "390.62"} | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.