title
stringlengths
1
212
description
stringlengths
1
4.39k
query
stringlengths
1
65.5k
extra_info
stringlengths
18
31.6k
wikidb
stringlengths
4
26
زیرالگوهای {{جعبه اطلاعات آرگون}} که عامل پیوند به ابهام‌زدایی‌اند
null
use fawiki_p; select tl_title from templatelinks left join page p on page_title = tl_title and page_namespace = tl_namespace where tl_from = 627265 -- الگو:جعبه اطلاعات آرگون and exists ( -- tl_title has at least one ambiguous link select null from pagelinks left join page on page_title = pl_title and page_n...
{"resultsets": [{"headers": ["tl_title"], "rowcount": 0}]}
null
Content Translation use (lvwiki)
null
use lvwiki_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 lvwiki_p; select r.rev_user_text, count(r.rev_user) from change_tag t INNER JOIN r...
{"resultsets": [{"headers": ["ct_rev_id", "ct_params", "rev_user_text", "page_title"], "rowcount": 50}, {"headers": ["rev_user_text", "count(r.rev_user)"], "rowcount": 19}]}
null
Īsākie raksti par Latvijas ievērojamākajām personām
null
use lvwiki_p; SELECT pl.pl_title, max(p2.page_len) FROM page p1 JOIN pagelinks pl ON pl.pl_from = p1.page_id join page p2 on pl.pl_title=p2.page_title WHERE p1.page_namespace = 102 AND p1.page_title = "Latvija/Ievērojamākās_personības" and pl.pl_namespace=0 group by pl.pl_title
{"resultsets": [{"headers": ["pl_title", "max(p2.page_len)"], "rowcount": 374}]}
null
Most common deletion summaries in 2 years
null
USE etwiki_p; SELECT log_comment, COUNT(log_id) FROM logging WHERE log_type = 'delete' AND log_action = 'delete' AND log_timestamp > ( NOW() - INTERVAL 24 MONTH ) GROUP BY log_comment ORDER BY COUNT(log_id) DESC LIMIT 100;
{"resultsets": [{"headers": ["log_comment", "COUNT(log_id)"], "rowcount": 100}]}
null
Wikidata - descriptions - en - most frequent
null
use wikidatawiki_p; SELECT CURRENT_DATE; SELECT term_text, count(*) from wb_terms WHERE term_entity_type = 'item' AND term_language = 'en' AND term_type = 'description' GROUP BY term_text ORDER BY count(*) DESC LIMIT 500
{"resultsets": [{"headers": ["CURRENT_DATE"], "rowcount": 1}, {"headers": ["term_text", "count(*)"], "rowcount": 500}]}
null
Wikidata - given names - labels
null
#Given names - list of labels - languages with Roman script # use wikidatawiki_p; # SELECT page_title AS item, term_text, term_type, GROUP_CONCAT( term_language ) As langs, CONCAT('#{{Q|', term_entity_id, '}}') AS simplelist, CURRENT_DATE # FROM pagelinks, page, wb_entity_per_page, wb_terms # WHERE pl_from = 21293912...
{"resultsets": [{"headers": ["item", "term_text", "term_type", "langs", "simplelist", "CURRENT_DATE"], "rowcount": 28290}]}
null
Wikidata - given names - frequency of names
run time: 4 to 5 minutes
# frequency of given name items linked from page [[User:Jura1/first names/items (P31: ok, label: tbd)]] # # See also https://upload.wikimedia.org/wikipedia/commons/f/f7/MediaWiki_1.24.1_database_schema.svg # use wikidatawiki_p; # SELECT page_title AS item, term_type, term_language, term_text, CONCAT('<tr><td> [[', pa...
{"resultsets": [{"headers": ["item", "term_type", "term_language", "term_text", "table_output_in_one_cell", "freq", "CURRENT_DATE"], "rowcount": 18929}]}
null
Wikidata - given names - 'family name' in description
null
# find "family name" in descriptions of items linked from a given page use wikidatawiki_p; SELECT page_title AS item, term_type, term_language, term_text, page_title AS item1, CONCAT('D', term_language) AS Desc1, '""' AS Str1, CURRENT_DATE FROM pagelinks, page, wb_entity_per_page, wb_terms WHERE pl_from = 21293912 #...
{"resultsets": [{"headers": ["item", "term_type", "term_language", "term_text", "item1", "Desc1", "Str1", "CURRENT_DATE"], "rowcount": 0}]}
null
Wikidata - given names - 'disambiguation' in description
null
# find "disambiguation" in descriptions of items linked from a given page use wikidatawiki_p; SELECT page_title AS item, term_type, term_language, term_text, page_title AS item1, CONCAT('D', term_language) AS Desc1, '""' AS Str1, CURRENT_DATE FROM pagelinks, page, wb_entity_per_page, wb_terms WHERE pl_from = 21293912...
{"resultsets": [{"headers": ["item", "term_type", "term_language", "term_text", "item1", "Desc1", "Str1", "CURRENT_DATE"], "rowcount": 0}]}
null
Wikidata - given names - en labels missing
null
use wikidatawiki_p; SELECT CURRENT_DATE AS updated; SELECT page_title AS itemQID FROM pagelinks, page, wb_entity_per_page LEFT JOIN ( SELECT term_entity_id FROM wb_terms WHERE term_entity_type = 'item' # 'item' not 'property' AND term_type = 'label' # 'label', 'description', 'alias' AND term_lang...
{"resultsets": [{"headers": ["updated"], "rowcount": 1}, {"headers": ["itemQID"], "rowcount": 992}]}
null
Wikidata - given names - en descriptions non std
null
# Non standard descriptions in given name items use wikidatawiki_p; SELECT pl_title as Qid, CONCAT(UPPER(CONVERT(Left(term_type, 1) USING latin1)),term_language) As Lang, /* CONCAT('"', REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(term_text , 'Given ', 'given ') , 'First ', 'given...
{"resultsets": [{"headers": ["Qid", "Lang", "desc1_original_long_header_to_stretch_colum_wide_123_456_78901", "Asdf1", "current_desc", "updated"], "rowcount": 526}]}
null
Top contributors for main name space pages of a book
Change page_title following the example for the main name space prefix of the pages of a book. escape the _ by a reverse slash
use tewikisource_p; SELECT user_name, COUNT(*) As Edits FROM user LEFT JOIN revision ON rev_user = user_id LEFT JOIN page ON page_id = rev_page WHERE page_title LIKE 'చిత్రలేఖన%' GROUP BY user_name HAVING COUNT(*) > 0 ORDER BY Edits DESC;
{"resultsets": [{"headers": ["user_name", "Edits"], "rowcount": 2}]}
null
talk pages: missing wikiproject tags
null
USE rowiki_p; SELECT p1.page_title FROM page AS p1 JOIN templatelinks ON tl_from = p1.page_id WHERE p1.page_namespace = 0 and tl_namespace = 10 AND tl_title in ("Infocaseta_Asteroid", "Infocaseta_Astru") AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_n...
{"resultsets": [{"headers": ["page_title"], "rowcount": 6599}]}
null
Pages with most deletions in cswiki
null
use cswiki_p; SELECT COUNT(*), log_namespace, IF(page_title IS NULL, 0, 1) AS page_exists, page_restrictions, log_title FROM logging LEFT JOIN page ON page_title = log_title AND page_namespace = log_namespace WHERE log_action = 'delete' AND NOT log_namespace = 2 GROUP BY log_title, log_namespace ORDER BY COUNT(*) DESC...
{"resultsets": [{"headers": ["COUNT(*)", "log_namespace", "page_exists", "page_restrictions", "log_title"], "rowcount": 1000}]}
null
Articles by a given user containig a given external link on plwiki
null
USE plwiki_p; SELECT page_title FROM page, revision,externallinks WHERE page_id = rev_page AND page_id = el_from AND rev_user_text = 'Damianek1986' AND page_len < 2000 AND page_namespace = 0 AND rev_parent_id = 0 AND page_is_redirect = 0 AND el_to LIKE 'http://censtats.census.gov/data/MD/1602425800.pdf' ORDER BY page_l...
{"resultsets": [{"headers": ["page_title"], "rowcount": 2650}]}
null
New active users in X Wikipedia
From http://quarry.wmflabs.org/query/2929
USE dewiki_p; SELECT user_name, user_registration, user_editcount FROM user WHERE #user_registration > DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 DAY),'20000101000000') #AND user_editcount > 10 #AND user_id NOT IN (SELECT ug_user FROM lvwiki_p.user_groups WHERE ug_group = 'bot') order by user_editcount desc li...
{"resultsets": [{"headers": ["user_name", "user_registration", "user_editcount"], "rowcount": 1000}, {"headers": ["user_name", "user_registration", "user_editcount"], "rowcount": 1000}]}
null
Commons files to add to "Media_missing_infobox_template" category
Find images to be added to [[Category:Media missing infobox template]]
USE commonswiki_p; SELECT concat("File:",page_title) FROM page WHERE page_namespace = 6 -- files only AND page_is_redirect = 0 -- no redirects AND page_title NOT LIKE '%/%' -- skip rare image subpages AND NOT EXISTS ( SELECT * FROM templatelinks WHERE page_id = tl_from AND tl_title in ('Infobox_...
{"resultsets": [{"headers": ["concat(\"File:\",page_title)"], "rowcount": 5}]}
null
Files uploaded to two projects
Finds files to tag with {{NowCommons}}.
USE metawiki_p;#enwiki_p; SELECT p.page_id FROM page p INNER JOIN (image e JOIN commonswiki_p.image c ON c.img_sha1 = e.img_sha1) ON e.img_name = p.page_title #LEFT JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to IN ('All_Wikipedia_files_with_a_different_name_on_Wikimedia_Commons', # ...
{"resultsets": [{"headers": ["page_id"], "rowcount": 52}]}
null
Articles linking to social networks on plwiki
null
USE plwiki_p; SELECT CONCAT('# [[',page_title,']]') as page_title FROM page JOIN externallinks ON page_id = el_from WHERE page_namespace = 0 AND (el_to LIKE 'http%://%.facebook.%/%' OR el_to LIKE 'http%://facebook.%/%' OR el_to LIKE 'http%://fb.%/%' OR el_to LIKE 'http%://%.fb.%/%' OR el_to LIKE 'http%://twitter.%/%' O...
{"resultsets": [{"headers": ["page_title"], "rowcount": 2424}, {"headers": ["el_to"], "rowcount": 3090}]}
null
Ptwiki URC check images > 500px (Categoria:Imagens de conteúdo restrito)
Ptwiki URC check images > 500px
USE ptwiki_p; SELECT DISTINCT CONCAT('* [[:Ficheiro:', i.img_name, ']]') FROM image i INNER JOIN page p ON p.page_title = i.img_name AND p.page_namespace = 6 INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = 'Imagens_de_conteúdo_restrito' WHERE i.img_height > 500 ORDER BY img_timestamp DESC
{"resultsets": [{"headers": ["CONCAT('* [[:Ficheiro:', i.img_name, ']]')"], "rowcount": 582}]}
null
Hewiki links from articles to redirections to disambiguations
null
use hewiki_p; select p1.page_title as 'ערך', pl_title as 'הפניה', rd_title as 'פירושון' from pagelinks inner join page as p1 inner join page as p2 inner join redirect on pl_namespace = 0 and p1.page_id = pl_from and p1.page_namespace = 0 and pl_title = p2.page_title and p2.page_id = rd_from and rd_namespace = 0 and rd_...
{"resultsets": [{"headers": ["\u05e2\u05e8\u05da", "\u05d4\u05e4\u05e0\u05d9\u05d4", "\u05e4\u05d9\u05e8\u05d5\u05e9\u05d5\u05df"], "rowcount": 2695}]}
null
Hewiki links from articles do disambiguation pages
null
USE hewiki_p; SELECT distinct (page1.page_title) as 'ערך' FROM page AS page1 JOIN pagelinks ON page1.page_id = pagelinks.pl_from AND page1.page_namespace = 0 JOIN page AS page2 ON pagelinks.pl_namespace = page2.page_namespace AND pagelinks.pl_title = page2.page_title JOIN categorylinks ON page2.page_id = categorylinks....
{"resultsets": [{"headers": ["\u05e2\u05e8\u05da"], "rowcount": 4649}]}
null
wikidata tables /tests/
null
USE wikidatawiki_p;/* show tables; SHOW COLUMNS FROM page; SHOW COLUMNS FROM pagelinks;*/ #select * from page join pagelinks ON page_id = pl_from where page_title = "Q9698821" /*select page_title from page JOIN pagelinks on pl_from_namespace = 0 and pl_title = "Q4167836"#CONCAT("Q",epp_entity_id) where pag...
{"resultsets": [{"headers": ["rev_user_text"], "rowcount": 1000}]}
null
Number of edits per month on plwiki
null
USE plwiki_p; SELECT DATE(CONCAT(YEAR(rev_timestamp), '-', MONTH(rev_timestamp), '-01')) AS day, COUNT(rev_timestamp) AS revisions FROM revision_userindex GROUP BY day ORDER BY revisions DESC;
{"resultsets": [{"headers": ["page_title", "length"], "rowcount": 10}]}
null
Mobile edits per month on plwiki
null
USE plwiki_p; SELECT LEFT(rev_timestamp, 6) AS month, COUNT(*) AS counting FROM revision_userindex INNER JOIN tag_summary ON ts_rev_id = rev_id AND ts_tags LIKE '%mobile%' GROUP BY month;
{"resultsets": [{"headers": ["page_namespace", "page_title", "cl_to"], "rowcount": 0}]}
null
Content Translation usage per month on plwiki
null
USE plwiki_p; SELECT LEFT(rev_timestamp, 6) AS month, COUNT(*) AS counting FROM revision_userindex INNER JOIN tag_summary ON ts_rev_id = rev_id AND ts_tags LIKE 'contenttranslation' GROUP BY month;
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}]}
null
HHVM usage per month on plwiki
null
USE plwiki_p; SELECT LEFT(rev_timestamp, 6) AS month, COUNT(*) AS counting FROM revision_userindex INNER JOIN tag_summary ON ts_rev_id = rev_id AND ts_tags LIKE 'HHVM' GROUP BY month;
{"resultsets": [{"headers": ["page_title"], "rowcount": 0}]}
null
Total thanks per month on plwiki
null
USE plwiki_p; SELECT LEFT(log_timestamp, 6) AS date, COUNT(*) AS counting FROM logging WHERE log_type LIKE 'thanks' GROUP BY date;
{"resultsets": [{"headers": ["cl_from", "cl_to", "cl_sortkey", "cl_timestamp", "cl_sortkey_prefix", "cl_collation", "cl_type"], "rowcount": 50}]}
null
Total deletions per month on plwiki
null
USE plwiki_p; SELECT LEFT(log_timestamp, 6) AS date, COUNT(*) AS counting FROM logging WHERE log_type LIKE 'delete' GROUP BY date;
{"resultsets": [{"headers": ["user_editcount"], "rowcount": 114}]}
null
Total abusefilter actions per month on plwiki
null
USE plwiki_p; SELECT LEFT(log_timestamp, 6) AS date, COUNT(*) AS counting FROM logging WHERE log_type LIKE 'abusefilter' GROUP BY date;
{"resultsets": [{"headers": ["user_name", "user_editcount"], "rowcount": 114}]}
null
Total blocks per month on plwiki
null
USE plwiki_p; SELECT LEFT(log_timestamp, 6) AS date, COUNT(*) AS counting FROM logging WHERE log_type LIKE 'block' GROUP BY date;
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "latest_edit"], "rowcount": 92}]}
null
Total spam blacklist actions per month on plwiki
null
USE plwiki_p; SELECT LEFT(log_timestamp, 6) AS date, COUNT(*) AS counting FROM logging WHERE log_type LIKE 'spamblacklist' GROUP BY date;
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "latest_edit"], "rowcount": 92}]}
null
Total moves per month on plwiki
null
USE plwiki_p; SELECT LEFT(log_timestamp, 6) AS date, COUNT(*) AS counting FROM logging WHERE log_type LIKE 'move' GROUP BY date;
{"resultsets": [{"headers": ["user_name", "user_editcount", "user_registration", "latest_edit"], "rowcount": 92}]}
null
Total right actions per month on plwiki
null
USE plwiki_p; SELECT LEFT(log_timestamp, 6) AS date, COUNT(*) AS counting FROM logging WHERE log_type LIKE 'rights' GROUP BY date;
{"resultsets": [{"headers": ["user_name", "user_registration"], "rowcount": 114}]}
null
Total rename user actions per month on plwiki
null
USE plwiki_p; SELECT LEFT(log_timestamp, 6) AS date, COUNT(*) AS counting FROM logging WHERE log_type LIKE 'renameuser' GROUP BY date;
{"resultsets": [{"headers": ["user_name", "user_registration"], "rowcount": 114}]}
null
Most used modules on plwiki
null
USE plwiki_p; SELECT concat('# [[Moduł:',tl_title,']]'), COUNT(tl_title) AS counting FROM templatelinks where tl_namespace=828 and tl_from_namespace=0 group by tl_title order by COUNT(tl_title) desc limit 200
{"resultsets": [{"headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"], "rowcount": 102}]}
null
Orphaned User talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja wikipedysty:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 3 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 2 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["page_title"], "rowcount": 16}]}
null
Orphaned Wikipedia talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja Wikipedii:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 5 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 4 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["page_title"], "rowcount": 16}]}
null
Orphaned File talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja pliku:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 7 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 6 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["page_title"], "rowcount": 16}]}
null
Orphaned MediaWiki talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja MediaWiki:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 9 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 8 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["page_title"], "rowcount": 16}]}
null
Orphaned Help talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja pomocy:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 13 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 12 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["item", "term_language", "term_text"], "rowcount": 29}]}
null
Orphaned Category talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja kategorii:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 15 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 14 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["item", "english_label", "label", "lang", "description"], "rowcount": 690}]}
null
Orphaned Portal talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja portalu:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 101 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 100 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["rev_user_text", "translations"], "rowcount": 489}]}
null
Orphaned Wikiproject talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja wikiprojektu:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 103 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 102 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["page_id"], "rowcount": 3}]}
null
Orphaned Module talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja modułu:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 829 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 828 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["Saites uz rakstu", "Raksts", "COUNT(pl.pl_from)"], "rowcount": 2}]}
null
Most common delete comments on plwiki
null
USE plwiki_p; SELECT log_comment, COUNT(log_id) AS counting FROM logging WHERE log_type = 'delete' AND log_action = 'delete' GROUP BY log_comment ORDER BY COUNT(log_id) DESC LIMIT 100;
{"resultsets": [{"headers": ["page_title", "CONCAT(pp_value)"], "rowcount": 0}]}
null
Articles created by IPs on plwiki
null
USE plwiki_p; SELECT CONCAT('# [[', page_title ,']]') AS page_title, rev_timestamp, rev_user_text, page_len FROM page, revision WHERE rev_page = page_id AND rev_parent_id = 0 AND rev_user = 0 AND page_namespace = 0 AND page_is_redirect = 0 ORDER BY rev_timestamp
{"resultsets": [{"headers": ["page_title", "CONCAT(pp_value)"], "rowcount": 0}]}
null
Orphaned Template talks on plwiki
null
use plwiki_p; SELECT CONCAT("# [[Dyskusja szablonu:",p1.page_title,"]]") AS page_title FROM page AS p1 WHERE p1.page_title NOT LIKE '%/%' AND p1.page_namespace = 11 AND NOT EXISTS (SELECT 1 FROM page AS p2 WHERE p2.page_namespace = 10 AND p1.page_title = p2.page_title)
{"resultsets": [{"headers": ["page_title", "button"], "rowcount": 0}]}
null
Wikidata - count on ips_site_id
replaced by 2654
use wikidatawiki_p; SELECT ips_site_id, COUNT(*) from wb_items_per_site GROUP BY ips_site_id
{"resultsets": [{"headers": ["pp_page", "pp_propname", "pp_value", "pp_sortkey"], "rowcount": 1}]}
null
Wikidata - recent changes table
null
use wikidatawiki_p; SELECT CURRENT_DATE; show columns from recentchanges; #Number of users in recentchanges table of Wikidata #should match active users in https://www.wikidata.org/wiki/Special:Statistics without bots #add 20 to cover the list in rc_user SELECT COUNT(DISTINCT(rc_user)) as activeaccounts FROM recent...
{"resultsets": [{"headers": ["page_title", "page_len"], "rowcount": 3}]}
null
Namespace 0 article count on Knwiki
null
use knwiki_p; SELECT count(distinct(page_id)) FROM pagelinks INNER JOIN page ON pl_from = page_id WHERE page_namespace = 0 AND page_is_redirect = 0;
{"resultsets": [{"headers": ["page_title"], "rowcount": 188}]}
null
پرویرایش‌ترین نوشتارهای ویکی‌پدیای فارسی
مقایسه کنید با ویکی آلمانی https://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2016-03-16/Blog
use fawiki_p; select page_title, count(rev_page) from revision left join page on rev_page = page_id where page_namespace = 0 group by rev_page order by count(rev_page) desc limit 100 ;
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_counter", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_no_title_convert", "page_content_model"], "rowcount": 1}]}
null
Most stubborn enwiki socks
Categories of suspected Wikipedia sockpuppets that have the most number of pages listed in them
use enwiki_p; select page_title, cat_pages from categorylinks left join page on cl_from = page_id left join category on cat_title = page_title where cl_type = 'subcat' and cl_to = 'Suspected_Wikipedia_sockpuppets' order by cat_pages desc limit 100;
{"resultsets": [{"headers": ["page_title", "P131", "(SELECT wb.eu_entity_id\n\t\t\t\t\tfrom wbc_entity_usage wb\n where p3.page_id=wb.eu_page_id\n\t\t\t\t\tGROUP BY wb.eu_page_id)"], "rowcount": 79}]}
null
950117 mp1 # of DAB pages with direct link (articles)
null
USE fawiki_p; SELECT COUNT(DISTINCT(page_title)) FROM pagelinks JOIN page WHERE page_is_redirect=0 AND page_namespace=0 AND page_id IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation') AND pl_from IN ( SELECT page_id FROM page WHERE page_is_redirect=0) AND pl_title=page_titl...
{"resultsets": [{"headers": ["course_id", "course_title", "article_page_title", "user_name"], "rowcount": 86}]}
null
Weblinks to tu-dresden.de
Query to search for all existing links to find the dead ones of them.
USE dewiki_p; SELECT page_title AS Seite, el_to AS Weblink FROM page, externallinks WHERE el_to LIKE '%tu-dresden.de%' AND page_id = el_from AND page_namespace = 0;
{"resultsets": [{"headers": ["page_title"], "rowcount": 1}]}
null
plwikisource content model counter
null
USE plwikisource_p; SELECT count(*),page_namespace,rev_content_model FROM page JOIN revision ON page_id=rev_page GROUP BY page_namespace,rev_content_model LIMIT 2000;
{"resultsets": [{"headers": ["COUNT(page_id)"], "rowcount": 1}]}
null
Non-free files used on disambiguation pages
According to [[WP:NFCC#9]], disambiguation pages are not articles and may therefore not contain unfree files.
USE enwiki_p; SELECT p.page_id FROM page p INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from INNER JOIN (imagelinks i INNER JOIN categorylinks c2 ON i.il_from = c2.cl_from AND c2.cl_to = "Disambiguation_pages") ON p.page_title = i.il_to WHERE c1.cl_to = "All_non-free_media" AND p.page_namespace = 6
{"resultsets": [{"headers": ["page_id", "page_title"], "rowcount": 0}]}
null
All non-unique disambiguators by their count (cswiki)
null
USE cswiki_p; SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(page_title, ')', 1), '(', -1), COUNT(*) FROM page WHERE page_namespace = 0 AND page_title LIKE '%_(%' AND page_title LIKE '%)' GROUP BY SUBSTRING_INDEX(SUBSTRING_INDEX(page_title, ')', 1), '(', -1) HAVING COUNT(*) > 1 ORDER BY COUNT(*) DESC, SUBSTRING_INDEX(SUBSTRING...
{"resultsets": [{"headers": ["editcounts"], "rowcount": 12151}]}
null
Eldad draft
null
use hewiki_p; select concat('# [[תבנית:', replace(page_title, '_', ' '), ']]') as name from page where page_namespace = 10 and page_is_redirect = 0 and (replace(page_title, '_', ' ') like "דרגה/%אס %" or page_title like "דרגה/%ורמ%" or page_title like "דרגה/%לופט%" or page_title like "דרגה/%בונד%" or page_title like "ד...
{"resultsets": [{"headers": ["page_id", "page_title", "ips_item_id"], "rowcount": 0}]}
null
Top Wikilovees of past year
The 100 people who have received the most Wikilove in the past year. Last run May 20, 2016
SELECT user_name, wikilove_messages FROM (SELECT user_name, COUNT(wll_id) AS wikilove_messages FROM user u INNER JOIN wikilove_log wl ON u.user_id = wl.wll_receiver where wl.wll_timestamp > 20150520000000 GROUP BY user_name ORDER BY wikilove_messages DESC) AS tmp;
{"resultsets": [{"headers": ["\u0627\u0644\u0645\u0642\u0627\u0644\u0629", "\u0627\u0644\u0648\u0635\u0644\u0627\u062a"], "rowcount": 92}]}
null
Categories of pages linking to DA page in Fa WP
pl_title is set to a disambiguation page, this will give you what is the most common categories for pages linking to that DA page.
use fawiki_p; select cl_to, count(*) as cnt from pagelinks join categorylinks on pl_from = cl_from where pl_title = 'ایرانی' and pl_namespace = 0 group by cl_to order by cnt desc;
{"resultsets": [{"headers": ["rev_page", "page_title", "page_len", "GROUP_CONCAT(rev_len)", "GROUP_CONCAT(rev_parent_id)"], "rowcount": 298}]}
null
Inlinks to an article
Query that gets inlinks to an article based on the article's title.
USE enwiki_p; SELECT p.page_id, p.page_title FROM pagelinks pl JOIN page p ON pl.pl_from=p.page_id WHERE pl.pl_namespace=0 AND pl.pl_title="World_War_II" AND pl.pl_from_namespace=0; -- Only show links from other articles
{"resultsets": [{"headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"], "rowcount": 162}]}
null
Requests for adminship on plwiki
null
USE plwiki_p; SELECT page_title, rev_user_text, rev_timestamp#, COUNT(rev_user_text) AS counting FROM page, revision WHERE page_id = rev_page AND page_title LIKE 'Przyznawanie_uprawnień/%' AND page_namespace = 4 AND rev_parent_id = 0 ORDER BY rev_timestamp DESC#, counting DESC;
{"resultsets": [{"headers": ["page_namespace", "page_title", "revisions", "users"], "rowcount": 0}]}
null
Mikey draft
null
use hewiki_p; select concat('[[:קטגוריה:', replace(cl_to, "_", " "), ']]') as "category", concat('[[תבנית:', replace(page_title, "_", " "), ']]') as "template" from page join categorylinks on page_id = cl_from where page_namespace = 10 and page_title like "מפת_מיקום/%" and not cl_to in ("תבניות_מיפוי_עם_פירוט", ...
{"resultsets": [{"headers": ["concat(page_namespace,\":\",page_title)"], "rowcount": 103}]}
null
Most common deletion summaries
http://quarry.wmflabs.org/query/2838
use enwiki_p; SELECT log_comment, COUNT(log_id) FROM logging WHERE log_type = 'delete' AND log_action = 'delete' GROUP BY log_comment ORDER BY COUNT(log_id) DESC LIMIT 2500;
{"resultsets": [{"headers": ["number", "user_name", "recent_user_editcount"], "rowcount": 0}]}
null
YoavR draft
null
set @list = "המקבץ השבועי/סרטים ישראליים/דף משנה"; set @startdate = "2016-05-29"; set @summer = -3; #------------------------------------------------ use hewiki_p; set @newstartdate = date_add(concat(@startdate, " 00:00:00"), interval @summer hour); set @newstopdate = date_add(@newstartdate, interval 8 day); select ...
{"resultsets": [{"headers": ["page_id", "Titolo", "CONCAT (\"https://it.wikipedia.org/wiki/\", p.page_title)", "page_new", "page_namespace", "page_is_redirect", "revision_id", "time Stamp"], "rowcount": 9374}]}
null
50 most active users on Wikidata:Project chat
null
USE wikidatawiki_p; SELECT rev_user_text, COUNT(*) FROM revision WHERE rev_page = 394 AND rev_user > 0 GROUP BY rev_user ORDER BY COUNT(*) DESC, rev_user_text LIMIT 50;
{"resultsets": [{"headers": ["page_title"], "rowcount": 169}]}
null
Kotz draft
null
use hewiki_p; select * from page where page_namespace = 0 and page_is_redirect = 0 and page_title regexp '[0-9]-[0-9]'
{"resultsets": [{"headers": ["CONCAT('*[[:File:', p.page_title, ']]')"], "rowcount": 2}]}
null
Deleted articles on plwiki
null
USE plwiki_p; SELECT log_comment FROM logging WHERE log_action='delete' AND log_namespace = 0 AND (log_comment LIKE '%poczekalni%' OR log_comment LIKE '%Poczekalni%') GROUP BY log_title ORDER BY log_comment DESC
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_counter", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_no_title_convert", "page_content_model"], "rowcount": 27}]}
null
شمار ویرایش‌های وظیفه ۱۵ DbBot
null
use fawiki_p; select count(*) from revision where rev_user = 264911 and rev_comment like "%وظیفه ۱۵%" ;
{"resultsets": [{"headers": ["page_title", "REPLACE(MID(page_title,LOCATE('(',page_title)+1,length(page_title)),')','')"], "rowcount": 100}]}
null
Not used templates redirects on plwiki
null
SELECT CONCAT("# [[Szablon:",page_title,"]]") AS szablon FROM plwiki_p.page WHERE page_title NOT LIKE '%dane%' AND page_is_redirect=1 AND page_namespace=10;
{"resultsets": [{"headers": ["concat('\u05de\u05e9\u05ea\u05de\u05e9:',p.page_title)"], "rowcount": 47}]}
null
Hewiki pages counter
null
use hewiki_p; select rev_user_text, count(*) from revision_userindex r0 join page on rev_page = page_id where rev_parent_id = 0 and page_namespace in (0, 4, 6, 8, 10, 12, 14, 100, 446, 828) and page_is_redirect = 0 and not rev_user_text in ("Costello-bot", "Rotemliss-bot", "Yonidebot") and not exists (select * from use...
{"resultsets": [{"headers": ["page_title"], "rowcount": 35955}]}
null
WD labels of humans with ALL CAPS
null
USE wikidatawiki_p; SELECT CONCAT('Q',term_entity_id), term_language, term_text FROM wb_terms JOIN wb_entity_per_page ON term_entity_id=epp_entity_id WHERE term_type='label' AND term_entity_type='item' AND term_text REGEXP BINARY '^[A-Z]{3,}[[:space:]][A-Z]{3,}$' AND epp_entity_type='item' AND epp_page_i...
{"resultsets": [{"headers": ["concat('# [[',log_title,']]')", "count(pl_title)"], "rowcount": 823}]}
null
Hewiki immediate check files
null
use hewiki_p; select p1.page_namespace, p1.page_title, cl1.cl_to from categorylinks as cl1 join page as p1 on cl1.cl_from = p1.page_id where p1.page_namespace = 6 and exists (select * from page as p2 where p2.page_title = cl1.cl_to and exists (select * from categorylinks as cl2 where cl2.cl_to = "קטגוריות_לריקון_מייד...
{"resultsets": [{"headers": ["CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '\"', '**DOUBLEQUOTE**'), '_', ' '), '}}')"], "rowcount": 150}]}
null
Redirects hiding Commons files
null
SELECT w.page_id FROM enwiki_p.page w INNER JOIN commonswiki_p.page c ON c.page_title = w.page_title #INNER JOIN commonswiki_p.image c ON c.img_name = w.page_title WHERE w.page_namespace = 6 AND w.page_is_redirect = 1 AND c.page_namespace = 6 LIMIT 100
{"resultsets": [{"headers": ["blockee", "blockend", "user_editcount"], "rowcount": 127}]}
null
Files hiding Commons files - enwiki
Add {{ShadowsCommons}} to these.
USE enwiki_p; SELECT wp.page_id FROM image wi INNER JOIN commonswiki_p.image ci ON ci.img_name = wi.img_name AND ci.img_sha1 != wi.img_sha1 INNER JOIN page wp ON wp.page_title = wi.img_name AND wp.page_namespace = 6 INNER JOIN commonswiki_p.page cp ON cp.page_title = ci.img_name AND cp.page_namespace = 6 LEFT JOIN temp...
{"resultsets": [{"headers": ["blockee", "blockend", "user_editcount"], "rowcount": 1281}]}
null
Very big non-free files
These probably do not satisfy [[WP:NFCC#3b]].
USE enwiki_p; SELECT p.page_id FROM image i INNER JOIN page p ON p.page_title = i.img_name AND p.page_namespace = 6 INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = 'All_non-free_media' WHERE i.img_width * i.img_height > 1e+6 AND img_minor_mime != 'svg+xml'
{"resultsets": [{"headers": ["replace(rev_comment, '\\[\\[(?:\u0648\u06cc\u0698\u0647|Special)\\:(?:.*?)\\|(.*?)\\]\\]', '\\1')"], "rowcount": 10}]}
null
Mean lifetime of reverted revis Support needion @ ptwiki
null
use ptwiki_p; select avg(HOUR(TIMEDIFF(CAST(r.rev_timestamp AS DATETIME),CAST(rp.rev_timestamp AS DATETIME)))), EXTRACT(MONTH FROM CAST(r.rev_timestamp AS DATETIME)) AS MES, EXTRACT(YEAR FROM CAST(r.rev_timestamp AS DATETIME)) AS ANO FROM revision r INNER JOIN revision rp ON r.rev_parent_id = rp.rev_id INNER JOIN re...
{"resultsets": [{"headers": ["img_name"], "rowcount": 14}]}
null
Bytes added by namespace (gross)
null
SELECT rc_namespace, sum(rc_bot = 0) as not_bot, sum(rc_bot = 1) as bot, count(*) as total FROM enwiki_p.recentchanges GROUP BY rc_namespace;
{"resultsets": [{"headers": ["rev_id", "rev_page", "rev_text_id", "rev_comment", "rev_user", "rev_user_text", "rev_timestamp", "rev_minor_edit", "rev_deleted", "rev_len", "rev_parent_id", "rev_sha1", "rev_content_model", "rev_content_format"], "rowcount": 130}]}
null
Bot edits from WP community pages
null
SELECT CONCAT(page_namespace,":",page_title) as pagetitle, count(*) FROM enwiki_p.page JOIN enwiki_p.revision ON page_id = rev_page JOIN enwiki_p.user_groups ON rev_user = ug_user WHERE (page_namespace = 4 OR page_namespace = 5) AND ug_group = 'bot' GROUP BY 1 order by 2 DESC
{"resultsets": [{"headers": ["cl_from", "cl_to"], "rowcount": 38}]}
null
Florence revisions Count
null
USE fawikivoyage_p; SELECT /*SLOW OK */ DATE(CONCAT(YEAR(rev_timestamp),"-",MONTH(rev_timestamp),"-",DAY(rev_timestamp))) AS DAY, COUNT(rev_timestamp) AS revisions FROM revision WHERE rev_user_text = 'AFlorence' GROUP BY DAY;
{"resultsets": [{"headers": ["page_id", "page_len", "page_title"], "rowcount": 25}]}
null
Mikey draft
null
use hewiki_p; select replace(page_title, "_", " ") as "ערך", case when exists (select * from templatelinks where tl_from = page_id and tl_title = "רוכב_אופניים") then 1 else 0 end as "רוכב אופניים", case when exists (select * from templatelinks where tl_from = page_id and tl_title = "ספורטאי") then 1 else 0 end as "ספו...
{"resultsets": [{"headers": ["CONCAT('File:', p.page_title)"], "rowcount": 2}]}
null
950601 mp1 # of DAB pages with redirect link (articles)
null
USE fawiki_p; SELECT COUNT(DISTINCT(page_title)) FROM pagelinks JOIN page WHERE page_is_redirect=1 AND page_namespace=0 AND page_id IN ( SELECT rd_from FROM redirect WHERE rd_namespace=0 AND rd_title IN ( SELECT page_title FROM page WHERE page_id IN ( SELECT pp_page FROM page_props WHERE pp_propname =...
{"resultsets": [{"headers": ["log_page", "log_namespace", "log_action", "log_timestamp"], "rowcount": 100}]}
null
950601 mp1 # of direct links to DAB pages (articles)
null
USE fawiki_p; SELECT COUNT(page_id) FROM pagelinks JOIN page WHERE page_is_redirect=0 AND page_namespace=0 AND page_id IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation') AND pl_from IN ( SELECT page_id FROM page WHERE page_is_redirect=0) AND pl_title=page_title AND pl_na...
{"resultsets": [{"headers": ["log_page", "log_namespace", "log_action", "log_params", "log_timestamp"], "rowcount": 10}]}
null
950601 mp1 # of DAB pages
null
USE fawiki_p; SELECT COUNT(page_title) FROM page WHERE page_id IN ( SELECT pp_page FROM page_props WHERE pp_propname = 'disambiguation');
{"resultsets": [{"headers": ["gt_lat", "gt_lon", "gt_page_id", "gt_name", "(select page_title from page where page_id = gt_page_id)", "gt_region"], "rowcount": 259}]}
null
Show tables of cswiki
null
USE cswiki_p; SHOW TABLES;
{"resultsets": []}
null
Possible misused item talk pages in Wikidata
Talk pages without internal links
USE wikidatawiki_p; SELECT CONCAT("Talk:",page_title) AS link, page_len, rev_user_text, CONCAT("[https://wikidata.org/wiki/?curid=", page_id, "?action=delete delete]") AS delete_link FROM page LEFT JOIN pagelinks ON pl_from = page_id JOIN revision ON rev_id = page_latest WHERE page_namespace = 1 AND pl_title IS...
{"resultsets": []}
null
File namespaces pages linking to CC BY SA on Commons
Only lists 100 of them
use commonswiki_p; SELECT page_title FROM templatelinks JOIN page ON page_id = tl_from WHERE tl_namespace = 10 AND tl_title='Cc-by-sa' AND page_namespace = 6 ORDER BY page_id LIMIT 100;
{"resultsets": [{"headers": ["page_title", "rev_timestamp"], "rowcount": 24}]}
null
Titodutta's test quarry
null
USE enwiki_p; SELECT CONCAT('# [[',page_title,']]') AS page_title, CONCAT('← [[',rd_title,']]') AS rd_title FROM page JOIN redirect ON rd_from = page_id AND NOT EXISTS (SELECT * FROM page AS p1 WHERE p1.page_title = rd_title AND p1.page_namespace = rd_namespace) AND page_namespace = 0 AND rd_namespace = 0
{"resultsets": [{"headers": ["Database (%monument%)"], "rowcount": 0}]}
null
Reinbek pages
null
USE dewiki_p; SELECT * FROM page WHERE page_title ='Reinbek'
{"resultsets": [{"headers": ["concat('#[[',REPLACE(page_title,'_',' '),']]')", "tl_title"], "rowcount": 3}]}
null
query to find user pages which end in things like .com, .nl
null
Use nlwiki_p; SELECT CONCAT('*[[Gebruiker:', user_name, ']]') as showname, user_registration, user_editcount FROM `user` JOIN ipblocks where (user_name REGEXP '\\.nl$' or user_name REGEXP '\\.com$' or user_name REGEXP '\\.org$' or user_name REGEXP '\\.be$' or user_name REGEXP '\\.uk$' or...
{"resultsets": [{"headers": ["tl_from", "tl_namespace", "tl_title", "tl_from_namespace"], "rowcount": 15}]}
null
(en.wp) Wikipedia:Database reports/Large non-free files
SQL from https://en.wikipedia.org/wiki/Wikipedia:Database_reports/Large_non-free_files/Configuration
SELECT page_title, img_size FROM page JOIN image ON img_name = page_title JOIN categorylinks ON cl_from = page_id WHERE page_namespace = 6 AND cl_to = 'All_non-free_media' AND img_size > 999999;
{"resultsets": [{"headers": ["CURRENT_DATE"], "rowcount": 1}, {"headers": ["CONCAT('P', term_entity_id)", "term_text"], "rowcount": 1081}]}
null
Number of files per user in a given category
Pages_using_duplicate_arguments_in_template_calls is the given category
use commonswiki_p; SELECT DISTINCT img_user_text AS user, COUNT(image.img_name) AS files_count, image.img_name FROM image WHERE image.img_name IN (SELECT page_title FROM page JOIN categorylinks ON cl_from = page_id WHERE cl_to = "Uncategorized_images_of_waterfalls" AND page_namespace = 6) GROU...
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_counter", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_no_title_convert", "page_content_model"], "rowcount": 28}]}
null
Most linked disambiguations in cswiki (with redirects!)
null
USE cswiki_p; SELECT disambigs.page_title, COUNT(DISTINCT links.pl_from) AS direct_links, COUNT(DISTINCT redirects.page_id) AS redirects, COUNT(DISTINCT links.pl_from) + COUNT(DISTINCT links_to_redirects.pl_from) AS all_backlinks FROM (SELECT * FROM page_props WHERE pp_propname = 'disambiguation') AS disambigs JOIN ...
{"resultsets": [{"headers": ["cl_to"], "rowcount": 622}]}
null
Stub su it.wiki con più di 50 interlink
null
USE itwiki_p; SELECT CONCAT('# ', COUNT(*), ' - [[', page_title, ']]') FROM langlinks JOIN page ON ll_from = page_id WHERE page_namespace = 0 AND page_id IN ( SELECT tl_from FROM templatelinks WHERE tl_title = 'S') GROUP BY ll_from HAVING COUNT(*) > 49 ORDER BY page_title;
{"resultsets": [{"headers": ["page_id", "page_title", "last_timestamp"], "rowcount": 15}]}
null
شريط بوابات
Sandboxes of anonymous users on Ar.wiki
USE arwiki_p; SELECT concat('*[[',page_title,']]') FROM page WHERE page_id NOT IN ( SELECT tl_from FROM templatelinks WHERE tl_title LIKE "%شريط%" AND tl_namespace = 10) AND page_id NOT IN ( SELECT tl_from FROM templatelinks WHERE tl_title LIKE "توضيح" ...
{"resultsets": [{"headers": ["page_id", "page_namespace", "page_title", "page_restrictions", "page_counter", "page_is_redirect", "page_is_new", "page_random", "page_touched", "page_links_updated", "page_latest", "page_len", "page_no_title_convert", "page_content_model"], "rowcount": 6}]}
null
Users by edit count (top 5)
null
SELECT DATABASE() as dbname, user_name, user_editcount FROM user ORDER BY user_editcount DESC LIMIT 5;
{"resultsets": [{"headers": ["File", "Date", "Comment"], "rowcount": 1926}]}
null
list of all categories of en.WS
null
USE enwikisource_p; SELECT * FROM enwikisource_p.category
{"resultsets": [{"headers": ["Tables_in_wikidatawiki_p"], "rowcount": 66}]}
null
Meta-Wiki experienced users long username
null
USE metawiki_p; select user_name, length(user_name), user_editcount from user where user_editcount > 100 and length(user_name) > 40 order by length(user_name) desc limit 100;
{"resultsets": [{"headers": ["concat(\"[[:File:\",img_name,\"|\",img_timestamp,\"]]\")", "img_size", "img_user", "user_editcount"], "rowcount": 1}]}
null
zhwiki files blocking commons files
null
SELECT CONCAT("[[:File:",zhwiki_p.image.img_name,"]]"), CONCAT("[[:c:File:",zhwiki_p.image.img_name,"]]") FROM zhwiki_p.image INNER JOIN commonswiki_p.image ON zhwiki_p.image.img_name = commonswiki_p.image.img_name WHERE zhwiki_p.image.img_sha1 != commonswiki_p.image.img_sha1 ORDER BY zhwiki_p.image.img_name; SELECT ...
{"resultsets": [{"headers": ["CONCAT('# [[\u0642\u0627\u0644\u0628:',p.page_title,']]')"], "rowcount": 72}]}
null