Table: open_championship_winners
Columns: year
country
course
location
total_score
to_par_a

Question: What's the year with a score of 305?
SQL: SELECT MIN("year") FROM open_championship_winners WHERE "total_score" = '305'

Question: What's the To par of St Andrews before the year 1888?
SQL: SELECT "to_par_a" FROM open_championship_winners WHERE "course" = 'st andrews' AND "year" < 1888

Question: What's the location that has a total of 149?
SQL: SELECT "location" FROM open_championship_winners WHERE "total_score" = '149'