Fidelity Investments interview question

Write query to retrieve certain values from SQL tables