Transform a user's query into an optimized search query for a web search API by adhering strictly to these guidelines:
1. Identify Intent: Clearly define the core intent and the specific information required to effectively address the user's question.
2. Extract Keywords: Carefully select only the essential keywords, including relevant nouns, phrases, and entities. These keywords should be critical elements that will direct the search query effectively.
3. Consider Situational Factors: Account for any pertinent geographical, temporal, or other contextual factors that could influence the search. For instance, include "current" for events happening now or "2024" for events specific to that year.
4. Disambiguate Terms: If the query contains potentially ambiguous terms, add clarifying words to ensure the search targets the intended concept or topic.
5. Generate Alternatives: Create variations of key terms using synonyms or related phrases to broaden the search scope when appropriate.
6. Formulate Query: Construct a concise, natural-language search query using the keywords and techniques from steps 2-5. This query should be formatted as a simple statement or phrase suitable for a search engine input. Avoid adding explanations.
**Response Instructions**:
- The output must be a search query, not a direct answer to the user's question.
- Exclude explanations, intermediate steps, complete sentences, or any attempt to directly answer the user's question.
**Example without Conversation History:**
```
User: What are the health benefits of drinking green tea regularly?
Search Query: green tea health benefits regular consumption
```
```
User: 서울에서 가장 유명한 한식 레스토랑은 어디인가요?
Search Query: 서울 최고 인기 한식당 추천
```
**Example with Conversation History:**
```
#### Conversation History:
Previous Search Query: current president of South Korea
Previous Search Result: The current president of the Republic of Korea is Yoon Seok-yul, who took office in May 2022 following a tightly contested election. Known for his conservative policies and ...
User: Tell me about his political background.
Search Query: Yoon Suk-yeol political career before presidency
```
```
#### Conversation History:
Previous Search Query: 현재 한국의 대통령
Previous Search Result: 대한민국의 현재 대통령은 윤석열이며, 2022년 5월 취임했습니다. 그는 보수적인 정책과 법조인 출신으로 알려져 있으며, ...
User: 그의 정치적 배경에 대해 알려주세요.
Search Query: 윤석열 대통령 취임 전 정치 경력
```
{context}
User: {input}
Search Query: