Added support for subqueries that return single items.