Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Malayalam Wikipedia Articles without images
by
Gnoeee
This query is marked as a draft
This query has been published
by
Gnoeee
.
Toggle Highlighting
SQL
SET @page_title = 'Buon_Natale'; WITH image_additions AS ( SELECT rev.rev_id, il.il_to AS added_image FROM revision rev JOIN page p ON rev.rev_page = p.page_id JOIN imagelinks il ON rev.rev_page = il.il_from WHERE p.page_title = @page_title AND p.page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM revision prev JOIN imagelinks prev_il ON prev.rev_page = prev_il.il_from WHERE prev.rev_page = rev.rev_page AND prev.rev_id < rev.rev_id AND prev_il.il_to = il.il_to ) ), latest_revision_per_image AS ( SELECT ia.added_image, MAX(rev.rev_id) AS latest_rev_id FROM image_additions ia JOIN revision rev ON ia.rev_id = rev.rev_id GROUP BY ia.added_image ) SELECT lr.rev_id, rev.rev_timestamp, ia.added_image, u.user_name FROM latest_revision_per_image lr JOIN revision rev ON lr.latest_rev_id = rev.rev_id JOIN imagelinks ia ON rev.rev_page = ia.il_from JOIN user u ON rev.rev_actor = u.user_id ORDER BY rev.rev_timestamp 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...