How many dances placed below 1 with a point total of 40?
CREATE TABLE "averages" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" real,
  "number_of_dances" real,
  "average" real
);
SELECT "number_of_dances" FROM "averages" WHERE "place">1 AND "total_points"=40;