Add test case for [DRILL-1199] Order by nested inside a where clause fails