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

Question: Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold?
SQL: SELECT COUNT("gold") FROM "titles_by_country" WHERE "rank"='6' AND "bronze">0;

Question: Total of 5 had what bronze?
SQL: SELECT "bronze" FROM "titles_by_country" WHERE "total"=5;