RBC interview question

Write a code to filter information using SQL