Question: Where does the ophthalmic nerve exit the skull?

context: The frontal branch passes through the orbit superiorly, then reenters the frontal bone briefly before exiting above the orbit through the superior orbital fissure and the supraorbital notch to provide sensory innervation for the skin of the forehead and scalp. The lacrimal nerve passes through the orbit superiorly to innervate the lacrimal gland. The nasociliary branch gives off several sensory branches to the orbit and then continues out through the anterior ethmoidal foramen, where it enters the nasal cavity and provides innervation for much of the anterior nasal mucosa. It also gives off a branch which exits through the nasal bones to form the external nasal nerve.
question: Where does the frontal branch of the ophthalmic nerve exit the skull?
short_answers: superior orbital fissure and supraorbital notch
context: The frontal branch passes through the orbit superiorly, then reenters the frontal bone briefly before exiting above the orbit through the superior orbital fissure and the supraorbital notch to provide sensory innervation for the skin of the forehead and scalp. The lacrimal nerve passes through the orbit superiorly to innervate the lacrimal gland. The nasociliary branch gives off several sensory branches to the orbit and then continues out through the anterior ethmoidal foramen, where it enters the nasal cavity and provides innervation for much of the anterior nasal mucosa. It also gives off a branch which exits through the nasal bones to form the external nasal nerve.
question: Where does the lacrimal nerve of the ophthalmic nerve exit the skull?
short_answers: passes through the orbit superiorly
context: The frontal branch passes through the orbit superiorly, then reenters the frontal bone briefly before exiting above the orbit through the superior orbital fissure and the supraorbital notch to provide sensory innervation for the skin of the forehead and scalp. The lacrimal nerve passes through the orbit superiorly to innervate the lacrimal gland. The nasociliary branch gives off several sensory branches to the orbit and then continues out through the anterior ethmoidal foramen, where it enters the nasal cavity and provides innervation for much of the anterior nasal mucosa. It also gives off a branch which exits through the nasal bones to form the external nasal nerve.
question: Where does the nasociliary branch of the ophthalmic nerve exit the skull?
short_answers: through the nasal bones
through the anterior ethmoidal foramen

Answer: The ophthalmic nerve has three branches, the lacrimal nerve, the frontal nerve, and the nasociliary nerve. Its frontal branch exits the skull at the superior orbital fissure and supraorbital notch. Its lacrimal nerve passes through the orbit superiorly to exit the skull. Its nasociliary branch exits the skull through the anterior ethmoidal foramen.