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

Question: The United States, with a total medal count of less than 171, and a bronze medal count less than 9, has how many gold medals?
SQL: SELECT MAX("gold") FROM "world_championships_total_medals" WHERE "total"<171 AND "nation"='united states' AND "bronze"<9;

Question: How many total gold medals did Australia receive?
SQL: SELECT COUNT("gold") FROM "world_championships_total_medals" WHERE "nation"='australia';

Question: How many total bronze medals did Canada receive?
SQL: SELECT MAX("bronze") FROM "world_championships_total_medals" WHERE "nation"='canada';

Question: How many total gold medals did India receive?
SQL: SELECT "gold" FROM "world_championships_total_medals" WHERE "nation"='india';