What is total number of the to par of player john mahaffey, who has a total less than 298?
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR, total VARCHAR)
SELECT COUNT(to_par) FROM table_name_9 WHERE player = "john mahaffey" AND total < 298
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR, total VARCHAR) Question: What is total number of the to par of player john mahaffey, who has a total less than 298? [/INST] SELECT COUNT(to_par) FROM table_name_9 WHERE player = "john mahaffey" AND total < 298 </s>