title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
exact text search in Wikidata labels/descriptions/aliases | Query to search for an exact string in labels, descriptions or aliases of any item in any language (but not other statements or entity types). | SELECT CONCAT('Q', wbit_item_id), wbxl_language, wby_name, wbx_text -- use CONCAT('P', wbpt_property_id) when searching wbt_property_terms
FROM wbt_item_terms -- can also be wbt_property_terms, but not lexicographical data
JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id -- use wbpt_term_in_lang_id when searchin... | {"runningtime": "273.97", "resultsets": [{"rowcount": 299, "headers": ["actor_name", "groups"]}]} | wikidatawiki_p |
2021 eligible voters for Board elections - South Asia | Query to get lists of eligible voters for 2021 Board elections based on contributions to individuals. Please note that this query doesn't exactly reflect the voting eligibility criteria - while the eligibility criteria counts are across wikis, the counts in this query are based on the selected wiki only. | use tewiki_p;
select
user_name,
twofifty.cnt as edits,
onefive.cnt as recent_edits
from user
join
(
select
actor_user,
count(*) cnt
from revision_userindex
join actor_revision
on rev_actor = actor_id
join page
on page_id = rev_page
where
rev_timestamp < '20210705000000' -- edits pri... | {"runningtime": "4.90", "resultsets": [{"rowcount": 20, "headers": ["page_title", "page_len"]}]} | tewiki |
[Draft] Fantastychna-osin-2019-new | null | 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": "132.51", "resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 27}]} | ukwiki_p |
Fantastique Autumn 2019 on UkWP [Improved] | List of articles created for the Investigative Journalism Week on UkWiki | USE ukwiki_p;
SET SESSION group_concat_max_len = 10000;
SELECT @rownum := @rownum + 1 AS rank,
IFNULL(actor_name, 'Всього'),
created,
total_len,
articles
FROM
(
SELECT
CONCAT('[[', REPLACE(page_title, '_', ' '), ']]') as article,
COUNT(1) AS user_number,
SUM(user_size_increase) as size... | {"runningtime": "0.95", "resultsets": [{"rowcount": 452, "headers": ["title"]}]} | ukwiki_p |
Recent changes from API-confirmed blocked proxies | null | SET
STATEMENT max_statement_time = 120 FOR WITH blocked_ips AS (
SELECT
DISTINCT log_title AS ip
FROM
logging_userindex AS logging
INNER JOIN actor_logging AS actor ON logging.log_actor = actor.actor_id
INNER JOIN comment ON logging.log_comment_id = comment.comment_id
WHERE
T... | {"runningtime": "20.56", "resultsets": [{"rowcount": 12823, "headers": ["title"]}]} | enwiki_p |
Tewiki: user-wise WPWPTE to village pages | null | select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = 'భారతదేశ_గ్రామాలు'
OR
... | {"runningtime": "13.41", "resultsets": [{"rowcount": 31, "headers": ["date", "reviews", "accepts", "declines", "rejects"]}]} | tewiki |
Tewiki:Village pages for WPWP district and Mandalam-wise | null | set @dist := "రంగారెడ్డి జిల్లా";
select p1.page_title,cl.cl_to from page p1,categorylinks cl
where p1.page_id not in (select il_from from imagelinks where il_to ="Telangana_locator_map.svg")
and p1.page_namespace=0
and cl.cl_from=p1.page_id
and cl.cl_to like "%గ్రామాలు"
and p1.page_id in (select cl_from from categoryl... | {"runningtime": "12.44", "resultsets": [{"rowcount": 176, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | tewiki |
Utils: interwikis mapping | null | SELECT * FROM interwiki
LIMIT 50; | {"connection_id": 4624668} | mediawikiwiki_p |
percentage of enwiki page moves performed by new users | null | SELECT
YEARWEEK(log_timestamp) AS `week`,
SUM(user_editcount < 100) `new user moves`,
COUNT(*) AS `total moves`,
SUM(user_editcount < 100)/COUNT(*)*100 AS `new user percent`
FROM logging
JOIN actor_logging ON log_actor = actor_id
JOIN `user` ON actor_user = user_id
WHERE
log_type = "move"
AND YEARWEEK... | {"runningtime": "0.16", "resultsets": [{"rowcount": 1, "headers": ["shard", "last_updated", "lag"]}, {"rowcount": 16, "headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace"]}]} | enwiki_p |
percentage of hewiki page moves performed by new users | null | SELECT
YEARWEEK(log_timestamp) AS `week`,
SUM(user_editcount < 100) `new user moves`,
COUNT(*) AS `total moves`,
SUM(user_editcount < 100)/COUNT(*)*100 AS `new user percent`
FROM logging
JOIN actor_logging ON log_actor = actor_id
JOIN `user` ON actor_user = user_id
WHERE
log_type = "move"
AND YEARWEEK... | {"runningtime": "33.36", "resultsets": [{"rowcount": 37, "headers": ["pa_class", "COUNT(*)"]}]} | hewiki_p |
hewiki edits through semiprot by new users | null | SELECT
YEARWEEK(rev_timestamp) AS `week`,
SUM(user_editcount < 100) `new user edits`,
COUNT(*) AS `total semi-protected edits`,
SUM(user_editcount < 100)/COUNT(*)*100 AS `new user percent`
FROM revision
JOIN page_restrictions ON pr_page = rev_page
JOIN actor_revision ON rev_actor = actor_id
JOIN `user` ON a... | {"runningtime": "3.93", "resultsets": [{"rowcount": 2041, "headers": ["page_title"]}]} | hewiki_p |
Blocks of UBPV | null | SELECT
log_timestamp,
REPLACE(log_title, '_', ' '),
(SELECT
user_editcount
FROM user AS user2
WHERE
user_name = REPLACE(log_title, '_', ' ')
) AS editcount,
log_params,
COUNT(*)
FROM logging
WHERE
log_type = 'block'
AND log_actor != 1
AND log_params NOT LIKE '%anononly%... | {"runningtime": "1.07", "resultsets": [{"headers": ["page_namespace", "page_title", "page_len", "rev_timestamp"], "rowcount": 50}, {"headers": ["page_title", "page_len", "rev_timestamp"], "rowcount": 500}]} | ruwiki_p |
عناوين لمقالات، الاسم الأول هو نفس الاسم الثاني | null | select page_title
from page
where page_namespace = 0
and page_is_redirect = 0
and
ROUND (
(
LENGTH(page_title)
- LENGTH( REPLACE ( page_title, "_", "") )
) / LENGTH("_")
) = 1
and substring_index(page_title, "_", 1) = substring_index(page_title, "_", -1); | {"runningtime": "52.10", "resultsets": [{"rowcount": 50, "headers": ["user_name", "byte_count", "edit_count"]}]} | arwiki_p |
nlwiki Gebruiker:Multichill/GevraagdePaginas | null | SELECT CONCAT('* [[', articlelinks.pl_title, ']] - ', COUNT(*))
FROM pagelinks AS articlelinks
LEFT JOIN page ON articlelinks.pl_title=page_title AND page_namespace=0
LEFT JOIN pagelinks AS templinks ON articlelinks.pl_title=templinks.pl_title AND templinks.pl_namespace=0 AND templinks.pl_from_namespace=10
WHERE a... | {"runningtime": "1.04", "resultsets": [{"headers": ["page_namespace", "page_title", "actor_name", "rev_timestamp", "num_commentors"], "rowcount": 83}]} | nlwiki |
bnwiki largest articles | null | use bnwiki_p;
SELECT page_title, page_len FROM page WHERE page_namespace=0 ORDER BY page_len DESC LIMIT 500; | {"runningtime": "0.04", "resultsets": []} | bnwiki |
Tewiki: Telangana Village pages for WPWP district and Mandalam-wise | null | set @dist := "మహబూబ్_నగర్_జిల్లా";
select p1.page_title,cl.cl_to from page p1,categorylinks cl
where p1.page_id not in (select il_from from imagelinks where il_to ="Telangana_locator_map.svg")
and p1.page_namespace=0
and cl.cl_from=p1.page_id
and cl.cl_to like "%గ్రామాలు"
and p1.page_id in (select cl_from from category... | {"runningtime": "6.47", "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"]}]} | tewiki |
Longest shortcut titles (enwiki) | null | SELECT page_title, LENGTH(page_title)
FROM page
WHERE page_namespace = 4
AND page_title RLIKE "^[A-Z]+$"
ORDER BY 2 DESC | {"runningtime": "6.07", "resultsets": [{"rowcount": 0, "headers": ["@target_title := page_title"]}]} | enwiki_p |
2021 eligible voters for Board elections - South Asia | Query to get lists of eligible voters for 2021 Board elections based on contributions to individuals. Please note that this query doesn't exactly reflect the voting eligibility criteria - while the eligibility criteria counts are across wikis, the counts in this query are based on the selected wiki only. | use mlwiki_p;
select
user_name,
twofifty.cnt as edits,
onefive.cnt as recent_edits
from user
join
(
select
actor_user,
count(*) cnt
from revision_userindex
join actor_revision
on rev_actor = actor_id
join page
on page_id = rev_page
where
rev_timestamp < '20210705000000' -- edits pri... | {"runningtime": "0.08", "resultsets": [{"rowcount": 1, "headers": ["page_title"]}]} | mlwiki_p |
nlwiki Gebruiker:Multichill/GevraagdePaginas | null | SELECT CONCAT('* [[', articlelinks.pl_title, ']] - ', COUNT(*))
FROM pagelinks AS articlelinks
LEFT JOIN page ON articlelinks.pl_title=page_title AND page_namespace=0
LEFT JOIN pagelinks AS templinks ON articlelinks.pl_title=templinks.pl_title AND templinks.pl_namespace=0 AND templinks.pl_from_namespace=10
WHERE a... | {"runningtime": "419.06", "resultsets": [{"rowcount": 66, "headers": ["File name", "Date", "Size", "Uploader's name"]}]} | nlwiki |
wbsetsitelink-add | null | select rc_title, count(*)
from recentchanges_compat
where rc_comment like '/* wbsetsitelink-add:%'
group by rc_title
having count(*)>10 | {"runningtime": "3.37", "resultsets": [{"rowcount": 12, "headers": ["pl_from", "pl_title"]}]} | wikidatawiki_p |
admin actions (count) (enwiki) (2021) | null | select log_type, count(log_type)
from logging
where log_timestamp > '20210101000000'
and log_type in ('abusefilter', 'block', 'delete', 'import', 'managetags', 'protect', 'rights', 'spamblacklist')
group by log_type | {"runningtime": "0.56", "resultsets": [{"rowcount": 6, "headers": ["page_title"]}]} | enwiki_p |
most active enwiki admins by actions (2021) | null | select actor_name, count(log_actor)
from logging
join actor on (logging.log_actor = actor.actor_id)
where logging.log_timestamp > '20210101000000'
and logging.log_type in ('abusefilter', 'block', 'delete', 'import', 'managetags', 'protect', 'rights', 'spamblacklist')
group by logging.log_actor
order by count(log_actor)... | {"runningtime": "0.76", "resultsets": [{"rowcount": 455, "headers": ["user_name", "user_registration", "user_editcount"]}]} | enwiki_p |
search in subcategories (deph=4) | returning the titles of all pages in all subcategories of a catogry, in depth=4 | use hewiki_p;
select distinct page_title from categorylinks inner join page on page_id = cl_from
where (
(cl_to = 'סרטים_על_פורנוגרפיה'
OR
cl_to IN (select page_title from page inner join categorylinks on cl_from = page_id where cl_to = 'סרטים_על_פורנוגרפיה' and cl_type = 'subcat' )
)
and page_namespace=0
) | {"runningtime": "56.84", "resultsets": [{"headers": ["CreationTime", "Title", "DeletionTime", "DeletionComment"], "rowcount": 16}]} | hewiki |
Tewiki: user-wise WPWPTE to village pages | null | select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = 'భారతదేశ_గ్రామాలు'
OR
... | {"runningtime": "0.28", "resultsets": [{"rowcount": 10, "headers": ["user_name", "user_editcount", "user_registration", "Last edit", "user_groups"]}]} | tewiki |
Get all database names | null | SHOW databases; | {"runningtime": "0.21", "resultsets": [{"rowcount": 14, "headers": ["User", "Count"]}]} | meta_p |
number of admin actions by month | null | select log_timestamp DIV 100000000 as "timestamp", count(log_id) as "number of admin actions"
from logging
where logging.log_timestamp > '20070101000000'
and logging.log_type in ('abusefilter', 'block', 'delete', 'import', 'managetags', 'protect', 'rights', 'spamblacklist')
GROUP BY log_timestamp DIV 100000000 | {"runningtime": "2.87", "resultsets": [{"rowcount": 91, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | enwiki_p |
Deletions of WP:RFA subpages | null | SELECT log_timestamp, CONCAT("WP:", log_title) as `title`, comment_text
FROM logging_logindex
JOIN comment_logging ON log_comment_id = comment_id
WHERE
log_action = "delete"
AND log_type = "delete"
AND log_namespace = 4
AND log_title LIKE "Requests_for_adminship/%"
ORDER BY log_timestamp desc | {"runningtime": "0.50", "resultsets": [{"headers": ["Article", "Date", "Reason", "Protector"], "rowcount": 6}]} | enwiki_p |
Learning Wiki DB | null | show databases; | {"runningtime": "0.11", "resultsets": [{"rowcount": 17, "headers": ["No.", "Page", "Protecting admin", "Date of protection", "Date of expiry", "Reason"]}]} | enwiki_p |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"runningtime": "7.17", "resultsets": [{"headers": ["ss_total_edits"], "rowcount": 1}, {"headers": ["SUM(user_editcount)"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_editcount", "user_admin", "user_bot"], "rowcount": 793}]} | tewiki |
Tewiki: user-wise WPWPTE to village pages | null | select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = 'భారతదేశ_గ్రామాలు'
OR
... | {"runningtime": "8.89", "resultsets": [{"rowcount": 31, "headers": ["date", "reviews", "accepts", "declines", "rejects"]}]} | tewiki |
2021 eligible voters for Board elections - FINAL | Query to get lists of eligible voters for 2021 Board elections based on contributions to individuals. Please note that this query doesn't exactly reflect the voting eligibility criteria - while the eligibility criteria counts are across wikis, the counts in this query are based on the selected wiki only. | use plwiki_p;
select
user_name,
twofifty.cnt as edits,
onefive.cnt as recent_edits
from user
join
(
select
actor_user,
count(*) cnt
from revision_userindex
join actor_revision
on rev_actor = actor_id
join page
on page_id = rev_page
where
rev_timestamp < '20210705000000' -- edits pri... | {"runningtime": "0.08", "resultsets": [{"rowcount": 5, "headers": ["page_title"]}]} | plwiki_p |
IP edits on plwiktionary v2 | null | USE plwiktionary_p;
SET @start = 20160101000000;
SET @end = 20160801000000;
SET @min_edits = 1;
SELECT
actor_name AS "IP",
COUNT(*) AS "edit count"
FROM
revision INNER JOIN actor ON actor_id = rev_actor
WHERE
actor_user IS NULL AND
rev_timestamp > @start AND
rev_timestamp < @end /*AND
NOT EXISTS (S... | {"runningtime": "2.15", "resultsets": [{"headers": ["reverted edits", "all"], "rowcount": 1}]} | plwiktionary_p |
mw reverted count for WPWPBN | null | SELECT actor_name as user,
COUNT(*) as cnt
FROM revision
JOIN change_tag
ON rev_id = ct_rev_id
JOIN actor
ON actor_id = rev_actor
WHERE ct_tag_id =
(SELECT ctd_id FROM change_tag_def
WHERE ctd_name = 'mw-reverted')
and rev_timestamp>="2021070100000"
-- and rev_timestamp like "20210822%"
GROUP BY user
ORDER BY cnt DESC... | {"runningtime": "1.59", "resultsets": [{"rowcount": 1, "headers": ["reverted edits", "all"]}]} | bnwiki |
Tewiki:Village pages for WPWP in a Mandalam | null | set @dist := "తిరువూరు_మండలంని";
select p1.page_title from page p1
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhra_Pradesh_locator_map.svg")
and p1.page_namespace=0
and p1.page_id in (select cl_from from categorylinks where (cl_to = concat(@dist,'_గ్రామాలు')
... | {"runningtime": "687.15", "resultsets": [{"rowcount": 385539, "headers": ["title"]}]} | tewiki |
Tewiki:Village pages for WPWP in a Mandalam | null | set @dist := "తిరువూరు_మండలంలోని";
select p1.page_title from page p1
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhra_Pradesh_locator_map.svg")
and p1.page_namespace=0
and p1.page_id in (select cl_from from categorylinks where (cl_to = concat(@dist,'_గ్రామాలు')
... | {"runningtime": "2.98", "resultsets": [{"headers": ["page_title"], "rowcount": 2013}]} | tewiki |
WMUA photo contests previous years' participants (incl. 2020) | WSC-UK previous years' participants not active this year | 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_Earth_2013_in_Ukraine"... | {"runningtime": "3.12", "resultsets": [{"rowcount": 2013, "headers": ["page_title"]}]} | commonswiki_p |
active EntitySchema editors | null | SELECT actor_name, count
FROM (
SELECT rc_actor, COUNT(*) AS count
FROM recentchanges
WHERE rc_namespace = 640
GROUP BY rc_actor
) AS entityschema_editors
JOIN actor ON rc_actor = actor_id
ORDER BY count DESC; | {"runningtime": "0.32", "resultsets": [{"headers": ["page_title"], "rowcount": 0}]} | wikidatawiki_p |
Participants to WLA 2021 | null | SELECT DISTINCT rev_user_text
FROM commonswiki_p.page p
INNER JOIN commonswiki_p.categorylinks cl ON p.page_id = cl.cl_from
INNER JOIN commonswiki_p.revision r ON p.page_id = r.rev_page
WHERE cl.cl_to IN (
"Images_from_Wiki_Loves_Africa_2014",
"Images_from_Wiki_Loves_Africa_2015",
"Images_from_Wiki_Loves_Afric... | {"runningtime": "9.89", "resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}]} | commonswiki |
WPWPBN 2021 | উইকিপিডিয়ার পাতায় চিত্র যোগ ২০২১ | SELECT actor_name,count(rev_actor) as count from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPBN%"
and rev_timestamp>="2021070100000"
-- and rev_timestamp like "20210831%"
group by rev_actor
ord... | {"runningtime": "0.28", "resultsets": [{"headers": ["count(page_title)"], "rowcount": 1}]} | bnwiki |
Uploader stats from specific Commons category | null | set @categoryname = "Trees_in_Ukraine";
select
actor_name as "uploader",
count(*) as "upload_count"
from page
inner join categorylinks on cl_from = page_id
inner join image on img_name = page_title
inner join actor on actor_id = img_actor
where
cl_to = @categoryname and
cl_type = "file"
group by
actor_na... | {"runningtime": "26.40", "resultsets": [{"headers": ["rev_timestamp", "foo"], "rowcount": 15892}]} | commonswiki_p |
Uploader stats from specific Commons category | null | set @categoryname = "Collage_images_for_GLAM_competition_in_2020";
select
actor_name as "uploader",
count(*) as "upload_count"
from page
inner join categorylinks on cl_from = page_id
inner join image on img_name = page_title
inner join actor on actor_id = img_actor
where
cl_to = @categoryname and
cl_type ... | {"runningtime": "0.42", "resultsets": [{"headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"], "rowcount": 220}]} | commonswiki_p |
Deletions of WP:RFA subpages | Deletions of WP:RFA subpages with comments that contain "G6" | SELECT log_timestamp, CONCAT("WP:", log_title) as `title`, comment_text
FROM logging_logindex
JOIN comment_logging ON log_comment_id = comment_id
WHERE
log_action = "delete"
AND log_type = "delete"
AND log_namespace = 4
AND log_title LIKE "Requests_for_adminship/%"
AND comment_text LIKE "%G6%"
ORDER B... | {"runningtime": "9.62", "resultsets": [{"rowcount": 5000, "headers": ["page"]}]} | enwiki_p |
Participants to WLA 2021 | null | SELECT DISTINCT actor_name, rev_actor
FROM commonswiki_p.page p
INNER JOIN commonswiki_p.categorylinks cl ON p.page_id = cl.cl_from
INNER JOIN commonswiki_p.revision r ON p.page_id = r.rev_page
join actor on rev_actor = actor_id and actor_user is not null
WHERE cl.cl_to IN (
"Images_from_Wiki_Loves_Africa_2014",
... | {"runningtime": "0.59", "resultsets": [{"rowcount": 138, "headers": ["user", "cnt"]}]} | commonswiki_p |
Tewiki: AP Village pages for WPWP district and Mandalam-wise | null | set @dist := "ప్రకాశం_జిల్లా";
select p1.page_title,cl.cl_to from page p1,categorylinks cl
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhra_Pradesh_locator_map.svg")
and p1.page_namespace=0
and cl.cl_from=p1.page_id
and cl.cl_to like "%గ్రామాలు"
and p1.page_id in (select cl_from from categor... | {"runningtime": "15.56", "resultsets": [{"rowcount": 5, "headers": ["first_title", "second_title"]}]} | tewiki |
Tewiki: user-wise WPWPTE to village pages | null | select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = 'భారతదేశ_గ్రామాలు'
OR
... | {"runningtime": "1.81", "resultsets": [{"rowcount": 12, "headers": ["fa_deleted"]}]} | tewiki |
2021 eligible voters for Board elections - tawp | Query to get lists of eligible voters for 2021 Board elections based on contributions to individuals. Please note that this query doesn't exactly reflect the voting eligibility criteria - while the eligibility criteria counts are across wikis, the counts in this query are based on the selected wiki only. | use tawiki_p;
select
user_name,
twofifty.cnt as edits,
onefive.cnt as recent_edits
from user
join
(
select
actor_user,
count(*) cnt
from revision_userindex
join actor_revision
on rev_actor = actor_id
join page
on page_id = rev_page
where
rev_timestamp < '20210705000000' -- edits pri... | {"runningtime": "3.21", "resultsets": [{"rowcount": 1146, "headers": ["CONCAT(\"File:\", oi_name)"]}]} | tawiki_p |
2021 eligible voters for Board elections - taws | Query to get lists of eligible voters for 2021 Board elections based on contributions to individuals. Please note that this query doesn't exactly reflect the voting eligibility criteria - while the eligibility criteria counts are across wikis, the counts in this query are based on the selected wiki only. | use tawikisource_p;
select
user_name,
twofifty.cnt as edits,
onefive.cnt as recent_edits
from user
join
(
select
actor_user,
count(*) cnt
from revision_userindex
join actor_revision
on rev_actor = actor_id
join page
on page_id = rev_page
where
rev_timestamp < '20210705000000' -- edi... | {"runningtime": "1.41", "resultsets": [{"rowcount": 440, "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"]}]} | tawikisource_p |
Tewiki:Village pages for WPWP in a Mandalam | null | set @dist := "పెద్దమండ్యం_మండలంలోని";
select p1.page_title from page p1
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhrapradesh_locator_map.svg")
and p1.page_namespace=0
and p1.page_id in (select cl_from from categorylinks where (cl_to = concat(@dist,'_గ్రామాలు')
... | {"runningtime": "1878.84", "resultsets": [{"headers": ["tl_title"], "rowcount": 63}]} | tewiki |
Wikidata list of all edit change tags | Note this is a very expensive query. Consider using https://quarry.wmflabs.org/query/58164 instead to save resources.
forked from https://gerrit.wikimedia.org/r/c/analytics/wmde/scripts/+/715710/1/src/wikidata/site_stats/sql/recent_changes_by_tags.sql
Details about the tags can be found here https://www.wikidata.org/wi... | SELECT ctd_name, COUNT(*) AS count
FROM wikidatawiki_p.recentchanges
JOIN wikidatawiki_p.change_tag ON ct_rc_id = rc_id
JOIN wikidatawiki_p.change_tag_def ON ctd_id = ct_tag_id
WHERE rc_timestamp >= 1630316057
AND rc_timestamp < now()
AND rc_source = 'mw.edit'
GROUP BY ctd_name | {"runningtime": "0.07", "resultsets": [{"rowcount": 2, "headers": ["img_name"]}]} | wikidatawiki_p |
Number of German lexemes created per day | null | SELECT DATE_FORMAT(revision.rev_timestamp, '%Y-%m-%d') AS date, count(page.page_title) as pages
FROM page
JOIN revision ON page.page_id=revision.rev_page
JOIN pagelinks ON page.page_id=pagelinks.pl_from
WHERE page.page_namespace=146
AND revision.rev_parent_id=0 # No parent rev = page creation
AND pagelinks.pl_titl... | {"connection_id": 6505054} | wikidatawiki_p |
WPWPBN 2021 | উইকিপিডিয়ার পাতায় চিত্র যোগ ২০২১ | SELECT actor_name,count(rev_actor) as count from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPBN%"
and rev_timestamp>="2021070100000"
-- and rev_timestamp like "20210831%"
group by rev_actor
ord... | {"runningtime": "0.06", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | bnwiki |
Wikidata revert and undo edits | forked from https://gerrit.wikimedia.org/r/c/analytics/wmde/scripts/+/715710/1/src/wikidata/site_stats/sql/recent_changes_by_tags.sql
Details about the tags can be found here https://www.wikidata.org/wiki/Special:Tags
| SELECT ctd_name, COUNT(*) AS count
FROM wikidatawiki_p.recentchanges
JOIN wikidatawiki_p.change_tag ON ct_rc_id = rc_id
JOIN wikidatawiki_p.change_tag_def ON ctd_id = ct_tag_id
WHERE rc_timestamp >= TIMESTAMP('2021-08-30 00:00:00')
AND rc_timestamp < TIMESTAMP('2021-08-31 00:00:00')
AND rc_source = 'mw.edit'
AND ctd_na... | {"runningtime": "0.13", "resultsets": [{"rowcount": 20, "headers": ["page_title"]}]} | wikidatawiki_p |
Wikidata edits by selected change tags (including semi-automated tools) | from https://gerrit.wikimedia.org/r/c/analytics/wmde/scripts/+/715710/1/src/wikidata/site_stats/sql/recent_changes_by_tags.sql
Details about the tags can be found here https://www.wikidata.org/wiki/Special:Tags
Note that the only edits possible right now on mobile are termbox and Wikimedia android suggested edits. Sta... | SELECT ctd_name, COUNT(*) AS count
FROM wikidatawiki_p.recentchanges
JOIN wikidatawiki_p.change_tag ON ct_rc_id = rc_id
JOIN wikidatawiki_p.change_tag_def ON ctd_id = ct_tag_id
WHERE rc_timestamp >= TIMESTAMP('2021-08-29')
AND rc_timestamp < TIMESTAMP('2021-08-30')
AND rc_source = 'mw.edit'
AND ctd_name IN ('data-bridg... | {"runningtime": "0.24", "resultsets": [{"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 6}, {"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 7}]} | wikidatawiki_p |
lta? | null | SELECT distinct actor_name
FROM revision INNER JOIN comment ON rev_comment_id = comment_id inner join actor on rev_actor = actor_id
WHERE LOWER(comment_text) RLIKE "user:wikinger08"
ORDER BY rev_timestamp DESC
LIMIT 200 | {"runningtime": "0.93", "resultsets": [{"rowcount": 41, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | enwiki_p |
Wiki Loves Africa Unique Participants 2014-2021 | null | SELECT DISTINCT actor_name, rev_actor
FROM commonswiki_p.page p
INNER JOIN commonswiki_p.categorylinks cl ON p.page_id = cl.cl_from
INNER JOIN commonswiki_p.revision r ON p.page_id = r.rev_page
join actor on rev_actor = actor_id and actor_user is not null
WHERE cl.cl_to IN (
"Images_from_Wiki_Loves_Africa_2014",
... | {"runningtime": "523.07", "resultsets": [{"headers": ["first_title", "second_title"], "rowcount": 1294}]} | commonswiki |
Wiki Loves Africa Unique Participants 2021 | null | SELECT DISTINCT actor_name, rev_actor
FROM commonswiki_p.page p
INNER JOIN commonswiki_p.categorylinks cl ON p.page_id = cl.cl_from
INNER JOIN commonswiki_p.revision r ON p.page_id = r.rev_page
join actor on rev_actor = actor_id and actor_user is not null
WHERE cl.cl_to IN (
"Images_from_Wiki_Loves_Africa_2021"
)
... | {"runningtime": "0.11", "resultsets": [{"rowcount": 0, "headers": ["page_id"]}, {"rowcount": 4, "headers": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"]}]} | commonswiki |
New Malayalam lexemes per day | New Malayalam lexemes per day | SELECT DATE_FORMAT(revision.rev_timestamp, '%Y-%m-%d') AS date, count(page.page_title) as pages
FROM page
JOIN revision ON page.page_id=revision.rev_page
JOIN pagelinks ON page.page_id=pagelinks.pl_from
WHERE page.page_namespace=146
AND revision.rev_parent_id=0 # No parent rev = page creation
AND pagelinks.pl_titl... | {"runningtime": "64.17", "resultsets": [{"rowcount": 3, "headers": ["term_type", "term_language", "terms"]}]} | wikidatawiki_p |
New Hindustani Lexemes per day | New Hindustani lexemes | SELECT DATE_FORMAT(revision.rev_timestamp, '%Y-%m-%d') AS date, count(page.page_title) as pages
FROM page
JOIN revision ON page.page_id=revision.rev_page
JOIN pagelinks ON page.page_id=pagelinks.pl_from
WHERE page.page_namespace=146
AND revision.rev_parent_id=0 # No parent rev = page creation
AND pagelinks.pl_titl... | {"runningtime": "9.95", "resultsets": [{"rowcount": 1, "headers": ["total", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | wikidatawiki_p |
Recent unblocks | null | SELECT x.actor_name as `Admin1`, log_timestamp, CONCAT("User:", a.log_title) as `user`, comment_text
FROM logging_logindex a
JOIN comment_logging on a.log_comment_id = comment_id
JOIN actor x on x.actor_id = a.log_actor
WHERE
a.log_action = "unblock"
AND a.log_type = "block"
ORDER BY a.log_timestamp desc | {"runningtime": "1.18", "resultsets": [{"rowcount": 297, "headers": ["editor", "accepts", "recent_edits"]}]} | enwiki |
Recent unblocks by the blocking admin | null | SELECT x.actor_name as `Admin1`, log_timestamp, CONCAT("User:", a.log_title) as `user`, comment_text
FROM logging_logindex a
JOIN comment_logging on a.log_comment_id = comment_id
JOIN actor x on x.actor_id = a.log_actor
WHERE
a.log_action = "unblock"
AND a.log_type = "block"
AND a.log_title in (select b.log_ti... | {"runningtime": "2.73", "resultsets": [{"rowcount": 93, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | enwiki |
Recent unblocks by admins who weren't the blocking admin | null | SELECT x.actor_name as `Admin1`, log_timestamp, CONCAT("User:", a.log_title) as `user`, comment_text
FROM logging_logindex a
JOIN comment_logging on a.log_comment_id = comment_id
JOIN actor x on x.actor_id = a.log_actor
WHERE
a.log_action = "unblock"
AND a.log_type = "block"
AND a.log_title in (select b.log_ti... | {"runningtime": "19.24", "resultsets": [{"rowcount": 50, "headers": ["user_name", "byte_count", "edit_count"]}]} | enwiki |
Tewiki: user-wise WPWPTE to village pages | null | select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = 'భారతదేశ_గ్రామాలు'
OR
... | {"runningtime": "0.80", "resultsets": [{"rowcount": 43, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | tewiki |
Tewiki: user-wise WPWPTE to village pages | null | select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = 'భారతదేశ_గ్రామాలు'
OR
... | {"runningtime": "10.63", "resultsets": [{"rowcount": 4, "headers": ["main_title"]}]} | tewiki |
WPWPTE upto-the-minute stats | null | /* select count(rev_page) as total from revision,comment
where comment_id=rev_comment_id
and comment_text like "%WPWPTE%"
and rev_timestamp>="2021070100000";
-- ---
*/select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_i... | {"connection_id": 2931589} | tewiki |
Tewiki: user-wise WPWPTE to village pages | null | select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = 'భారతదేశ_గ్రామాలు'
OR
... | {"connection_id": 2931786} | tewiki |
WPWPBN 2021 | উইকিপিডিয়ার পাতায় চিত্র যোগ ২০২১ | SELECT actor_name,count(rev_actor) as count from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPBN%"
and rev_timestamp>="2021070100000"
-- and rev_timestamp like "20210831%"
group by rev_actor
ord... | {"connection_id": 2932633} | bnwiki |
Most pending changes accepts (last 30 days) | null | SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank,
actor_name,
COUNT(log_actor) AS manual_accept_count
FROM logging_userindex
JOIN actor_logging ON actor_id = log_actor
WHERE log_type = 'review'
AND log_action = 'approve'
AND DATEDIFF(NOW(), log_timestamp) < 30
GROUP BY log_actor
ORDER BY manual_accept... | {"runningtime": "527.98", "resultsets": [{"headers": ["CONCAT(\"File:\", page_title)", "COUNT(*)"], "rowcount": 281332}]} | enwiki |
Tewiki: user-wise WPWPTE to village pages | null | select actor_name,count(rev_actor) as countt from revision,comment,actor,page
where comment_id=rev_comment_id
and rev_actor=actor_id
and page_id=rev_page
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = 'భారతదేశ_గ్రామాలు'
OR
... | {"runningtime": "55.11", "resultsets": [{"rowcount": 38, "headers": ["actor_name", "c"]}]} | tewiki |
Tewiki: AP village pages in WPWPTE | null | set @area:="ఆంధ్రప్రదేశ్_గ్రామాలు";
select page_title from revision,comment,page
where comment_id=rev_comment_id
and page_id=rev_page
and page_namespace=0
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = @area
OR
cl_to IN ... | {"runningtime": "22.44", "resultsets": [{"rowcount": 8858, "headers": ["concat(\"Category:\",page_title)", "page_len"]}]} | tewiki |
Tewiki: Telangana village pages in WPWPTE | null | set @area:="తెలంగాణ_గ్రామాలు";
select page_title from revision,comment,page
where comment_id=rev_comment_id
and page_id=rev_page
and page_namespace=0
and comment_text like "%WPWPTE%"
and page_id in (select cl_from from categorylinks where (cl_to = @area
OR
cl_to IN (sele... | {"runningtime": "0.14", "resultsets": [{"rowcount": 0, "headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "pa... | tewiki |
Articles in both a mother and a daughter category | null | SELECT
p1.page_title,
cl1.cl_to,
cl2.cl_to
FROM page p1 -- article
JOIN categorylinks cl1 -- daughter
ON p1.page_id = cl1.cl_from
JOIN categorylinks cl2 -- mother
ON p1.page_id = cl2.cl_from
JOIN page p2 -- daughter cat page
ON cl1.cl_to = p2.page_title
AND p2.page_namespace = 14
JOIN categorylinks cl3
... | {"connection_id": 3190440} | fawiki_p |
Meta protection query | null | select pr_level, pr_expiry, page_namespace, page_title from page join page_restrictions on page_id = pr_page; | {"connection_id": 7149473} | metawiki_p |
Most pending changes accepts (all time) | null | SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank,
actor_name,
COUNT(log_actor) AS manual_accept_count
FROM logging_userindex
JOIN actor_logging ON actor_id = log_actor
WHERE log_type = 'review' AND log_action = 'approve'
GROUP BY log_actor
ORDER BY manual_accept_count DESC
LIMIT 1000 | {"runningtime": "53.83", "resultsets": [{"rowcount": 33274, "headers": ["page_title"]}]} | enwiki |
Most pending changes accepts (last 30 days) | null | SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank,
actor_name,
COUNT(log_actor) AS manual_accept_count
FROM logging_userindex
JOIN actor_logging ON actor_id = log_actor
WHERE log_type = 'review'
AND log_action = 'approve'
AND DATEDIFF(NOW(), log_timestamp) < 30
GROUP BY log_actor
ORDER BY manual_accept... | {"runningtime": "19.57", "resultsets": [{"rowcount": 13440, "headers": ["page_title"]}]} | enwiki |
Get a Wikipedia username based on user_id | null | SELECT user_name FROM user
WHERE user_id = 4849142 | {"runningtime": "0.71", "resultsets": [{"rowcount": 358, "headers": ["user_id", "user_name", "user_editcount"]}]} | wikipedia |
Label/description/alias stats for Bengali | Since the migration away from wb_terms, and since the Grafana dashboard which previously displayed these stats is broke, the only way to get semi-immediate statistics on these is for a single language at a time. (There are pages, such as https://wikidata-analytics.wmcloud.org/app/WD_LanguagesLandscape and https://www.w... | use wikidatawiki_p;
SELECT
wby_name as term_type,
term_language,
terms
FROM (
SELECT
wbtl_type_id as term_type_id,
wbxl_language as term_language,
count(*) as terms
FROM wbt_item_terms
INNER JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id
INNER JOIN wbt_text_in_lang ON wbtl_text... | {"connection_id": 7401898} | wikidatawiki_p |
Articles in both a mother and a daughter category | null | SELECT
p1.page_title,
cl1.cl_to,
cl2.cl_to
FROM page p1 -- article
JOIN categorylinks cl1 -- daughter
ON p1.page_id = cl1.cl_from
JOIN categorylinks cl2 -- mother
ON p1.page_id = cl2.cl_from
JOIN page p2 -- daughter cat page
ON cl1.cl_to = p2.page_title
AND p2.page_namespace = 14
JOIN categorylinks cl3
... | {"runningtime": "10.85", "resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}]} | fawiki_p |
Tewiki: Enwiki articles in a category (3 levels) without Tewiki link | null | set @cat:= "Indian_sportspeople";
SELECT
distinct (concat("[[:en:",page_title,"|",page_title,"]]")) Title_en
FROM
page, langlinks
WHERE
ll_from = page_id and
page_id not in (select ll_from from langlinks where ll_lang = 'te') and
page_namespace = 0 and
page_is_redirect=0 and
page_id in (s... | {"runningtime": "11.34", "resultsets": [{"rowcount": 1650, "headers": ["editor", "accepts", "recent_edits"]}]} | enwiki |
User contribs in a specific category | null | set @username = "PBbot";
set @categoryname = "Miasta_w_Mołdawii";
select
rev_timestamp,
page_title,
page_namespace,
comment_text
from revision
inner join actor on actor_id = rev_actor
inner join comment on comment_id = rev_comment_id
inner join page on page_id = rev_page
inner join categoryli... | {"runningtime": "8.74", "resultsets": [{"rowcount": 175, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | plwiki_p |
User contribs in a specific category | null | set @username = "Sangdeboeuf";
set @categoryname = "Slavic_gods";
select
rev_timestamp,
page_title,
page_namespace,
comment_text
from revision
inner join actor on actor_id = rev_actor
inner join comment on comment_id = rev_comment_id
inner join page on page_id = rev_page
inner join categoryli... | {"connection_id": 6803853} | enwiki_p |
User contribs in a specific category | null | set @username = "Sangdeboeuf";
set @categoryname = "Slavic_mythology";
select
rev_timestamp,
page_title,
page_namespace,
comment_text
from revision
inner join actor on actor_id = rev_actor
inner join comment on comment_id = rev_comment_id
inner join page on page_id = rev_page
inner join categ... | {"runningtime": "0.25", "resultsets": []} | enwiki_p |
Tulu Wikipedia pages with less than 1000 bytes | Tulu Wikipedia pages with less than 1000 bytes | select concat("[[",page_title,"]]") from page where page_namespace = 0 and page_Len <= 1000 and page_is_redirect = False; | {"runningtime": "1.04", "resultsets": [{"rowcount": 450, "headers": ["page_title"]}]} | tcywiki |
Tulu Wikipedia articles with images | null | select p.page_title from page p,page p1 where p.page_id in (select il_from from imagelinks) and p.page_namespace=0 and p1.page_namespace=1 and p1.page_title=p.page_title; | {"runningtime": "10.44", "resultsets": [{"headers": ["rc_title", "rc_actor", "max(rc_timestamp)"], "rowcount": 28}]} | tcywiki |
Tulu Wikipedia Articles with images | null | select concat("[[",p.page_title,"]]") from page p,page p1 where p.page_id in (select il_from from imagelinks) and p.page_namespace=0 and p1.page_namespace=1 and p1.page_title=p.page_title; | {"connection_id": 6242492} | tcywiki |
nlwiki Gebruiker:Multichill/GevraagdePaginas | null | SELECT CONCAT('* [[', articlelinks.pl_title, ']] - ', COUNT(*))
FROM pagelinks AS articlelinks
LEFT JOIN page ON articlelinks.pl_title=page_title AND page_namespace=0
LEFT JOIN pagelinks AS templinks ON articlelinks.pl_title=templinks.pl_title AND templinks.pl_namespace=0 AND templinks.pl_from_namespace=10
WHERE a... | {"runningtime": "4.28", "resultsets": [{"rowcount": 2283, "headers": ["page_title"]}]} | nlwiktionary |
HebrewPagesRevisionsInTimeRange | HebrewPagesRevisionsInTimeRange | #USE hewiki_p;
SELECT revision.rev_id, revision.rev_actor, revision.rev_timestamp, revision.rev_parent_id, page.page_title, revision.rev_minor_edit,
revision.rev_deleted
FROM revision
JOIN page ON revision.rev_page=page.page_id
WHERE (
page.page_namespace = 0 # main / articles
#AND revision.rev_minor_edit = 0 # ... | {"runningtime": "7.00", "resultsets": [{"rowcount": 174, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | hewiki_p |
HebrewPagesRevisionsInTimeRange2 | HebrewPagesRevisionsInTimeRange | #USE hewiki_p;
SELECT revision.rev_id, revision.rev_actor, revision.rev_timestamp, revision.rev_parent_id, page.page_title, revision.rev_minor_edit,
revision.rev_deleted
FROM revision
JOIN page ON revision.rev_page=page.page_id
WHERE (
page.page_namespace = 0 # main / articles
#AND revision.rev_minor_edit = 0 # ... | {"runningtime": "1.80", "resultsets": [{"rowcount": 88, "headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"]}]} | hewiki_p |
HebrewPagesRevisionsInTimeRange | HebrewPagesRevisionsInTimeRange | #USE hewiki_p;
SELECT revision.rev_id, revision.rev_actor, revision.rev_timestamp, revision.rev_parent_id, page.page_title, revision.rev_minor_edit,
revision.rev_deleted
FROM revision
JOIN page ON revision.rev_page=page.page_id
WHERE (
page.page_namespace = 0 # main / articles
#AND revision.rev_minor_edit = 0 # ... | {"runningtime": "16.66", "resultsets": [{"rowcount": 0, "headers": ["page_title"]}]} | hewiki_p |
HebrewPagesRevisionsInTimeRange | HebrewPagesRevisionsInTimeRange | #USE hewiki_p;
SELECT revision.rev_id, revision.rev_actor, revision.rev_timestamp, revision.rev_parent_id, page.page_title, revision.rev_minor_edit,
revision.rev_deleted
FROM revision
JOIN page ON revision.rev_page=page.page_id
WHERE (
page.page_namespace = 0 # main / articles
#AND revision.rev_minor_edit = 0 # ... | {"runningtime": "20.59", "resultsets": [{"rowcount": 50, "headers": ["user_name", "byte_count", "edit_count"]}]} | hewiki |
All files on hr.wiki with no license | null | SELECT img_name AS file , actor_name #,
# img_timestamp AS img_creation
# ^^Timestamp of when upload took place. Not necessarily the same timestamp as logging.log_timestamp.
FROM image
JOIN page
ON page_namespace = 6
AND page_title = img_name
JOIN actor_image ON img_actor = actor_id
JOIN categorylinks
ON cl_from ... | {"runningtime": "7.10", "resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 200}]} | hrwiki_p |
All files on hr.wiki with no license | null | SELECT img_name AS file , actor_name #,
# img_timestamp AS img_creation
# ^^Timestamp of when upload took place. Not necessarily the same timestamp as logging.log_timestamp.
FROM image
JOIN page
ON page_namespace = 6
AND page_title = img_name
JOIN actor_image ON img_actor = actor_id
JOIN categorylinks
ON cl_from ... | {"runningtime": "12.82", "resultsets": [{"rowcount": 200, "headers": ["page_title", "rd_title"]}]} | hrwiki_p |
All files on hr.wiki with no license | null | SELECT img_name AS file , actor_name #,
# img_timestamp AS img_creation
# ^^Timestamp of when upload took place. Not necessarily the same timestamp as logging.log_timestamp.
FROM image
JOIN page
ON page_namespace = 6
AND page_title = img_name
JOIN actor_image ON img_actor = actor_id
JOIN categorylinks
ON cl_from ... | {"runningtime": "5.92", "resultsets": [{"rowcount": 0, "headers": ["page_title", "rd_title"]}]} | hrwiki_p |
All files on hr.wiki with no license | null | SELECT img_name AS file , actor_name #,
# img_timestamp AS img_creation
# ^^Timestamp of when upload took place. Not necessarily the same timestamp as logging.log_timestamp.
FROM image
JOIN page
ON page_namespace = 6
AND page_title = img_name
JOIN actor_image ON img_actor = actor_id
JOIN categorylinks
ON cl_from ... | {"runningtime": "23.47", "resultsets": [{"rowcount": 50, "headers": ["page_title", "rd_title"]}]} | hrwiki_p |
All files on hr.wiki with no license | null | SELECT img_name AS file , actor_name #,
# img_timestamp AS img_creation
# ^^Timestamp of when upload took place. Not necessarily the same timestamp as logging.log_timestamp.
FROM image
JOIN page
ON page_namespace = 6
AND page_title = img_name
JOIN actor_image ON img_actor = actor_id
JOIN categorylinks
ON cl_from ... | {"runningtime": "0.09", "resultsets": [{"rowcount": 17, "headers": ["Database"]}]} | hrwiki_p |
All files on hr.wiki with no license | null | SELECT img_name AS file , actor_name #,
# img_timestamp AS img_creation
# ^^Timestamp of when upload took place. Not necessarily the same timestamp as logging.log_timestamp.
FROM image
JOIN page
ON page_namespace = 6
AND page_title = img_name
JOIN actor_image ON img_actor = actor_id
JOIN categorylinks
ON cl_from ... | {"runningtime": "16.62", "resultsets": [{"rowcount": 50, "headers": ["page_title", "rd_title"]}]} | hrwiki_p |
Artikelanlagen im ANR bei Wikinews | null | SELECT CONCAT(SUBSTR(rev_timestamp, 1, 4), ' ', SUBSTR(rev_timestamp, 5, 2)) AS JahrMonat, COUNT(*) AS Anzahl
FROM page, revision
WHERE page_id = rev_page
AND rev_parent_id = 0
AND page_namespace = 0
AND rev_timestamp > '20160100000000'
GROUP BY JahrMonat
ORDER BY JahrMonat DESC | {"runningtime": "0.08", "resultsets": [{"headers": ["Tables_in_meta_p"], "rowcount": 3}]} | dewikinews_p |
Tewiki: All AP villages without Map in Infobox | null | set @dist := "ఆంధ్రప్రదేశ్";
select p1.page_title పేజీ,cl.cl_to వర్గం from page p1,categorylinks cl
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhra_Pradesh_locator_map.svg")
and p1.page_namespace=0
and cl.cl_from=p1.page_id
and cl.cl_to like "%గ్రామాలు"
and p1.page_id in (select cl_from fro... | {"runningtime": "17.70", "resultsets": [{"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"], "rowcount": 10366}]} | tewiki |
top rollbacker | null | SELECT actor_name as user,
COUNT(*) as cnt
FROM revision
JOIN change_tag
ON rev_id = ct_rev_id
JOIN actor
ON actor_id = rev_actor
WHERE ct_tag_id =
(SELECT ctd_id FROM change_tag_def
WHERE ctd_name = 'mw-rollback')
GROUP BY user
ORDER BY cnt DESC
LIMIT 100; | {"runningtime": "28.68", "resultsets": [{"rowcount": 3337, "headers": ["ar_id", "ar_namespace", "ar_title", "ar_timestamp", "ar_minor_edit", "ar_page_id"]}]} | arwiki |
Most pending changes accepts (last 30 days) | null | SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank,
actor_name,
COUNT(log_actor) AS manual_accept_count
FROM logging_userindex
JOIN actor_logging ON actor_id = log_actor
WHERE log_type = 'review'
AND log_action = 'approve'
AND DATEDIFF(NOW(), log_timestamp) < 30
GROUP BY log_actor
ORDER BY manual_accept... | {"runningtime": "2.70", "resultsets": [{"headers": ["page_title"], "rowcount": 1010}]} | enwiki |
Tewiki:Village pages for WPWP in a Mandalam | null | set @dist := "పెదబయలు_మండలంలోని";
select p1.page_title from page p1
where p1.page_id not in (select il_from from imagelinks where il_to ="Andhra_Pradesh_locator_map.svg")
and p1.page_namespace=0
and p1.page_id in (select cl_from from categorylinks where (cl_to = concat(@dist,'_గ్రామాలు')
... | {"runningtime": "0.21", "resultsets": [{"rowcount": 100, "headers": ["Timestamp", "actor_name", "rc_title", "total diff", "link"]}]} | tewiki |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.