Table: us_gp_1971
Columns: driver
constructor
laps
time_retired
grid

Question: what average grid has laps larger than 52 and contains the driver of andrea de adamich?
SQL: SELECT AVG("grid") FROM us_gp_1971 WHERE "laps" > 52 AND "driver" = 'andrea de adamich'

Question: what's the highest lap that contains the driver of graham hill and a grid that is larger than 18?
SQL: SELECT MAX("laps") FROM us_gp_1971 WHERE "driver" = 'graham hill' AND "grid" > 18

Question: what's the average grid that has a time/retired piston and laps smaller than 15?
SQL: SELECT AVG("grid") FROM us_gp_1971 WHERE "time_retired" = 'piston' AND "laps" < 15