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

Question: The nation of denmark has what average total nad more than 0 gold?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "nation"='denmark' AND "gold">0;

Question: Switzerland has how many gold and less than 0 silver?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "nation"='switzerland' AND "silver"<0;