Table: fa_cup_matches_40
Columns: tie_no
home_team
score
away_team
date

Question: Who was the home team when Manchester City was the away team?
SQL: SELECT "home_team" FROM fa_cup_matches_40 WHERE "away_team" = 'manchester city'

Question: What was the score when the home team was Stockport County?
SQL: SELECT "score" FROM fa_cup_matches_40 WHERE "home_team" = 'stockport county'

Question: What is the Tie Number when Barnsley was the away team?
SQL: SELECT "tie_no" FROM fa_cup_matches_40 WHERE "away_team" = 'barnsley'