Return an hashmap of the query result.