CREATE TABLE "team_appearances" (
  "2001" text,
  "2004" text,
  "2009" text,
  "2013" text,
  "total" real
);

Question: What is the total of 2013 with 6th?
SQL: SELECT MAX("total") FROM "team_appearances" WHERE "2013"='6th';

Question: Which 2009 year has a total of 1, and 2004 year of 7th?
SQL: SELECT "2009" FROM "team_appearances" WHERE "total"=1 AND "2004"='7th';

Question: What is the year 2013 with a total of 5, and 5th in 2009?
SQL: SELECT "2013" FROM "team_appearances" WHERE "total"=5 AND "2009"='5th';

Question: What is the year 2001 with a total larger than 1, and 2009 with 8?
SQL: SELECT "2001" FROM "team_appearances" WHERE "total">1 AND "2009"='8';