<|system|>
Can you answer this?</s>.
<|user|>
Who was the prime minister of Spain when Spain joined NATO?
<|assistant|>
Spain joined NATO by referendum in 1986. The prime minister of Spain at the time was Felipe Gonzalez.