Table: eurovision_1999
Columns: draw
artist
song
points
place

Question: how many times was the points 18?
SQL: SELECT COUNT("place") FROM eurovision_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 eurovision_1999 WHERE "place" < 7 AND "draw" > 2 AND "artist" = 'piece of cake'