title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
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": ["page_title"], "rowcount": 1}], "runningtime": "73.08"}
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 p...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "8.80"}
tawikisource_p
Random patroller chart data (Example)
null
SELECT DAYOFWEEK(recentchanges_userindex.rc_timestamp) AS dow, HOUR(recentchanges_userindex.rc_timestamp) AS hour, COUNT(DISTINCT rc_id) AS edits FROM recentchanges_userindex LEFT JOIN actor_logging ON actor_logging.actor_id = recentchanges_userindex.rc_actor LEFT JOIN change_tag ON change_tag.ct_rc_id = re...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "8.33"}
viwiki_p
ويكيبيديا:طلبات توزيع بوابة
null
# get all pages in parnt query and not found in subquery # * [[:قالب:اسم القالب]]>[[:بوابة:اسم البوابة المراد إضافتها]] # 4143975 is page id (from) # 8983932 is Portal id that will add /* select p1.page_id,p1.page_title from pagelinks inner join page on page.page_title = pagelinks.pl_title where pl_from in (4143975...
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 12}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 3}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 7}], "runningtime": "0.13"}
arwiki_p
fix African cates
null
select CONCAT('* [[:تصنيف:', cat_title, ']]>[[:تصنيف:'), REPLACE(CONCAT(cat_title , ']]' ) , 'أفريقي' ,'إفريقي' ) AS cat2, cat_pages from category where cat_title like "%أفريقي%" ORDER BY cat_pages DESC ;
{"resultsets": [{"headers": ["linter_cat", "page_namespace", "count(*)"], "rowcount": 11}, {"headers": ["linter_cat", "count(*)", "count(distinct page_namespace)"], "rowcount": 3}, {"headers": ["page_namespace", "count(*)", "count(distinct linter_cat)"], "rowcount": 6}], "runningtime": "0.14"}
arwiki_p
Articles where edits are much more likely to be reverted if from IPs
null
SELECT rc_namespace, rc_title, SUM(CASE WHEN actor_user IS NULL THEN 1 ELSE 0 END) AS ip_total, SUM(CASE WHEN actor_user IS NULL AND ct_tag_id IS NOT NULL THEN 1 ELSE 0 END) AS ip_reverted, SUM(CASE WHEN actor_user IS NOT NULL THEN 1 ELSE 0 END) AS reg_total, SUM(CASE WHEN actor_user IS NOT NULL AND ct_tag_id IS NO...
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "0.05"}
enwiki_p
Top Vietnamese Wikipedian (all, > 300 edits)
null
SELECT user_name AS user, user_editcount AS edits FROM user WHERE user_editcount > 300 AND user.user_id NOT IN ( SELECT ug_user FROM user_groups WHERE user_groups.ug_group = "bot" ) AND user.user_id NOT IN ( SELECT ufg_user FROM user_former_groups WHER...
{"resultsets": [{"headers": ["Username", "cnt"], "rowcount": 80}], "runningtime": "67.03"}
viwiki_p
ملفات عربية في كومنز
null
use commonswiki_p; SELECT concat("[[File:",page_title,"]]") AS file, actor_name AS username, (SELECT COUNT(rev_id) FROM revision WHERE rev_actor = actor_id) AS edit_count, (SELECT COUNT(img_name) FROM image WHERE img_actor = actor_id) AS upload_count FROM page INNER JOIN revision ON rev_page = page_id INNER JOIN actor...
{"resultsets": [{"headers": ["actor_name", "countt"], "rowcount": 25}], "runningtime": "1.99"}
commonswiki_p
elwiki /doc and .css orphans
null
USE elwiki_p; SELECT page_namespace, page_title FROM page d WHERE page_namespace IN (10, 828) AND (( page_title REGEXP '/doc$' AND NOT EXISTS ( SELECT * FROM page m WHERE m.page_namespace=d.page_namespace AND m.page_title=REGEXP_REPLACE(d.page_title, '/doc$', '')) ) OR ( page_title ...
{"resultsets": [{"headers": ["User", "Registered", "Edit count", "Last edit"], "rowcount": 0}], "runningtime": "0.05"}
elwiki
el translations by user
null
use elwiki_p; select concat(substr(rev_timestamp,5,2),"-",substr(rev_timestamp,1,4)) as month_year,actor_name as user,count(actor_name) as No_of_articles, sum(rev_len) as Bytes from change_tag,change_tag_def,revision,page,actor where ct_tag_id = ctd_id and rev_id=ct_rev_id and page_id=rev_page and page_nam...
{"connection_id": 105610249}
elwiki
el pages created by year
null
USE elwiki_p; select substr(rev_timestamp,1,4) as Year, count(substr(rev_timestamp,1,4)) as Main_space_new_pages from page,revision where page_id=rev_page and page_namespace=0 and rev_parent_id=0 and page_is_redirect=0 group by substr(rev_timestamp,1,4) order by substr(rev_timestamp,1,4)
{"resultsets": [{"headers": ["User", "Registered", "Edit count", "Last edit"], "rowcount": 50}], "runningtime": "22.50"}
elwiki
Content Translation use elwiki
null
use elwiki_p; select t.ct_rev_id, t.ct_params, r.rev_user_text, p.page_title#r.rev_page, from change_tag t INNER JOIN revision r on r.rev_id=t.ct_rev_id INNER JOIN page p on r.rev_page=p.page_id where t.ct_tag="contenttranslation"; use elwiki_p; select r.rev_user_text, count(r.rev_user) from change_tag t INNER JOIN r...
{"resultsets": [{"headers": ["rc_patrolled", "count"], "rowcount": 4}], "runningtime": "2.06"}
elwiki
Articles with recent reverted edits from many IPs
Pages where most IP edits have been reverted, and at least five different IPs have been reverted, over the previous two days
SELECT rc_namespace AS ns, rc_title AS title, COUNT(DISTINCT actor_name) AS IPs, COUNT(DISTINCT CASE WHEN ct_tag_id IS NULL THEN NULL ELSE actor_name END) AS rv_IPs, COUNT(DISTINCT CASE WHEN ct_tag_id IS NULL THEN NULL ELSE actor_name END) / COUNT(DISTINCT actor_name) * 100 AS rv_IPs_pc, COUNT(*) AS edits, SUM(ct_...
{"resultsets": [{"headers": ["Username", "cnt"], "rowcount": 80}], "runningtime": "24.00"}
enwiki_p
Number of lexemes created by Nkowaokwu
To get the total number of lexemes added by Nkowaokwu
SELECT COUNT(*) FROM revision_userindex JOIN actor_revision ON rev_actor = actor_id JOIN page ON rev_page = page_id WHERE actor_name = 'Nkowaokwu' AND rev_parent_id = 0 AND page_namespace = 146;
{"resultsets": [{"headers": ["page_len", "page_namespace", "page_title"], "rowcount": 100}], "runningtime": "1.23"}
wikidatawiki
Statystyki 2023-01
null
set @start_timestamp := 20230101000000; set @end_timestamp := 20230200000000; 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": ["rc_patrolled", "count"], "rowcount": 4}], "runningtime": "2.19"}
plwikinews_p
Count of reverted and total IP and registered edits for a week
null
SELECT SUM(actor_user IS NULL AND ct_tag_id IS NOT NULL) AS ip_reverted, SUM(actor_user IS NULL) AS ip_total, SUM(actor_user IS NOT NULL AND ct_tag_id IS NOT NULL) AS reg_reverted, SUM(actor_user IS NOT NULL) AS reg_total FROM recentchanges JOIN actor ON actor_id = rc_actor LEFT JOIN change_tag ON ct_rc_id = rc_id AND ...
{"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 4}], "runningtime": "0.48"}
enwiki_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": ["editor", "accepts", "recent_edits", "Blocked"], "rowcount": 278}], "runningtime": "12.10"}
eswiki
গত এক বছরের শীর্ষ সম্পাদক
১ জুন ২০২১ - ১ জুন ২০২২ পর্যন্ত
SELECT CONCAT("#") AS number, actor_user, CONCAT("[[ব্যবহারকারী:",actor_name,"|",actor_name,"]]") 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 = 0 AND actor_user IS NOT NULL AND rev_time...
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 31}], "runningtime": "7.92"}
bnwiki_p
Investigation of editcount mismatch between xtools and sul
null
SELECT COUNT(*) FROM revision_userindex JOIN actor ON rev_actor = actor_id WHERE actor_name = "NHC"
{"resultsets": [{"headers": ["count(distinct page_title)"], "rowcount": 1}], "runningtime": "40.96"}
zhwiki_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": ["count(*)"], "rowcount": 1}], "runningtime": "0.06"}
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 p...
{"resultsets": [{"headers": ["count(*)"], "rowcount": 1}], "runningtime": "2.06"}
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 p...
{"resultsets": [{"headers": ["Username", "cnt"], "rowcount": 80}], "runningtime": "49.46"}
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 p...
{"resultsets": [{"headers": ["Field", "Type", "Null", "Key", "Default", "Extra"], "rowcount": 11}, {"headers": ["gt_lat", "gt_lon", "gt_dim", "gt_type", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 44}], "runningtime": "0.89"}
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 p...
{"resultsets": [{"headers": ["gt_lat", "gt_lon", "gt_dim", "gt_type", "gt_page_id", "gt_name", "ns", "title", "gt_country", "gt_region"], "rowcount": 279}], "runningtime": "1.16"}
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 p...
{"resultsets": [{"headers": ["count(*)"], "rowcount": 1}], "runningtime": "96.05"}
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 p...
{"resultsets": [{"headers": ["Username", "cnt"], "rowcount": 80}], "runningtime": "25.00"}
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 p...
{"resultsets": [{"headers": ["Reviewer", "Redirect Reviews"], "rowcount": 20}], "runningtime": "35.50"}
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 p...
{"resultsets": [{"headers": ["Reviewer", "Article Reviews"], "rowcount": 100}], "runningtime": "33.05"}
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 p...
{"resultsets": [{"headers": ["count(*)"], "rowcount": 1}], "runningtime": "0.15"}
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 p...
{"resultsets": [{"headers": ["cl_to"], "rowcount": 98}], "runningtime": "1.59"}
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 p...
{"resultsets": [{"headers": ["page_title"], "rowcount": 541}], "runningtime": "423.23"}
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 p...
{"resultsets": [{"headers": ["MIN(rev_timestamp)"], "rowcount": 1}], "runningtime": "0.05"}
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 p...
{"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": 1}], "runningtime": "0.24"}
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 p...
{"resultsets": [{"headers": ["User", "Registered", "Edit count", "Last edit", "Filter trip count", "Last filter trip"], "rowcount": 49}], "runningtime": "54.82"}
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 p...
{"resultsets": [{"headers": ["AAAAMMDD", "TOTAL_delete"], "rowcount": 3247}], "runningtime": "16.59"}
tawikisource_p
Articles created by CX in siwiki in 2021
null
-- When appropriate, change 'contenttranslation' to 'sectiontranslation' set @cx_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); SELECT rev_timestamp, actor_name, page_title, page_namespace, page_id, MAX(ct_rev_id) FROM `cha...
{"resultsets": [{"headers": ["count(*)"], "rowcount": 1}], "runningtime": "0.68"}
ugwiki_p
Tewiki Date-wise pages published from Content translation
null
use ugwiki_p; select substr(rev_timestamp, 1, 8) as Datee, count(substr(rev_timestamp, 1, 8)) as Translated_articles from change_tag, change_tag_def, revision, page where ct_tag_id = ctd_id and rev_id = ct_rev_id and page_id = rev_page and page_namespace = 0 and page_is_redirect = 0 and ctd_name...
{"resultsets": [{"headers": ["count(*)"], "rowcount": 1}], "runningtime": "0.37"}
ugwiki_p
Articles created by CX in siwiki in 2021
null
-- When appropriate, change 'contenttranslation' to 'sectiontranslation' set @cx_edit_tag = ( select ctd_id from change_tag_def where ctd_name = 'contenttranslation' ); SELECT rev_timestamp, actor_name, page_title, page_namespace, page_id, MAX(ct_rev_id) FROM `cha...
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "0.60"}
ugwiki_p
Highest edit count (napwiki, last 30 days)
null
SET @rev = (SELECT MIN(rev_id) FROM revision WHERE rev_timestamp > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -30 DAY), "%Y%m%d%H%i%s")); SELECT COUNT(*) AS 'Edits', actor_name AS `User` FROM revision_userindex JOIN actor_revision ON rev_actor = actor_id WHERE rev_id >= @rev GROUP BY `User` ORDER ...
{"resultsets": [{"headers": ["line"], "rowcount": 76}], "runningtime": "0.28"}
rowiki_p
Revdata4train
null
SELECT rev_id FROM revision ORDER BY rev_timestamp ASC LIMIT 20000;
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}], "runningtime": "18.77"}
viwiki_p
Top Vietnamese Wikipedian (limit 500 records, include bot)
null
SELECT user_name AS user, user_editcount AS edits, GROUP_CONCAT(DISTINCT user_groups.ug_group) AS rights FROM user LEFT JOIN user_groups ON user_groups.ug_user = user.user_id WHERE user.user_editcount > 300 GROUP BY user.user_id ORDER BY user.user_editcount DESC LIMIT 500;
{"resultsets": [{"headers": ["Username", "cnt"], "rowcount": 80}], "runningtime": "172.65"}
viwiki_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": ["Tables_in_wikidatawiki_p"], "rowcount": 110}], "runningtime": "0.14"}
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 p...
{"resultsets": [{"headers": ["comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 1}], "runningtime": "0.05"}
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 p...
{"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": 62}], "runningtime": "0.12"}
tawikisource_p
Get contributions by SeroBOT
null
SELECT r.rev_id,r.rev_page,r.rev_timestamp,page.page_title FROM revision_userindex r LEFT JOIN page ON r.rev_page = page.page_id WHERE rev_actor=(SELECT actor_id FROM actor_revision WHERE actor_name='SeroBOT') AND rev_timestamp BETWEEN 20190701000000 AND 20191201000000;
{"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 8}, {"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": "0.58"}
eswiki_p
Deletion rates of CX and non-CX articles for a wiki
For one wiki, shows how many articles were created using Content Translation (CX articles) and how frequently they were deleted, compared to articles created using other methods (non-CX articles).
SET @start_time = '20221001'; -- 1 Jan 2020 SET @end_time = '20221231'; -- 1 Jan 2021 SET @cx_tag_id = ( SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'contenttranslation' ); WITH nondeleted_new_articles AS ( SELECT SUM(IF(ct_tag_id = @cx_tag_id, 1, 0)) AS cx, SUM(IF(ct_tag_id IS N...
{"resultsets": [{"headers": ["edits", "edits_per_day", "actor_name", "user_editcount"], "rowcount": 8}, {"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": "0.53"}
ttwiki_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": ["regexp_replace(\"\\\\(.*\\\\)\", \"!!!_(album)\", \"\")"], "rowcount": 1}], "runningtime": "0.05"}
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 p...
{"resultsets": [{"headers": ["regexp_replace(\"!!!_(album)\",\"\\\\(.*\\\\)\", \"\")"], "rowcount": 1}], "runningtime": "0.05"}
tawikisource_p
WSta 1917 AD-மெய்யறம், வ உ சி
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": ["page_title"], "rowcount": 10000}], "runningtime": "31.54"}
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 p...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 2247}], "runningtime": "1238.18"}
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 p...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 355}], "runningtime": "308.58"}
tawikisource_p
Experienced users and newcomers
null
SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced SET @minTenureDays = 365; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced SET @eventDate = '20230101000000'; -- 3) see @minTenureDays SELECT user_name, user_editcount, ...
{"resultsets": [{"headers": ["reviewer", "Articles", "Redirects", "Total"], "rowcount": 1}], "runningtime": "0.08"}
commonswiki
Experienced users and newcomers
null
SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced SET @minTenureDays = 365; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced SET @eventDate = '20230101000000'; -- 3) see @minTenureDays SELECT user_name, user_editcount, ...
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 522}], "runningtime": "5.38"}
commonswiki
Experienced users and newcomers
null
SET @minEdits = 0; -- 1) number of edits the user has to have to be considered experienced SET @minTenureDays = 365; -- 2) if the user registered @minTenureDays days prior to the event (@eventDate), they're experienced SET @eventDate = '20220601000000'; -- 3) see @minTenureDays SELECT user_name, user_editcount, ...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 993}], "runningtime": "379.12"}
commonswiki
nlwiki Main page protection
null
SELECT lt_namespace, lt_title, GROUP_CONCAT(DISTINCT pr_type) AS pr_type, GROUP_CONCAT(DISTINCT pr_level) AS pr_level, GROUP_CONCAT(DISTINCT pr_cascade) AS pr_cascade, GROUP_CONCAT(DISTINCT pr_expiry) AS pr_expiry FROM (SELECT * FROM templatelinks WHERE tl_from=(SELECT page_id FROM page WHERE page_namespace=0 AND pa...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 2685}], "runningtime": "998.08"}
nlwiki
sp2.1
null
# Simplified query to focus on blocked editors. # The page_id list can be manually compiled by looking at page id under "page information" in the Wiki web interface, # or by running Quarry query #62940 with a list of titles. select page_title as 'page title', user_name, comment_text as 'block reason' from page,...
{"resultsets": [{"headers": ["New WikiQuote #SheSaid article", "Creator", "Date created", "Wikidata item"], "rowcount": 34}], "runningtime": "0.68"}
enwiki
Articles with talk page redirects
null
SELECT concat( "Talk:", p.page_title ) AS "Articles with talk page redirects" FROM redirect r INNER JOIN page p ON p.page_id = r.rd_from INNER JOIN page mp ON p.page_title = mp.page_title WHERE mp.page_namespace = 0 AND p.page_namespace = 1 AND r.rd_namespace = 1 AND mp.page_is_redirect = 0 AND p.page_title != ...
{"resultsets": [{"headers": ["rev_page", "rev_timestamp", "rev_comment_id", "comment_text", "slot_role_id", "slot_content_id", "content_model", "content_address"], "rowcount": 2}], "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 p...
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "1.52"}
tawikisource_p
Wikidata descriptions (ru)
null
SELECT wbt_text.wbx_text as description, count(*) as c FROM wbt_item_terms JOIN wbt_term_in_lang ON wbt_item_terms.wbit_term_in_lang_id = wbt_term_in_lang.wbtl_id JOIN wbt_text_in_lang ON wbt_term_in_lang.wbtl_text_in_lang_id = wbt_text_in_lang.wbxl_id AND wbt_text_in_lang.wbxl_language = 'ru' JOIN...
{"resultsets": [{"headers": ["page_title", "page_id", "tl_from_namespace"], "rowcount": 50}], "runningtime": "0.10"}
wikidatawiki_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": ["page_title", "page_id"], "rowcount": 0}], "runningtime": "0.04"}
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 p...
{"resultsets": [{"headers": ["page_title", "page_id"], "rowcount": 50}], "runningtime": "1.23"}
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 p...
{"resultsets": [{"headers": ["page_title", "page_id"], "rowcount": 26}], "runningtime": "0.09"}
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 p...
{"resultsets": [{"headers": ["page_title", "page_id"], "rowcount": 0}], "runningtime": "0.05"}
tawikisource_p
WSta1806_(ந._சஞ்சீவி)
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": ["page_title", "page_id"], "rowcount": 0}], "runningtime": "0.05"}
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 p...
{"resultsets": [{"headers": ["page_title", "page_id"], "rowcount": 30}], "runningtime": "0.10"}
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 p...
{"connection_id": 72151537}
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 p...
{"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 0}], "runningtime": "0.06"}
tawikisource_p
Articles created during Wikimarathon 2023 w/o Wikimarathon template
null
SELECT P1.page_title, A.actor_name FROM ukwiki_p.revision R JOIN ukwiki_p.page P1 ON R.rev_page = P1.page_id JOIN ukwiki_p.actor A ON R.rev_actor = A.actor_id WHERE R.rev_parent_id = 0 AND P1.page_namespace = 0 AND P1.page_is_redirect = 0 AND R.rev_timestamp >= 20230126000000 AND R.rev_timestamp < 20230206000000...
{"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 0}], "runningtime": "0.04"}
ukwiki_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": ["page_title", "page_id"], "rowcount": 30}], "runningtime": "0.94"}
tawikisource_p
Wikimarathon 2023 in UkWiki
null
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), created, total_len, articles FROM ( SELECT CONCAT('[[Користувач:', actor_name, '|', actor_name, ']]') as actor_name, COUNT(1) AS created, SUM(article.page_len) as...
{"resultsets": [{"headers": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "1.29"}
ukwiki_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": ["actor_name", "page_title", "COUNT(*)"], "rowcount": 50}], "runningtime": "3.91"}
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 p...
{"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 1}], "runningtime": "0.11"}
tawikisource_p
Vandal fighting Nlwiki (IP-patrolling)
Vandalismebestrijding - IP-controle
# 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": ["log_id", "log_type", "log_action", "log_timestamp", "log_actor", "log_namespace", "log_title", "log_comment_id", "log_params", "log_deleted", "log_page", "comment_id", "comment_hash", "comment_text", "comment_data"], "rowcount": 20000}], "runningtime": "83.61"}
nlwiki_p
Unprotected css
null
SELECT CONCAT("Modèle:", lt.lt_title) as titre FROM templatelinks t INNER JOIN linktarget lt ON lt.lt_id = t.tl_target_id LEFT JOIN page p ON p.page_namespace = lt.lt_namespace AND p.page_title = lt.lt_title INNER JOIN page p2 ON t.tl_from = p2.page_id LEFT JOIN page_restrictions pr ON pr.pr_page = p.page_id WHERE p.pa...
{"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 8}], "runningtime": "0.09"}
frwiki
Incubator: first and last edits per project
null
WITH base_table AS ( SELECT DISTINCT rev_id, rev_timestamp, rev_len, rev_page, rev_parent_id, page_namespace, page_id, REGEXP_SUBSTR(page_title, 'W[a-z]/[a-z]+') AS prefix FROM revision rev JOIN page p ON...
{"resultsets": [{"headers": ["New WikiQuote #SheSaid article", "Creator", "Date created", "Wikidata item"], "rowcount": 46}], "runningtime": "0.67"}
incubatorwiki
Wikimarathon 2023 Ukraine [with newbies]
List of articles created for the Investigative Journalism Week on UkWiki
USE ukwiki_p; SET SESSION group_concat_max_len = 10000; SELECT @rownum := @rownum + 1 AS rank, IFNULL(actor_name, 'Всього'), newbie FROM ( SELECT CONCAT(actor_name) as actor_name, COUNT(1) AS created, SUM(article.page_len) as total_len, GROUP_CONCAT( DISTINCT -- [[Н...
{"resultsets": [{"headers": ["New WikiQuote #SheSaid article", "Creator", "Date created", "Wikidata item"], "rowcount": 47}], "runningtime": "0.74"}
ukwiki_p
Total Number of Lexemes
A query to get total number of lexemes added by TemTechie
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": ["Page", "Re-created at"], "rowcount": 264}], "runningtime": "19.18"}
wikidatawiki
some stats on interwiki links on idwiki
null
SELECT MAX(cnt), AVG(cnt) from ( select COUNT(*) as CNT, ll.ll_from from langlinks ll, page t where ll.ll_from = t.page_id AND t.page_namespace = 0 GROUP BY ll.ll_from ) stat;
{"resultsets": [{"headers": ["user_talk"], "rowcount": 432}], "runningtime": "218.55"}
idwiki
Wikidata descriptions (uk)
null
SELECT wbt_text.wbx_text as description, count(*) as c FROM wbt_item_terms JOIN wbt_term_in_lang ON wbt_item_terms.wbit_term_in_lang_id = wbt_term_in_lang.wbtl_id JOIN wbt_text_in_lang ON wbt_term_in_lang.wbtl_text_in_lang_id = wbt_text_in_lang.wbxl_id AND wbt_text_in_lang.wbxl_language = 'uk' JOIN...
{"resultsets": [{"headers": ["page_title"], "rowcount": 93}], "runningtime": "0.42"}
wikidatawiki_p
[Wikispecies] Reference templates with DOI template
null
select page_title from page join categorylinks on cl_from = page_id join templatelinks on tl_from = page_id join linktarget on lt_title = page_title where page_namespace = 10 and tl_from_namespace = 10 and cl_to = "Reference_templates" and lt_namespace = 10 and lt_title = "DOI";
{"resultsets": [{"headers": ["pl_from", "pl_title", "cl_to"], "rowcount": 518}], "runningtime": "4.79"}
specieswiki_p
User pages transcluded into articles
null
SELECT source.page_title as "Forráslap", target.page_title as "Beillesztett lap" FROM page as source INNER JOIN templatelinks ON source.page_id = templatelinks.tl_from INNER JOIN page as target ON target.page_id = templatelinks.tl_target_id WHERE source.page_namespace = 0 AND target.page_namespace = 0
{"resultsets": [{"headers": ["user_talk"], "rowcount": 495}], "runningtime": "303.97"}
huwiki_p
enWikiquote: Article creators (01-Oct-22 : 31-Dec-22)
Scratch query not checked
SELECT actor_name AS "Creator", count(*) "Count" FROM revision r JOIN page ON rev_page=page_id JOIN actor_revision ON rev_actor=actor_id LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'wikibase_item' WHERE rev_id in (SELECT rev_id FROM ...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 4074}], "runningtime": "1842.68"}
enwikiquote_p
List of contributors to SheSaid 2022
Accounts which placed a #sheSaid comment on an article during the 2022 campaign. Not verified to be accuare
SELECT distinct actor_name AS "Account" FROM revision r JOIN page ON rev_page=page_id JOIN actor_revision ON rev_actor=actor_id JOIN comment_revision ON rev_comment_id=comment_id WHERE comment_text RLIKE '.*#[Ss]he[Ss]aid.*' AND rev_timestamp BETWEEN 20221001000000 AND 20221231999999 group by actor_na...
{"connection_id": 107734269}
enwikiquote_p
enWikiquote: #SheSaid Contributors (01-Oct-22 : 31-Dec-22)
This list is a list of #SheSaid 2022 contributors defined as people who have marked an edit contribution as #SheSaid or who created a new article in the period which is in the scope of #SheSaid. This includes a small number of articles that are up for deletion
SELECT actor_name "User", count(*) "#Created" FROM revision r JOIN page ON rev_page=page_id JOIN actor_revision ON rev_actor=actor_id LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'wikibase_item' WHERE rev_id in (SELECT rev_id FROM r...
{"resultsets": [{"headers": ["WikiQuote updated article in #SheSaid 2022", "Campaign size increase", "Current size", "Last update", "Wikidata item"], "rowcount": 11}], "runningtime": "0.68"}
enwikiquote_p
zhwiki: Pages which title contains -
null
USE zhwiki_p; SELECT page_id, page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_title LIKE "%-%" ORDER BY page_id; SELECT page_id, page_title FROM page WHERE NOT page_namespace = 0 AND page_is_redirect = 0 AND page_title LIKE "%-%" ORDER BY page_id; SELECT page_id, page_title FRO...
{"resultsets": [{"headers": ["editor", "accepts", "recent_edits", "Blocked"], "rowcount": 277}], "runningtime": "8.85"}
zhwiki_p
Images without a page in namespace 6
null
SELECT CONCAT('[[:Image:', REPLACE(img_name, '_', ' '), ']]') AS "image", img_timestamp, GROUP_CONCAT(IFNULL(log_type, '-') SEPARATOR "<br />") AS "log_type", GROUP_CONCAT(IFNULL(log_action, '-') SEPARATOR "<br />") AS "log_action", GROUP_CONCAT(IFNULL(log_timestamp, '-') SEPARATOR "<br />")...
{"resultsets": [{"headers": ["user_talk"], "rowcount": 926}], "runningtime": "861.07"}
commonswiki_p
نقاش ويكيبيديا:مشروع ويكي الصيانة/بدون إنترويكي (نسخة أولية)
null
select # to show title only CONCAT("[[:en:",SUBSTRING_INDEX(comment.comment_text, '*/', -1),"]]") as "deleted_page", TIMESTAMP(revision.rev_timestamp) as "date_of_delete", CONCAT("[[:",wb_items_per_site.ips_site_page,"]]") as "name_of_page" from revision join page on page.page_id = revision.rev_page join comment ...
{"resultsets": [{"headers": ["year", "total_pages_ns0", "reviewed_pages_ns0", "synced_pages_ns0"], "rowcount": 12}], "runningtime": "0.17"}
wikidatawiki_p
sadads
null
SELECT lt.lt_title FROM templatelinks t INNER JOIN linktarget lt ON lt.lt_id = t.tl_target_id LEFT JOIN page p ON p.page_namespace = lt.lt_namespace AND p.page_title = lt.lt_title INNER JOIN page p2 ON t.tl_from = p2.page_id WHERE p.page_title IS NULL AND lt.lt_namespace = 10 GROUP BY 1 LIMIT 20;
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "page_latest", "count", "pa_class"], "rowcount": 400}], "runningtime": "37.44"}
ckbwiki_p
أكثر المستخدمين تعديلًا ضمن مقالات مشروع ويكي طب
null
USE arwiki_p; select rev_user_text, count(rev_user_text) from revision where rev_timestamp between 20170101000000 AND 20171231235959 and rev_page in (select cl_from from categorylinks where cl_from = rev_page and cl_to = "بوابة_طب/مقالات_متعلقة") group by rev_user_text ORDER BY count(rev_user_text) desc limit 100;
{"resultsets": [{"headers": ["user_talk"], "rowcount": 11010}], "runningtime": "3409.75"}
arwiki_p
Get contributions by SeroBOT
null
SELECT r.rev_id,r.rev_page,r.rev_timestamp,r.rev_len,r.rev_parent_id,page.page_title FROM revision_userindex r LEFT JOIN page ON r.rev_page = page.page_id WHERE rev_actor=(SELECT actor_id FROM actor_revision WHERE actor_name='SeroBOT') AND rev_timestamp BETWEEN 20191018000000 AND 20191115000000;
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 211}], "runningtime": "0.96"}
eswiki_p
Data sobre tablas
Para conseguir las tablas es como siempre en MySQL: SHOW TABLES FROM eswiki_p; ref https://meta.wikimedia.org/wiki/Research:Quarry
DESCRIBE eswiki_p.pagelinks;
{"resultsets": [{"headers": ["reviews", "actor_name", "accept", "decline", "reject", "accept %", "decline %", "reject %", "Blocked"], "rowcount": 175}], "runningtime": "17.44"}
eswiki_p
Conseguimos ID's
null
SELECT page_id, page_namespace, page_title, page_latest, page_links_updated FROM page WHERE page.page_id =9668247;
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 38227}], "runningtime": "35.73"}
eswiki_p
Most edited Community Wishlist 2023 proposals
Paste into Special:ExpandTemplates for best result.
SELECT CONCAT("[[", REPLACE(`page_title`, "_", " "), "]]") as `Page`, COUNT(*) as `Edits` FROM `page` RIGHT JOIN `revision` ON `rev_page` = `page_id` WHERE `page_title` LIKE "Community_Wishlist_Survey_2023/%/%" AND page_namespace = 0 AND NOT `page_title` LIKE "Community_Wishlist_Survey_2023/%_counts/%"...
{"resultsets": [{"headers": ["CONCAT(\"File:\", p0.page_title)", "CONCAT(\"Creator:\", lt_title)"], "rowcount": 63155}], "runningtime": "58.00"}
metawiki_p
أكثر المستخدمين تعديلًا ضمن مقالات مشروع ويكي طب
null
USE arwiki_p; # by actor_name in actor table # https://www.mediawiki.org/wiki/Manual:Actor_table select actor_name, count(actor_name) from revision join actor on actor_id = rev_actor where rev_timestamp between 20170101000000 AND 20171231235959 and rev_page in (select cl_from from categorylinks where cl_from = rev...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "ip", "user"], "rowcount": 0}], "runningtime": "0.05"}
arwiki_p
أكثر المستخدمين إنشاءً للمقالات ضمن مشروع ويكي طب
null
use arwiki_p; # by actor_name in actor table # https://www.mediawiki.org/wiki/Manual:Actor_table select actor_name,actor_user, count(actor_name) FROM revision JOIN page ON rev_page = page_id join actor on actor_id = rev_actor WHERE page_namespace = 0 AND rev_parent_id = 0 and rev_timestamp BETWEEN 20220101000000 AND 2...
{"resultsets": [{"headers": ["page_title", "rev_timestamp", "ip", "user"], "rowcount": 1296}], "runningtime": "21.98"}
arwiki_p
Econ articles by recent edits, old views, and wikilinks
Recent means one month.
USE enwiki_p; SELECT page_title as article, COUNT(DISTINCT rc.rc_id) as recent_edits, -- page_counter as deprecated_pageviews, -- ancient; see comment above COUNT(DISTINCT pl.pl_from) as inbound_wikilinks FROM page JOIN categorylinks AS cats ON page.page_id = cats.cl_from JOIN recentchanges AS rc ON page.page_tit...
{"resultsets": [{"headers": ["pl_title", "COUNT(*)"], "rowcount": 0}], "runningtime": "0.06"}
enwiki_p
Vandalismebestrijding nlwiki
Backlog: 65
# 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": 7}], "runningtime": "1.42"}
nlwiki_p
Vertippte Vorlage Unsigned
null
SELECT F.page_namespace, F.page_title, lt_title FROM page AS F, templatelinks, linktarget LEFT JOIN page AS P ON P.page_title = lt_title AND P.page_namespace = lt_namespace WHERE tl_target_id = lt_id AND lt_namespace = 10 ...
{"resultsets": [{"headers": ["page_id", "page_title", "ip", "abc10_edited_first", "creator_name"], "rowcount": 201}], "runningtime": "198.68"}
dewiki_p
ويكيبيديا:طلبات إضافة تصنيف
null
/* select * from page where page_namespace = 10 and page_id = 8930776 limit 10; */ # * [[:تصنيف:اسم التصنيف المطلوب إضافته]]> [[:قالب:اسم القالب]] /* select * from pagelinks where pl_from = 8930776 and pl_from_namespace = 10 and pl_namespace = 0; */ # todo : use cat_pages to do limit with offset # * [[:تصنيف:اسم ...
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 10972}], "runningtime": "10.04"}
arwiki_p
wikidata: test terms
null
# SELECT CONCAT('Q', wbt_item_terms.wbit_item_id) as p SELECT * FROM wbt_item_terms JOIN wbt_term_in_lang ON wbt_item_terms.wbit_term_in_lang_id = wbt_term_in_lang.wbtl_id AND wbt_item_terms.wbit_item_id IN (142791, 187223) # 142791 - uk, en, 187223 - en JOIN wbt_text_in_lang ON wbt_term_in_lan...
{"resultsets": [{"headers": ["page_id", "title", "rev_id", "rev_timestamp"], "rowcount": 6283}], "runningtime": "13.42"}
wikidatawiki_p