user: Question: Who was the home team when the away team scored 5.10 (40)?
Columns: ['Home team', 'Home team score', 'Away team', 'Away team score', 'Venue', 'Crowd', 'Date']
Types: ['text', 'text', 'text', 'text', 'text', 'real', 'text']
Sample row: ['Essendon', '13.11 (89)', 'Melbourne', '12.7 (79)', 'Windy Hill', 15000.0, '30 August 1930']
SQL:

assistant: SELECT "Home team" FROM "Table" WHERE "Away team score" = '5.10 (40)';