added test for subqueries; fixed issue w/ trying to find aliased table