title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Get mainspace revisions to arwiki | null | SELECT actor_name,rc_title,SUM(CAST(rc_new_len as signed)-CAST(rc_old_len as signed)) AS byte_count#, COUNT(rc_id) as edit_count
FROM recentchanges
LEFT JOIN actor ON rc_actor = actor_id
WHERE rc_type = 0
#AND rc_namespace = 0
AND rc_timestamp BETWEEN 20211117000000 AND 20211217000000
#AND actor_name in ... | {"resultsets": [{"headers": ["page_title", "comment_text", "page_id", "rev_timestamp"], "rowcount": 203}], "runningtime": "0.56"} | arwiki_p |
svwiki edits 2020 (mobile/all) | Based on queries #50040 and #50065. |
set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 6) as month,
sum(ct_rev_id is not null) as mobile_revisions,
count(rev_id) as revisions,
concat(
if(
count(rev_id) = 0,
0,
format(
sum... | {"resultsets": [{"headers": ["number", "actor_user", "rev_user_text", "recent_user_editcount"], "rowcount": 2311}], "runningtime": "12.64"} | svwiki_p |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | 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": [{"headers": ["CONCAT(\"Category:\",page_title,\"\")"], "rowcount": 0}], "runningtime": "6.36"} | bnwiki_p |
idwiki edits January 2022 (mobile/all) | Based on queries #50040 and #50065. | 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(
sum(ct... | {"resultsets": [{"headers": ["CONCAT('# [[:File:', p.page_title, ']]')"], "rowcount": 69}], "runningtime": "0.40"} | idwiki |
Wikimarathon 2022 for UKWP | 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('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name,
COUNT(1) AS created,
SUM(article.page_len) as... | {"resultsets": [{"headers": ["wll_id", "wll_timestamp", "wll_sender", "wll_sender_registration", "wll_sender_editcount", "wll_receiver", "wll_receiver_registration", "wll_receiver_editcount", "wll_type", "wll_subject", "wll_message", "wll_email", "user_id", "user_name", "user_real_name", "user_password", "user_newpassw... | ukwiki_p |
KCV sandbox | null | SELECT DISTINCT actor_name, actor_id, actor_user
FROM actor
WHERE actor_name = 'Romaine'
LIMIT 10 | {"resultsets": [{"headers": ["actor_user", "ActName", "c0"], "rowcount": 100}], "runningtime": "1.14"} | enwiki_p |
Size of uploads by Gone Postal (in MiB) | This count based purely on filename and uploader, a handy guide to size of the total size uploads presuming bot accounts are not the actual uploaders for some projects. | USE commonswiki_p;
SELECT COUNT(img_name) AS Count,
SUM(img_size)>>20 AS Size_MiB
FROM image
INNER JOIN actor_image ON actor_id = img_actor
WHERE actor_name = "Gone Postal"; | {"resultsets": [{"headers": ["tl_title"], "rowcount": 140}], "runningtime": "2000.68"} | commonswiki_p |
Size of uploads by Fæ | This count based purely on filename and uploader, a handy guide to size of the total size uploads presuming bot accounts are not the actual uploaders for some projects. | USE commonswiki_p;
SELECT COUNT(img_name) AS Count,
ROUND(SUM(img_size/(1<<30))) AS Size_GB
FROM image
JOIN actor_image ON actor_id = img_actor
WHERE actor_name = "1Veertje"; | {"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 50}], "runningtime": "0.12"} | commonswiki_p |
draft space | null | WITH actor_uploaders_tocat AS (
SELECT actor_user
FROM revision
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 = "Images_from_Wiki_Loves_Earth_2014"),
user_join AS (
SELECT actor_user, user_id, user_name, user_registration
FROM ... | {"resultsets": [{"headers": ["page_title"], "rowcount": 17}], "runningtime": "9.03"} | commonswiki |
Protected redirects without rcat | null | USE enwiki_p;
SELECT DISTINCT page_namespace, page_title, pr_level FROM page INNER JOIN page_restrictions ON page_id=pr_page
WHERE pr_level = "autoconfirmed"
AND page_is_redirect = 1
And page_id not in (Select cl_from from categorylinks where cl_to = "Semi-protected_redirects")
and page_id in (select tl_from from temp... | {"resultsets": [{"headers": ["category_name", "fawiki_counterparts"], "rowcount": 0}], "runningtime": "0.05"} | enwiki_p |
find invalid ISO:3166-2 codes (commons) | queries table geo-tags for non matching pairs of iso:3166-1 and iso:3166-2 codes, namespace 0, 6, 14 only. | # ISO status 2020-03-02
# last change MK, ZA, ...
use commonswiki_p;
select gt_lat, gt_lon, gt_page_id, gt_name,
(select page_namespace from page where page_id = gt_page_id) as ns,
(select page_title from page where page_id = gt_page_id) as title,
gt_country,gt_region from geo_tags where gt_country not in
( 'XA', 'XI',... | {"resultsets": [{"headers": ["sock", "puppet"], "rowcount": 158805}], "runningtime": "196.16"} | commonswiki_p |
nlwiki Bad category sort for list | null | SELECT page_title, cl_to, cl_sortkey_prefix
FROM categorylinks INNER JOIN page ON cl_from=page_id AND page_namespace=0 AND page_title REGEXP '^Lijst_van_'
WHERE
cl_to!='Wikipedia:Incomplete_lijsten' AND
cl_to REGEXP '^Lijsten_van_|lijsten$' AND
(cl_sortkey_prefix='' OR cl_sortkey_prefix REGEXP '^[Ll]ijst[ _]van[ _]... | {"connection_id": 51244249} | nlwiki |
Count of DPLA bot uploads and byte size | null | SELECT COUNT(img_name) AS "File count",
COUNT(DISTINCT REGEXP_REPLACE(REGEXP_REPLACE(img_name, '^.*DPLA_-_', ''), '[\.|_].*$', '')) AS "Item count",
ROUND(SUM(img_size/(1<<30))) AS "Size (GB)"
FROM image
JOIN actor_image ON actor_id = img_actor
WHERE actor_name = "DPLA bot"
| {"resultsets": [{"headers": ["den", "hodina", "revertovano", "od_anon"], "rowcount": 168}], "runningtime": "1.17"} | commonswiki_p |
Oldest articles on skwiki | null | USE skwiki_p;
SELECT
@i := @i + 1 AS rank,
-- (SELECT pp_value FROM page_props WHERE pp_page = page_id AND pp_propname = 'wikibase_item') as wb_item,
REPLACE(p.page_title, '_', ' ') as page_title,
-- p.page_len,
-- (SELECT count(*) FROM langlinks WHERE ll_from = p.page_id) as iw_count,
CONCAT(... | {"resultsets": [{"headers": ["concat(\"\u062a\u0635\u0646\u064a\u0641:\",(select ll_title from langlinks where ll_from = p2.page_id and ll_lang = \"ar\"))", "concat(\"[[en:Category:\",p1.page_title,\"]]\")"], "rowcount": 5319}], "runningtime": "176.88"} | skwiki_p |
Indef blocked users with > 10000 edits (hrwiki) | null | SELECT user_name, user_editcount, ipb_expiry, comment_text
FROM user
JOIN ipblocks ON ipb_user = user_id
JOIN comment ON ipb_reason_id = comment_id
where ipb_expiry = 'infinity' AND user_editcount > 10000
GROUP BY user_id
ORDER BY user_editcount DESC
limit 200 | {"resultsets": [{"headers": ["\u09a8\u0982", "\u09b8\u09a6\u09b8\u09cd\u09af", "\u09b8\u09ae\u09cd\u09aa\u09be\u09a6\u09a8\u09be\u09f0_\u09b8\u0982\u0996\u09cd\u09af\u09be"], "rowcount": 1000}], "runningtime": "2.59"} | hrwiki_p |
most thanked users in hrwiki | null | SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="thanks"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"resultsets": [], "runningtime": "0.03"} | hrwiki_p |
Articles by lint errors except for Obsolete HTML tags (hrwiki) | Based on query: https://quarry.wmflabs.org/query/31876 | select page_title
, count(*) as page_count
, sum(case when linter_params like '%"name":"center"%' then 1 end) as tag_center
, sum(case when linter_params like '%"name":"small"%' then 1 end) as tag_small
, sum(case when linter_params like '%"name":"span"%' then 1 end) as tag_span
, sum(case when linter_params like '%"na... | {"resultsets": [{"headers": ["page_title"], "rowcount": 34350}], "runningtime": "71.44"} | hrwiki_p |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৮ জানু ২০২০ | SET @ct:=0;
SELECT
CONCAT("{{subst:formatnum:",@ct:=@ct+1,"}}") AS নং,
CONCAT("{{u|",user,"}}") AS ব্যবহারকারী_নাম,
CONCAT("{{subst:formatnum:",cnt,"}}") AS মোট_নিবন্ধ
FROM (
SELECT
actor_name AS user,
COUNT(rev_id) AS cnt
FROM actor
JOIN revision
ON rev_actor = actor_id
JOIN page
ON page_id = rev_page
WH... | {"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page"], "rowcount": 100}], "runningtime": "0.19"} | bnwiki_p |
kswiki edits November 2020 (mobile/all) | Based on queries #50040 and #50065. | set @mobile_edit_tag = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'mobile edit'
);
select
substring(rev_timestamp, 1, 6) as month,
sum(ct_rev_id is not null) as mobile_revisions,
count(rev_id) as revisions,
concat(
if(
count(rev_id) = 0,
0,
format(
sum(... | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "Wikidata"], "rowcount": 3}], "runningtime": "28.74"} | kswiki_p |
Former pending changes reviewers | null | select user_id, user_name as username from user, user_former_groups where ufg_group = 'reviewer' and user_id = ufg_user
order by user_name asc | {"resultsets": [{"headers": ["ar_namespace", "ar_title"], "rowcount": 773}], "runningtime": "23.90"} | enwiki_p |
Redirects to category בוט_חוקים | null | use hewikisource_p;
select title as page_title from (
select p.page_title as title from page p
join categorylinks cat where cat.cl_to="בוט_חוקים") as res
| {"resultsets": [{"headers": ["page_title", "cl_to"], "rowcount": 21}], "runningtime": "25.46"} | hewikisource_p |
Tewiki:Yearly file uploads | null | USE tewiki_p;
SELECT substr(img_timestamp,1,4),count(substr(img_timestamp,1,4)) as file_uploads FROM image
group by substr(img_timestamp,1,4)
order by substr(img_timestamp,1,4) | {"resultsets": [{"headers": ["Artikel", "BKH"], "rowcount": 413}], "runningtime": "0.59"} | tewiki |
Tewiki:Yearly bytes added | null | USE tewiki_p;
SELECT substr(rev.rev_timestamp,1,4) dated,
SUM(abs(CAST(rev.rev_len as signed)-if(rev.rev_parent_id=0,0,CAST(parent.rev_len as signed)))) AS Gross_bytes_added,
SUM(CAST(rev.rev_len as signed)-if(rev.rev_parent_id=0,0,CAST(parent.rev_len as signed))) AS nett_bytes_added
FROM revision rev
left JOI... | {"resultsets": [{"headers": ["page_namespace", "COUNT(*)"], "rowcount": 5}], "runningtime": "0.25"} | tewiki |
Tewiki:Yearly edit count -NS0 | null | use tewiki_p;
SELECT substr(rev_timestamp,1,4) as datee,COUNT(substr(rev_timestamp,1,4)) as Main_space_edits
FROM revision,actor,page,user,user_groups
WHERE actor_id=rev_actor
and page_id=rev_page
and page_namespace=0
and user_id=actor_user
and ug_user=user_id
and ug_group!="bot"
GROUP BY substr(rev_times... | {"resultsets": [{"headers": ["page_title"], "rowcount": 89992}], "runningtime": "113.58"} | tewiki |
Tewiki:Yearly all NS pages deletion | null | use tewiki_p;
SELECT
substr(ar_timestamp,1,4),count(substr(ar_timestamp,1,4)) as All_NS_deletions
FROM
archive
WHERE
archive.ar_parent_id = 0
GROUP BY substr(ar_timestamp,1,4)
order by substr(ar_timestamp,1,4) | {"resultsets": [{"headers": ["number", "actor_user", "rev_user_text", "recent_user_editcount"], "rowcount": 50}], "runningtime": "6.01"} | tewiki |
Tewiki:Yearly New page creations - All NS | null | USE tewiki_p;
select substr(rev_timestamp,1,4) as dated, count(substr(rev_timestamp,1,4)) as All_NS_new_pages
from page,revision
where page_id=rev_page
and rev_parent_id=0
group by substr(rev_timestamp,1,4)
order by substr(rev_timestamp,1,4) | {"resultsets": [{"headers": ["month", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 2}], "runningtime": "0.70"} | tewiki |
En çok teşekkür edenler | null | USE trwiki_p;
SELECT CONCAT("[[Kullanıcı:",actor_name,"|",actor_name,"]]") AS "Kullanıcı", COUNT(log_actor) AS "Teşekkür sayısı"
FROM actor
INNER JOIN logging ON (actor.actor_id=logging.log_actor)
WHERE log_timestamp BETWEEN 20220101000000 AND 20220703000000
AND log_action = "thank"
GROUP BY actor_name
ORDER BY COUNT(*... | {"resultsets": [{"headers": ["page_namespace", "COUNT(*)"], "rowcount": 5}], "runningtime": "0.52"} | trwiki_p |
Pending articles by category | null | USE trwiki_p;
SELECT DISTINCT CONCAT ("*[[",page_title, "]]<br/>") AS Madde FROM categorylinks
INNER JOIN page ON page.page_id = categorylinks.cl_from
INNER JOIN flaggedpage_pending fp1 ON (fp1.fpp_page_id = categorylinks.cl_from)
WHERE cl_to LIKE '%basket%'
| {"resultsets": [{"headers": ["year", "month", "page_namespace", "count"], "rowcount": 86}], "runningtime": "49.33"} | trwiki_p |
Show keys from flaggedtemplates | null | show keys from actor; | {"connection_id": 7038072} | ruwiki |
Sandbox | null | SELECT * FROM flaggedtemplates
WHERE flaggedtemplates.ft_tmp_rev_id = 0
LIMIT 10; | {"resultsets": [{"headers": ["#", "Szerkeszt\u0151", "Ellen\u0151rz\u00e9sek sz\u00e1ma az id\u0151szakban"], "rowcount": 113}], "runningtime": "1453.93"} | ruwiki |
Tewiki:New articles (cx & non cx and non-redirects) and deletions in 2020 | null | set @dbname = 'tewiki';
set @yearn ="2021";
set @ct_tag_id = (
select
ctd_id
from
change_tag_def
where
ctd_name = 'contenttranslation'
);
set @created_total = (
select
count(rev_id)
from
page,
revision
where
page_id = rev_page and
page_namespace = 0 and
rev_timestamp lik... | {"connection_id": 4793096} | tewiki |
Սևագրեր, որոնք պետք է ջնջել Հայերեն Վիքիպեդիայում | null | SELECT concat('Սևագիր:', page_title) as Title
FROM revision
JOIN page ON rev_page = page_id
AND page_latest = rev_id
WHERE page_namespace = 118
AND (rev_timestamp < DATE_ADD(NOW(), INTERVAL -6 MONTH))
ORDER BY rev_timestamp | {"resultsets": [{"headers": ["page_links_updated", "page_namespace", "page_title"], "rowcount": 6}], "runningtime": "30.49"} | hywiki_p |
Öksüz sayfalar (tr) | null | USE trwiki_p;
SELECT
CONCAT('# [[',p1.page_title,']]') sayfa_adi #,
# CONCAT('[[:',cl.cl_to,']]') kategori
FROM page AS p1#, categorylinks AS cl
WHERE p1.page_is_redirect = 0
AND p1.page_namespace = 0
# anlam ayrım sayfası olmasın
AND p1.page_id NOT IN (
SELECT pp_page
FROM page_props
WHERE pp_propname = 'di... | {"resultsets": [{"headers": ["MONTH(rev_timestamp)"], "rowcount": 2}], "runningtime": "0.27"} | trwiki_p |
CX Article Deletion Trend | null | USE trwiki_p;
SELECT yearweek(ar_timestamp) month, COUNT(ar_page_id) deletions FROM `change_tag`, `change_tag_def`, `archive`
WHERE ar_namespace = 0 AND ctd_name = 'contenttranslation' AND ar_rev_id = ct_rev_id
GROUP BY yearweek(ar_timestamp);
| {"resultsets": [{"headers": ["actor_name", "rc_this_oldid", "comment_text"], "rowcount": 0}], "runningtime": "23.15"} | trwiki_p |
Properties created by user | Properties created by Property Creator | use wikidatawiki_p;
SELECT
actor_name AS 'User',
COUNT(*) AS 'Properties created',
CASE
WHEN EXISTS (
SELECT 1
FROM user_groups
WHERE ug_user = actor_user
AND ug_group = 'bureaucrat'
) THEN 'Current bureaucrat'
WHEN EXISTS (
SELECT 1
FROM user_groups
WHERE ug_use... | {"resultsets": [{"headers": ["user_id", "user_name", "user_real_name", "user_password", "user_newpassword", "user_email", "user_touched", "user_token", "user_email_authenticated", "user_email_token", "user_email_token_expires", "user_registration", "user_newpass_time", "user_editcount", "user_password_expires"], "rowco... | wikidatawiki_p |
KCV sandbox 2 | null | WITH
base_table AS (
SELECT DISTINCT
rev_id,
rev_actor,
rev_timestamp,
rev_len,
rev_parent_id,
page_namespace,
page_id,
user_name,
REGEXP_SUBSTR(page_title, 'W[a-z]/[a-z]+') AS prefix,
rc_new_len - rc_old_len AS byte_diff,
... | {"resultsets": [{"headers": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "actor_id", "actor_user", "actor_name"], "rowcount": 2000}], "runningtime": "2.35"} | incubatorwiki |
Reply Tool usage/user (idwiki) | null | select actor_name, count(*) as total
from (
select ct.ct_id, ct.ct_rev_id, actor_user, actor_name
from idwiki_p.change_tag ct
inner join idwiki_p.revision_actor_temp rat
on ct.ct_rev_id = rat.revactor_rev
inner join idwiki_p.actor act
on rat.revactor_actor = act.actor_id
inner join idwiki_p.change_tag_def
on ct_tag_i... | {"resultsets": [{"headers": ["cl_to"], "rowcount": 9438}], "runningtime": "262.83"} | idwiki |
enwiki: Disambig-Class pages that aren't disambiguations | null | SELECT DISTINCT mainpage.page_title, innercat.cl_to
FROM categorylinks outercat
INNER JOIN page outerpage ON outerpage.page_id = outercat.cl_from
INNER JOIN categorylinks innercat ON outerpage.page_title = innercat.cl_to
INNER JOIN page talkpage ON talkpage.page_id = innercat.cl_from
INNER JOIN page mainpage ON mainpag... | {"resultsets": [{"headers": ["user", "cnt"], "rowcount": 1000}], "runningtime": "2.73"} | enwiki_p |
All female editors on German Wikipedia by registration date, general | null | USE dewiki_p;
SELECT
up_user,
user.user_registration,
user.user_name
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"
ORD... | {"resultsets": [{"headers": ["rc_timestamp", "rc_actor", "rc_cur_id", "page_title", "rc_id", "ct_id"], "rowcount": 1863}], "runningtime": "2.03"} | dewiki_p |
All DPLA institution upload categories | null | SET @cat = "Media_contributed_by_the_Digital_Public_Library_of_America";
(SELECT REPLACE(page_title, "_", " ") AS page_title
FROM page
JOIN categorylinks ON page_id = cl_from
WHERE cl_to = @cat AND page_namespace = 14
AND page_title LIKE "Media_contributed_by%"
AND page_title NOT IN ("Media_contributed_by_the_Digit... | {"resultsets": [{"headers": ["cl_to", "count_cl_to"], "rowcount": 0}], "runningtime": "42.71"} | commonswiki_p |
Tewiki: how many pages a template is transcluded | null | SELECT
page_title
FROM page
JOIN templatelinks tl
ON tl_from = page_id
WHERE tl_namespace = 10
AND tl_title = "Weather_box"
AND page_namespace = 0 | {"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 4}], "runningtime": "50.31"} | tewiki |
Tewiki: how many pages a template is transcluded | null | SELECT
page_title
FROM page
JOIN templatelinks tl
ON tl_from = page_id
WHERE tl_namespace = 10
AND tl_title = "Weather_box"
AND page_namespace = 0 | {"resultsets": [{"headers": ["page_title"], "rowcount": 2}], "runningtime": "57.86"} | tewiki |
trwiki: 500 forgotten articles // 500 unutulmuş madde | Redirects, disambiguation pages and non-article-namespace pages are excluded (i.e. only real articles should show up here) | SELECT CONCAT("# [[",page.page_title,"]]") AS title, page.page_id AS id, revision.rev_timestamp AS timestmp
FROM page
JOIN revision ON page.page_latest=revision.rev_id
WHERE page.page_namespace=0
AND page.page_is_redirect=0
AND page.page_id NOT IN (
SELECT pp_page FROM page_props WHERE pp_propname='disambiguatio... | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 4}], "runningtime": "61.97"} | trwiki_p |
nlwiki Largest pages & largest articles | null | SELECT page_namespace, page_title, page_len, rev_timestamp
FROM page INNER JOIN revision ON page_latest=rev_id
ORDER BY page_len DESC
LIMIT 50;
SELECT page_title, page_len, rev_timestamp
FROM page INNER JOIN revision ON page_latest=rev_id
WHERE page_namespace=0
ORDER BY page_len DESC
LIMIT 50 | {"resultsets": [{"headers": ["pa_page_id", "pa_project_id", "pa_class", "pa_importance", "pa_page_revision"], "rowcount": 50}], "runningtime": "0.11"} | nlwiki |
Tewiki: Monthly count and size of translations published by users in 2021 | All publishings from Content translation tool, repeat publishings are not counted, first time overwriting is counted | use tewiki_p;
select concat(substr(rev_timestamp,5,2),"-",substr(rev_timestamp,1,4)) as month_year,actor_name as user,count(actor_name) as No_of_articles, sum(rev_len) as Bytes
from
change_tag,change_tag_def,revision,page,actor
where ct_tag_id = ctd_id
and rev_id=ct_rev_id
and page_id=rev_page
and page_nam... | {"resultsets": [{"headers": ["page_title"], "rowcount": 10}], "runningtime": "0.09"} | tewiki |
Tewiki:Deleted templates' transclusion | null | SELECT
CONVERT(tl_title USING utf8),
COUNT(DISTINCT tl_from) as No_of_transclusions
FROM templatelinks
LEFT JOIN page AS p1
ON p1.page_namespace = tl_namespace
AND p1.page_title = tl_title
JOIN logging
ON tl_namespace = log_namespace
AND tl_title = log_title
AND log_type = 'delete'
JOIN page AS p2
ON tl_from = ... | {"resultsets": [{"headers": ["COUNT(DISTINCT ips_item_id)"], "rowcount": 1}], "runningtime": "43.76"} | tewiki |
Tewiki:Date-wise All NS page deletions -discarded | null | use tewiki_p;
SELECT
substr(ar_timestamp,1,8),count(substr(ar_timestamp,1,8)) as All_NS_deletions
FROM
archive
WHERE
archive.ar_parent_id = 0 AND
substr(ar_timestamp,1,4) ="2022"
GROUP BY substr(ar_timestamp,1,8)
order by substr(ar_timestamp,1,8) | {"resultsets": [{"headers": ["user_name", "user_editcount > @minEdits AND DATEDIFF(@eventDate, user_registration) > @minTenureDays"], "rowcount": 10}], "runningtime": "0.07"} | tewiki_p |
Tewiki:Yearly article deletion | null | use tewiki_p;
SELECT
substr(ar_timestamp,1,4),count(substr(ar_timestamp,1,4)) as Mainspace_deletions
-- count(substr(ar_timestamp,1,4)) as Main_space_deletions
FROM
archive
WHERE
archive.ar_parent_id = 0 and
ar_namespace = 0 /*and
page_title=ar_title */
-- left(ar_timestamp,4) = 2020
GROUP BY substr(ar_tim... | {"resultsets": [{"headers": ["actor_user", "actor_id", "user_name", "user_registration"], "rowcount": 8}], "runningtime": "0.06"} | tewiki |
Tewiki: Log actions count in 2020 | null | USE tewiki_p;
select log_action,count(log_action)
from
logging
where log_timestamp >= 20200100000000
and log_timestamp < 20210100000000
and log_namespace = 0
group by log_action
order by log_action
limit 10 | {"resultsets": [], "runningtime": "0.04"} | tewiki |
Tewiki: Count of log actions - year wise | null | use tewiki_p;
select substring(log_timestamp,1,4),log_action,count(log_action) from logging
where substring(log_timestamp,1,4) in (select distinct substring(log_timestamp,1,4) from logging order by substring(log_timestamp,1,4))
group by substring(log_timestamp,1,4),log_action
order by substring(log_timestamp,1,4) desc,... | {"resultsets": [], "runningtime": "0.03"} | tewiki |
Number of articles created by various users on Tewiki in 2020 | null | use tewiki_p;
SELECT
actor.actor_name,
count(actor_name) as "Articles created"
FROM
revision,
page,
actor
where
page.page_is_redirect=0 and
rev_parent_id = 0 and
page_namespace = 0 and
revision.rev_page = page.page_id and
rev_actor = actor.actor_id and
rev_timestamp > 20220100000000 an... | {"resultsets": [{"headers": ["user_name", "user_registration", "log_timestamp"], "rowcount": 4}], "runningtime": "0.07"} | tewiki |
Tewiki: Count of live articles created user_wise NS0, non-redirect | null | use tewiki_p;
SELECT actor_name, count(actor_name)
FROM revision
INNER JOIN page ON rev_page = page_id
INNER JOIN actor ON rev_actor = actor.actor_id
WHERE page_namespace = 0
AND rev_parent_id = 0
AND page.page_is_redirect = 0
-- and actor_name = ""
group by actor_name
order by count(actor_name) desc
| {"resultsets": [{"headers": ["page_namespace", "page_is_redirect", "count(page_id)"], "rowcount": 50}], "runningtime": "36.20"} | tewiki |
Tewiki: created articles count by user (Live articles only) | null | use tewiki_p;
SELECT
actor.actor_name,
count(actor_name) as "Articles created"
FROM
revision,
page,
actor
where
page.page_is_redirect=0 and
rev_parent_id = 0 and
page_namespace = 0 and
revision.rev_page = page.page_id and
rev_actor = actor.actor_id
group by rev_actor
having count(actor_nam... | {"resultsets": [{"headers": ["Redaktor", "Data rejestracji", "Przyznanie uprawnie\u0144"], "rowcount": 143}], "runningtime": "0.33"} | tewiki |
Tewiki:Deletion stats of page creators and editors -ns0 & all-ns | null | USE tewiki_p;
SELECT actor_name, count(actor_name) as all_ns_new_pages_deleted
FROM archive_userindex JOIN actor_archive ON actor_id = ar_actor
WHERE ar_parent_id = 0
group by actor_name
order by count(actor_name) desc
limit 150;
SELECT actor_name, count(actor_name) as ns0_new_pages_deleted
FROM archive_userindex JOIN... | {"resultsets": [{"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": 54}], "runningtime": "0.14"} | tewiki |
Tewiki: Disambiguation pages without "అయోమయ నివృత్తి" in title | null | USE tewiki_p;
SELECT page_title, COUNT(*) as Incoming_links
FROM page, pagelinks
WHERE pl_title = page_title
AND page_namespace = 0
AND page_is_redirect = 0
AND pl_namespace = 0
AND page_id IN
(SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'
AND page_namespace = 0
AND page_is_redirect = 0
AND page_t... | {"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 5}], "runningtime": "132.72"} | tewiki |
Tewiki: Disambiguation pages without "అయోమయ నివృత్తి" in title | null | USE tewiki_p;
SELECT page_title, COUNT(*) as Incoming_links
FROM page, pagelinks
WHERE pl_title = page_title
AND page_namespace = 0
AND page_is_redirect = 0
AND pl_namespace = 0
AND page_id IN
(SELECT pp_page
FROM page_props
WHERE pp_propname = 'disambiguation'
AND page_namespace = 0
AND page_is_redirect = 0
AND page_t... | {"resultsets": [{"headers": ["pt_namespace", "pt_title", "pt_user", "pt_reason_id", "pt_timestamp", "pt_expiry", "pt_create_perm", "comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 1}], "runningtime": "1.32"} | tewiki |
Tewiki pages deleted - creator-wise | null | USE tewiki_p;
select ar_actor,actor_name,count(ar_actor) as cnt
from
archive,
actor,
page
where
ar_actor = actor_id and
page_title = ar_title and
page_is_redirect = 0 and
page_namespace = 10 and
actor_user is not null and
ar_parent_id = 0
group by ar_actor
order by cnt desc
LIMIT 100 | {"resultsets": [{"headers": ["page_id", "title", "edits", "users", "score"], "rowcount": 1000}], "runningtime": "2.85"} | tewiki |
Tewiki:User-wise Log stats | null | set @actor1:="Chaduvari";
select actor_id into @actorid from actor where actor_name=@actor1;
select count(log_actor) into @all from logging
where log_actor=@actorid;
-- and log_action="delete";
select count(log_actor) into @deletes from logging
where log_actor=@actorid
and log_action="delete";
select count(log_actor)... | {"connection_id": 63458886} | tewiki |
Tewiki: User-wise edit count in a specific namespace | null | set @actor1="Chaduvari";
select actor_id into @actor from actor where actor_name=@actor1;
select COUNT(rev_actor) into @all_edits FROM revision
WHERE rev_actor = @actor;
select COUNT(rev_actor) into @article_edits FROM revision,page WHERE rev_actor = @actor
and page_id=rev_page and page_namespace=0;
select COUNT(rev... | {"resultsets": [{"headers": ["rev_id"], "rowcount": 1}], "runningtime": "0.06"} | tewiki |
Tewiki:Admini-wise all time, all NS deletions | null | use tewiki_p;
SELECT actor_name, count(actor_name) as deletions
FROM logging_userindex
JOIN actor_logging ON log_actor=actor_id
JOIN comment_logging ON comment_id=log_comment_id
WHERE log_type = 'delete'
AND log_action = 'delete'
-- AND actor_name = 'Chaduvari'
group by actor_name
having Deletions >9
ORDER BY De... | {"resultsets": [{"headers": ["page_title"], "rowcount": 69}], "runningtime": "0.45"} | tewiki |
Tewiki:Admin-wise CSD deletions | null | use tewiki_p;
SELECT actor_name, count(actor_name) as deletions
FROM logging_userindex
JOIN actor_logging ON log_actor=actor_id
JOIN comment_logging ON comment_id=log_comment_id
WHERE log_type = 'delete'
AND log_action = 'delete'
-- AND actor_name = 'Chaduvari'
AND (comment_text LIKE '%WP:CSD%'
or comme... | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 51}], "runningtime": "6.04"} | tewiki |
Tewiki:Yearly New user registrations | null | use tewiki_p;
SELECT
substr(log_timestamp,1,4),count(substr(log_timestamp,1,4)) AS New_users
FROM
logging
WHERE
`log_type` = 'newusers' /* exclude proxy registrations */
AND
`log_action` = 'create' /* only include self-created users, exclude attached and proxy-registered users */
group by substr(log_timestamp,1... | {"resultsets": [{"headers": ["actor_user", "actor_name", "rc_namespace", "rc_title", "rc_last_oldid", "rc_this_oldid", "rc_new_len-rc_old_len"], "rowcount": 10407}], "runningtime": "12.57"} | tewiki |
Internet Archive links on Wikisource author pages | null | SELECT DISTINCT page.page_title, externallinks.el_to
FROM externallinks
INNER JOIN page ON externallinks.el_from = page.page_id
WHERE (externallinks.el_to LIKE "https://archive.org/details/%")
AND page.page_namespace = 102 | {"resultsets": [{"headers": ["page_len", "page_title"], "rowcount": 255}], "runningtime": "0.34"} | enwikisource_p |
Enwiki Pages with many Indic wikipedia links but without Te link | en pages with ta,ml,kn,hi,mr,bn,pa links but without te link | USE enwiki_p;
SELECT
concat("[[:en:",page_title,"|",page_title,"]]") title_en, count(*) ll_count
FROM
page, langlinks
WHERE
ll_from = page_id and
page_id not in (select ll_from from langlinks where ll_lang = 'te') and
page_id in (select ll_from from langlinks where ll_lang = 'ta') and
page_... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 0}], "runningtime": "0.05"} | enwiki |
Personnes contribuant aux entrées du jour sur le Wiktionnaire francophone | null | SELECT DISTINCT actor_name
FROM page, revision, actor
WHERE page_namespace = 10
AND page_id = rev_page
AND rev_actor = actor_id
AND (page_title LIKE "Entrée_du_jour/2022%"
OR page_title LIKE "Entrée_étrangère_du_jour/2022%")
AND page_is_redirect = 0; | {"connection_id": 74946558} | frwiktionary_p |
Trouver les annexes de conjugaison sans catégorie | null | SELECT page_title
FROM page
WHERE page_title LIKE "Conjugaison%"
AND page_namespace = 100; | {"resultsets": [{"headers": ["page_title"], "rowcount": 100}], "runningtime": "183.72"} | frwiktionary_p |
Page de l'espace principale commeçant par "WS:" | null | USE frwikisource_p;
SELECT page_title
FROM page
WHERE page_namespace = 0
AND page_title LIKE "WS:%"; | {"resultsets": [{"headers": ["year", "month", "page_namespace", "count"], "rowcount": 91}], "runningtime": "25.32"} | frwikisource_p |
Donde hay defaultsort y no NF/DB | null | SELECT page_id, page_title, pp_value
FROM page
inner join page_props on pp_page = page_id
where pp_propname = 'defaultsort'
and page_namespace = 0
AND NOT EXISTS (SELECT 1 FROM templatelinks WHERE tl_from = page_id AND tl_title IN ('NF', 'BD'))
AND EXISTS (SELECT 1 FROM categorylinks WHERE cl_from = page_id A... | {"resultsets": [], "runningtime": "0.03"} | eswiki |
DPLA uploads per day | null | SELECT COUNT(img_name) AS Count,
ROUND(SUM(img_size/(1<<30))) AS Size_GB,
LEFT(MAX(img_timestamp),8) AS Date
FROM image
JOIN actor_image ON actor_id = img_actor
WHERE actor_name = "DPLA bot"
GROUP BY LEFT(img_timestamp,8)
ORDER BY Date DESC; | {"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "1.16"} | commonswiki_p |
Tewiki:Date-wise NS0 page deletions | null | use tewiki_p;
SELECT
substr(ar_timestamp,1,8),count(substr(ar_timestamp,1,8)) as mainspace_deletions
FROM
archive
WHERE
archive.ar_parent_id = 0 AND
ar_namespace = 0 and
substr(ar_timestamp,1,4) ="2022"
GROUP BY substr(ar_timestamp,1,8)
order by substr(ar_timestamp,1,8) | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 125}], "runningtime": "11.31"} | tewiki_p |
Tewiki: Date-wise file uploads | null | USE tewiki_p;
SELECT substr(img_timestamp,1,8),count(substr(img_timestamp,1,8)) as file_uploads FROM image
where substr(img_timestamp,1,4)="2022"
group by substr(img_timestamp,1,8)
order by substr(img_timestamp,1,8) | {"resultsets": [{"headers": ["rc_cur_id", "rc_title", "rc_patrolled"], "rowcount": 1300}], "runningtime": "1.23"} | tewiki_p |
Tewiki Date-wise pages published from Content translation | null | use tewiki_p;
select
substr(rev_timestamp, 1, 8) as Datee,
count(substr(rev_timestamp, 1, 8)) as Translated_articles
from
change_tag,
change_tag_def,
revision,
page
where
ct_tag_id = ctd_id
and rev_id = ct_rev_id
and page_id = rev_page
and page_namespace = 0
and page_is_redirect = 0
and ctd_name... | {"resultsets": [{"headers": ["page_id", "title", "edits", "users", "score"], "rowcount": 1000}], "runningtime": "3.61"} | tewiki_p |
Tewiki: Date wise NS0 new pages creation | null | USE tewiki_p;
select substr(rev_timestamp,1,8) as dated, count(substr(rev_timestamp,1,8)) as mainspace_new_pages
from page,revision
where page_id=rev_page
and substr(rev_timestamp,1,4)="2022"
and page_namespace=0
and rev_parent_id=0
and page_is_redirect=0
group by substr(rev_timestamp,1,8) | {"resultsets": [{"headers": ["lt_title"], "rowcount": 113}], "runningtime": "9.23"} | tewiki_p |
Tewiki: Date wise new user registrations | null | use tewiki_p;
SELECT
substr(log_timestamp,1,8),count(substr(log_timestamp,1,8)) AS New_users
FROM
logging
WHERE
`log_type` = 'newusers' /* exclude proxy registrations */
AND
`log_action` = 'create' /* only include self-created users, exclude attached and proxy-registered users */
AND
substr(log_timestamp,1,4)... | {"resultsets": [{"headers": ["rc_cur_id", "rc_title", "rc_patrolled"], "rowcount": 1300}], "runningtime": "1.27"} | tewiki_p |
Tewiki: Date-wise NS0 edit count | null | use tewiki_p;
SELECT substr(rev_timestamp,1,8) as datee,COUNT(substr(rev_timestamp,1,8)) as mainspace_edits
FROM revision,actor,page,user,user_groups
WHERE actor_id=rev_actor
and page_id=rev_page
and page_namespace=0
and user_id=actor_user
and ug_user=user_id
and ug_group!="bot"
and substr(rev_timesta... | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 125}], "runningtime": "43.93"} | tewiki_p |
Tewiki: Datewise bytes added | null | USE tewiki_p;
SELECT substr(rev.rev_timestamp,1,8) dated,
SUM(abs(CAST(rev.rev_len as signed)-if(rev.rev_parent_id=0,0,CAST(parent.rev_len as signed)))) AS Gross_bytes_added,
SUM(CAST(rev.rev_len as signed)-if(rev.rev_parent_id=0,0,CAST(parent.rev_len as signed))) AS nett_bytes_added
FROM revision rev
left JOI... | {"resultsets": [{"headers": ["page_id", "title", "edits", "users", "score"], "rowcount": 1000}], "runningtime": "3.16"} | tewiki_p |
Tewiki: Date-wise All_NS edit count | null | use tewiki_p;
SELECT substr(rev_timestamp,1,8) as datee,COUNT(substr(rev_timestamp,1,8)) as All_NS_edits
FROM revision,actor,page,user,user_groups
WHERE actor_id=rev_actor
and page_id=rev_page
and user_id=actor_user
and ug_user=user_id
and ug_group!="bot"
and substr(rev_timestamp,1,4)="2022"
GROUP BY s... | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 125}], "runningtime": "37.25"} | tewiki_p |
Tewiki: Date wise all NS new pages creation | null | USE tewiki_p;
select substr(rev_timestamp,1,8) as dated, count(substr(rev_timestamp,1,8)) as All_NS_new_pages
from page,revision
where page_id=rev_page
and substr(rev_timestamp,1,4)="2022"
and rev_parent_id=0
and page_is_redirect=0
group by substr(rev_timestamp,1,8) | {"resultsets": [{"headers": ["page_title"], "rowcount": 1}], "runningtime": "62.37"} | tewiki_p |
Tewiki:Month-wise new user registrations | null | use tewiki_p;
SELECT
substr(log_timestamp,1,6),count(substr(log_timestamp,1,6)) AS New_users
FROM
logging
WHERE
`log_type` = 'newusers' /* exclude proxy registrations */
AND
`log_action` = 'create' /* only include self-created users, exclude attached and proxy-registered users */
AND
substr(log_timestamp,1,4)... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 298}], "runningtime": "183.21"} | tewiki |
Tewiki: month-wise new Articles creation | null | USE tewiki_p;
select substr(rev_timestamp,1,6) as dated, count(substr(rev_timestamp,1,6)) as Mainspace_new_pages
from page,revision
where page_id=rev_page
and substr(rev_timestamp,1,4)="2022"
and page_namespace=0
and rev_parent_id=0
and page_is_redirect=0
group by substr(rev_timestamp,1,6)
order by substr... | {"resultsets": [{"headers": ["user_name", "last_curation"], "rowcount": 1}], "runningtime": "0.06"} | tewiki |
Tewiki:Month-wise All NS edit count | null | use tewiki_p;
SELECT substr(rev_timestamp,1,6) as datee,COUNT(substr(rev_timestamp,1,6)) as All_NS_edits
FROM revision,actor,page,user,user_groups
WHERE actor_id=rev_actor
and page_id=rev_page
and user_id=actor_user
and ug_user=user_id
and ug_group!="bot"
GROUP BY substr(rev_timestamp,1,6)
ORDER BY substr(... | {"connection_id": 82712752} | tewiki |
Tewiki:month-wise file uploads | null | USE tewiki_p;
SELECT substr(img_timestamp,1,6),count(substr(img_timestamp,1,6)) as file_uploads FROM image
where substr(img_timestamp,1,4)="2022"
group by substr(img_timestamp,1,6)
order by substr(img_timestamp,1,6) | {"resultsets": [{"headers": ["user_talk"], "rowcount": 1118}], "runningtime": "733.48"} | tewiki |
Tewiki:Month-wise bytes added | null | USE tewiki_p;
SELECT substr(rev.rev_timestamp,1,6) dated,
SUM(abs(CAST(rev.rev_len as signed)-if(rev.rev_parent_id=0,0,CAST(parent.rev_len as signed)))) AS Gross_bytes_added,
SUM(CAST(rev.rev_len as signed)-if(rev.rev_parent_id=0,0,CAST(parent.rev_len as signed))) AS nett_bytes_added
FROM revision rev
left JOI... | {"resultsets": [{"headers": ["user_talk"], "rowcount": 3807}], "runningtime": "1964.42"} | tewiki |
Tewiki:Month-wise NS0 edit count | null | use tewiki_p;
SELECT substr(rev_timestamp,1,6) as datee,COUNT(substr(rev_timestamp,1,6)) as mainspace_edits
FROM revision,actor,page,user,user_groups
WHERE actor_id=rev_actor
and page_id=rev_page
and page_namespace=0
and user_id=actor_user
and ug_user=user_id
and ug_group!="bot"
and substr(rev_timestamp,1... | {"resultsets": [{"headers": ["lt_title"], "rowcount": 95}], "runningtime": "9.28"} | tewiki |
Tewiki: month-wise new pages creation - All NS | null | USE tewiki_p;
select substr(rev_timestamp,1,6) as dated, count(substr(rev_timestamp,1,6)) as All_NS_new_pages
from page,revision
where page_id=rev_page
and substr(rev_timestamp,1,4)="2022"
and rev_parent_id=0
and page_is_redirect=0
group by substr(rev_timestamp,1,6)
order by substr(rev_timestamp,1,6) | {"resultsets": [{"headers": ["url", "pagename", "page_id", "reason"], "rowcount": 1}], "runningtime": "51.73"} | tewiki |
Tewiki:Month-wise NS0 article deletions | null | use tewiki_p;
SELECT
substr(ar_timestamp,1,6),count(substr(ar_timestamp,1,6)) as Mainspace_deletions
FROM
archive
WHERE
archive.ar_parent_id = 0 AND
ar_namespace = 0 /*and
page_title=ar_title /*and
substr(ar_timestamp,1,4) ="2020"*/
GROUP BY substr(ar_timestamp,1,6)
order by substr(ar_timestamp,1,6) | {"resultsets": [{"headers": ["user_talk"], "rowcount": 6871}], "runningtime": "3792.54"} | tewiki |
Tewiki: database size main space | null | use tewiki_p;
Select sum(page_len) from page
where page_namespace=0 | {"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 101}], "runningtime": "5.43"} | tewiki |
Tewiki:Yearly New article page creations | Main space, Non-redirect pages creation data | USE tewiki_p;
select substr(rev_timestamp,1,4) as dated, count(substr(rev_timestamp,1,4)) as Main_space_new_pages
from page,revision
where page_id=rev_page
and page_namespace=0
and rev_parent_id=0
and page_is_redirect=0
group by substr(rev_timestamp,1,4)
order by substr(rev_timestamp,1,4) | {"resultsets": [{"headers": ["CONCAT('[[',page_title,']]')"], "rowcount": 36}], "runningtime": "7.09"} | tewiki |
Tewiki: Year-wise count of content translation new articles | null | use tewiki_p;
select substr(rev_timestamp,1,4) as yeard,count(substr(rev_timestamp,1,4))
from
change_tag,change_tag_def,revision,page,actor
where ct_tag_id = ctd_id
and rev_id=ct_rev_id
and page_id=rev_page
and page_namespace=0
and page_is_redirect=0
and actor_id=rev_actor
and ctd_name = "contentt... | {"resultsets": [{"headers": ["CONCAT('[[',page_title,']]')"], "rowcount": 61}], "runningtime": "6.87"} | tewiki |
Pope shortdescs, for those who already have them | null | SELECT page.page_title, page_props.pp_value
FROM categorylinks
INNER JOIN page ON page.page_id = categorylinks.cl_from
INNER JOIN page_props ON page_props.pp_page = categorylinks.cl_from
WHERE cl_to = "Popes"
AND page_props.pp_propname = "wikibase-shortdesc"
AND page.page_title NOT IN (
"History_of_the_papacy",
"Po... | {"resultsets": [{"headers": ["date", "page_title"], "rowcount": 8}], "runningtime": "1.47"} | enwiki_p |
Potential unmarked paintings-by-artist categories on Commons | null | SELECT page.page_title
FROM page
WHERE page.page_namespace = 14
AND page.page_title LIKE 'Paintings\_by\_%'
AND page.page_title NOT LIKE 'Paintings\_by\_%\_by\_%'
AND page.page_title NOT LIKE '%\_in\_%'
AND page.page_title NOT LIKE '%useum%'
AND page.page_title NOT LIKE '%with_fur'
AND page.page_title NOT LIKE '%atelie... | {"resultsets": [{"headers": ["rc_id", "rc_timestamp", "rc_actor", "rc_namespace", "rc_title", "rc_comment_id", "rc_minor", "rc_bot", "rc_new", "rc_cur_id", "rc_this_oldid", "rc_last_oldid", "rc_type", "rc_source", "rc_patrolled", "rc_ip", "rc_old_len", "rc_new_len", "rc_deleted", "rc_logid", "rc_log_type", "rc_log_acti... | commonswiki_p |
Vikigezgin | Incubator'da Wy/tr kategorisindeki maddelerin tamamı | SHOW TABLES FROM trwikivoyage_p;
| {"resultsets": [{"headers": ["ptrp_page_id", "ptrp_reviewed", "ptrp_deleted", "ptrp_created", "ptrp_tags_updated", "ptrp_reviewed_updated", "ptrp_last_reviewed_by", "page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len... | trwikivoyage_p |
Log actions | null | use trwiki_p;
select distinct log_action
from logging
order by log_action;
| {"resultsets": [{"headers": ["Reviewer", "Redirect Reviews"], "rowcount": 20}], "runningtime": "18.26"} | trwiki_p |
Tewiki:Year-wise, user-wise new pages count under "contenttranslation" | null | use tewiki_p;
select substr(rev_timestamp,1,4) as yeard,actor_name,count(actor_name)
from
change_tag,change_tag_def,revision,page,actor
where
ct_tag_id = ctd_id
and rev_id=ct_rev_id
and page_id=rev_page
and page_namespace=0
and page_is_redirect=0
and page_id not in (select pp_page from page_props... | {"connection_id": 92348553} | tewiki_p |
Mínimos | null | # Página con más tiempo sin ediciones (el page_latest es el más chico)
select *
from page
where page_namespace = 0
and page_is_redirect = 0
AND not exists (select 1 from page_props WHERE pp_page = page_id AND pp_propname='disambiguation')
order by page_latest asc
limit 10;
# Página con más tiempo sin ediciones y ... | {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 3}], "runningtime": "0.06"} | eswiki_p |
WLM 2020 participants (v2) | Based on https://quarry.wmflabs.org/query/49658, by Jean-Frédéric. | use commonswiki_p;
SELECT DISTINCT actor_name
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"
) | {"resultsets": [{"headers": ["actor_name", "countt"], "rowcount": 24}], "runningtime": "1.43"} | commonswiki_p |
[done] redirects to rcats missing {{R to rcat}} | null | Use enwiki_p;
Select page_namespace, page_title, rd_title from page inner join redirect on page_id = rd_from
Where rd_namespace = 10
And page_title not regexp "/doc|/sandbox|/testcases|/demo"
And rd_title like "R\_%"
And rd_from not in (Select cl_from from categorylinks
Where cl_to = "Redirects_to_redirect_templat... | {"resultsets": [{"headers": ["page_title", "Incoming_links"], "rowcount": 2075}], "runningtime": "1.81"} | enwiki |
[done] redirects to rcats missing {{R to rcat}} | null | Use enwiki_p;
Select page_namespace, page_title, rd_title from page inner join redirect on page_id = rd_from
Where rd_namespace = 10
And page_title not regexp "/doc|/sandbox|/testcases|/demo"
And rd_title like "R\_%"
And rd_from not in (Select cl_from from categorylinks
Where cl_to = "Redirects_to_redirect_templat... | {"resultsets": [{"headers": ["page_title", "Incoming_links"], "rowcount": 2075}], "runningtime": "1.74"} | enwiki |
People on Commons with interwikis but no Wikidata | null | SELECT DISTINCT page.page_title, langlinks.ll_lang, langlinks.ll_title
FROM page
INNER JOIN categorylinks ON categorylinks.cl_from = page.page_id
INNER JOIN langlinks ON langlinks.ll_from = page.page_id
WHERE categorylinks.cl_to = "People_by_name"
AND page.page_namespace = 14
AND page.page_id NOT IN (SELECT pp_page FRO... | {"resultsets": [{"headers": ["SUBSTRING(log_timestamp, 1, 8)", "COUNT(*)"], "rowcount": 0}], "runningtime": "1.50"} | commonswiki_p |
nlwiki Use of deprecated templates | null | SELECT lt_namespace, lt_title, pf.page_namespace, pf.page_title
FROM categorylinks, page pt, templatelinks, linktarget, page pf
WHERE
cl_to='Wikipedia:Sjablonen_verouderd' AND
cl_from=pt.page_id AND
tl_target_id=lt_id AND
lt_namespace=pt.page_namespace AND
lt_title=pt.page_title AND
tl_from=pf.page... | {"resultsets": [{"headers": ["tl_from", "tl_from_namespace", "tl_target_id", "page_id", "page_namespace", "page_title", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang", "lt_id", "lt_namespace", "lt_title"], "rowcount": ... | nlwiki |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.