SCHEMA:
CREATE TABLE table_name_67 (away_team VARCHAR, tie_no VARCHAR)
USER:
What team was the away team when the tie no is 40?

QUERY:
SELECT away_team FROM table_name_67 WHERE tie_no = "40"