human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Competition, Venue, Position, Event
###Question: Which Competition has an Event of 50km, a Year earlier than 2010 and a Position of 3rd?
gpt
SELECT Competition FROM table WHERE Event = 50km AND Year < 2010 AND Position = 3rd