CREATE TABLE "ground_history" (
  "name_of_ground" text,
  "location" text,
  "year" text,
  "fc_matches" text,
  "la_matches" text,
  "t20_matches" text,
  "total" text
);

Question: What year had a total of 2 and LA matches of 0?
SQL: SELECT "year" FROM "ground_history" WHERE "total"='2' AND "la_matches"='0';

Question: What year was the total 9?
SQL: SELECT "year" FROM "ground_history" WHERE "total"='9';