Implement a draft for attribute-based subqueries in arrays