Fidelity Investments interview question

Complete sql queries basics to advanced