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
Pikne
.
Toggle Highlighting
SQL
USE lvwiki_p; SELECT DISTINCT CONCAT('* [[:Fail:',i.img_name,']]') as "Vikipeedia", CONCAT('— [[c:File:',c.img_name,']]') as "Commons", page_id FROM image i INNER JOIN commonswiki_p.image c ON c.img_name = i.img_name AND c.img_sha1 = i.img_sha1 LEFT JOIN page p ON i.img_name = p.page_title WHERE p.page_namespace = 6 AND p.page_id NOT IN (SELECT cl_from FROM categorylinks WHERE cl_to = 'NowCommons') AND p.page_id NOT IN (SELECT cl_from FROM categorylinks WHERE cl_to = 'Db-commons') AND p.page_id NOT IN (250402,254165,398217,398216,371699,371704,371701,181610,178999,251467)
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...