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
Gnoeee
.
Articles in a category which have images used
Toggle Highlighting
SQL
SELECT a.page_title AS article_title, GROUP_CONCAT(i.il_to SEPARATOR ',') AS image_links FROM page a JOIN imagelinks i ON a.page_id = i.il_from JOIN categorylinks c ON a.page_id = c.cl_from WHERE a.page_namespace = 0 AND c.cl_to = 'Critically_endangered_plants' -- Replace the Category here to get the articles from that category AND i.il_to NOT IN ( SELECT il_to FROM templatelinks t JOIN imagelinks ti ON t.tl_from = ti.il_from WHERE ti.il_from_namespace = 10 ) GROUP BY a.page_title;
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...