What is the Tie Number when Barnsley was the away team?
CREATE TABLE table_name_40 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_40 WHERE away_team = "barnsley"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (tie_no VARCHAR, away_team VARCHAR) Question: What is the Tie Number when Barnsley was the away team? [/INST] SELECT tie_no FROM table_name_40 WHERE away_team = "barnsley" </s>