JPMorganChase interview question

SQL query, joining, indexing, etc