title stringlengths 1 212 | description stringlengths 1 4.39k ⌀ | query stringlengths 1 65.5k ⌀ | extra_info stringlengths 18 31.6k | wikidb stringlengths 4 26 ⌀ |
|---|---|---|---|---|
Replace Gusmans to Cides | null | select concat ('[[File:',page_title,']]') from page
where page_namespace = 6
and page_title like '%Entrà_Cides_MMXXII_-_%'
AND page_is_redirect = 0; | {"resultsets": [{"headers": ["\u0627\u0644\u0635\u0641\u062d\u0629", "\u0639\u062f\u062f \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u062a"], "rowcount": 625}], "runningtime": "0.76"} | commonswiki_p |
Olympian non-medalist stubs by creator, YOB 1898-1914 | Pages in all of [[Category:All stub articles]], a birth year category between [[Category:1898 births]] and [[Category:1914 births]], and at least one category containing "Olympi"; and not in any categories containing both "OIympi" and "edalist". | WITH results AS
(SELECT COUNT(rev_page) AS pages, actor_name AS creator
FROM actor_revision
JOIN revision ON rev_actor = actor_id
WHERE rev_id IN
(SELECT MIN(rev_id)
FROM revision
WHERE rev_page IN
(SELECT DISTINCT birth.cl_from
FROM categorylinks AS birth
JOIN categorylinks AS stub ON stub.cl_... | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 754}], "runningtime": "4.48"} | enwiki_p |
enwiki: Project redirects to main | Project namespace redirects to main namespace with some common acceptable ones excluded | select concat('{{-r|WP:',p.page_title,'}}') `Redirect`,
concat('[[:',rd.rd_title,']]') `Target`
from redirect rd
left join page p
on rd.rd_from = p.page_id
where rd.rd_namespace = 0
and p.page_namespace = 4
and p.page_title not rlike '^(?:[A-Z:]+$|WikiProject)'
and p.page_title not rlike '(?i)^(?:Article... | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 10}], "runningtime": "0.06"} | enwiki_p |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["page_title"], "rowcount": 3484}], "runningtime": "5.27"} | enwiki_p |
Most pending changes accepts (all time) | null | SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank,
actor_name,
COUNT(log_actor) AS manual_accept_count
FROM logging_userindex
JOIN actor_logging ON actor_id = log_actor
WHERE log_type = 'review' AND log_action = 'approve'
GROUP BY log_actor
ORDER BY manual_accept_count DESC
LIMIT 1000 | {"resultsets": [{"headers": ["Page title", "Namespace"], "rowcount": 4000}], "runningtime": "6.26"} | enwiki |
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ | ১৫-০৫-২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে wikitable ক্লিক করুন। | SET @counter:=0;
SELECT
CONCAT("{{subst:formatnum:",@counter:=@counter+1,"}}") AS নং,
CONCAT("{{u|",user_name,"}}") AS ব্যবহারকারী_নাম,
CONCAT("{{subst:formatnum:",user_editcount,"}}") AS সম্পাদনার_সংখ্যা
FROM user
WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot')
AND user_name NOT RLIKE "... | {"resultsets": [{"headers": ["date", "reviews", "accepts", "declines", "rejects", "accept %", "decline %", "reject %"], "rowcount": 31}], "runningtime": "25.81"} | bnwiki |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৯ জানু ২০২২ | 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": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 106}], "runningtime": "20.01"} | bnwiki |
Einwegsocken identifizieren | Siehe https://de.wikipedia.org/wiki/Benutzer_Diskussion:Wurgl#Single_Purpose_Accounts | SET @MAX_NEUE_ARTIKEL = 3; # Maximale Anzahl neue Artikel
SET @MAX_AKTIVE_TAGE_PROZENT = 10; # Prozentanteil aktive Tage zwischem 1. und letzten Edit im ANR
SET @MIN_AKTIVE_TAGE = 5; # Mindestanzahl aktiver Tage
SET @MIN_EDIT_COUNT = 5; # Mindestanzahl an Edits
SET @MIN_KB_GESCHRIEBEN = 3; # Mindestmenge an Text im ANR... | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 42}], "runningtime": "0.28"} | dewiki_p |
stopped - full rev + uc | null | use enwiki_p;
with actor_user_name as (
select
user.user_id,
user.user_name,
user.user_registration as acct_created,
actor.actor_id,
recentchanges.rc_cur_id,
recentchanges.rc_id,
recentchanges.rc_type,
recentchanges.rc_timestamp,
recentchanges.rc_namespace,
recentchanges.... | {"resultsets": [{"headers": ["MID", "P6305", "OTRS", "num"], "rowcount": 304}], "runningtime": "0.54"} | enwiki |
WLE-ES participants 2022 | null | use commonswiki_p;
SELECT CONCAT("# {{#target:User_talk:", actor_name, "|commons.wikimedia.org}}") as line
FROM revision r_prev
join categorylinks on rev_page = cl_from
join actor on rev_actor = actor_id and actor_user is not null
WHERE rev_parent_id = 0
and cl_to IN (
"Images_from_Wiki_Loves_Earth_2022_in_Spain"
... | {"resultsets": [{"headers": ["\u0627\u0644\u0642\u0627\u0644\u0628", "\u0639\u062f\u062f \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645", "\u0646\u0637\u0627\u0642 \u0627\u0644\u0645\u0642\u0627\u0644\u0627\u062a", "page_is_redirect"], "rowcount": 26540}], "runningtime": "96.07"} | commonswiki |
Vandalismebestrijding nlwiki IP-patrolling | null | # 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... | {"resultsets": [{"headers": ["el_from", "page_title", "el_to"], "rowcount": 343}], "runningtime": "11.36"} | nlwiki_p |
top rollbacker | null | SELECT actor_name as user,
COUNT(*) as cnt
FROM revision
JOIN change_tag
ON rev_id = ct_rev_id
JOIN actor
ON actor_id = rev_actor
WHERE ct_tag_id =
(SELECT ctd_id FROM change_tag_def
WHERE ctd_name = 'mw-rollback')
GROUP BY user
ORDER BY cnt DESC
LIMIT 1000; | {"resultsets": [{"headers": ["Page title", "Namespace"], "rowcount": 3385}], "runningtime": "6.00"} | englishwikipedia |
top rollbacker | null | SELECT actor_name as user,
COUNT(*) as cnt
FROM revision
JOIN change_tag
ON rev_id = ct_rev_id
JOIN actor
ON actor_id = rev_actor
WHERE ct_tag_id =
(SELECT ctd_id FROM change_tag_def
WHERE ctd_name = 'mw-rollback')
GROUP BY user
ORDER BY cnt DESC
LIMIT 1000; | {"resultsets": [{"headers": ["Page title", "Namespace"], "rowcount": 3385}], "runningtime": "5.02"} | enwiki |
Test query (trying to do something useful) | null | use simplewiki;
SELECT p.page_namespace, p.page_title
from page p
where p.page_namespace in (0)
and p.page_is_redirect=0
and p.page_id in (select cl_from
from categorylinks
where cl_to in ("All articles with dead external links"))
and p.page_id not in (select cl_from
from categ... | {"resultsets": [{"headers": ["actor_name", "COUNT(*)"], "rowcount": 75}], "runningtime": "13.30"} | simplewiki |
Top editors to New-Zealand-related content (enwiki) | Get top editors to articles related to New Zealand.
* Only works for wikis with PageAssessments enabled for tracking their Wikiprojects (other wikis / topics could use categories): https://www.mediawiki.org/wiki/Extension:PageAssessments
* Only looking at edits in 2022 -- can be adjusted by changing the `WHERE rev_time... | WITH nz_articles AS (
SELECT
pa_page_id
FROM page_assessments
INNER JOIN page_assessments_projects
ON (pap_project_id = pa_project_id
AND pap_project_title = 'New Zealand')
),
edit_counts AS (
SELECT
rev_actor,
COUNT(1) AS num_edits
FROM revision r
INNER JOIN nz_articles nz
ON (r.rev_p... | {"resultsets": [{"headers": ["page_namespace", "COUNT(*)"], "rowcount": 2}], "runningtime": "3.26"} | enwiki_p |
top rollbacker | null | SELECT actor_name as user,
COUNT(*) as cnt
FROM revision
JOIN change_tag
ON rev_id = ct_rev_id
JOIN actor
ON actor_id = rev_actor
WHERE ct_tag_id =
(SELECT ctd_id FROM change_tag_def
WHERE ctd_name = 'mw-rollback')
GROUP BY user
ORDER BY cnt DESC
LIMIT 1000; | {"resultsets": [{"headers": ["el_from", "page_title", "el_to"], "rowcount": 338}], "runningtime": "9.43"} | metawiki |
বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ব্যবহারকারী | বাংলা উইকিপিডিয়ায় সবচেয়ে বেশি ধন্যবাদ পাওয়া ৫০০ ব্যবহারকারী | USE bnwiki_p;
SELECT log_title, COUNT(*)
FROM logging
WHERE log_type="thanks"
GROUP BY log_title
ORDER BY COUNT(*) DESC
LIMIT 500; | {"resultsets": [{"headers": ["rank", "actor_name", "manual_accept_count"], "rowcount": 319}], "runningtime": "2.16"} | bnwiki_p |
get all redirects last | null | use hewikisource_p;
select title as page_title, base_title from (
select 1 as type, p2.page_id as base_id, p.page_id as sub_id, p.page_id as id, p2.page_title as base_title, p.page_title as title from page p
-- where p.page_title not like N'%־%'
left join redirect rd on rd.rd_from = p.page_id and rd.rd_namespace = 0
... | {"resultsets": [{"headers": ["actor_id", "actor_name", "edit_count", "non_empty_count"], "rowcount": 67}], "runningtime": "23.88"} | hewikisource_p |
List of viwiki patrollers by number of patrols | null | SELECT
user.user_name as 'Username',
COUNT(*) as '# of actions'
FROM
logging
INNER JOIN
actor on actor.actor_id = logging.log_actor
INNER JOIN
user on user.user_id = actor.actor_user
WHERE
log_type = 'patrol'
GROUP BY logging.log_actor
ORDER BY '# of actions' DESC
LIMIT 10000 | {"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"} | viwiki_p |
GlobalSiteIDs and primary language | null | select site_global_key, site_language from sites | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 41}], "runningtime": "0.81"} | enwiki_p |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 40}], "runningtime": "3.55"} | enwiki_p |
Page protections by type on fr.wiki 21-22 | null | #SELECT COUNT(DISTINCT log_title) FROM logging
SELECT
CASE
WHEN log_params LIKE '%edit=autoconfirmed%' THEN 'edit_autoconfirmed'
WHEN log_params LIKE '%edit=editextendedsemiprotected%' THEN 'edit_extendedconfirmed'
WHEN log_params LIKE '%edit=sysop%' THEN 'edit_sysop'
WHEN log_params LIKE '%cr... | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 4826}], "runningtime": "6.72"} | frwiki |
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 = "HombreDHojalata"; | {"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 186}], "runningtime": "19.41"} | commonswiki_p |
Bad disambiguation page titles (eswiki) | Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki). | use eswiki_p;
select page_title as main_title
from (page join redirect on page_id = rd_from)
where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
| {"resultsets": [{"headers": ["cat_id", "cat_title", "cat_pages", "cat_subcats", "cat_files"], "rowcount": 0}], "runningtime": "0.05"} | eswiki |
#/mainspace nonredirects by shortdesc length | Number of mainspace, non-redirect pages with each short description length, combining 100+.
The length field is mislabelled; the number is the length in bytes, not characters. This makes a difference for characters not represented in one byte in UTF-8 (é, for example, is one character but two bytes).
For [[WP:RAQ#Re... | SELECT 'N/A (no SD)' AS 'Length (in characters)',
COUNT(*) AS 'Number of articles'
FROM page
LEFT JOIN page_props
ON pp_page = page_id
AND pp_propname = 'wikibase-shortdesc'
WHERE page_namespace = 0
AND page_is_redirect = 0
AND pp_page IS NULL
UNION
SELECT * FROM
(SELECT CASE WHEN LENGTH(pp_value) < 100... | {"resultsets": [{"headers": ["actor_id", "actor_user", "actor_name"], "rowcount": 50}], "runningtime": "0.13"} | enwiki_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 p... | {"resultsets": [{"headers": ["user_name"], "rowcount": 10}], "runningtime": "5.40"} | tawikisource_p |
Most used templates on frwikisource | null | select DISTINCT concat("Template:",page_title) as pagename, count(*) as tot
from page
join templatelinks on page_title = tl_title and tl_namespace = 10
where page_title not like "%/%" -- no subtemplates
AND page_namespace = 10 -- count templates
AND page_is_redirect = 0 -- no redirects
/*AND not ex... | {"resultsets": [{"headers": ["cnt", "title"], "rowcount": 26}], "runningtime": "19.57"} | frwikisource_p |
Most used templates on frwikisource (test) | null | -- equivalent à https://quarry.wmcloud.org/query/65619
select DISTINCT concat("* [[Template:", page.page_title, ']]') as pagename, count(*) as tot
from page, templatelinks
where templatelinks.tl_title = page.page_title and templatelinks.tl_namespace = 10 and templatelinks.tl_from_namespace = 104
and page.page_title not... | {"connection_id": 456801} | frwikisource_p |
Vandalismebestrijding | IP-controle, 2843 openstaande wijzigingen, 24 juni 2022, 13:25 (CEST) | # 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... | {"resultsets": [{"headers": ["user_name", "user_registration"], "rowcount": 0}], "runningtime": "13.66"} | nlwiki_p |
Most used templates on frwikisource (test) | null | -- equivalent à https://quarry.wmcloud.org/query/65619
select DISTINCT concat("* [[Template:", page.page_title, ']]')
from page
where page_namespace = 10 -- templates
and page_title not in (select distinct tl_title from templatelinks) -- non utilisé
and page.page_title not like "%/%" -- no subtemplates
AND page.page... | {"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 8}, {"headers": ["avg_edits_per_day"], "rowcount": 1}, {"headers": ["edits", "edits_per_day", "actor_name"], "rowcount": 9}, {"headers": ["avg_edits_per_day"], "rowcount": 1}], "runningtime": "0.65"} | frwikisource_p |
Most frequently linked to policies in Arbitration Requests | null | select pl_title, count(page_title) as refs from page
join pagelinks on page_id = pl_from
where page_namespace = 4
and pl_from_namespace = 4
and pl_namespace = 4
and page_title like "Arbitration/Requests/Case/%"
and pl_title not like "%/%" # No subpolicies
group by pl_title
order by refs desc
limit 40 | {"resultsets": [{"headers": ["user_name", "registration_timestamp"], "rowcount": 2421}], "runningtime": "5.90"} | enwiki |
Most frequently linked to policies in Article and User Talk Pages | null | select pl_title, count(page_title) as refs from page
join pagelinks on page_id = pl_from
where page_namespace = 1 or page_namespace = 3
and pl_from_namespace = 1 or pl_from_namespace = 3
and pl_namespace = 4
and pl_title not like "%/%" # No subpolicies
limit 10 | {"resultsets": [{"headers": ["count(*)", "actor_name", "rev_id", "rev_page", "rev_comment_id", "rev_actor", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_to... | enwiki |
Unused templates on frwikisource | null | null | {"resultsets": [{"headers": ["rd_title", "rd_from"], "rowcount": 1000}], "runningtime": "1.15"} | frwikisource_p |
Templates that are never used | null | SELECT concat("[[Modèle:", p.page_title, "]]") as page, p.page_is_redirect as redirection
FROM page p
WHERE p.page_namespace = 10
AND NOT EXISTS
(SELECT 'x' FROM templatelinks t
WHERE t.tl_namespace = p.page_namespace and t.tl_title = p.page_title)
order by redirection
| {"resultsets": [{"headers": ["user_name", "user_registration"], "rowcount": 100}], "runningtime": "0.21"} | frwikisource_p |
Pages that call a non-existent template | null | SELECT concat("[[Spécial:Pages liées/Modèle:", t.tl_title, "]]") FROM templatelinks t
LEFT JOIN page p
ON p.page_namespace = t.tl_namespace AND p.page_title = t.tl_title
INNER JOIN page p2
ON t.tl_from = p2.page_id
WHERE p.page_title IS NULL AND t.tl_namespace = 10
and t.tl_title not like "%/documentation"
and p2... | {"resultsets": [{"headers": ["count(u1.user_name)", "account_registration_timestamp"], "rowcount": 1}], "runningtime": "37.85"} | frwikisource_p |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"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.18"} | enwiki_p |
WikiQuery | null | select * from links | {"resultsets": [{"headers": ["user_id", "rights"], "rowcount": 1}], "runningtime": "0.07"} | enwiki |
WikiQuery | null | select pl_from, pl_title, pl_namespace from pagelinks where pl_namespace=0 order by pl_from ASC limit 100 | {"resultsets": [{"headers": ["log_timestamp", "actor_name", "log_title", "comment_text", "log_params"], "rowcount": 21}], "runningtime": "5.30"} | enwiki |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_latest", "rt_type", "Oldest"], "rowcount": 100}, {"headers": ["rt_type", "rt_page", "rt_revision", "rt_value"], "rowcount": 17}], "runningtime": "1.72"} | enwiki_p |
Top 1000 users in tawiki by editcount | null | select user_name, user_editcount from user
order by user_editcount desc
limit 1000; | {"resultsets": [{"headers": ["pages_with_disambig_but_not_redir"], "rowcount": 1}, {"headers": ["user_id", "user_name", "user_articles", "user_latestcreation"], "rowcount": 181}], "runningtime": "136.53"} | tawiki_p |
Top 1000 users in tawiki by editcount | null | select user_name, user_editcount from user
where user_name not rlike '%bot' and user_name not rlike '%Bot'
order by user_editcount desc
limit 500; | {"resultsets": [{"headers": ["\u0627\u0644\u0642\u0627\u0644\u0628", "\u0639\u062f\u062f \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645", "\u0646\u0637\u0627\u0642 \u0627\u0644\u0645\u0642\u0627\u0644\u0627\u062a", "page_is_redirect"], "rowcount": 1076}], "runningtime": "1.61"} | thwiki_p |
Top 1000 users in tawiki by editcount | null | select user_name, user_editcount from user
order by user_editcount desc
limit 1000; | {"resultsets": [], "runningtime": "0.02"} | mlwiki_p |
Top 1000 users in tawiki by editcount | null | select user_name, user_editcount from user
order by user_editcount desc
limit 1000; | {"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 7}], "runningtime": "0.06"} | rowiki_p |
Gujarati Wikipedia Contributors | null | select user_name, user_editcount from user
order by user_editcount desc
limit 1000; | {"resultsets": [{"headers": ["date", "count(*)", "avg(page_len)", "sum(page_len)"], "rowcount": 37}], "runningtime": "6.37"} | guwiki_p |
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ | ১৫-০৫-২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে wikitable ক্লিক করুন। | SET @counter:=0;
SELECT
CONCAT("{{subst:formatnum:",@counter:=@counter+1,"}}") AS নং,
CONCAT("{{u|",user_name,"}}") AS ব্যবহারকারী_নাম,
CONCAT("{{subst:formatnum:",user_editcount,"}}") AS সম্পাদনার_সংখ্যা
FROM user
WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot')
AND user_name NOT RLIKE "... | {"resultsets": [{"headers": ["up_value", "user_count"], "rowcount": 2}], "runningtime": "2.27"} | bnwiki |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৯ জানু ২০২২ | 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": ["up_value", "user_count"], "rowcount": 2}], "runningtime": "0.19"} | bnwiki |
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ | ১৫-০৫-২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে wikitable ক্লিক করুন। | SET @counter:=0;
SELECT
CONCAT("{{subst:formatnum:",@counter:=@counter+1,"}}") AS নং,
CONCAT("{{u|",user_name,"}}") AS ব্যবহারকারী_নাম,
CONCAT("{{subst:formatnum:",user_editcount,"}}") AS সম্পাদনার_সংখ্যা
FROM user
WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot')
AND user_name NOT RLIKE "... | {"connection_id": 2231014} | bnwiki |
Lo's Artikel auf Leyos Seite | null | SELECT P.page_title,
regexp_replace(rev_timestamp, '^(....)(..)(..)(..)(..)(..)$', '\\1-\\2-\\3 \\4:\\5:\\6 (UTC)') AS rev_timestamp,
actor_name
FROM page AS P, revision, actor, pagelinks, page AS L
WHERE P.page_id = rev_page
AND rev_parent_id = 0
AND rev_actor = actor_id
#AND actor_name = 'Ló... | {"resultsets": [{"headers": ["log_title", "log_params"], "rowcount": 1000}], "runningtime": "6.65"} | dewiki_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": ["page_namespace", "COUNT(*)"], "rowcount": 7}], "runningtime": "6.70"} | bnwiki |
edit type table limits | null | SELECT rc_timestamp FROM recentchanges ORDER BY rc_timestamp ASC LIMIT 1;
SELECT rev_timestamp FROM revision ORDER BY rev_timestamp ASC LIMIT 1; | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.05"} | enwiki |
User search | null | SELECT * from
(SELECT
user.user_registration,
user.user_name,
user.user_editcount,
page.page_title,
page.page_namespace as namespace,
COUNT(page.page_id) as num_edits
FROM user
JOIN actor ON actor.actor_user = user.user_id
JOIN revision ON revision.rev... | {"resultsets": [{"headers": ["row_num", "loguser", "ipMarkeringen", "gebruikerMarkeringen", "aantalMarkeringen"], "rowcount": 3631}], "runningtime": "82.07"} | enwiki |
Vandalismebestrijding (vandal fighting) IP-controle nlwiki | null | # 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... | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.05"} | nlwiki_p |
2022 eligible voters for Board elections - FR Wikipedia | Query to get lists of eligible voters for 2021 Board elections based on contributions to individuals. Please note that this query doesn't exactly reflect the voting eligibility criteria - while the eligibility criteria counts are across wikis, the counts in this query are based on the selected wiki only. | use frwiki_p;
select
user_name,
twofifty.cnt as edits,
onefive.cnt as recent_edits
from user
join
(
select
actor_user,
count(*) cnt
from revision_userindex
join actor_revision
on rev_actor = actor_id
join page
on page_id = rev_page
where
rev_timestamp < '20220705000000' -- edits pri... | {"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 117}], "runningtime": "8.06"} | frwiki_p |
AR_test | null | select * from actor
limit 10 | {"resultsets": [{"headers": ["Artikel", "BKH"], "rowcount": 413}], "runningtime": "0.58"} | arwiki |
Contributions search by user, edit summary, date | null | SELECT CONCAT('[[Special:Diff/', r2.rev_id, ']]') AS diff,
r1.rev_len,r2.rev_len,
r1.rev_timestamp,
page_title
comment_text
FROM revision_userindex r1
JOIN actor_revision ON actor_id = r1.rev_actor
LEFT JOIN page ON page_id = r1.rev_page
LEFT JOIN comment_revision ON comment_id =... | {"resultsets": [{"headers": ["page_title"], "rowcount": 193}], "runningtime": "1.09"} | zhwiki |
Redirects in cswiki connected with Wikidata | null | SELECT page_namespace, page_title, page_latest, pp_value AS item, COUNT(ll_lang) AS links
FROM page
JOIN page_props ON pp_page = page_id
LEFT JOIN langlinks ON ll_from = page_id
WHERE page_is_redirect = 1
AND pp_propname = 'wikibase_item'
GROUP BY page_id
ORDER BY page_title, page_namespace; | {"resultsets": [{"headers": ["actor_name", "count"], "rowcount": 1}], "runningtime": "48.96"} | fawiki_p |
Enwiki most transcluded templates without TemplateData | null | USE fawiki_p;
SELECT *
FROM (
SELECT
tl_title,
COUNT(tl_from) AS cnt
FROM templatelinks
WHERE tl_namespace = 10
GROUP BY tl_title
ORDER BY cnt desc
LIMIT 1000
) t
INNER JOIN page
ON page_namespace = 10
AND page_title = tl_title
LEFT JOIN page_props
ON pp_page = page_id
AND pp_propname = "templatedata"
WHE... | {"resultsets": [{"headers": ["page_namespace", "page_title", "rollbacks"], "rowcount": 21}], "runningtime": "1.24"} | fawiki_p |
Bad disambiguation page titles (eswiki) | Disambiguation pages with a superfluous " (desambiguación)" suffix (eswiki). | use eswiki_p;
select page_title as main_title
from (page join redirect on page_id = rd_from)
where page_namespace = 0 and rd_title = concat(page_title, '_(desambiguación)');
| {"resultsets": [{"headers": ["el_id", "el_from", "el_to", "el_index", "el_index_60", "page_id", "page_namespace", "page_title", "page_restrictions", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_content_model", "page_lang"], "rowcount": 8666}], ... | eswiki |
WP:NOTWEBHOST | Search for user's with significant edits to userspace (excluding sandbox) but few outside of it | SELECT
*,
((computed.usrspc_contribs - sndbx_contribs) / computed.contribs) AS contrib_ratio
FROM (
SELECT
raw.actor_name,
COUNT(raw.rc_actor) AS contribs, # recent_contribs
SUM(raw.abs_diff_size) AS abs_diff, # recent_abs_diff
SUM(raw.in_userspace) AS usrspc_contribs, # userspace_c... | {"resultsets": [{"headers": ["ctd_id", "ctd_name", "ctd_user_defined", "ctd_count"], "rowcount": 10}], "runningtime": "0.07"} | enwiki |
Vandalismebestrijding - Ip patrolling, nlwiki | null | # 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... | {"resultsets": [{"headers": ["Dateiname"], "rowcount": 1}], "runningtime": "11.21"} | nlwiki_p |
Orphaned articles with more than two incoming links (uk) | Articles tagged with {{orphan}} that have more than two incoming links. These are candidates to have the {{orphan}} template removed. | SELECT p.page_title
FROM page p
INNER JOIN categorylinks c ON p.page_id = c.cl_from AND c.cl_to = "Вікіпедія:Ізольовані_статті/сирота0"
INNER JOIN pagelinks pl ON p.page_title = pl.pl_title AND p.page_namespace = pl.pl_namespace
INNER JOIN page p2 ON p2.page_id = pl.pl_from
AND pl.pl_from_namespace = 0 and p2.page_is_r... | {"resultsets": [{"headers": ["Dateiname"], "rowcount": 1}], "runningtime": "9.45"} | ukwiki_p |
Galobot's AbOT query | This is the query as used by Galobot, from https://github.com/mmiyer/galobot/blob/dc45f6232ccd85e5bfd1fe862fa642e3f67f06dc/articlesbylintcount.py | select page_title, count(*) as page_count
from linter
join page on page.page_id = linter.linter_page
where page.page_namespace = 0 and linter_cat = 2
group by page.page_id
order by count(*) desc, page_title asc
limit 1000; | {"resultsets": [{"headers": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 2}], "runningtime": "0.06"} | enwiki_p |
Self–linking pages through redirect | null | SELECT DISTINCT TRGT.page_title, pl_title
FROM page AS TRGT JOIN pagelinks ON TRGT.page_id = pl_from
WHERE pl_from_namespace = 0
AND TRGT.page_title <> pl_title
#AND TRGT.page_title="پروپان"
AND pl_namespace=0
AND pl_title IN (
SELECT SRC.page_title
FROM page AS SRC JOIN redirect ON rd_from=SRC.page_id
WHERE rd_n... | {"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %"], "rowcount": 107}], "runningtime": "8.05"} | fawiki_p |
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ | ১৫-০৫-২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে wikitable ক্লিক করুন। | SET @counter:=0;
SELECT
CONCAT("{{subst:formatnum:",@counter:=@counter+1,"}}") AS নং,
CONCAT("{{u|",user_name,"}}") AS ব্যবহারকারী_নাম,
CONCAT("{{subst:formatnum:",user_editcount,"}}") AS সম্পাদনার_সংখ্যা
FROM user
WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot')
AND user_name NOT RLIKE "... | {"resultsets": [{"headers": ["page_title", "(select rd_namespace from redirect where rd_from=page_id)", "(select rd_title from redirect where rd_from=page_id)"], "rowcount": 7}], "runningtime": "33.40"} | bnwiki |
wiki for school ukrainian literature | null | select p0.page_title, a.actor_name, r.rev_timestamp
from categorylinks cl
join page p1
on cl.cl_to = "Статті_про_інформатику,_створені_під_час_конкурсу_Вікіпедія_для_школи_(2021_—_2022)"
and cl.cl_from = p1.page_id
join page p0
on p1.page_title = p0.page_title and p0.page_namespace = 0
join revision_userindex r
on... | {"resultsets": [{"headers": ["page_title"], "rowcount": 37}], "runningtime": "0.45"} | ukwiki_p |
Pages w/linter errors by transclusion count | Pages transcluded at least five times, outside of the Template namespace, with at least one linter error.
For [[WP:RAQ#Request for list of pages with 5+ transclusions and Linter errors]] circa 30 June 2022. | SELECT COUNT(*) AS '#/transclusions',
CONCAT('[[', CASE page_namespace
WHEN -2 THEN 'Media:' WHEN -1 THEN 'Special:'
WHEN 0 THEN '' WHEN 1 THEN 'Talk:'
WHEN 2 THEN 'User:' WHEN 3 THEN 'User talk:'... | {"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.40"} | metawiki_p |
Article creators by volume since June 1 | Most prolific article creators in the last ~30 days.
Counts only non-redirect pages currently in the main namespace, with their first edit June 1 2022 or later. In particular, it doesn't count redirects or drafts created earlier that became mainspace articles since June 1, nor articles that have since been deleted, r... | SELECT COUNT(*), actor_name
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
WHERE rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND rev_timestamp >= '20220601'
GROUP BY actor_name
HAVING COUNT(*) >= 3
ORDER BY COUNT(*) DESC; | {"resultsets": [{"headers": ["page_title"], "rowcount": 62}], "runningtime": "1.71"} | enwiki_p |
最近30日有编辑的退休者 | 查询在用户页挂了{{Retired}}但最近30日有编辑的用户。由于技术限制,本查询结果也包含30日内挂了{{Retired}}就再也不回维基编辑的人。 | SELECT a.user_name, STR_TO_DATE(MAX(rev_timestamp), '%Y%m%d%H%i%s') last_edit_time
FROM revision_userindex r
INNER JOIN (
SELECT actor_id, u.user_name
FROM actor a
INNER JOIN (
SELECT user_id, u.user_name
FROM user u
INNER JOIN
(SELECT REPLACE(... | {"resultsets": [{"headers": ["Concat('\u062a\u0635\u0646\u064a\u0641:',p.page_title)"], "rowcount": 7583}], "runningtime": "8.10"} | zhwiki_p |
User search | Begin with "raw" set of edits, further filtering and add information to allow filtering based on correlation, filter "correlated" | SELECT
correlated.user_registration AS registration,
correlated.user_name AS username,
correlated.user_editcount,
correlated.page_title,
correlated.num_edits AS page_edits_by_user
FROM (
SELECT
raw.user_registration,
raw.user_name,
raw.user_editcount,
raw.page_title,... | {"resultsets": [{"headers": ["rc_cur_id", "rc_title", "rc_patrolled"], "rowcount": 1514}], "runningtime": "1.77"} | enwiki |
Count fixes in Wikipedia:Correct typos in one click | null | SELECT COUNT(*)
FROM revision
LEFT JOIN comment on rev_comment_id=comment_id
WHERE rev_page in (60533818,62053073,61925999,61926002,61926007,61926012,61926014,62002342,62002343,62002345,62002348,62002349,61925967,62057349,61925968,61925974,61925980,61925985,61925989,61925991,61925997)
AND comment_text LIKE "% fixed!"; | {"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 2}], "runningtime": "49.28"} | enwiki_p |
Vandalismebestrijding nlwiki | null | # 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... | {"resultsets": [], "runningtime": "0.02"} | nlwiki_p |
Dr. Blofeld stub status | null | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 3000 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 3000 AND page_len < 3000 THEN 1 ELSE 0 END) as smallCurrent,
TRUNCATE(rev_timestamp,-8) as month
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
WHERE... | {"resultsets": [{"headers": ["page_namespace", "COUNT(*)"], "rowcount": 4}], "runningtime": "1.83"} | enwiki_p |
Carlossuarez46 stub status | null | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 3000 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 3000 AND page_len < 3000 THEN 1 ELSE 0 END) as smallCurrent,
TRUNCATE(rev_timestamp,-8) as month
FROM revision
JOIN actor_revision ON actor_id = rev_actor
JOIN page ON page_id = rev_page
WHERE... | {"resultsets": [{"headers": ["rank", "user_name", "user_editcount"], "rowcount": 1000}], "runningtime": "2.73"} | enwiki_p |
Lugnuts stub status | null | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent,
SUM(page_is_redirect) as redirectCurrent,
TRUNCATE(rev_timestamp,-8) as month
FROM revision
JOIN actor... | {"resultsets": [{"headers": ["Dateiname"], "rowcount": 1}], "runningtime": "10.43"} | enwiki_p |
BlackJack stub status | null | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent,
SUM(page_is_redirect) as redirectCurrent,
TRUNCATE(rev_timestamp,-8) as month
FROM revision
JOIN actor... | {"resultsets": [{"headers": ["CONCAT(\"Kategorie:\",page_title)", "articles", "rd_title", "rd_namespace"], "rowcount": 1}], "runningtime": "0.08"} | enwiki_p |
Sander.v.Ginkel stub status | null | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent,
SUM(page_is_redirect) as redirectCurrent,
TRUNCATE(rev_timestamp,-8) as month
FROM revision
JOIN actor... | {"resultsets": [{"headers": ["CONCAT(\"Kategorie:\",page_title)", "articles", "rd_title", "rd_namespace"], "rowcount": 0}], "runningtime": "0.04"} | enwiki_p |
Ontbrekende Interwiki in en: | https://nl.wikipedia.org/wiki/Wikipedia:Ontbrekende_Interwiki_in_en: | SELECT CONCAT('en:', page_title) AS `title`, cnt AS `count`
FROM (
SELECT ll_from, count(*) AS cnt
FROM langlinks
GROUP BY ll_from
HAVING count(*)>20) AS bigll
LEFT JOIN langlinks AS checkll
ON bigll.ll_from=checkll.ll_from
AND checkll.ll_lang='fr'
LEFT JOIN page
ON bigll.ll_from=page_id
... | {"resultsets": [{"headers": ["ct_id", "ctd_name", "rev_id", "page_namespace", "page_title", "comment_text", "rev_timestamp", "actor_name"], "rowcount": 1}], "runningtime": "851.52"} | enwiki_p |
Lugnuts stub status by day | null | SELECT COUNT(*) articles,
SUM(CASE WHEN rev_len < 2500 THEN 1 ELSE 0 END) as smallCreations,
SUM(CASE WHEN rev_len < 2500 AND page_len < 3000 AND page_is_redirect = 0 THEN 1 ELSE 0 END) as smallCurrent,
SUM(page_is_redirect) as redirectCurrent,
TRUNCATE(rev_timestamp,-6) as day
FROM revision
JOIN actor_r... | {"resultsets": [{"headers": ["user_id", "user_name", "user_registration", "user_editcount"], "rowcount": 0}], "runningtime": "0.21"} | enwiki_p |
Wikidata Edit Count in time frame - [CKC2022] Wikidata properties translation workshop - from July 02, 2022 12:00:00 UTC to July 02, 2022 14:59:59 UTC | This query was used to determine participants edit count in the [Celtic Knot Conference 2022] Wikidata properties translation workshop that run from July 02, 2022 12:00:00 UTC to July 02, 2022 14:59:59 UTC. See: https://meta.wikimedia.org/wiki/Celtic_Knot_Conference_2022/Online_program | select actor_name, count(*) as edits
from wikidatawiki_p.revision_userindex r
join wikidatawiki_p.actor a on r.rev_actor = a.actor_id
join wikidatawiki_p.page p on r.rev_page = p.page_id
where actor_name in (
"Masssly",
"Shahadusadik",
"Mohammed Sadat (WMDE)",
"Battleofalma",
"Theklan",
"Obuezie",
"Bukky658",
"Timzy D'... | {"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration"], "rowcount": 476}], "runningtime": "59.30"} | wikidatawiki |
Statystyki 2022-06 | null | set @start_timestamp := 20220601000000;
set @end_timestamp := 20220630000000;
select
actor_name,
count(log_id) as creation_count
from logging
inner join page on page_id = log_page
inner join actor on actor_id = log_actor
where
log_type = "create" and
page_namespace = 0 and
log_timestamp >= @start_ti... | {"resultsets": [{"headers": ["item", "wbxl_language", "wbx_text", "page_latest"], "rowcount": 396}], "runningtime": "0.57"} | plwikinews_p |
Stubs per month | null | SELECT COUNT(*) articles,
TRUNCATE(rev_timestamp,-8) as month
FROM revision
JOIN page ON page_id = rev_page
WHERE rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND page_len < 2500
GROUP BY month
ORDER BY month DESC; | {"resultsets": [{"headers": ["tl_title"], "rowcount": 119}], "runningtime": "1479.14"} | enwiki_p |
users creation | null | Select logging_userindex.*, actor.* from logging_userindex
left join actor on log_actor = actor_id
where 1=1
and log_type = 'newusers'
and log_timestamp > 20220101000000
and log_namespace = 2
and
( actor_name in ('Sandysoil719', 'Goldenwater29', 'Areara202', 'Owoyed', 'Stonistone', 'Sweeto dweeto', 'Namonamo20', 'Y... | {"connection_id": 4945982} | enwiki_p |
test1 | null | SELECT CONCAT('[[Special:Diff/', r2.rev_id, ']]') AS diff,
r1.rev_len,r2.rev_len,
r1.rev_timestamp,
page_title
comment_text
FROM revision_userindex r1
JOIN actor_revision ON actor_id = r1.rev_actor
LEFT JOIN page ON page_id = r1.rev_page
LEFT JOIN comment_revision ON comment_id =... | {"resultsets": [{"headers": ["User", "No."], "rowcount": 76}], "runningtime": "95.83"} | glwiki_p |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"resultsets": [{"headers": ["User", "No."], "rowcount": 85}], "runningtime": "118.97"} | enwiki_p |
Test Queries | null | SELECT COUNT(user_id) FROM user WHERE user_editcount < 500; | {"resultsets": [{"headers": ["User", "No."], "rowcount": 16}], "runningtime": "131.03"} | enwiki |
الیف | null | select concat ('*[[',page_title,']]') from page
where page_namespace = 0
and page_title like '%الیف_%'
and not page_title like '%کالیفرنیا%'
AND page_is_redirect = 0; | {"resultsets": [{"headers": ["page_namespace", "page_id", "page_title", "page_is_redirect", "page_len"], "rowcount": 3}], "runningtime": "83.77"} | fawiki_p |
Unusual edit distribution | null | SELECT
user.user_id,
user.user_name,
user.user_editcount
FROM user
WHERE user.user_editcount >= 500
AND user.user_id NOT IN (SELECT DISTINCT filtered_users.user_id
FROM (SELECT user.user_id FROM user WHERE user.user_editcount >= 500) AS filtered_users
JOIN actor O... | {"resultsets": [{"headers": ["year", "month", "day", "page_namespace", "count"], "rowcount": 1864}], "runningtime": "10.80"} | enwiki |
Most archived user subpages | null | SELECT LENGTH(page_title) AS title_length, page_len AS "size", page_namespace AS "ns", page_title AS "title"
FROM page WHERE page_namespace = 3 AND page_title LIKE "%Archive_240"
OR page_namespace = 3 AND page_title LIKE "%Archive240"
OR page_namespace = 3 AND page_title LIKE "%/240"
ORDER BY page_len ASC;
| {"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... | enwiki_p |
orphaned talks | null | SELECT
page_namespace,
page_id,
page_title,
page_is_redirect,
page_len
... | {"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": 100}], "runningtime": "0.24"} | enwiki_p |
100 largest images | null | SELECT img_name, (img_width * img_height) AS mp, img_timestamp
FROM image
WHERE (img_media_type = 'BITMAP')
AND img_width * img_height > 50000000
ORDER BY mp DESC
LIMIT 100; | {"resultsets": [{"headers": ["rev_id", "rev_page", "rev_actor", "rev_timestamp"], "rowcount": 1}], "runningtime": "0.06"} | commonswiki_p |
Describe | null | DESCRIBE image; | {"resultsets": [{"headers": ["rank", "actor_name", "manual_accept_count"], "rowcount": 304}], "runningtime": "2.14"} | commonswiki_p |
Oldest whatevers on Commons | null | SELECT "x-xcf" as type, img_name, img_timestamp, img_minor_mime
FROM image
WHERE img_minor_mime = "x-xcf"
ORDER BY img_timestamp ASC
LIMIT 1;
SELECT "webp" as type, img_name, img_timestamp, img_minor_mime
FROM image
WHERE img_minor_mime = "webp"
ORDER BY img_timestamp ASC
LIMIT 1;
SELECT "tiff" as type, img_name, img... | {"connection_id": 3259229} | commonswiki_p |
Oldest JPGs on Commons | null | SELECT "jpeg" as type, img_name, img_timestamp, img_minor_mime
FROM image
WHERE img_minor_mime = "jpeg"
ORDER BY img_timestamp ASC
LIMIT 5; | {"resultsets": [{"headers": ["CONCAT('# \u0986\u09b2\u09be\u09aa:',page_title,'')"], "rowcount": 3}], "runningtime": "0.14"} | commonswiki_p |
উইকিপিডিয়ার শীর্ষ সম্পাদকগণ | ১৫-০৫-২০২২। উপাত্ত ডাউনলোড করতে, উপাত্ত ডাউনলোড থেকে wikitable ক্লিক করুন। | SET @counter:=0;
SELECT
CONCAT("{{subst:formatnum:",@counter:=@counter+1,"}}") AS নং,
CONCAT("{{u|",user_name,"}}") AS ব্যবহারকারী_নাম,
CONCAT("{{subst:formatnum:",user_editcount,"}}") AS সম্পাদনার_সংখ্যা
FROM user
WHERE user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot')
AND user_name NOT RLIKE "... | {"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": 1}], "runningtime": "0.06"} | bnwiki |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৯ জানু ২০২২ | 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": ["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": 2}], "runningtime": "0.06"} | bnwiki |
বাংলা উইকিতে সবচেয়ে বেশী নিবন্ধ সৃষ্টি করা ব্যবহারকারী | ২৯ জানু ২০২২ | 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": ["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": 12}], "runningtime": "0.08"} | bnwiki |
Most pending changes accepts (last 30 days) | null | SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank,
actor_name,
COUNT(log_actor) AS manual_accept_count
FROM logging_userindex
JOIN actor_logging ON actor_id = log_actor
WHERE log_type = 'review'
AND log_action = 'approve'
AND DATEDIFF(NOW(), log_timestamp) < 30
GROUP BY log_actor
ORDER BY manual_accept... | {"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": 1}], "runningtime": "0.06"} | enwiki |
Most pending changes accepts (all time) | null | SELECT ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) AS rank,
actor_name,
COUNT(log_actor) AS manual_accept_count
FROM logging_userindex
JOIN actor_logging ON actor_id = log_actor
WHERE log_type = 'review' AND log_action = 'approve'
GROUP BY log_actor
ORDER BY manual_accept_count DESC
LIMIT 1000 | {"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": 48}], "runningtime": "0.11"} | enwiki |
pl | null | SELECT
count(*) AS count,
pa.page_title
FROM
page pa, langlinks l1
where pa.page_namespace = 0
and pa.page_id = l1.ll_from
and not exists (select 1 from langlinks l2 where l1.ll_from=l2.ll_from and l2.ll_lang='nl')
group by pa.page_id, pa.page_title
order by count(*) desc, pa.page... | {"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": 2}], "runningtime": "0.07"} | plwiki |
Vandalismebestrijding (IP-controle) nlwiki | IP-controle, 2055 ongemarkeerd/ongecontroleerd | # 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... | {"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": 21}], "runningtime": "0.11"} | nlwiki_p |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.