Task: Text to Code
Input (English): What are the names and years of all races that had a driver with the last name Lewis?
Output (English): SELECT T2.name ,  T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = "Lewis"