Table: nascar_2007_season
Columns: position
driver
wins
poles
top_5_s
points

Question: How many points are associated with over 1 top 5, 1 win, over 0 poles, and andrew ranger as the driver?
SQL: SELECT MAX("points") FROM nascar_2007_season WHERE "top_5_s" > 1 AND "wins" = 1 AND "poles" > 0 AND "driver" = 'andrew ranger'

Question: How many points are associated with 0 poles?
SQL: SELECT COUNT("points") FROM nascar_2007_season WHERE "poles" < 0

Question: How many wins are associated with a position of under 6, over 8 top 5s, and 1793 points?
SQL: SELECT SUM("wins") FROM nascar_2007_season WHERE "position" < 6 AND "top_5_s" = 8 AND "points" = 1793