CREATE TABLE "population_of_staunton_and_nearby_cities" (
  "1910" real,
  "1920" real,
  "1930" real,
  "1940" real,
  "1950" real,
  "1960" real,
  "1970" real,
  "1980" real,
  "1990" real,
  "2000" real
);

Question: What is the smallest figure in 1960 when 1940 is 1,115 and 1990 is less than 928?
SQL: SELECT MIN("1960") FROM "population_of_staunton_and_nearby_cities" WHERE "1940"='1,115' AND "1990"<928;

Question: What is the maximum 1920 when 2000 is 5,030 and 1960 is greater than 4,228?
SQL: SELECT MAX("1920") FROM "population_of_staunton_and_nearby_cities" WHERE "2000"='5,030' AND "1960">'4,228';

Question: When 1960 is less than 4,228, 1920 is smaller than 106,021,568 and 1980 is larger than 949, what is the 1970 figure?
SQL: SELECT SUM("1970") FROM "population_of_staunton_and_nearby_cities" WHERE "1960"<'4,228' AND "1920"<'106,021,568' AND "1980">949;

Question: What is the minimum 1930 when 1990 is 6,883 and 1920 is more than 6,215?
SQL: SELECT MIN("1930") FROM "population_of_staunton_and_nearby_cities" WHERE "1990"='6,883' AND "1920">'6,215';

Question: What is the figure in 1940 when 1970 is larger than 11,070 and 1950 is smaller than 150,844,547?
SQL: SELECT AVG("1940") FROM "population_of_staunton_and_nearby_cities" WHERE "1970">'11,070' AND "1950"<'150,844,547';