CREATE TABLE "historical_trend" (
  "year" real,
  "gross_domestic_product" real,
  "us_dollar_exchange" text,
  "inflation_index_2000_100" real,
  "per_capita_income_as_pct_of_usa" real
);

Question: How much Gross Domestic Product has a US Dollar Exchange of 12.19 algerian dinars, and an Inflation Index (2000=100) larger than 22?
SQL: SELECT SUM("gross_domestic_product") FROM "historical_trend" WHERE "us_dollar_exchange"='12.19 algerian dinars' AND "inflation_index_2000_100">22;

Question: Which Gross Domestic Product has an Inflation Index (2000=100) smaller than 9.3?
SQL: SELECT AVG("gross_domestic_product") FROM "historical_trend" WHERE "inflation_index_2000_100"<9.3;

Question: Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of 10.65, and a Year smaller than 1990?
SQL: SELECT MAX("inflation_index_2000_100") FROM "historical_trend" WHERE "per_capita_income_as_pct_of_usa"=10.65 AND "year"<1990;