CREATE TABLE table_name_6 (points INT, team VARCHAR, laps VARCHAR)

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"