Table: marco_barba_season_stats
Columns: season
wins
poles
podiums
position

Question: What is the total number of Podiums, when Position is "2nd", when Wins is less than 6, and when Poles is greater than 0?
SQL: SELECT COUNT("podiums") FROM marco_barba_season_stats WHERE "position" = '2nd' AND "wins" < 6 AND "poles" > 0

Question: What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1?
SQL: SELECT SUM("poles") FROM marco_barba_season_stats WHERE "season" < 2004 AND "podiums" < 1

Question: What is the average Poles, when Wins is 0, when Position is "nc", and when Season is before 2004?
SQL: SELECT AVG("poles") FROM marco_barba_season_stats WHERE "wins" = 0 AND "position" = 'nc' AND "season" < 2004

Question: What is the sum of Poles, when Season is before 2005, when Position is "2nd", and when Wins is less than 6?
SQL: SELECT SUM("poles") FROM marco_barba_season_stats WHERE "season" < 2005 AND "position" = '2nd' AND "wins" < 6