human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Date, Visitor, Score, Home, Record
###Question: Which Date has a Score of 2–7, and a Record of 5–8–2?
gpt
SELECT Date FROM table WHERE Score = 2–7 AND Record = 5–8–2