Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_name_27 (gain INTEGER, long VARCHAR, avg_g VARCHAR)
### Question:
How many gains have a long greater than 8, with avg/g of 124.9?
### Answer:
SELECT SUM(gain) FROM table_name_27 WHERE long > 8 AND avg_g = 124.9