CREATE TABLE "anaprof_2008_relegation_table" (
  "place_posici_n" real,
  "team_equipo" text,
  "played_pj" real,
  "won_pg" real,
  "draw_pe" real,
  "lost_pp" real,
  "goals_scored_gf" real,
  "goals_conceded_gc" real,
  "dif" real,
  "points_pts" real
);

Question: What is the average number of points of the team with more than 17 pg won?
SQL: SELECT AVG("points_pts") FROM "anaprof_2008_relegation_table" WHERE "won_pg">17;

Question: What is the total number of pg won of the team with 64 goals conceded and more than 33 goals scored?
SQL: SELECT COUNT("won_pg") FROM "anaprof_2008_relegation_table" WHERE "goals_conceded_gc"=64 AND "goals_scored_gf">33;

Question: What is the sum of the pe draw of team plaza amador, who has less than 6 pg won?
SQL: SELECT SUM("draw_pe") FROM "anaprof_2008_relegation_table" WHERE "team_equipo"='plaza amador' AND "won_pg"<6;

Question: What is the sum of the places of the team with more than 49 points and less than 54 goals scored?
SQL: SELECT SUM("place_posici_n") FROM "anaprof_2008_relegation_table" WHERE "points_pts">49 AND "goals_scored_gf"<54;