min_id and max_id are strings