Table: brazil_states
Columns: state
abbreviation
capital
area_km
population_2005
density_2005
gdp_total_2004
gdp_per_capita_us_2004
hdi_2005
literacy_2003
infant_mortality_2002
life_expectancy_2004

Question: Which Population (2005) has a Literacy (2003) of 90%, and an Infant Mortality (2002) of 18.3‰?
SQL: SELECT SUM("population_2005") FROM brazil_states WHERE "literacy_2003" = '90%' AND "infant_mortality_2002" = '18.3‰'

Question: Which Density (2005) has an Area (km²) of 340086.7, and a Population (2005) smaller than 5926300?
SQL: SELECT SUM("density_2005") FROM brazil_states WHERE "area_km" = 340086.7 AND "population_2005" < 5926300

Question: Which GDP per capita (US$) (2004) is the highest one that has an Area (km²) larger than 148825.6, and a State of roraima?
SQL: SELECT MAX("gdp_per_capita_us_2004") FROM brazil_states WHERE "area_km" > 148825.6 AND "state" = 'roraima'

Question: Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão?
SQL: SELECT "literacy_2003" FROM brazil_states WHERE "hdi_2005" < 0.718 AND "gdp_per_capita_us_2004" < 3877 AND "state" = 'maranhão'

Question: Which GDP per capita (US$) (2004) has a Literacy (2003) of 90%, and an Area (km²) of 1247689.5?
SQL: SELECT AVG("gdp_per_capita_us_2004") FROM brazil_states WHERE "literacy_2003" = '90%' AND "area_km" = 1247689.5