Title: Sofia
Content:  Sofia ( София, ) is the capital and largest city of Bulgaria. It is situated in the Sofia Valley at the foot of the Vitosha mountain in the western parts of the country. The city is built west of the Iskar river, and has many mineral springs, such as the Sofia Central Mineral Baths. It has a humid continental climate. Being in the centre of the Balkans, it is midway between the Black Sea and the Adriatic Sea, and closest to the Aegean Sea. Known as Serdica in Antiquity and Sredets in the Middle Ages, Sofia has been an area of human habitation since at 
Title: Sofia
Content:  Sofia City Province has an area of 1344 km2, while the surrounding and much bigger Sofia Province is 7,059 km2. Sofia's development as a significant settlement owes much to its central position in the Balkans. It is situated in western Bulgaria, at the northern foot of the Vitosha mountain, in the Sofia Valley that is surrounded by the Balkan mountains to the north. The valley has an average altitude of 550 m. Sofia is the second highest capital of the European Union (after Madrid) and the third highest capital of Europe (after Andorra la Vella and Madrid). Unlike most European capitals, Sofia does not straddle any large river, but is surrounded by comparatively high mountains on all sides. Three mountain passes lead to the city, which have been key roads since antiquity, Vitosha being the watershed between Black and Aegean Seas. A number of shallow rivers cross 
Title: Sofia
Content:  regional capital of Rumelia Eyalet, the Ottoman Empire's key province in Europe. Bulgarian rule was restored in 1878. Sofia was selected as the capital of the Third Bulgarian State in the next year, ushering a period of intense demographic and economic growth. Sofia is the 14th largest city in the European Union. It is surrounded by mountainsides, such as Vitosha by the southern side, Lyulin by the western side, and the Balkan Mountains by the north, which makes it the third highest European capital after Andorra la Vella and Madrid. Being Bulgaria's primate city, Sofia is home of many of the major local universities, cultural 
Title: Sofia
Content:  three people, whereas most of the households (36.5%) consist of only one person. Sofia was declared the national capital in 1879. One year later, in 1880, it was the fifth-largest city in the country after Plovdiv, Varna, Ruse and Shumen. Plovdiv remained the most populous Bulgarian town until 1892 when Sofia took the lead. The city is the hot spot of internal migration, the capital population is increasing and is around 17% of the national, thus a small number of people with local roots remain today, they dominate the surrounding rural suburbs and are called Shopi. Shopi speak the Western Bulgarian dialects.
Title: Sofia City Province
Content:  Sofia City Province (Област София-град) is a province (oblast) of Bulgaria. Its administrative center is the city of Sofia, the capital of the country. The province borders on Sofia Province and Pernik Province. It consists of only one municipality – the Sofia Capital Municipality.
Title: Districts of Sofia
Content:  Sofia is the capital and largest city of Bulgaria. Politically, administratively and economically, Bulgaria is a highly centralised state. Sofia Municipality is the only municipality in Sofia City Province, which is distinct from Sofia Province, which surrounds but does not include the capital itself. Besides the city proper, the 24 districts of Sofia Municipality encompass three other towns and 34 villages. Each of them has its own district mayor who is elected in a popular election. The head of the Sofia Municipality is its mayor. The assembly members are chosen every four years. The current mayor of Sofia is Yordanka Fandakova.
Title: Independent city
Content:  The capital city of Sofia has the status of oblast (region).
Title: History of Sofia
Content:  The history of Sofia, Bulgaria's capital and largest city, spans thousands of years from Antiquity to modern times, during which the city has been a commercial, industrial, cultural and economic centre in its region and the Balkans.
Title: Stolichna Municipality
Content:  Sofia Capital Municipality includes the following 38 places (cities are shown in bold): Balsha, Bankya, Bistritsa, Buhovo, Busmantsi, Chepintsi, Dobroslavtsi, Dolni Bogrov, Dolni Pasarel, German, Gorni Bogrov, Ivanyane, Jeleznitsa, Jelyava, Jiten, Kazichene, Klisura, Kokalyane, Krivina, Kubratovo, Katina, Lokorsko, Lozen, Malo Buchino, Marchaevo, Mirovyane, Mramor, Negovan, Novi Iskar, Pancharevo, Plana, Podgumer, Sofia, Svetovrachene, Vladaya, Voluyak, Voynegovtsi, Yana
Title: Sofia
Content:  Sofia is the seat of the executive (Council of Ministers), legislative (National Assembly) and judiciary (Supreme Court and Constitutional Court) bodies of Bulgaria, as well as all government agencies, ministries, the National Bank, and the delegation of the European Commission. The President, along with the Council of Ministers, is located on Independence Square, also known as The Largo or The Triangle of Power. One of the three buildings in the architectural ensemble, the former Bulgarian Communist Party headquarters, is due to become the seat of the Parliament. A refurbishment project is due to be completed in mid-2019, while the old National Assembly building will become a museum or will only host ceremonial political events. Under Bulgaria's centralised political system, Sofia concentrates much of the political and financial resources of the country. It is the only city in Bulgaria to host three electoral constituencies: the 23rd, 24th and 25th Multi-member Constituencies, which together field 42 mandates in the 240-member National Assembly.

Question: of which country is sofia the capital city?
Answer: Bulgaria.