Validate the SELECT clause