Both `sort` and `distinct` are not needed.