Table: dwts_season5_scores
Columns: rank_by_average
place
couple
total
number_of_dances
average

Question: What is the smallest place number when the total is 16 and average is less than 16?
SQL: SELECT MIN("place") FROM dwts_season5_scores WHERE "total" = 16 AND "average" < 16

Question: What is the average when the rank by average is more than 12?
SQL: SELECT SUM("average") FROM dwts_season5_scores WHERE "rank_by_average" > 12

Question: What is the average place for a couple with the rank by average of 9 and total smaller than 83?
SQL: SELECT AVG("place") FROM dwts_season5_scores WHERE "rank_by_average" = 9 AND "total" < 83

Question: What is the rank by average where the total was larger than 245 and the average was 27.1 with fewer than 15 dances?
SQL: SELECT AVG("rank_by_average") FROM dwts_season5_scores WHERE "total" > 245 AND "average" = 27.1 AND "number_of_dances" < 15