Hello, how many drivers are there in total?
select count ( * ) from drivers
Perfect, how many drivers had 11 pit stops and participated in more than 5 total races?
select count ( * ) from ( select t1.surname, t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count ( * ) = 11 intersect select t1.surname, t1.driverid from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count ( * ) > 5 )
Okay, which driver had the most amount of pit stops?
select t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid order by count ( * ) desc limit 1