This query is marked as a draft This query has been published by Pikne.

SQL

AخA
 
USE lvwiki_p;
SELECT CONCAT('* [[:Fail:',e.img_name,']]') as "Vikipeedia", CONCAT('— [[c:File:',c.img_name,']]') as "Commons"
FROM image e
LEFT JOIN page p ON e.img_name = p.page_title
LEFT JOIN templatelinks t ON t.tl_from = p.page_id
INNER JOIN commonswiki_p.image c ON c.img_name = e.img_name AND c.img_sha1 != e.img_sha1
WHERE t.tl_title = 'NowCommons'
# WHERE e.img_name NOT RLIKE '(Ip_l|Viinis|P2r|Tuduli|akultu|a_Muus|Skogs|ef_Gon|Kawe|Laikma)'
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...