DISH Interview Question

They asked me to type SQL Query