text: 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_51 (runs VARCHAR, average VARCHAR, innings VARCHAR)
  ### Question:
  What is the total number of runs when the average was less than 31.25 and there were fewer than 24 innings?
  ### Answer:
  SELECT COUNT(runs) FROM table_name_51 WHERE average > 31.25 AND innings < 24