What is the id and last name of the driver who participated in the most races after 2010?
select t1.driverid, t1.surname from drivers as t1 join results as t2 on t1.driverid = t2.driverid join races as t3 on t2.raceid = t3.raceid where t3.year > 2010 group by t1.driverid order by count ( * ) desc limit 1
What is the id of the driver who participated in the least races after 2010?
select t1.driverid from drivers as t1 join results as t2 on t1.driverid = t2.driverid join races as t3 on t2.raceid = t3.raceid where t3.year > 2010 group by t1.driverid order by count ( * ) limit 1
Hmm. Can you also give me his last name.
select t1.surname from drivers as t1 join results as t2 on t1.driverid = t2.driverid join races as t3 on t2.raceid = t3.raceid where t3.year > 2010 group by t1.driverid order by count ( * ) limit 1
Okay. How many races did he participate in?
select count ( * ) from drivers as t1 join results as t2 on t1.driverid = t2.driverid join races as t3 on t2.raceid = t3.raceid where t3.year > 2010 group by t1.driverid order by count ( * ) limit 1
How many races did Hamilton participate in after 2010?
select count ( * ) from drivers as t1 join results as t2 on t1.driverid = t2.driverid join races as t3 on t2.raceid = t3.raceid where t3.year > 2010 and t1.surname = 'Hamilton' group by t1.driverid