Dunn Solutions Interview Question

write some sql query