CREATE TABLE "copper_production_thousands_tonnes" (
  "country" text,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real
);

Question: What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200?
SQL: SELECT AVG("2002") FROM "copper_production_thousands_tonnes" WHERE "country"='peru' AND "2007">'1,200';

Question: What is the most reduced 2007 that has 2008 littler than 1,270, and 2003 bigger than 870?
SQL: SELECT MIN("2007") FROM "copper_production_thousands_tonnes" WHERE "2008"<'1,270' AND "2003">870;

Question: What is the most noteworthy 2006 that has 2008 littler than 5,330, and a Country of Peru, and 2009 littler than 1,260?
SQL: SELECT MAX("2006") FROM "copper_production_thousands_tonnes" WHERE "2008"<'5,330' AND "country"='peru' AND "2009"<'1,260';

Question: What is the least 2009 that has 2005 littler than 640, and 2011 of 425, and 2003 littler than 500?
SQL: SELECT MIN("2009") FROM "copper_production_thousands_tonnes" WHERE "2005"<640 AND "2011"=425 AND "2003"<500;

Question: What is the aggregate number of 2005 that has 2004 bigger than 1,040, and a Country of Chile, and 2006 littler than 5,560?
SQL: SELECT COUNT("2005") FROM "copper_production_thousands_tonnes" WHERE "2004">'1,040' AND "country"='chile' AND "2006"<'5,560';