SELECT g1.id,g1.job,g1.score FROM grade g1
WHERE g1.score>(select avg(score) from grade g2 where g1.job=g2.job)
ORDER BY g1.id