Related resources for self-contained subqueries