human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank by average, Place, Couple, Total, Number of dances, Average
###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?
gpt
SELECT AVG Rank by average FROM table WHERE Total > 245 AND Average = 27.1 AND Number of dances < 15