CREATE TABLE "states_of_brazil" (
  "state" text,
  "abbreviation" text,
  "capital" text,
  "area_km" real,
  "population_2005" real,
  "density_2005" real,
  "gdp_pct_total_2004" text,
  "gdp_per_capita_us_2004" real,
  "hdi_2005" real,
  "literacy_2003" text,
  "infant_mortality_2002" text,
  "life_expectancy_2004" real
);

Question: Which Population (2005) has a Literacy (2003) of 90%, and an Infant Mortality (2002) of 18.3‰?
SQL: SELECT SUM("population_2005") FROM "states_of_brazil" 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 "states_of_brazil" 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 "states_of_brazil" 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 "states_of_brazil" 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 "states_of_brazil" WHERE "literacy_2003"='90%' AND "area_km"=1247689.5;