Table: pga_championship_stats_2
Columns: player
country
year_won
total
to_par

Question: What is the average year Rich Beem had a to par less than 17?
SQL: SELECT AVG("year_won") FROM pga_championship_stats_2 WHERE "player" = 'rich beem' AND "to_par" < 17

Question: What is the earliest year won with a total bigger than 156?
SQL: SELECT MIN("year_won") FROM pga_championship_stats_2 WHERE "total" > 156

Question: What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7?
SQL: SELECT COUNT("total") FROM pga_championship_stats_2 WHERE "year_won" < 2002 AND "player" = 'bob tway' AND "to_par" > 7

Question: What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?
SQL: SELECT COUNT("to_par") FROM pga_championship_stats_2 WHERE "country" = 'united states' AND "year_won" > 1986 AND "player" = 'paul azinger' AND "total" > 145

Question: What is the earliest year won Paul Azinger had with a to par higher than 5?
SQL: SELECT MIN("year_won") FROM pga_championship_stats_2 WHERE "player" = 'paul azinger' AND "to_par" > 5

Question: What is the year won by Australia with a to par bigger than 16?
SQL: SELECT COUNT("year_won") FROM pga_championship_stats_2 WHERE "country" = 'australia' AND "to_par" > 16