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

SQL

AخA
 
SELECT page_id, page_title, pp_value
FROM page 
inner join page_props on pp_page = page_id
where pp_propname = 'defaultsort'
    and page_namespace = 0
    AND NOT EXISTS (SELECT 1 FROM templatelinks WHERE tl_from = page_id AND tl_title IN ('NF', 'BD'))
    AND EXISTS (SELECT 1 FROM categorylinks WHERE cl_from = page_id AND cl_to in ('Mujeres', 'Hombres'))
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...