Optimizing content for multimodal query resolution