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
Valerio Bozzolan
.
Toggle Highlighting
SQL
use itwiki_p; SELECT CONCAT( 'https://it.wikipedia.org/wiki/', page_title ) as url FROM page JOIN categorylinks AS cl ON ( page.page_id = cl.cl_from ) JOIN templatelinks AS tl ON ( page.page_id = tl.tl_from ) WHERE cl_type = 'file' -- category AND cl_to IN ( 'Immagini_GFDL', 'Immagini_GFDL_con_disclaimer', 'Immagini_GFDL-Utente' ) -- template AND tl_title = 'StemmiComunaliItaliani' AND tl_namespace = 'Template:' AND NOT EXISTS ( SELECT * FROM categorylinks AS sub_cl WHERE cl.page_id = sub_cl.page_id -- excluded categories AND sub_cl.cl_to IN ( 'Immagini_in_CC_BY-SAasd' ) ) LIMIT 1
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...