adding support for subqueries
Merge pull request #17 from jmreidy/add_subquery_support

adding support for subqueries