Title: Rio Grande, Rio Grande do Sul
Content:  Rio Grande (lit. "Great River") is a municipality (município) and one of the oldest cities in the Brazilian state of Rio Grande do Sul. It was the state capital from 1835 to 1845. It is the most important port city in the state and has one of the most important maritime ports in Brazil. The city is named after a nearby channel which indirectly connects the Lagoa dos Patos, to the northeast, and Lagoa Mirim, to the west, with the Atlantic Ocean. The municipality is bordered by Santa Vitória do Palmar on the south and Pelotas on the north, which lies across the São Gonçalo Channel. The city built up its wealth over the course of its long history of strong industrial movements. Today it is still one of the richest cities in Rio Grande do Sul, mainly because of its port, the second busiest in Brazil, and its refinery, which processes Ipiranga petroleum. The city is served by Rio Grande Airport.
Title: Rio Grande do Sul
Content:  Rio Grande do Sul (,, ; "Great River of the South") is a state in the southern region of Brazil. It is the fifth-most-populous state and the ninth largest by area. Located in the southernmost part of the country, Rio Grande do Sul is bordered clockwise by Santa Catarina to the north and northeast, the Atlantic Ocean to the east, the Uruguayan departments of Rocha, Treinta y Tres, Cerro Largo, Rivera and Artigas to the south and southwest, and the Argentine provinces of Corrientes and Misiones to the west and northwest. The capital and largest city is Porto Alegre. The state has the highest life expectancy in Brazil, and the crime rate is relatively low compared to 
Title: Santa Cruz do Sul
Content:  Santa Cruz do Sul is a city in central Rio Grande do Sul, Brazil. The city has an estimate 131,000 inhabitants as of 2020 and sits about 150 km (93 miles) from the capital city of the state, Porto Alegre. The city enjoys a high standard of living and gross income per capita is 2.5 times greater than that of the state of Rio Grande do Sul as a whole.
Title: Eldorado do Sul
Content:  Eldorado do Sul is a municipality in the state of Rio Grande do Sul, Brazil. It is located in the metropolitan area of Porto Alegre, the state's capital and largest city, opposite the capital on the right bank of Guaíba River. Population: 41,902 (est. 2020).
Title: Largest cities in Rio Grande do Sul by population
Content:     Largest cities in the state of Rio Grande do Sul, Brazil by population, in descending order:
Title: Porto Alegre
Content:  Porto Alegre (,, Brazilian ; ) is the capital and largest city of the Brazilian state of Rio Grande do Sul. Its population of 1,488,252 inhabitants (2020) makes it the twelfth most populous city in the country and the center of Brazil's fifth largest metropolitan area, with 4,405,760 inhabitants (2010). The city is the southernmost capital city of a Brazilian state. Porto Alegre was founded in 1769 by Manuel Jorge Gomes de Sepúlveda, who used the pseudonym José Marcelino de Figueiredo to hide his identity; but the official date is 1772 with the act signed by immigrants from the Azores, Portugal. The city lies on the eastern bank of the Guaíba Lake, where five rivers converge to form the Lagoa dos Patos, a giant freshwater lagoon navigable by even the largest of ships. This five-river junction has become 
Title: Rio Grande do Sul
Content:  hegemony. In 1738 the territory (which included the present state of Santa Catarina) became the Capitania d'el Rei and was made a dependency of Rio de Janeiro. Territorial disputes between Spain and Portugal led to the occupation by the Spaniards of the town of Rio Grande (then the capital of the capitania) and neighboring districts from 1763 to 1776, when they reverted to the Portuguese. The capture of Rio Grande in 1763 caused the removal of the seat of government to Viamão at the head of Lagoa dos Patos; in 1773 Porto dos Cazaes, renamed Porto Alegre, became the capital. 
Title: Rio de Janeiro
Content:  Rio de Janeiro, or simply Rio, is the second-most populous city in Brazil and the sixth-most populous in the Americas. Rio de Janeiro is the capital of the state of Rio de Janeiro, Brazil's third-most populous state, after São Paulo and Minas Gerais. Part of the city has been designated as a World Heritage Site, named "Rio de Janeiro: Carioca Landscapes between the Mountain and the Sea", on 1 July 2012 as a Cultural Landscape. Founded in 1565 by the Portuguese, the city was initially the seat of the Captaincy of Rio de Janeiro, a domain of the Portuguese Empire. In 1763, it became the capital 
Title: Rosário do Sul
Content:  Rosário do Sul is a Brazilian municipality in the southwestern part of the state of Rio Grande do Sul. The population is 39,314 (2020 est.) in an area of 4,369.65 km². Its elevation is 151 m. It is located 385 km west of the state capital of Porto Alegre. Its main industry is agriculture. Many Argentine and Uruguayan tourists visits during the spring, with a large infrastructure to accommodate the visitors.
Title: Capitals of Brazil
Content: São Salvador da Bahia de Todos os Santos (1534–1763) ; Salvador (1572–1578/1581) – capital city of the State of Maranhão ; Salvador (1621–1640) – capital city of the State of Bahia under the Iberian Union ; São Sebastião do Rio de Janeiro (1572–1578/1581) – capital city of the State of Brazil ; Rio de Janeiro (1763–1815) – capital city of the Viceroyalty of Brazil ; Rio de Janeiro (1815–1822) – capital city of the United Kingdom of Portugal, Brazil and the Algarves ; Rio de Janeiro (1822–1889) – capital city of the Empire of Brazil ; Rio de Janeiro (1889–1960) – capital city of the Republic of the United States of Brazil ; Brasília (1960–present) – capital city of the Republic of the United States of Brazil, and since 1967 the Federative Republic of Brazil 

Question: What is the capital of Rio Grande do Sul?
Answer: Porto Alegre.