Handling ambiguous queries and user intents