What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0?
CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
SELECT MIN("wins") FROM "final_standing" WHERE "goals_against"<39 AND "losses">2 AND "ties">0;