CREATE TABLE "eqao_education_quality_and_accountabilit" (
  "subject" text,
  "grade" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real
);

Question: Which 2007 is the lowest one that has a 2004 of 78, and a 2006 smaller than 80?
SQL: SELECT MIN("2007") FROM "eqao_education_quality_and_accountabilit" WHERE "2004"=78 AND "2006"<80;

Question: Which 2005 is the lowest one that has a Grade smaller than 6, and a 2008 smaller than 80, and a 2006 larger than 72?
SQL: SELECT MIN("2005") FROM "eqao_education_quality_and_accountabilit" WHERE "grade"<6 AND "2008"<80 AND "2006">72;