human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Race, Dist (f), Course, Class, Prize (£K), Odds, Runners, Placing, Margin, Time, Jockey, Trainer
###Question: Which Dist (f) has a Race of irish derby?
gpt
SELECT Dist (f) FROM table WHERE Race = irish derby