CREATE TABLE "red_team" (
  "learner_driver" text,
  "partner" text,
  "driver_s_age" real,
  "years_on_learners" real,
  "licence_test_attempts" real,
  "passed_yet" text
);

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 "red_team" 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 "red_team" WHERE "licence_test_attempts">0 AND "driver_s_age">24;