human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Tournament, Venue, Result, Event
###Question: What is earliest year that had a 50km event with a 2nd place result played in London, United Kingdom?
gpt
SELECT MIN Year FROM table WHERE Event = 50km AND Result = 2nd AND Venue = london, united kingdom