CREATE TABLE "winningest_coaches_by_wins" (
  "coach" text,
  "team" text,
  "wins" real,
  "loss" real,
  "pct" real,
  "pts" real
);

Question: What is the number of losses that coach John Kowalski has with a PTS smaller than 9?
SQL: SELECT COUNT("loss") FROM "winningest_coaches_by_wins" WHERE "coach"='john kowalski' AND "pts"<9;

Question: What is the average PCT when it has a PTS smaller than 9 a wins larger than 1?
SQL: SELECT AVG("pct") FROM "winningest_coaches_by_wins" WHERE "pts"<9 AND "wins">1;

Question: What is the sum of PTS when there is a PCT smaller than 0.1?
SQL: SELECT SUM("pts") FROM "winningest_coaches_by_wins" WHERE "pct"<0.1;

Question: What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19?
SQL: SELECT "coach" FROM "winningest_coaches_by_wins" WHERE "pct">0.1 AND "pts">9 AND "loss"=19;