map and rank queries, result