CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);

Question: What is the sum of points for teams with 10 goals scored and under 3 wins?
SQL: SELECT SUM("points") FROM "torneo_apertura" WHERE "scored"=10 AND "wins"<3;

Question: What is the average number of losses for teams with under 16 points and under 3 draws?
SQL: SELECT AVG("losses") FROM "torneo_apertura" WHERE "points"<16 AND "draws"<3;