Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?

### Inputs:
table_name: table, columns: ['Team', 'Wins', 'Losses', 'Ties', 'Win Pct.']

### Response:
SELECT AVG Ties FROM table WHERE Losses < 3 AND Wins < 5 AND Win Pct. = 0.800 AND Team = detroit lions