You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is 7yr old girl, injury to nerve which passes superior- to piriformis & winds around greater sciatic notch. Most likely muscle affected - and explain in detail?
Structures passing through greater sciatic foramen.
Piriformis
Above Piriformis

Superior gluteal nerve and vessels

Below Piriformis

Inferior gluteal nerve and vessels
Sciatic nerve
Posterior cutaneous nerve of thigh
Nerve to quadratus femoris
Pudendal nerve
Internal pudendal vessels
Nerve to obturator internus

Superior gluteal nerve supplies gluteus medius and gluteus minimus.