Definition: Given scientific fact as input, generate the question from this fact such that it can be answered from the input.
Input: When magma reaches the surface through cracks in the earth's crust, a volcanic eruption occurs.
Output:
When magma reaches the surface through cracks in the earth's crust, what occurs?