CREATE TABLE drivers (driverid VARCHAR2, surname VARCHAR2)
CREATE TABLE races (raceid VARCHAR2)
CREATE TABLE results (driverid VARCHAR2, raceid VARCHAR2)

Find the id and surname of the driver who participated the most number of races?
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 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1
SELECT "T1"."driverid", "T1"."surname" FROM "drivers" "T1" JOIN "results" "T2" ON "T1"."driverid" = "T2"."driverid" JOIN "races" "T3" ON "T2"."raceid" = "T3"."raceid" GROUP BY "T1"."driverid" ORDER BY COUNT(*) DESC FETCH FIRST 1 ROWS ONLY