CREATE TABLE "references" (
  "draw" real,
  "song" text,
  "performer" text,
  "points" real,
  "rank" text
);

Question: What was the sum of the points for the song "why did you have to go?"
SQL: SELECT SUM("points") FROM "references" WHERE "song"='\"why did you have to go?\"';

Question: What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5?
SQL: SELECT COUNT("points") FROM "references" WHERE "rank"='6th' AND "draw"<5;