with a as (select id, dense_rank() over (partition by job order by score desc) as `rank1` from grade) , b as(select id, dense_rank() over (partition by job order by score) as `rank2` from grade) , c as(select id,count(*) over (partition by job) as num from grade) select g...