Add sub select test cases for group by, order by, limit