Table: learner_stats
Columns: learner_driver
partner
driver_s_age
years_on_learners
licence_test_attempts
passed_yet

Question: What is the average number of years on learners of the drivers over the age of 24 with less than 0 attempts at the licence test?
SQL: SELECT AVG("years_on_learners") FROM learner_stats WHERE "driver_s_age" > 24 AND "licence_test_attempts" < 0

Question: Which driver is older than 24 and has more than 0 licence test attempts?
SQL: SELECT "learner_driver" FROM learner_stats WHERE "licence_test_attempts" > 0 AND "driver_s_age" > 24