user: ### NOW ANSWER:
Question: What is total number of the to par of player john mahaffey, who has a total less than 298?
Columns: ['Player', 'Country', 'Year(s) won', 'Total', 'To par', 'Finish']
Types: ['text', 'text', 'text', 'real', 'real', 'text']
Sample row: ['Payne Stewart', 'United States', '1989', 284.0, 4.0, 'T8']
SQL:

assistant: SELECT COUNT("To par") FROM "Table" WHERE "Player" = 'john mahaffey' AND "Total" < 298.0;