CREATE TABLE table_40995 ("Position" FLOAT, "Team" TEXT, "Points" FLOAT, "Played" FLOAT, "Drawn" FLOAT, "Lost" FLOAT, "Against" FLOAT, "Difference" TEXT)

What is team ypiranga-sp's average position when they lost by less than 7?
SELECT AVG("Position") FROM table_40995 WHERE "Team" = 'ypiranga-sp' AND "Lost" < '7'
SELECT AVG("Position") FROM "table_40995" WHERE "Lost" < '7' AND "Team" = 'ypiranga-sp'