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

Question: What is the average number of points for a song ranked 2nd with a draw greater than 3?
SQL: SELECT AVG("points") FROM "references" WHERE "rank"='2nd' AND "draw">3;

Question: What is the total number of draws for songs performed by Miranda with fewer than 48 points?
SQL: SELECT COUNT("draw") FROM "references" WHERE "performer"='miranda' AND "points"<48;