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

SQL

AخA
 
SELECT page_title
FROM linktarget
JOIN templatelinks ON tl_target_id=lt_id AND tl_namespace=10 AND tl_from_namespace=0
JOIN redirect ON rd_from=tl_from AND rd_namespace=0
JOIN page ON page_namespace=0 AND page_title=rd_title
JOIN categorylinks ON cl_type="page" AND cl_from=page_id AND (cl_to="Living_people" OR cl_to LIKE "%_births" OR cl_to LIKE "%_deaths")
WHERE lt_namespace=10 AND lt_title="R_from_sortname" AND cl_from IS NULL
LIMIT 100
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.

Query status: failed

Error
Unknown column 'tl_namespace' in 'on clause'