Mmm... Not easy... But..
Summat like this maybe?
SELECT AVG(s.pr)
FROM table s, table r
WHERE
s.end != r.end
AND r.id >= 0
AND r.id <= 7
But that's just a guess, and obvious table r needs to have an id column or some other column that will allow you to control how many records come out of the table...
Really not sure whether that will work though, it's just off the top of my head...