one func to resolve a single query dict