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

Question: What is the total that wehn Lithuania is the nation, and Silver is more than 0?
SQL: SELECT MIN("total") FROM "medals_table" WHERE "nation"='lithuania' AND "silver">0;

Question: What is the rank when bronze was more than 0, gold more than 1, Nation is japan, and silver less than 0?
SQL: SELECT AVG("rank") FROM "medals_table" WHERE "bronze">0 AND "gold">1 AND "nation"='japan' AND "silver"<0;

Question: What is the rank when the total is less than 1?
SQL: SELECT MIN("rank") FROM "medals_table" WHERE "total"<1;

Question: What is the total when silver is more than 0, and bronze less than 0?
SQL: SELECT MAX("total") FROM "medals_table" WHERE "silver">0 AND "bronze"<0;

Question: What is the rank that when Serbia is the nation, and gold is larger than 0?
SQL: SELECT SUM("rank") FROM "medals_table" WHERE "nation"='serbia' AND "gold">0;