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_18 (total INTEGER, fa_cup VARCHAR, club VARCHAR, league VARCHAR)
  ### Question:
  What is the average total of halifax town club, which has a league less than 30 and more than 3 FA cups?
  ### Answer:
  SELECT AVG(total) FROM table_name_18 WHERE club = "halifax town" AND league < 30 AND fa_cup > 3