Tech Mahindra interview question

difference between nested query and inner query