Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Vahurzpu
.
Toggle Highlighting
SQL
SELECT specificcat.page_title, COUNT(filepage) FROM page specificcat INNER JOIN categorylinks cl1 ON cl1.cl_from = specificcat.page_id INNER JOIN categorylinks cl2 ON cl2.cl_to = specificcat.page_title INNER JOIN page filepage ON filepage.page_id = cl2.cl_from WHERE specificcat.page_namespace = 14 AND cl1.cl_to = "Paintings_by_artist" AND filepage.page_namespace = 6 AND filepage.page_id NOT IN ( SELECT templatelinks.tl_from FROM templatelinks INNER JOIN linktarget ON linktarget.lt_id = templatelinks.tl_target_id WHERE linktarget.lt_title = "Creator" AND linktarget.lt_namespace = 10 ) GROUP BY specificcat.page_title ORDER BY COUNT(filepage) DESC
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...