JPMorganChase interview question

Write a sql query (involved a self join)