Table: sea_games_medals
Columns: country
gold
silver
bronze
total

Question: Which Total has a Bronze larger than 12, and a Silver larger than 772, and a Country of thailand?
SQL: SELECT SUM("total") FROM sea_games_medals WHERE "bronze" > 12 AND "silver" > 772 AND "country" = 'thailand'

Question: Which Gold has a Total of 2998, and a Bronze smaller than 1191?
SQL: SELECT AVG("gold") FROM sea_games_medals WHERE "total" = 2998 AND "bronze" < 1191

Question: Which Bronze has a Country of malaysia, and a Total smaller than 2644?
SQL: SELECT SUM("bronze") FROM sea_games_medals WHERE "country" = 'malaysia' AND "total" < 2644

Question: Which Silver has a Bronze smaller than 618, and a Country of laos?
SQL: SELECT "silver" FROM sea_games_medals WHERE "bronze" < 618 AND "country" = 'laos'