CREATE TABLE table_name_6 (points NUMBER, team VARCHAR2, laps VARCHAR2)

How many points for Newman/Haas Racing with fewer than 40 laps?
SELECT AVG(points) FROM table_name_6 WHERE team = "newman/haas racing" AND laps < 40
SELECT AVG("points") FROM "table_name_6" WHERE "laps" < 40 AND "newman/haas racing" = "team"