CREATE TABLE "davis_cup_and_federation_cup_venues" (
  "rank" real,
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text
);

Question: Which Rank has a Capacity smaller than 12,000, and a Country of united states?
SQL: SELECT SUM("rank") FROM "davis_cup_and_federation_cup_venues" WHERE "capacity"<'12,000' AND "country"='united states';

Question: Which City has a Country of spain, and a Stadium of palacio de deportes de santander?
SQL: SELECT "city" FROM "davis_cup_and_federation_cup_venues" WHERE "country"='spain' AND "stadium"='palacio de deportes de santander';

Question: Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade?
SQL: SELECT MIN("capacity") FROM "davis_cup_and_federation_cup_venues" WHERE "rank"<15 AND "city"='belgrade';

Question: Which Capacity is the lowest one that has a City of brisbane, and a Rank smaller than 1?
SQL: SELECT MIN("capacity") FROM "davis_cup_and_federation_cup_venues" WHERE "city"='brisbane' AND "rank"<1;