CREATE TABLE "semi_final_1_7_february_1999" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);

Question: how many times was the points 18?
SQL: SELECT COUNT("place") FROM "semi_final_1_7_february_1999" WHERE "points"=18;

Question: what is the number of points when the place is less than 7, the draw is more than 2 and the artist is piece of cake?
SQL: SELECT COUNT("points") FROM "semi_final_1_7_february_1999" WHERE "place"<7 AND "draw">2 AND "artist"='piece of cake';