Anatomy

A 29 years old female presents to you with difficulty in walking and climbing stairs for the last 3 weeks. Physical examination reveals a waddling gait, with her trunk swaying from side to side towards the weight bearing limb. When she stands on her right leg, the pelvis on the left side falls; but when she stands on the left leg, the pelvis on the right side rises. Which of the following nerves is injured?