UiPath interview question

SQL join query for a specific scenario.