PHOENIX-1393 Add test cases for sub-queries in UPSERT and DELETE statement