title
stringlengths 1
212
| description
stringlengths 1
4.39k
⌀ | query
stringlengths 1
65.5k
⌀ | extra_info
stringlengths 18
31.6k
| wikidb
stringlengths 4
26
⌀ |
---|---|---|---|---|
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৯ জানু ২০২২ | 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
WHERE rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND actor_user IS NOT NULL
AND actor_name NOT RLIKE "(.*)([Bb][Oo][Tt]|বট)"
GROUP BY actor_name
ORDER BY cnt DESC
LIMIT 1000
) d; | {"resultsets": [{"headers": ["Template"], "rowcount": 81}], "runningtime": "0.12"} | bnwiki |
Controversial pages on enwiki | Main namespace pages that have the template 'Template:Controversial' in their talk page | SELECT
page_title
FROM linktarget
LEFT JOIN templatelinks ON lt_id = tl_target_id
LEFT JOIN page ON tl_from = page_id
WHERE lt_namespace = 10 -- Template:
AND lt_title = 'Controversial'
AND tl_from_namespace = 1 -- Talk:
; | {"resultsets": [{"headers": ["Template"], "rowcount": 26}], "runningtime": "0.08"} | enwiki |
categories with over 1000 subcategories | null | select cat_id, cat_title from category where cat_subcats > 1000 | {"resultsets": [{"headers": ["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"], "rowcount": 10}], "runningtime": "0.06"} | enwiki |
WStaபத்தொன்பதாம்_நூற்றாண்டின்_தமிழ்_உரைநடை_வளர்ச்சி | This Query will provide the list of users who did edit on given book with its all pages. | Use tawikisource_p;
SET @w:=0;
select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book
WHERE rev_page IN (select page_id from page where page_title like "பத்தொன்பதாம்_நூற்றாண்டின்_தமிழ்_உரைநடை_வளர்ச்சி.pdf%")
group by actor_name) as tt
order by edits desc
LIMIT 100; | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 67}], "runningtime": "0.10"} | tawikisource_p |
Marathi Wikipedia top editors sorted by total number of edits | null | selectselectselectselectselectselectselectselect
rev_actor,
actor_name,
count(rev_id) as edit_count
from
revision,
actor
where
rev_timestamp > 20050300000000 and
rev_actor = actor_id
group by
rev_actor
having
count(rev_id) between 100 and 5000
order by
edit_count desc; | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 0}], "runningtime": "0.05"} | mrwiki_p |
Marathi Wikipedia top editors sorted by total number of edits | null | selectselectselectselectselectselectselectselect
rev_actor,
actor_name,
count(rev_id) as edit_count
from
revision,
actor
where
rev_timestamp > 20220300000000 and
rev_actor = actor_id
group by
rev_actor
having
count(rev_id) between 100 and 5000
order by
edit_count desc; | {"resultsets": [{"headers": ["page_id", "page_title", "ip", "abc10_edited_first", "article_creator_name"], "rowcount": 201}], "runningtime": "236.09"} | mrwiki_p |
Marathi Wikipedia top editors sorted by total number of edits | null | selectselectselectselectselectselectselectselect
rev_actor,
actor_name,
count(rev_id) as edit_count
from
revision,
actor
where
rev_timestamp > 20220300000000 and
rev_actor = actor_id
group by
rev_actor
having
count(rev_id) between 100 and 5000
order by
edit_count desc; | {"resultsets": [{"headers": ["ip_timestamp", "page_title", "ip", "abc10_edited_first", "article_creator_name"], "rowcount": 201}], "runningtime": "203.63"} | mrwiki_p |
WStaகொல்லிமலைக்_குள்ளன் | This Query will provide the list of users who did edit on given book with its all pages. | Use tawikisource_p;
SET @w:=0;
select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book
WHERE rev_page IN (select page_id from page where page_title like "கொல்லிமலைக்_குள்ளன்.pdf%")
group by actor_name) as tt
order by edits desc
LIMIT 100; | {"resultsets": [{"headers": ["article_name", "ip", "abc10_edit_first", "article_creator"], "rowcount": 92}], "runningtime": "312.02"} | tawikisource_p |
WStaதிருக்குறள்_செய்திகள் | This Query will provide the list of users who did edit on given book with its all pages. | Use tawikisource_p;
SET @w:=0;
select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book
WHERE rev_page IN (select page_id from page where page_title like "திருக்குறள்_செய்திகள்.pdf%")
group by actor_name) as tt
order by edits desc
LIMIT 100; | {"resultsets": [{"headers": ["pageID", "pageTitle", "category", "WDitem"], "rowcount": 96}], "runningtime": "0.13"} | tawikisource_p |
WStaசங்க_கால_வள்ளல்கள் | This Query will provide the list of users who did edit on given book with its all pages. | Use tawikisource_p;
SET @w:=0;
select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book
WHERE rev_page IN (select page_id from page where page_title like "சங்க_கால_வள்ளல்கள்.pdf%")
group by actor_name) as tt
order by edits desc
LIMIT 100; | {"resultsets": [{"headers": ["rc_user_text"], "rowcount": 51}], "runningtime": "0.96"} | tawikisource_p |
country and controversy | null | SELECT
page_title
FROM templatelinks AS tl1
JOIN linktarget AS lt1 ON lt1.lt_id = tl1.tl_target_id
JOIN templatelinks AS tl2 ON tl2.tl_from = tl1.tl_from
JOIN linktarget AS lt2 ON lt2.lt_id = tl2.tl_target_id
JOIN page ON tl1.tl_from = page_id
WHERE lt1.lt_namespace = 10 -- Template:
AND lt1.lt_title = 'Controversial'
#AND tl1.tl_from_namespace = 1 -- Talk:
AND lt2.lt_namespace = 10
AND lt2.lt_title like 'WikiProject\_India%'
#AND tl2.tl_from_namespace = 1 | {"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "is_newcomer"], "rowcount": 4}], "runningtime": "0.05"} | enwiki |
Wikidata item creations from Steam IDs | Users who create items using https://github.com/Facenapalm/WikidataBot/blob/main/steam_parser.py | select actor_name, COUNT(revision.rev_id) as count
from `comment` com -- comment table, escaped with ` since it is a reserved word
JOIN revision ON rev_comment_id = com.comment_id
JOIN actor_revision ON actor_id = revision.rev_actor
#WHERE rev_timestamp > '20220901000000'
AND comment_text like '%Create item for Steam application%'
GROUP BY actor_name
LIMIT 5; | {"resultsets": [{"headers": ["time", "user", "namespace", "page", "comment"], "rowcount": 12}], "runningtime": "11.19"} | wikidatawiki_p |
Wikidata item creations from Steam IDs (since September 2022) | Users who create items using https://github.com/Facenapalm/WikidataBot/blob/main/steam_parser.py | select actor_name, COUNT(revision.rev_id) as count
from `comment` com -- comment table, escaped with ` since it is a reserved word
JOIN revision ON rev_comment_id = com.comment_id
JOIN actor_revision ON actor_id = revision.rev_actor
WHERE rev_timestamp > '20220901000000'
AND comment_text like '%Create item for Steam application%'
GROUP BY actor_name
LIMIT 5; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 1359}], "runningtime": "668.74"} | wikidatawiki_p |
Userspace pages of non-existent users (no talk, no subpages) | null | SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL
FROM enwiki_p.page p
LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name
WHERE p.page_namespace = 2
AND u.user_id IS NULL
AND p.page_is_redirect = 0
AND NOT IS_IPV4(p.page_title) -- Exclude IPv4
AND NOT IS_IPV6(p.page_title) -- Exclude IPv6
AND p.page_title NOT LIKE '%.css'
AND p.page_title NOT LIKE '%.cs'
AND p.page_title NOT LIKE '%.js'
AND p.page_title NOT LIKE '%.charset'
AND p.page_title NOT LIKE '%.%.%.xxx'
AND p.page_title NOT IN ('Unknown_user', 'Global_rename_script', 'Sec\"\'27\\u00226\\x3ETest_(WMF)') -- Exclude technical user pages
AND p.page_id NOT IN (
SELECT cl.cl_from FROM
enwiki_p.categorylinks cl
WHERE cl.cl_to IN ('User_soft_redirects', 'Wikipedia_doppelganger_accounts', 'Wikipedia_alternative_accounts') -- Exclude these categories
)
AND p.page_id NOT IN (
SELECT tl.tl_from FROM
enwiki_p.templatelinks tl
WHERE tl.tl_target_id IN (32197, 277052, 282063, 115252, 1968835) -- Exclude pages tagged with sockpuppet template
)
AND p.page_title NOT LIKE '%/%' | {"resultsets": [{"headers": ["line"], "rowcount": 117}], "runningtime": "0.21"} | enwiki_p |
Unusually long user blocks | null | SELECT
ipb_address,
actor_name,
ipb_timestamp,
ipb_expiry,
comment_text
FROM
ipblocks
INNER JOIN actor_ipblocks ON ipb_by_actor = actor_id
INNER JOIN comment_ipblocks ON ipb_reason_id = comment_id
WHERE
ipb_expiry > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL 2 YEAR), '%Y%m%d%H%i%s')
AND ipb_expiry != "infinity"
AND ipb_user != 0; | {"resultsets": [{"headers": ["page_title"], "rowcount": 402}], "runningtime": "2.26"} | viwiki_p |
Unusually long IP blocks | null | SELECT
ipb_address,
ipb_by_text,
ipb_timestamp,
ipb_expiry,
ipb_reason
FROM
ipblocks_compat
WHERE
ipb_expiry > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL 2 YEAR), '%Y%m%d%H%i%s')
AND ipb_expiry != "infinity"
AND ipb_user = 0
AND INSTR(LOWER(ipb_reason), 'proxy') = 0
AND INSTR(LOWER(ipb_reason), 'webhost') = 0; | {"resultsets": [{"headers": ["WikiQuote updated article in #SheSaid 2022", "Campaign size increase", "Current size", "Last update", "Wikidata item"], "rowcount": 55}], "runningtime": "0.74"} | viwiki_p |
Indefinitely blocked IPs | null | SELECT
ipb_address,
actor_name,
ipb_timestamp,
comment_text
FROM
ipblocks
INNER JOIN actor_ipblocks ON ipb_by_actor = actor_id
INNER JOIN comment_ipblocks ON ipb_reason_id = comment_id
WHERE
ipb_expiry = "infinity"
AND ipb_user = 0
/* filter out some non-IPs with ipb_user = 0 */
AND ipb_address REGEXP '^[0-9]'
AND comment_text NOT REGEXP '([Pp][Rr][Oo][Xx][Ii][Ee][Ss]|[Pp][Rr][Oo][Xx][Yy]|[Cc][Hh][Ee][Cc][Kk][Uu][Ss][Ee][Rr]|[Rr]ối)'; | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 500}], "runningtime": "52.09"} | viwiki_p |
Forgotten articles | null | SELECT p.page_title, p.page_namespace, p.page_is_redirect, p.page_touched, r.editcount FROM page p
LEFT JOIN (
SELECT COUNT(*) AS editcount, rev_page FROM revision
GROUP BY rev_page
) r ON r.rev_page = p.page_id
WHERE page_is_redirect = 0 AND page_namespace = 0
ORDER BY page_touched
LIMIT 1000 | {"resultsets": [{"headers": ["page_title"], "rowcount": 2792}], "runningtime": "3.58"} | viwiki_p |
Forgotten articles 2 | null | SELECT SQL_SMALL_RESULT
MAX(rev_timestamp) AS lastedit, COUNT(rev_id) AS editcount, page_title
FROM revision,
# This inner query returns the 500 pages with the earliest timestamps on their latest revisions
( SELECT rev_timestamp as lastedit,page_id,page_title
FROM page, revision
WHERE page_id IN
# This query returns the list of regular articles created earlier than page_id X
( SELECT page_id
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' )
)
AND rev_id=page_latest
ORDER BY lastedit ASC
LIMIT 500
) as InnerQuery
WHERE rev_page=page_id
GROUP BY page_id
ORDER BY lastedit ASC | {"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 5}], "runningtime": "98.62"} | viwiki_p |
Longest active user editing streaks 2 | null | SELECT
rev_timestamp
FROM
revision_userindex
JOIN page ON rev_page = page_id
JOIN actor_revision ON rev_actor = actor_id
WHERE
actor_name = "Lê Song Vĩ"
LIMIT
1 | {"resultsets": [{"headers": ["User", "Registered", "Edit count", "Last edit", "Filter trip count", "Last filter trip"], "rowcount": 44}], "runningtime": "54.62"} | viwiki_p |
Orphans with incoming links | Orphans with incoming links | SELECT p.page_title AS page, COUNT(link.pl_from) AS count
FROM page p
INNER JOIN categorylinks c ON p.page_id = c.cl_from
AND c.cl_to = 'All_orphaned_articles'
INNER JOIN pagelinks link ON p.page_title = link.pl_title
AND p.page_namespace = link.pl_namespace
INNER JOIN page p2 ON p2.page_id = link.pl_from
WHERE
link.pl_from_namespace = 0
AND p2.page_is_redirect = 0
GROUP BY
p.page_title
HAVING
COUNT(link.pl_from) > 2
ORDER BY
COUNT(link.pl_from) DESC, p.page_title ASC | {"resultsets": [{"headers": ["user_name", "user_registration", "time"], "rowcount": 2}], "runningtime": "43.30"} | viwiki_p |
Unused templates | null | SELECT
page_id,
page_title
FROM
page
LEFT JOIN linktarget ON page_namespace = lt_namespace
AND page_title = lt_title
WHERE
page_namespace = 10
AND page_is_redirect = 0
AND lt_id IS NULL
AND page_title NOT IN (
SELECT
page_title
FROM
page
JOIN categorylinks ON page_id = cl_from
WHERE
cl_to IN (
'Wikipedia_substituted_templates',
'Wikipedia_transclusionless_templates',
'Deprecated_templates_kept_for_historical_reasons',
'Inactive_project_pages',
'Parameter_shared_content_templates',
'Computer_language_user_templates',
'Language_user_templates',
'Template_test_cases',
'Template_sandboxes',
'Level-zero_userbox_templates'
)
AND page_namespace = 10
)
ORDER BY
page_title ASC; | {"resultsets": [{"headers": ["user_name", "user_registration", "time", "user_editcount"], "rowcount": 54}], "runningtime": "15.20"} | viwiki_p |
Orphaned file talk pages | null | SELECT
page_title,
rev_timestamp
FROM
page
JOIN revision ON page_id = rev_page
LEFT JOIN pagelinks ON pl_title = page_title
AND pl_namespace = page_namespace
LEFT JOIN templatelinks ON tl_title = page_title
AND tl_namespace = page_namespace
WHERE
page_namespace = 4
AND page_is_redirect = 0
AND page_title LIKE "Wikipedia:Biểu quyết xóa bài/%"
AND rev_parent_id = 0
AND ISNULL(pl_namespace)
AND ISNULL(tl_namespace); | {"resultsets": [{"headers": ["now()"], "rowcount": 1}], "runningtime": "0.06"} | viwiki_p |
Longest active user editing streaks 1 | null | SELECT
actor_name,
COUNT(DISTINCT substring(rev_timestamp, 1, 8)) as days
FROM
revision_userindex
JOIN page ON rev_page = page_id
JOIN actor_revision ON rev_actor = actor_id
WHERE
rev_timestamp < NOW()
AND rev_timestamp >= DATE_SUB(NOW(), INTERVAL '1' YEAR)
AND page_namespace = 0
GROUP BY
actor_name
HAVING
COUNT(DISTINCT substring(rev_timestamp, 1, 8)) > 15
ORDER BY
days DESC | {"resultsets": [{"headers": ["db", "count(*)", "sum(img_size)"], "rowcount": 6}, {"headers": ["#", "count(*)", "sum(img_size)"], "rowcount": 1}], "runningtime": "0.61"} | viwiki_p |
3000 300 30 50 | null | SELECT
actor_name,
COUNT(*) as edits_in_30,
u.user_editcount AS total_edits,
DATEDIFF(NOW(), u.user_registration) AS num_of_days,
u.user_registration AS reg_date
FROM
revision_userindex
JOIN page ON rev_page = page_id
JOIN actor_revision ON rev_actor = actor_id
JOIN user u ON u.user_id = actor_user
WHERE
rev_timestamp < NOW()
AND rev_timestamp >= DATE_SUB(NOW(), INTERVAL '30' DAY)
AND page_namespace != 2 AND page_namespace != 3
AND actor_user IS NOT NULL
AND u.user_editcount > 300 AND u.user_editcount < 3000
AND u.user_registration < DATE_SUB(NOW(), INTERVAL '90' DAY)
GROUP BY
actor_name
HAVING
COUNT(*) > 50
ORDER BY
edits_in_30 DESC | {"resultsets": [{"headers": ["user_talk"], "rowcount": 208}], "runningtime": "82.46"} | viwiki_p |
Controversial pages on enwiki | Main namespace pages that have the template 'Template:Controversial' in their talk page | SELECT
page_title
FROM linktarget
LEFT JOIN templatelinks ON lt_id = tl_target_id
LEFT JOIN page ON tl_from = page_id
WHERE lt_namespace = 10 -- Template:
AND lt_title = 'Controversial'
#AND tl_from_namespace = 1 -- Talk:
; | {"resultsets": [{"headers": ["page_title"], "rowcount": 390}], "runningtime": "0.38"} | enwiki |
Eswiki Wikidata edits in last 30 days (summary) | null | -- Historical values
-- date,users_with_editcount100,distinct_pages,distinct_wikidataitems,distinct_properties
-- Tue, 07 Feb 2023 17:35:58 UTC, 58,597,452,36
SELECT
count(distinct(rc_user_text)) as users_with_editcount100,
count(distinct(page_title)) as distinct_pages,
count(distinct(eu_entity_id)) as distinct_wikidataitems,
count(distinct(eu_aspect)) as distinct_properties
FROM (
SELECT
rc_timestamp,
rc_user_text,
page_title,
eu_entity_id,
eu_aspect,
eu_page_id,
rc_source,
rc_comment
FROM
wbc_entity_usage,
page_props,
recentchanges_compat,
user,
page
WHERE
page_id=eu_page_id
AND rc_cur_id=pp_page
AND eu_entity_id=pp_value
AND pp_propname="wikibase_item"
AND rc_source="wb"
AND rc_comment NOT LIKE "%quicstatements%"
AND rc_user=user_id
AND user_editcount>100
AND (
(eu_aspect LIKE "D.%" AND rc_comment LIKE CONCAT("%description%", replace(eu_aspect, "D.", "|"), "%") )
OR (eu_aspect like "L.%" AND rc_comment LIKE CONCAT("%label%", replace(eu_aspect, "L.", "|"), "%") )
OR (rc_comment LIKE concat("%P", replace(eu_aspect, "C.P", ""), "%"))
)
) AS t | {"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "2.34"} | eswiki_p |
Slow extendedconfirmeds on enwiki | null | SELECT user_name, user_registration, log_timestamp, log_timestamp - user_registration AS time_between
FROM logging
INNER JOIN user ON user_name = REPLACE(log_title, "_", " ")
WHERE log_type = "rights"
AND REGEXP_SUBSTR(LOG_PARAMS, 'oldgroups";a:\\d+:\\K.*?\\}') NOT LIKE "%extendedconfirmed%"
AND REGEXP_SUBSTR(LOG_PARAMS, 'newgroups";a:\\d+:\\K.*?\\}') LIKE "%extendedconfirmed%"
AND EXISTS ( -- Anyone who's since lost it will be a weird fluke of some sort
SELECT 1
FROM user_groups
WHERE ug_user = user_id
AND ug_group = "extendedconfirmed"
)
AND NOT EXISTS ( -- Delayed grant due to adminship at time of EC implementation.
SELECT 1
FROM user_former_groups
WHERE ufg_user = user_id
AND ufg_group = "sysop"
)
ORDER BY 4 DESC | {"resultsets": [{"headers": ["actor_name", "count(log_actor)"], "rowcount": 13}], "runningtime": "2.76"} | enwiki_p |
All global users in the centralAuth database | All of the queriable tables in the public English Wikipedia database. | select gu_name from globaluser; | {"resultsets": [{"headers": ["lt_title"], "rowcount": 66}], "runningtime": "9.37"} | centralauth |
All global usernames that are less than or equal to 3 character | null | SELECT gu_name FROM globaluser WHERE LENGTH(gu_name) <= 3 | {"resultsets": [{"headers": ["lt_title"], "rowcount": 49}], "runningtime": "3.80"} | centralauth_p |
zhwiki: Pages which title contains , | null | USE zhwiki_p;
SELECT page_id, page_title, page_len
FROM page
WHERE page_namespace = 0
AND page_is_redirect = 1
AND page_title LIKE '%,%.'
HAVING page_len < 50
ORDER BY page_id;
# 0/1 main 2/3 user 4/5 wp 6/7 file 8/9 mediawiki 10/11 template
# 12/13 help 14/15 cat 100/101 portal 118/119 draft 710/711 timedtext 828/829 module
# 2300/2301 gadget 2302/2303 g. def -1 special -2 media | {"resultsets": [{"headers": ["rc_patrolled", "count"], "rowcount": 4}], "runningtime": "3.52"} | zhwiki_p |
demo: querying babel data | null | SELECT babel_lang, babel_level
FROM babel
JOIN user ON babel_user = user_id
WHERE user_name = 'Lucas Werkmeister (WMDE)'; | {"resultsets": [{"headers": ["page_title", "page_namespace"], "rowcount": 7315}], "runningtime": "6.37"} | metawiki_p |
WStaகல்வி_எனும்_கண் | This Query will provide the list of users who did edit on given book with its all pages. | Use tawikisource_p;
SET @w:=0;
select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book
WHERE rev_page IN (select page_id from page where page_title like "கல்வி_எனும்_கண்.pdf%")
group by actor_name) as tt
order by edits desc
LIMIT 100; | {"resultsets": [{"headers": ["page_title"], "rowcount": 50}], "runningtime": "16.38"} | tawikisource_p |
trwiki:Template links to Şablon:Webarşiv, Şablon:Ölü bağlantı | null | SELECT img_name
FROM image
JOIN page
ON page_namespace = 6
AND page_title = img_name
JOIN templatelinks ON tl_from = page_id
WHERE tl_namespace = 10
AND tl_title LIKE 'GSR/20%'
/*
AND page_namespace IN (0,10)
AND page_touched >= (SELECT TIMESTAMP("2020-12-18 16:47:00"))
*/ | {"resultsets": [{"headers": ["page_title", "rev_timestamp"], "rowcount": 1}], "runningtime": "23.34"} | trwiki_p |
diğer wikilerin çoğunda olup trwiki'de olmayan sayfalar | null | USE enwiki_p;
SELECT NOW();
SET @LANG = "en";
SET @NS = 828 ; -- 828 (modül) 10 (şablon)
SET @NSad = "Modül"; -- Modül Şablon
SET @ekle = "action=edit&";
SET @ekle2 ="";
SELECT p.page_id, p.page_title, count(*) as llsayi
, concat("tr.wikipedia.org/w/index.php?action=edit&title=",@NSad,":",p.page_title) as urltr
, concat(@LANG,".wikipedia.org/wiki?",@ekle2,"curid=",p.page_id) as url
FROM page p join langlinks ll on ll.ll_from = p.page_id
-- left join trwiki_p.page trp on trp.page_title = p.page_title
join recentchanges rc on rc.rc_cur_id = p.page_id
where p.page_namespace = @NS
-- and p.page_title not like "List%"
and p.page_id not in
(SELECT DISTINCT(pp.page_id) from page pp join langlinks ltr on ltr.ll_from = pp.page_id where
pp.page_namespace = @NS
and ltr.ll_lang = "tr" )
-- and trp.page_namespace = @NS
group by 1 order by 3 desc
-- LIMIT 100
;
SELECT NOW(); | {"resultsets": [{"headers": ["page_title", "rev_timestamp"], "rowcount": 11}], "runningtime": "0.21"} | enwiki_p |
Patrollers w/no edits in a year | Users with the patroller right who have no trwiki edits since 2021 September 27, and their most recent edit (if any). | SELECT * FROM
(
SELECT user_name,
(SELECT rev_timestamp
FROM revision_userindex
WHERE rev_actor = actor_id
ORDER BY rev_timestamp DESC
LIMIT 1) AS last_edit
FROM user_groups
JOIN user ON user_id = ug_user
LEFT JOIN actor_revision ON actor_user = user_id
WHERE ug_group = 'patroller'
) sq
WHERE COALESCE(last_edit, 0) <= '20210927';
| {"resultsets": [{"headers": ["page_title"], "rowcount": 2}], "runningtime": "47.55"} | trwiki_p |
Oldest 500 users on trwiki | null | SELECT user_name, user_id FROM user ORDER BY user_id LIMIT 500; | {"resultsets": [{"headers": ["pl_from", "pl_title"], "rowcount": 107}], "runningtime": "5.37"} | trwiki_p |
öksüz diye işaretlenmiş ama öksüz olmayan maddeler | null | USE trwiki_p;
SELECT concat("[[",replace(p.page_title,"_"," "),"]]") as madde
, CONCAT("https://tr.wikipedia.org/w/index.php?action=edit§ion=0&title=",replace(p.page_title," ","_")) as link0
, COUNT(pl.pl_from) as kaclink
, CONCAT("[[Özel:SayfayaBağlantılar/",replace(p.page_title,"_"," "),"]]") as baglantilar
-- , CONCAT("https://tr.wikipedia.org/wiki/Özel:SayfayaBağlantılar/",replace(p.page_title," ","_")) as baglantilar
, p.page_latest as son_revizyon
FROM page p
JOIN categorylinks c ON p.page_id = c.cl_from AND c.cl_to = "Öksüz_maddeler"
JOIN pagelinks pl ON p.page_title = pl.pl_title AND p.page_namespace = pl.pl_namespace
JOIN page p2 ON p2.page_id = pl.pl_from
AND pl.pl_from_namespace = 0 and p2.page_is_redirect=0
GROUP BY p.page_title
having COUNT(pl.pl_from)>0
ORDER BY COUNT(pl.pl_from) DESC, p.page_latest ASC
;
| {"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 520}], "runningtime": "5.52"} | trwiki |
trwikivoyage:Uncategorized articles | null | use trwikiquote_p;
select CONCAT('# [[',page_title,']]') as page_title
from page
left outer join categorylinks
on cl_from = page_id
where cl_from is null
AND page_id NOT IN (SELECT rd_from FROM redirect WHERE rd_from = page_id)
and page_namespace = 0; | {"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 519}], "runningtime": "5.09"} | trwikiquote |
Total number of lexemes edit made by TemTechie | To get number of lexemes added by TemTechie into Wikidata | SELECT page_title
FROM revision_userindex
JOIN actor_revision ON rev_actor = actor_id
JOIN page ON rev_page = page_id
WHERE actor_name = 'TemTechie'
AND rev_parent_id = 0
AND page_namespace = 146; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 279}], "runningtime": "102.99"} | wikidatawiki |
Yüklenen PDF'ler (trwiki) | null | SELECT log_title, log_timestamp FROM logging
WHERE log_action = "upload"
AND log_title RLIKE "\.([pP][dD][fF])$"; | {"resultsets": [{"headers": ["page_title"], "rowcount": 122}], "runningtime": "0.28"} | trwiki |
WStaகாதலா_கடமையா | This Query will provide the list of users who did edit on given book with its all pages. | Use tawikisource_p;
SET @w:=0;
select Concat("[[user:",actor_name,"|",actor_name, "]](", edits,")") as "இந்நூலின் மெய்ப்புப்பணியில் ஈடுபட்டோர்:<br/>" from (SELECT actor_name, count(*) as edits FROM revision join actor ON rev_actor = actor_id#total number of users edited in a book
WHERE rev_page IN (select page_id from page where page_title like "காதலா_கடமையா.pdf%")
group by actor_name) as tt
order by edits desc
LIMIT 100; | {"resultsets": [{"headers": ["WikiQuote updated article in #SheSaid 2022", "Campaign size increase", "Current size", "Last update", "Wikidata item"], "rowcount": 20}], "runningtime": "0.37"} | tawikisource_p |
Links auf Wikipedia | null | SELECT page_title, el_to
FROM externallinks, page
WHERE page_id = el_from
AND page_namespace = 0
AND el_index_60 LIKE "https://org.wikipedia%"
AND page_title NOT LIKE "%Wikipedia%" | {"resultsets": [{"headers": ["New WikiQuote #SheSaid article", "Creator", "Date created", "Wikidata item", "Length"], "rowcount": 0}], "runningtime": "0.31"} | dewiki_p |
Most edited pages in the last 24 hours | null | Select rc_title, COUNT(rc_title) as number_of_edits
from recentchanges
where rc_timestamp >= DATE_SUB(NOW(), INTERVAL 1 DAY)
and rc_namespace = 0
group by rc_title
ORDER BY number_of_edits DESC
limit 100 | {"resultsets": [{"headers": ["New WikiQuote #SheSaid article", "Creator", "Date created", "Wikidata item", "Length"], "rowcount": 219}], "runningtime": "0.39"} | enwiki |
Total bytes change in the last month | null | SELECT SUM(total_bytes_changed) AS sum_total_bytes_changed
FROM (
SELECT rc_new_len - rc_old_len AS total_bytes_changed
FROM recentchanges
JOIN page ON recentchanges.rc_cur_id = page.page_id
WHERE page.page_namespace = 0
AND recentchanges.rc_timestamp >= DATE_SUB(NOW(), INTERVAL 1 MONTH)
) AS subquery; | {"resultsets": [{"headers": ["\u1ecd", "New articles in a period", "Wikidata item", "Creator", "Date created", "Length"], "rowcount": 289}], "runningtime": "1.86"} | enwiki |
Users by edit count on gnwiki, except bots | null | SELECT
user_name AS "User",
user_editcount AS "Edit count"
FROM user
WHERE user_name NOT REGEXP "(B|b)(O|o)(T|t)"
ORDER BY user_editcount DESC; | {"resultsets": [{"headers": ["\u1ecd", "New articles in a period", "Wikidata item", "Creator", "Date created", "Length"], "rowcount": 130}], "runningtime": "0.21"} | gnwiki_p |
Contas na Wikipédia em português com gênero definido como "female" | null | SELECT
`user`.`user_name` AS `Nome`,
`user`.`user_registration` AS `Registro`,
`user`.`user_editcount` AS `Nº edições`,
`revs`.`last_edit` AS `Última ed.`
FROM `user`
LEFT JOIN `user_properties` ON `user`.`user_id` = `user_properties`.`up_user`
LEFT JOIN `actor` ON `user`.`user_id` = `actor`.`actor_user`
LEFT JOIN (
SELECT rev_actor, MAX(rev_timestamp) AS last_edit
FROM revision
GROUP BY rev_actor
) AS `revs` ON `revs`.`rev_actor` = `actor`.`actor_id`
WHERE `user_properties`.`up_value` = 'female'
ORDER BY `user`.`user_editcount` DESC; | {"resultsets": [{"headers": ["page_title"], "rowcount": 64}], "runningtime": "23.70"} | ptwiki_p |
öksüz diye işaretlenmiş ama öksüz olmayan maddeler | null | USE trwiki_p;
SELECT concat("[[",replace(p.page_title,"_"," "),"]]") as madde
, CONCAT("https://tr.wikipedia.org/w/index.php?action=edit§ion=0&title=",replace(p.page_title," ","_")) as link0
, COUNT(pl.pl_from) as kaclink
, CONCAT("[[Özel:SayfayaBağlantılar/",replace(p.page_title,"_"," "),"]]") as baglantilar
-- , CONCAT("https://tr.wikipedia.org/wiki/Özel:SayfayaBağlantılar/",replace(p.page_title," ","_")) as baglantilar
, p.page_latest as son_revizyon
FROM page p
JOIN categorylinks c ON p.page_id = c.cl_from AND c.cl_to = "Öksüz_maddeler"
JOIN pagelinks pl ON p.page_title = pl.pl_title AND p.page_namespace = pl.pl_namespace
JOIN page p2 ON p2.page_id = pl.pl_from
AND pl.pl_from_namespace = 0 and p2.page_is_redirect=0
GROUP BY p.page_title
having COUNT(pl.pl_from)>0
ORDER BY COUNT(pl.pl_from) DESC, p.page_latest ASC
;
| {"connection_id": 140009895} | trwiki_p |
Users blocked but with rights on ptwiki | null | SELECT
user_name AS "Username",
ug_group AS "Group",
ipb_expiry AS "Block expiry"
FROM
user,
user_groups,
ipblocks
WHERE
user.user_id = user_groups.ug_user
AND
user.user_id = ipblocks.ipb_user
ORDER BY
user_name ASC; | {"resultsets": [{"headers": ["page_title"], "rowcount": 64}], "runningtime": "11.86"} | ptwiki_p |
Articles with full protection on ptwiki | null | SELECT
page_namespace AS "Namespace",
page_title AS "Title",
pr_level AS "Level",
pr_expiry AS "Expiry"
FROM
page,
page_restrictions
WHERE
page_restrictions.pr_level = "sysop"
AND
page_restrictions.pr_page = page.page_id
AND
page.page_namespace = 0
ORDER BY
page_title ASC; | {"connection_id": 61646227} | ptwiki_p |
number of lexemes | fetching total number of lexemes | SELECT page_title
FROM revision_userindex
JOIN actor_revision ON rev_actor = actor_id
JOIN page ON rev_page = page_id
WHERE actor_name = 'TemTechie'
AND rev_parent_id = 0
AND page_namespace = 146; | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 93}], "runningtime": "5.50"} | wikidatawiki |
Redirects from main namespace to others namespaces on ptwiki | null | SELECT
page_namespace AS "From Namespace",
page_title AS "From Title",
rd_namespace AS "To Namespace",
rd_title AS "To Title"
FROM
redirect,
page
WHERE
page.page_id = redirect.rd_from
AND
page.page_namespace = 0
AND
redirect.rd_namespace != 0
ORDER BY page_title ASC; | {"resultsets": [{"headers": ["page_title"], "rowcount": 2032}], "runningtime": "1.83"} | ptwiki_p |
linktarget | null | SELECT *
FROM linktarget
WHERE lt_title LIKE '%Rail-interchange%'
| {"resultsets": [{"headers": ["LOWER(page_title)", "BINARY LOWER(BINARY page_title)", "LOWER(\"AAA\")"], "rowcount": 1}], "runningtime": "0.05"} | zhwiki_p |
öksüz diye işaretlenmiş ama öksüz olmayan maddeler | null | USE trwikiquote_p;
SELECT concat("[[",replace(p.page_title,"_"," "),"]]") as madde
, CONCAT("https://tr.wikiquote.org/w/index.php?action=edit§ion=0&title=",replace(p.page_title," ","_")) as link0
, COUNT(pl.pl_from) as kaclink
, CONCAT("[[Özel:SayfayaBağlantılar/",replace(p.page_title,"_"," "),"]]") as baglantilar
-- , CONCAT("https://tr.wikipedia.org/wiki/Özel:SayfayaBağlantılar/",replace(p.page_title," ","_")) as baglantilar
, p.page_latest as son_revizyon
FROM page p
JOIN categorylinks c ON p.page_id = c.cl_from AND c.cl_to = "Öksüz_maddeler"
JOIN pagelinks pl ON p.page_title = pl.pl_title AND p.page_namespace = pl.pl_namespace
JOIN page p2 ON p2.page_id = pl.pl_from
AND pl.pl_from_namespace = 0 and p2.page_is_redirect=0
GROUP BY p.page_title
having COUNT(pl.pl_from)>0
ORDER BY COUNT(pl.pl_from) DESC, p.page_latest ASC
;
| {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 92}], "runningtime": "0.57"} | trwikiquote_p |
Silinmiş maddenin tartışma sayfası | null | use trwiki_p;
SELECT CONCAT("Tartışma:",p1.page_title) AS page_title
FROM page AS p1
WHERE p1.page_title NOT LIKE '%/%'
AND p1.page_namespace = 1
AND NOT EXISTS (SELECT 1
FROM page AS p2
WHERE p2.page_namespace = 0
AND p1.page_title = p2.page_title) | {"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "4.74"} | trwiki_p |
New pages on ptwiki | null | SELECT
page_title
FROM
page
WHERE
page_is_redirect = 0
AND
page_namespace = 0
AND
page_is_new = 1
ORDER BY
page_title ASC; | {"resultsets": [{"headers": ["page_title", "rd_title"], "rowcount": 0}], "runningtime": "5.19"} | ptwiki_p |
Skin usage statistics wikipedia | Number of users of each skin @plwikisource | SELECT up_value AS skin, count(*) AS users, max(upa_touched) AS last_updated
FROM user_properties_anon
WHERE up_property="skin"
GROUP BY up_value
ORDER BY users DESC; | {"resultsets": [{"headers": ["rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1"], "rowcount": 10}], "runningtime": "0.06"} | enwiki_p |
Large redirects on enwiki | null | SELECT page.page_namespace, page.page_title, page.page_len FROM page
WHERE (
(page.page_is_redirect !='0')
AND
(page.page_namespace ='0')
AND
(page.page_len >'1000')
)
LIMIT 1000
| {"resultsets": [{"headers": ["langue"], "rowcount": 74}], "runningtime": "0.14"} | enwiki |
Articles with most langlinks on enwiki, missing from ltwiki | null | USE enwiki_p; -- articles from EN with most langlinks...
SELECT
count(*) ll_count,
CONCAT("[[:en:",page_title,"]]") title_en,
(select CONCAT("[[:de:",ll_title,"]]") from langlinks where ll_from = page_id and ll_lang = 'de') title_de,
(select CONCAT("[[:es:",ll_title,"]]") from langlinks where ll_from = page_id and ll_lang = 'es') title_es,
(select CONCAT("[[:fr:",ll_title,"]]") from langlinks where ll_from = page_id and ll_lang = 'fr') title_fr,
(select CONCAT("[[:sv:",ll_title,"]]") from langlinks where ll_from = page_id and ll_lang = 'sv') title_sv,
(select CONCAT("[[:d:",pp_value,"]]") from page_props where pp_page = page_id and pp_propname = 'wikibase_item') wb_item
FROM
page, langlinks
WHERE
ll_from = page_id and
(select count(*) from langlinks where ll_from = page_id) >= 50 and
-- attempt to limit number of intermediate rows to fetch and sort
page_id not in (select ll_from from langlinks where ll_lang = 'lt') and
-- ... missing from LT (no direct iw equivalent there)
page_namespace = 0
GROUP BY
page_id
ORDER BY
ll_count desc, page_title
LIMIT
2050; -- top N | {"resultsets": [{"headers": ["nb_th"], "rowcount": 1}], "runningtime": "0.07"} | enwiki |
Ligàmme a Commons sénsa template | null | USE lijwiki_p;
SELECT DISTINCT CONCAT('# [[', page_title, ']]')
FROM page
WHERE page_namespace = 0
AND page_is_redirect = 0
AND page_id NOT IN (
SELECT tl_from
FROM templatelinks
WHERE tl_namespace = 10
AND (tl_title = 'Interprogetto'
OR tl_title = 'Ip'
OR tl_title = 'Commons'
OR tl_title = 'Commons_cat'
OR tl_title = 'Commons_category'
OR tl_title = 'Commons_cat_left'
OR tl_title = 'Commonscat'
OR tl_title = 'Commonscat-inline'
OR tl_title = 'Commonscat_left'
OR tl_title = 'Disambigua' ) )
AND page_title IN (
SELECT REPLACE(WIKI.ips_site_page, ' ', '_')
FROM wikidatawiki_p.wb_items_per_site WIKI, wikidatawiki_p.wb_items_per_site EXT
WHERE WIKI.ips_item_id = EXT.ips_item_id
AND WIKI.ips_site_id = 'lijwiki'
AND EXT.ips_site_id = 'commonswiki' )
ORDER BY page_title; | {"resultsets": [{"headers": ["max(rev_timestamp)"], "rowcount": 1}], "runningtime": "0.05"} | lijwiki_p |
Userspace pages of non-existent users (no talk, no subpages) | null | SELECT CONCAT('https://en.wikipedia.org/wiki/User:', p.page_title) AS URL
FROM enwiki_p.page p
LEFT JOIN enwiki_p.user u ON REPLACE(p.page_title, '_', ' ') = u.user_name
WHERE p.page_namespace = 2
AND u.user_id IS NULL
AND p.page_is_redirect = 0
AND NOT IS_IPV4(p.page_title) -- Exclude IPv4
AND NOT IS_IPV6(p.page_title) -- Exclude IPv6
AND p.page_title NOT LIKE '%.css'
AND p.page_title NOT LIKE '%.cs'
AND p.page_title NOT LIKE '%.js'
AND p.page_title NOT LIKE '%.charset'
AND p.page_title NOT LIKE '%.%.%.xxx'
AND p.page_title NOT IN ('Unknown_user', 'Global_rename_script', 'Sec\"\'27\\u00226\\x3ETest_(WMF)') -- Exclude technical user pages
AND p.page_id NOT IN (
SELECT cl.cl_from FROM
enwiki_p.categorylinks cl
WHERE cl.cl_to IN ('User_soft_redirects', 'Wikipedia_doppelganger_accounts', 'Wikipedia_alternative_accounts') -- Exclude these categories
)
AND p.page_id NOT IN (
SELECT tl.tl_from FROM
enwiki_p.templatelinks tl
WHERE tl.tl_target_id IN (32197, 277052, 282063, 115252, 1968835) -- Exclude pages tagged with sockpuppet template
)
AND p.page_title NOT LIKE '%/%' | {"resultsets": [{"headers": ["user_talk"], "rowcount": 5577}], "runningtime": "4502.92"} | enwiki_p |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
FROM
page talkpage
WHERE
talkpage.page_title NOT LIKE '%/%'
AND
talkpage.page_namespace IN (1,11,15,101,119)
AND
NOT EXISTS (
SELECT
1
FROM
page mainpage
WHERE
mainpage.page_namespace=talkpage.page_namespace-1
AND
mainpage.page_title=talkpage.page_title
)
AND
NOT EXISTS (
SELECT
1
FROM
templatelinks
WHERE
talkpage.page_id=tl_from
AND
tl_target_id = 418257
)
LIMIT 100 | {"resultsets": [{"headers": ["title"], "rowcount": 2507}], "runningtime": "3.96"} | enwiki_p |
Taws contribution upto Jan 2023 | Most active users by edits on Bengali Wikisource in last 3 months | USE tawikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = ta.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*,user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE page_namespace = 250
AND actor_user IS NOT NULL
AND rev_timestamp BETWEEN 20151101000000 AND 20230131235959
GROUP BY actor_id
ORDER BY recent_user_editcount DESC
LIMIT 300; | {"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 3}], "runningtime": "66.66"} | tawikisource_p |
Taws contribution Jan MARCH 2023 | Most active users by edits on Taws contribution Jan 2023 | USE tawikisource_p;
SELECT
CONCAT("# {{target | user =",actor_name,"| site = ta.wikisource.org }}") AS rev_user_text,
COUNT(actor_id) AS recent_user_editcount
/*,user_editcount*/
FROM revision
JOIN actor ON rev_actor=actor_id
JOIN page ON rev_page=page_id
WHERE page_namespace = 250
AND actor_user IS NOT NULL
AND rev_timestamp BETWEEN 20230101000000 AND 20230331235959
GROUP BY actor_id
ORDER BY recent_user_editcount DESC
LIMIT 300; | {"resultsets": [{"headers": ["URL"], "rowcount": 2}], "runningtime": "40.69"} | tawikisource_p |
Fetching sidebars | Attempting to fetch links in sidebars and navbar boxes | select * from (select *
from page
join pagelinks on page.page_id = pagelinks.pl_from
where pagelinks.pl_title = 'DNA'
and pagelinks.pl_namespace = 0
and pagelinks.pl_from_namespace = 10) as templateinmainpage
inner join pagelinks as linkinmainpage
on linkinmainpage.pl_from = templateinmainpage.page_id
where linkinmainpage.pl_title = 'Genetics_sidebar'
and linkinmainpage.pl_namespace = 0
and linkinmainpage.pl_from_namespace = 10; | {"resultsets": [{"headers": ["New WikiQuote #SheSaid article", "Creator", "Date created", "Wikidata item", "Length (buggy)"], "rowcount": 237}], "runningtime": "0.95"} | enwiki |
it.wiki navbox titles | null | SELECT page_title FROM
page
JOIN templatelinks ON page_id = tl_from
JOIN linktarget on tl_target_id = lt_id
WHERE page_is_redirect = 0
AND page_namespace = 10
AND lt_namespace = 10
AND lt_title IN ('Navbox', 'Template_di_navigazione')
UNION
SELECT page_title FROM
page
JOIN redirect ON page_id = rd_from
WHERE page_namespace = 10
AND rd_title IN (
SELECT page_title FROM
page
JOIN templatelinks ON page_id = tl_from
JOIN linktarget on tl_target_id = lt_id
WHERE page_is_redirect = 0
AND page_namespace = 10
AND lt_namespace = 10
AND lt_title IN ('Navbox', 'Template_di_navigazione')
) | {"resultsets": [{"headers": ["concat(\"* [[:en:Category:\",page_title,\"]]\")", "count(cl_from)"], "rowcount": 150}], "runningtime": "11.26"} | enwiki |
Articles inside the Infobox in English Wikipedia | null | SELECT * FROM page
INNER JOIN templatelinks ON page_id = tl_from
WHERE page_namespace = 0 AND page_is_redirect=0
AND page_title = "DNA"
| {"resultsets": [{"headers": ["log_id", "log_timestamp", "user", "log_title", "log_params", "summary"], "rowcount": 100}], "runningtime": "2.87"} | enwiki |
wanted articles on trwiki (by wikiproject) | null | SELECT
REPLACE(p.page_title, '_', ' ') AS baslik
FROM
page p
WHERE
p.page_namespace = 1
AND EXISTS
(SELECT 1 FROM categorylinks cl
WHERE cl.cl_from = p.page_id
AND cl.cl_to LIKE '%Gerekli-sınıf%')
ORDER BY
p.page_title
| {"resultsets": [{"headers": ["File", "Re-created at"], "rowcount": 41}], "runningtime": "84.65"} | trwiki_p |
most active users by edit on trwiki | null | SET @counter:=0; SELECT CONCAT("|",@counter:=@counter+1,"") AS rank, CONCAT("[[Kullanıcı:",user_name,"|",user_name,"]]") AS user_name, user_editcount
FROM user
WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot')
AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)"
ORDER BY user_editcount DESC LIMIT 100;
| {"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "5.17"} | trwikiquote_p |
Most frequent domains (trwiki) | This query compiles a list of 1 000 external links (from the main namespace of the French Wikipedia) grouped by website. | USE trwikiquote_p;
SELECT url, COUNT(*)
FROM (
SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to) + 3), '/', 1) url
FROM externallinks
WHERE el_from IN (
SELECT page_id
FROM page
WHERE page_namespace = 0
)
) tmp_table
#where url LIKE "quarry.wmflabs.org%"
GROUP BY url
HAVING COUNT(*) > 10000
ORDER BY COUNT(*) DESC; | {"resultsets": [{"headers": ["lt_title"], "rowcount": 65}], "runningtime": "12.87"} | trwikiquote |
Most frequent domains (frwiki) | This query compiles a list of 1 000 external links (from the main namespace of the French Wikipedia) grouped by website. | USE trwikiquote_p;
SELECT url, COUNT(*)
FROM (
SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to) + 3), '/', 1) url
FROM externallinks
WHERE el_from IN (
SELECT page_id
FROM page
WHERE page_namespace = 0
)
) tmp_table
#where url LIKE "quarry.wmflabs.org%"
GROUP BY url
HAVING COUNT(*) > 10000
ORDER BY COUNT(*) DESC; | {"resultsets": [{"headers": ["Page", "Page length", "Re-created at"], "rowcount": 90}], "runningtime": "10.68"} | trwikiquote_p |
Orphaned article talks (ltwiki) | null | use ltwiki_p;
SELECT CONCAT("# [[Aptarimas:",p1.page_title,"]]") AS page_title
FROM page AS p1
WHERE p1.page_title NOT LIKE '%/%'
AND p1.page_namespace = 1
AND NOT EXISTS (SELECT 1
FROM page AS p2
WHERE p2.page_namespace = 0
AND p1.page_title = p2.page_title) | {"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 7}, {"headers": ["avg_edits_per_day"], "rowcount": 1}, {"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 9}, {"headers": ["avg_edits_per_day"], "rowcount": 1}], "runningtime": "2.98"} | ltwiki |
Unclear redirect pages on ltwiki | null | USE ltwiki_p;
SELECT page_title, page_len FROM page
WHERE page_is_redirect=1 AND page_namespace=0 AND page_len > 250 ORDER BY page_len ASC;
| {"resultsets": [{"headers": ["declined_then_deleted", "actor_name"], "rowcount": 155}], "runningtime": "20.25"} | ltwiki |
most active users by edit on trwiki | null | SET @counter:=0; SELECT CONCAT("|",@counter:=@counter+1,"") AS rank, CONCAT("[[Bikarhêner:",user_name,"|",user_name,"]]") AS user_name, user_editcount
FROM user
WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot')
AND user_name NOT RLIKE "(.*)([Bb][Oo][Tt])(.*)"
ORDER BY user_editcount DESC LIMIT 100;
| {"resultsets": [{"headers": ["WikiQuote updated article in #SheSaid 2022", "Campaign size increase", "Current size", "Last update", "Wikidata item"], "rowcount": 12}], "runningtime": "0.15"} | kuwiki_p |
Pending changes by users with autoreview right | null | SELECT COUNT(rev_id) as "# pending revisions"
FROM revision
INNER JOIN page ON rev_page = page_id
INNER JOIN flaggedpage_pending ON page_id = fpp_page_id
WHERE rev_id > fpp_rev_id;
SELECT COUNT(DISTINCT rev_id) as "# pending revisions by users with autoreview right"
FROM revision
INNER JOIN page ON rev_page = page_id
INNER JOIN flaggedpage_pending ON page_id = fpp_page_id
INNER JOIN actor ON actor_id = rev_actor
LEFT OUTER JOIN user_groups ON ug_user = actor_user
WHERE rev_id > fpp_rev_id
AND ug_group IN ('editor','trusted','sysop','bot');
SELECT COUNT(*) as "# pages with pending revisions"
FROM flaggedpage_pending;
SELECT COUNT(DISTINCT page_id) as "# pages with pending revisions by users with autoreview right"
FROM revision
INNER JOIN page ON rev_page = page_id
INNER JOIN flaggedpage_pending ON page_id = fpp_page_id
INNER JOIN actor ON actor_id = rev_actor
LEFT OUTER JOIN user_groups ON ug_user = actor_user
WHERE rev_id > fpp_rev_id
AND ug_group IN ('editor','trusted','sysop','bot');
| {"resultsets": [{"headers": ["log_timestamp", "log_id", "actor_name", "log_title", "comment_text", "(SELECT user_editcount FROM user WHERE user_name = REPLACE(log_title,\"_\",\" \"))"], "rowcount": 0}], "runningtime": "7.44"} | huwiki |
ltwiki: 100 shortest articles in by source size (excluding redirects and disambiguation pages) | null | SELECT page_title, page_len FROM page WHERE page_namespace=0 AND page_is_redirect!=1 AND page_id NOT IN (SELECT pp_page FROM page_props WHERE pp_propname='disambiguation') ORDER BY page_len ASC LIMIT 100; | {"connection_id": 111806767} | ltwiki_p |
Large redirects on enwiki | null | SELECT page.page_namespace, page.page_title, page.page_len FROM page
WHERE (
(page.page_is_redirect !='0')
AND
(page.page_namespace ='0')
AND
(page.page_len >'1000')
)
LIMIT 1000
| {"resultsets": [{"headers": ["log_timestamp", "log_id", "actor_name", "log_title", "comment_text", "(SELECT user_editcount FROM user WHERE user_name = REPLACE(log_title,\"_\",\" \"))"], "rowcount": 51577}], "runningtime": "56.86"} | kuwiki |
Pages with 0 links to them (ltwiki) | null | USE ltwiki_p;
SELECT
CONCAT('[[',page_title,']]') AS "Title",
page_len AS "Size"
FROM page
LEFT JOIN pagelinks
ON pl_title = page_title
AND pl_namespace = page_namespace
WHERE pl_namespace IS NULL
AND page.page_namespace =0 AND page.page_is_redirect = 0
ORDER BY page_len DESC
LIMIT 1000; | {"resultsets": [{"headers": ["Template"], "rowcount": 0}], "runningtime": "0.06"} | ltwiki |
Fiwiki Wikidata edits in last 30 days (data) | wikidata edits by fiwiki users | SELECT
rc_timestamp,
rc_user_text,
page_title,
eu_entity_id,
eu_aspect,
eu_page_id,
rc_source,
rc_comment
FROM
wbc_entity_usage,
page_props,
recentchanges_compat,
page,
templatelinks,
linktarget
WHERE
page_id=eu_page_id
AND page_id=tl_from
AND tl_target_id = lt_id
AND lt_namespace = 10
AND lt_title IN ("Museo_WD", "Perustiedot_Wikidatassa")
AND rc_cur_id=pp_page
AND eu_entity_id=pp_value
AND pp_propname="wikibase_item"
AND rc_source="wb"
AND rc_comment NOT LIKE "%quicstatements%"
AND (
(eu_aspect LIKE "D.%" AND rc_comment LIKE CONCAT("%description%", replace(eu_aspect, "D.", "|"), "%") )
OR (eu_aspect like "L.%" AND rc_comment LIKE CONCAT("%label%", replace(eu_aspect, "L.", "|"), "%") )
OR (rc_comment LIKE concat("%P", replace(eu_aspect, "C.P", ""), "%"))
)
ORDER BY rc_timestamp DESC
| {"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 12}], "runningtime": "0.07"} | fiwiki_p |
Vandalismebestrijding nlwiki | 285 backlog / achterstand 18:57 27-12-2022 (CET) | # anonymous edits totals
SELECT
CASE rc_patrolled
WHEN 0 THEN 'unpatrolled'
WHEN 1 THEN 'manually patrolled'
WHEN 2 THEN 'autopatrolled'
END AS rc_patrolled,
COUNT(*) AS 'count'
FROM recentchanges, actor
WHERE rc_actor=actor_id AND actor_user IS NULL
GROUP BY rc_patrolled
UNION
SELECT 'total', COUNT(*) FROM recentchanges, actor WHERE rc_actor=actor_id AND actor_user IS NULL;
# top 15 anonymous users with the most unpatrolled edits
SELECT actor_name AS 'user', COUNT(*) AS 'unpatrolled'
FROM recentchanges, actor
WHERE rc_actor=actor_id AND actor_user IS NULL AND rc_patrolled=0
GROUP BY actor_name
ORDER BY `unpatrolled` DESC
LIMIT 15;
# anonymous edits per day
SELECT
LEFT(rc_timestamp, 8) AS day,
SUM(rc_patrolled=0) AS 'unpatrolled',
SUM(rc_patrolled=1) AS 'manually patrolled',
SUM(rc_patrolled=2) AS 'autopatrolled',
COUNT(*) AS total
FROM recentchanges, actor
WHERE rc_actor=actor_id AND actor_user IS NULL
GROUP BY day;
# unpatrolled anonymous edits per namespace
SELECT rc_namespace, COUNT(*) AS 'unpatrolled'
FROM recentchanges, actor
WHERE rc_actor=actor_id AND actor_user IS NULL AND rc_patrolled=0
GROUP BY rc_namespace;
# top 10 pages with the most unpatrolled anonymous edits
SELECT rc_namespace, rc_title, COUNT(*) AS 'unpatrolled'
FROM recentchanges, actor
WHERE rc_actor=actor_id AND actor_user IS NULL AND rc_patrolled=0
GROUP BY rc_namespace, rc_title
ORDER BY `unpatrolled` DESC
LIMIT 15; | {"connection_id": 62384129} | nlwiki_p |
film | film | SELECT /*SLOW OK*/ page_title
FROM page
WHERE page_id IN (
SELECT tl_from
FROM templatelinks
WHERE tl_title = "Infobox_film"
AND tl_namespace = 10
AND tl_from IN (
SELECT ll_from
FROM langlinks
WHERE ll_from
GROUP BY ll_from
HAVING COUNT(*) > 20
)
AND tl_from NOT IN (
SELECT ll_from
FROM langlinks
WHERE ll_lang = "fa"
)
); | {"resultsets": [{"headers": ["user_talk"], "rowcount": 15934}], "runningtime": "6841.21"} | en_wiki |
Pages containing 0 page links (ltwiki) | null | SELECT
CONCAT('[[',page_title,']]') AS "Title",
page_len AS "Size"
FROM page
LEFT JOIN pagelinks
ON pl_from = page_id
AND pl_namespace = page_namespace
WHERE pl_namespace IS NULL
AND page.page_namespace =0 AND page.page_is_redirect = 0
ORDER BY page_len DESC
LIMIT 1000; | {"resultsets": [{"headers": ["user_talk"], "rowcount": 1861}], "runningtime": "610.78"} | ltwiki |
Infobox_film | Infobox_film | SELECT /*SLOW OK*/ page_title
FROM page
WHERE page_id IN (
SELECT tl_from
FROM templatelinks
WHERE tl_title = "Infobox_film"
AND tl_namespace = 10
AND tl_from IN (
SELECT ll_from
FROM langlinks
WHERE ll_from
GROUP BY ll_from
HAVING COUNT(*) > 20
)
AND tl_from NOT IN (
SELECT ll_from
FROM langlinks
WHERE ll_lang = "fa"
)
); | {"connection_id": 63531184} | enwiki |
Most linked non-existing pages including templates (ltwiki) | null | select concat(_utf8'# [[',replace(`a`.`pl_title`,_utf8'_',_utf8' '),_utf8']] ([[:Specialus:Whatlinkshere/',
replace(`a`.`pl_title`,_utf8'_',_utf8' '),_utf8'|',`a`.`kiekis`,_utf8' nuorodos]])') AS `title`
from (select `p`.`pl_title` AS `pl_title`,count(1) AS `kiekis`
from `pagelinks` `p`
where ((not(exists(select 1 AS `1`
from `page` `pg`
where ((`p`.`pl_namespace` = `pg`.`page_namespace`)
and (`p`.`pl_title` = `pg`.`page_title`)))))
and (`p`.`pl_namespace` = 0))
group by `p`.`pl_namespace`,`p`.`pl_title`) `a`
where (`a`.`kiekis` > 10) order by `a`.`kiekis` desc
LIMIT 1000; | {"resultsets": [{"headers": ["user_name", "user_registration"], "rowcount": 0}], "runningtime": "0.05"} | ltwiki |
Most linked non-existing pages (ltwiki) | null | use ltwiki_p;
select
CONCAT('[[',pl.pl_title,']]') AS "Title",
COUNT(pl.pl_title) AS "Links count"
from pagelinks pl
where
pl.pl_title NOT IN (Select page_title from page where page_namespace=0) and pl.pl_from_namespace=0 and pl.pl_namespace=0
and pl.pl_title NOT IN
(
select pl_title
from pagelinks pl
left join page p on pl.pl_from=p.page_id
where
page_namespace=10 and pl_from IN (select tl_from
from templatelinks
where
tl_from_namespace=10)
and pl_namespace=0
)
group by pl.pl_title
having COUNT(pl.pl_title)>10
order by COUNT(pl.pl_title) DESC
LIMIT 1000; | {"resultsets": [{"headers": ["lt_title"], "rowcount": 38}], "runningtime": "9.19"} | ltwiki |
Most linked existing pages (ltwiki) | null | use ltwiki_p;
select
CONCAT('[[',pl.pl_title,']]') AS "Title",
page_len AS "Size",
COUNT(pl.pl_title) AS "Links count"
from pagelinks pl
LEFT JOIN page
ON pl_from = page_id
AND pl_namespace = page_namespace
where
pl.pl_title IN (Select page_title from page where page_namespace=0) and pl.pl_from_namespace=0 and pl.pl_namespace=0
and pl.pl_title NOT IN
(
select pl_title
from pagelinks pl
left join page p on pl.pl_from=p.page_id
where
page_namespace=10 and pl_from IN (select tl_from
from templatelinks
where
tl_from_namespace=10)
and pl_namespace=0
)
group by pl.pl_title
having COUNT(pl.pl_title)>10
order by COUNT(pl.pl_title) DESC
LIMIT 1000; | {"resultsets": [{"headers": ["log_id", "log_type", "log_action", "user_name", "user_editcount", "user_registration", "log_params"], "rowcount": 181529}], "runningtime": "227.32"} | ltwiki |
Most linked existing pages including templates (ltwiki) | null | select concat(_utf8'# [[',replace(`a`.`pl_title`,_utf8'_',_utf8' '),_utf8']] ([[:Specialus:Whatlinkshere/',
replace(`a`.`pl_title`,_utf8'_',_utf8' '),_utf8'|',`a`.`kiekis`,_utf8' nuorodos]])') AS `title`
from (select `p`.`pl_title` AS `pl_title`,count(1) AS `kiekis`
from `pagelinks` `p`
where ((exists(select 1 AS `1`
from `page` `pg`
where ((`p`.`pl_namespace` = `pg`.`page_namespace`)
and (`p`.`pl_title` = `pg`.`page_title`))))
and (`p`.`pl_namespace` = 0))
group by `p`.`pl_namespace`,`p`.`pl_title`) `a`
where (`a`.`kiekis` > 10) order by `a`.`kiekis` desc
LIMIT 1000; | {"resultsets": [{"headers": ["log_id", "log_type", "log_action", "user_name", "user_editcount", "user_registration", "log_params"], "rowcount": 7747}], "runningtime": "23.81"} | ltwiki |
Most linked non-existing pages including templates (ltwiki) [alternative] | null | SELECT pl_title, COUNT(*) FROM pagelinks
WHERE pl_from_namespace = 0 AND pl_namespace = 0
AND NOT EXISTS (
SELECT * FROM page WHERE page_namespace = 0 AND page_title = pl_title
)
GROUP BY pl_title
ORDER BY COUNT(*) DESC, pl_title
LIMIT 1000; | {"connection_id": 112381327} | ltwiki_p |
Uncategorized templates, no subpages (ltwiki) | null | SELECT CONCAT("Šablonas:",page_title) AS "Title"
FROM page
LEFT JOIN categorylinks ON cl_from = page_id
WHERE page_namespace = 10
AND cl_from IS NULL
AND page_title NOT LIKE '%/%'
AND page_is_redirect = 0
LIMIT 10000; | {"resultsets": [{"headers": ["Reviewer", "Article Reviews"], "rowcount": 2}], "runningtime": "5.06"} | ltwiki_p |
Current articles for creation | null | SELECT page_title, rev_timestamp
FROM page
JOIN revision ON rev_page = page_id AND rev_parent_id = 0
WHERE page_namespace=5 /* Wikipedia talk: */
AND page_title LIKE "Articles_for_creation/%"
AND NOT page_title REGEXP "Articles_for_creation/\\d{4}-\\d{2}-\\d{2}"
AND page_is_redirect = 0
ORDER BY rev_timestamp DESC; | {"resultsets": [{"headers": ["page_title", "rev_timestamp", "MIN(created.rev_timestamp)", "COUNT(DISTINCT(actor.actor_name))"], "rowcount": 19}], "runningtime": "0.09"} | enwiki_p |
count of non-locked user accounts on all wikis | Requested by EpicPupper at https://en.wikipedia.org/wiki/Wikipedia:Request_a_query#Number_of_non-locked_registered_users_across_Wikimedia | SELECT COUNT(*)
FROM globaluser
WHERE gu_locked = 0 | {"resultsets": [{"headers": ["lt_id", "lt_namespace", "lt_title"], "rowcount": 10}], "runningtime": "0.06"} | centralauth |
Bot Wars?! (arwiki) | null | SELECT
article.page_title,
article.page_namespace,
count(distinct actor.actor_name) as "bot users",
#GROUP_CONCAT(DISTINCT actor.actor_name) as "bot users",
TIMESTAMP(max(rev_timestamp)) as "last edit on page",
COUNT(*) AS edits
FROM revision
INNER JOIN page article ON article.page_id = rev_page #AND article.page_namespace = 0
INNER JOIN actor ON actor_id = rev_actor
WHERE
rev_timestamp > DATE_SUB(NOW(), INTERVAL 2 day)
AND actor_name IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'bot')
GROUP BY article.page_id
having count(*) > 10
ORDER BY edits DESC; | {"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 519}], "runningtime": "5.60"} | arzwiki_p |
Subpages of WT:AFC, ordered by date created | Requested by HouseBlaster at https://en.wikipedia.org/wiki/Special:Permalink/1136615754#Subpages_of_Wikipedia_talk%3AArticles_for_creation | SELECT rev_timestamp, page_title
FROM revision
LEFT JOIN page ON page_id = rev_page
WHERE page_namespace = 5
AND page_title LIKE 'Articles_for_creation%'
AND rev_parent_id = 0
GROUP BY page_id
ORDER BY rev_timestamp ASC | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 281}], "runningtime": "0.33"} | enwiki |
Subpages of WT:AFC, ordered by date created | Requested by HouseBlaster at https://en.wikipedia.org/wiki/Special:Permalink/1136615754#Subpages_of_Wikipedia_talk%3AArticles_for_creation | SELECT rev_timestamp, page_title
FROM page
JOIN revision ON rev_page = page_id
WHERE page_namespace = 5
AND page_title LIKE 'Articles_for_creation%'
AND rev_parent_id = 0
ORDER BY rev_timestamp ASC | {"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 174}], "runningtime": "18.98"} | enwiki |
zhwikisource: Pages which title contains 's announcement | null | USE zhwikisource_p;
SELECT page_id, page_title
FROM page
WHERE page_namespace = 14
AND page_is_redirect = 0
AND page_title LIKE "%的公告%"
ORDER BY page_id;
# 0/1 main 2/3 user 4/5 wp 6/7 file 8/9 mediawiki 10/11 template
# 12/13 help 14/15 cat 100/101 portal 118/119 draft 710/711 timedtext 828/829 module
# 2300/2301 gadget 2302/2303 g. def -1 special -2 media | {"resultsets": [{"headers": ["User", "Registered", "Edit count", "Last edit", "Filter trip count", "Last filter trip"], "rowcount": 51}], "runningtime": "55.96"} | zhwikisource_p |
film | null | SELECT /*SLOW OK*/ page_title
FROM page
WHERE page_id IN (
SELECT tl_from
FROM templatelinks
WHERE tl_title = "Infobox_film"
AND tl_namespace = 10
AND tl_from IN (
SELECT ll_from
FROM langlinks
WHERE ll_from
GROUP BY ll_from
HAVING COUNT(*) > 20
)
AND tl_from NOT IN (
SELECT ll_from
FROM langlinks
WHERE ll_lang = "fa"
)
); | {"resultsets": [{"headers": ["concat(\"Category:\",page_title)", "page_len", "cat_pages", "cat_subcats"], "rowcount": 8372}], "runningtime": "15.81"} | enwiki |
film | null | SELECT /*SLOW OK*/ page_title
FROM page
WHERE page_id IN (
SELECT tl_from
FROM templatelinks
JOIN linktarget on tl_targer_id = lt_id
WHERE lt_title = "Infobox_film"
AND lt_namespace = 10
AND tl_from IN (
SELECT ll_from
FROM langlinks
WHERE ll_from
GROUP BY ll_from
HAVING COUNT(*) > 20
)
AND tl_from NOT IN (
SELECT ll_from
FROM langlinks
WHERE ll_lang = "fa"
)
); | {"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 4}], "runningtime": "0.14"} | enwiki |
film | film | SELECT /*SLOW OK*/ page_title
FROM page
WHERE page_id IN (
SELECT tl_from
FROM templatelinks
JOIN linktarget on tl_targer_id = lt_id
WHERE lt_title = "Infobox_film"
AND lt_namespace = 10
AND tl_from IN (
SELECT ll_from
FROM langlinks
WHERE ll_from
GROUP BY ll_from
HAVING COUNT(*) > 20
)
AND tl_from NOT IN (
SELECT ll_from
FROM langlinks
WHERE ll_lang = "fa"
)
); | {"resultsets": [{"headers": ["\u1ecd", "New articles in a period", "Wikidata item", "Creator", "Date created", "Length"], "rowcount": 742}], "runningtime": "86.06"} | enwiki |
Articles without image (ltwiki) | null | SELECT
CONCAT('[[',page_title,']]') AS "Title",
page_len AS "Size"
FROM page
LEFT JOIN imagelinks on il_from = page_id
WHERE il_from IS NULL
AND page_namespace = 0
AND page_is_redirect = 0
ORDER BY (page_len) DESC
LIMIT 1000 | {"resultsets": [{"headers": ["substring(ips_site_page, 5)", "ips_site_page"], "rowcount": 1}], "runningtime": "0.05"} | ltwiki |
film | null | SELECT /*SLOW OK*/ concat('[[:en:',page_title,']]')
FROM page
WHERE page_id IN (
SELECT tl_from
FROM templatelinks
JOIN linktarget on tl_target_id = lt_id
WHERE lt_title = "Infobox_film"
AND lt_namespace = 10
AND tl_from IN (
SELECT ll_from
FROM langlinks
WHERE ll_from
GROUP BY ll_from
HAVING COUNT(*) > 20
)
AND tl_from NOT IN (
SELECT ll_from
FROM langlinks
WHERE ll_lang = "fa"
)
); | {"resultsets": [{"headers": ["page_title"], "rowcount": 259}], "runningtime": "0.33"} | enwiki |