Table: race_results_40
Columns: driver
team
laps
time_retired
grid
points

Question: What is the sum of a grid for driver Patrick Carpentier and less than 103 laps?
SQL: SELECT SUM("grid") FROM race_results_40 WHERE "driver" = 'patrick carpentier' AND "laps" < 103

Question: What team has 0 points and a contact tired/retired, and 71 laps?
SQL: SELECT "team" FROM race_results_40 WHERE "points" = 0 AND "time_retired" = 'contact' AND "laps" = 71

Question: What is the sum of lap for the Dale Coyne Racing Team, and 0 points?
SQL: SELECT SUM("laps") FROM race_results_40 WHERE "team" = 'dale coyne racing' AND "points" = 0

Question: What is the lowest number of laps with more than 16 points?
SQL: SELECT MIN("laps") FROM race_results_40 WHERE "points" > 16

Question: What team has 104 laps and a grid of 10?
SQL: SELECT "team" FROM race_results_40 WHERE "laps" = 104 AND "grid" = 10