User:Arnomane/bad

From Wikimedia Commons, the free media repository
Jump to: navigation, search
select page_title from page where
not exists(Select * from imagelinks where il_from = page_id)
and not exists ( select * from templatelinks where tl_from = page_id 
                 and  tl_namespace = 10 and tl_title in ( 'Disambiguation', 'Disambig', 'Lang-mp' ) ) 
and not exists ( select * from categorylinks where cl_from = page_id and cl_to in ( 'Disambiguation' ) ) 
and page_namespace = 0
and page_is_redirect = 0