CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);

Question: What is the average amount of gold medals for a country with more than 12 total medals?
SQL: SELECT AVG("gold") FROM "medals_table" WHERE "total">12;