Question: Who wrote the national anthem of the country where the village of Maddegama is located?

full_context: Document 1: Vande Mataram: It played a vital role in the Indian independence movement, first sung in a political context by Rabindranath Tagore at the 1896 session of the Indian National Congress. It became a popular marching song for political activism and Indian freedom movement in 1905. Spiritual Indian nationalist and philosopher Sri Aurobindo referred it as ``National Anthem of Bengal ''. The song and the novel containing it was banned by the British government, but workers and general public defied the ban, many went to colonial prisons repeatedly for singing it, and the ban was overturned by the Indians after they gained independence from the colonial rule.
Document 2: Sri Lanka Matha: There are differing accounts as to the origin of the Sri Lanka Matha. The most widely held view is that Sri Lankan composer Ananda Samarakoon wrote the music and lyrics to the song inspired / influenced by Bengali poet Rabindranath Tagore. A minority suggest that Tagore wrote the anthem in full. Some have suggested that Tagore wrote the music whilst Samarakoon wrote the lyrics. Samarakoon had been a pupil of Tagore at Visva - Bharati University, Santiniketan. After returning to Ceylon Samarakoon taught music at Mahinda College, Galle. The song, which was then known as Namo Namo Mata, was first sung by students at Mahinda College. After it was sung by the choir from Musaeus College, Colombo at a public event it became hugely popular in Ceylon and was widely played on radio.
Document 3: Sri Lanka Matha: There are differing accounts as to the origin of the Sri Lanka Matha. The most widely held view is that Sri Lankan composer Ananda Samarakoon wrote the music and lyrics to the song inspired / influenced by Bengali poet Rabindranath Tagore. A minority suggest that Tagore wrote the anthem in full. Some have suggested that Tagore wrote the music whilst Samarakoon wrote the lyrics. Tagore being directly involved in the creation of the song has been denied by some historians like Indian Lipi Ghosh and Sri Lankan Sandagomi Coperahewa. Samarakoon had been a pupil of Tagore at Visva - Bharati University, Santiniketan. After returning to Ceylon Samarakoon taught music at Mahinda College, Galle. The song, which was then known as Namo Namo Mata, was first sung by students at Mahinda College. After it was sung by the choir from Musaeus College, Colombo at a public event it became hugely popular in Ceylon and was widely played on radio.
Document 4: S. Mahinda: S. Mahinda arrived in Ceylon (now Sri Lanka) at a young age and was ordained as a Buddhist monk. Having learned the Sinhala language, he became a poet, creating several literary works inspiring patriotism among the Sinhalese and urging them to fight for their freedom during Sri Lankan Independence movement.. He is now considered a national hero of Sri Lanka and one among the greatest of Sinhalese poetry figures of all time.
Document 5: Vaddukkoddai West: Sivan koviladi is a small town in Sri Lanka. It is located within Northern Province.This Small town famous to Cultural Dances & Hindu rituals.
Document 6: Gammaduwa: Gammaduwa is a village in Sri Lanka. It is located within Matale District, Central Province with a picturesque landscape and temperate climate. It is situated at an elevation of 931 m (3,054 ft) above sea level. The area is mildly densely populated with 532 people per km. The population of the village, according to the 2018 census, was 5,294. Matale is the nearest town and takes about 1:20 hour by local transportation.
Document 7: Maddegama: Maddegama is a village in the western province, Sri Lanka of Sri Lanka. It is located next to the Kirindiwela-Hanwella road.
Document 8: Wewala: Wewala is a village in Sri Lanka. It is located within Western Province. It is a tourist area, that suffers from some of the difficulties of that, with a notable Catholic population.
Document 9: Sare Jahan se Accha: ``Sare Jahan se Accha ''(Urdu: سارے جہاں سے اچھا ‎ ‎; Sāre Jahāṉ se Acchā), formally known as`` Tarānah - i - Hindi'' (Urdu: ترانۂ ہندی ‎ ‎; ``Anthem of the People of India ''), is an Urdu language patriotic song written for children by poet Muhammad Iqbal in the ghazal style of Urdu poetry. The poem was published in the weekly journal Ittehad on 16 August 1904. Publicly recited by Iqbal the following year at Government College, Lahore, British India (now in Pakistan) it quickly became an anthem of opposition to the British Raj. The song, an ode to Hindustan -- the land comprising present - day Bangladesh, India and Pakistan, was later published in 1924 in the Urdu book Bang - i - Dara.
Document 10: Wickramasinhapura: Wickramasinhapura is a sub town which is located within the Battaramulla main town limit in the Western Province of Sri Lanka. It is a suburb of Colombo attached to the Kaduwela Municipal Council. Wickramasinhapura is located in between Pelawatte and Thalawathugoda. Independent Television Network (ITN) is located in Wickramasinhapura.
Document 11: Sare Jahan se Accha: Sare Jahan se Accha (Urdu: سارے جہاں سے اچھا ‎; Sāre Jahāṉ se Acchā), formally known as Tarānah - i - Hindi (Urdu: ترانۂ ہندی ‎; Anthem of the People of India), is an Urdu language patriotic song written for children by poet Muhammad Iqbal in the ghazal style of Urdu poetry. The poem was published in the weekly journal Ittehad on 16 August 1904. Publicly recited by Iqbal the following year at Government College, Lahore, British India (now in Pakistan) it quickly became an anthem of opposition to the British Raj. The song, an ode to Hindustan -- the land comprising present - day Bangladesh, India and Pakistan, was later published in 1924 in the Urdu book Bang - i - Dara.
Document 12: Muttukumara Kavirajar: Muttukumara Kavirajar (1780–1851), the Ceylon / Sri Lankan Tamil poet, was one of the earliest Hindus to protest via published native literature the conversion attempts by the various Protestant missionaries within the Jaffna peninsula in Sri Lanka. He wrote the Jnanakkummi or "Kummi Song on Wisdom" and Yesumataparikaram or "Abolition of the Jesus Doctrine". These poem were initially published in 1850s by Arumuga Navalar
Document 13: Kosgama: Kosgama is a small town in Colombo District, Sri Lanka. Located 46 km from Colombo, on the A4 (Colombo - Avissawella) highway, it is also served by the Kelani Valley Railway Line. The town is administered by the Seethawaka Pradeshiya Sabha (Divisional Council).
Document 14: Abasingammedda: Abasingammedda is a village in central Sri Lanka. It is just a mile to the east of Kandy. It has a population of about 11,000.
Document 15: Jana Gana Mana: ``Jana Gana Mana ''(Hindi: (ɟənə gəɳə mənə)) is the national anthem of India. It was originally composed as Bharoto Bhagyo Bidhata in Bengali by poet Rabindranath Tagore. The first stanza of the song Bharoto Bhagyo Bidhata in its Hindi version was adopted by the Constituent Assembly of India as the National Anthem on 24 January 1950. A formal rendition of the national anthem takes approximately fifty - two seconds. A shortened version consisting of the first and last lines (and taking about 20 seconds to play) is also staged occasionally. It was first publicly sung on 27 December 1911 at the Calcutta (now, Kolkata) Session of the Indian National Congress.
ground_truth: Ananda Samarakoon
sub_queries: Maddegama >> country Answer: Sri Lanka
who has written the national anthem of Sri Lanka Answer: Ananda Samarakoon