SQL
AخA
USE ptwiki_p;
SELECT DISTINCT CONCAT('* [[:Ficheiro:', i.img_name, ']]') FROM image i
INNER JOIN page p ON p.page_title = i.img_name AND p.page_namespace = 6
INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = '!Imagens' OR c.cl_to = 'Imagens_sobre_arte'
WHERE i.img_height > 500
ORDER BY img_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.
All SQL code is licensed under CC0 License.