qualcosa del tipo

select avg(campo) from tabella where campodata between data1 AND data2

dove data2=data1+10min