Question: which of the following country has madrid as it's capital
Answer: Madrid ( / məˈdrɪd / , Spanish : ( maˈðɾið ) , locally ( maˈðɾi ( θ ) ) ) is the capital of Spain and the largest municipality in both the Community of Madrid and Spain as a whole .