Table schema:
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?
SQL: SELECT AVG(total) FROM table_name_18 WHERE club = "halifax town" AND league < 30 AND fa_cup > 3