UiPath Interview Question

SQL join query for a specific scenario.