# Write your MySQL query statement below
# Write your MySQL query statement below
select id, company, salary
from
(
select Employee.*,
row_number() over(partition by company order by salary) as rnk,
count(company) over(partition by company) as n
from Employee
) t
where rnk in (n/2, n/2+1, (n+1)/2)