user: ### NOW ANSWER:
Question: What is team ypiranga-sp's average position when they lost by less than 7?
Columns: ['Position', 'Team', 'Points', 'Played', 'Drawn', 'Lost', 'Against', 'Difference']
Types: ['real', 'text', 'real', 'real', 'real', 'real', 'real', 'text']
Sample row: [1.0, 'Corinthians', 29.0, 17.0, 1.0, 2.0, 14.0, '39']
SQL:

assistant: SELECT AVG("Position") FROM "Table" WHERE "Team" = 'ypiranga-sp' AND "Lost" < 7.0;