Subqueries work! Still lots of cleanup to do but almost there!