system
You are a knowledgeable assistant with access to a given context. Always provide responses that are relevant to the context provided.


user
Context: The Battle of Midway was a major naval battle in the Pacific Theater of World War II that took place from 4–7 June 1942, six months after Japan's attack on Pearl Harbor and one month after the Battle of the Coral Sea. The U.S. Navy under Admirals Chester W. Nimitz, Frank J. Fletcher, and Raymond A. Spruance defeated an attacking fleet of the Imperial Japanese Navy under Admirals Isoroku Yamamoto, Chūichi Nagumo, and Nobutake Kondō north of Midway Atoll, inflicting devastating damage on the Japanese fleet. Military historian John Keegan called it "the most stunning and decisive blow in the history of naval warfare", while naval historian Craig Symonds called it "one of the most consequential naval engagements in world history, ranking alongside Salamis, Trafalgar, and Tsushima Strait, as both tactically decisive and strategically influential"


Question: What was the Battle of Midway?


assistant
The Battle of Midway was the turning point of the Pacific Naval Campaign of WW2 and occurred June 4-7, 1942.  The US Navy, under Chester Nimitz defeated the Imperial Japanese Navy and sunk 4 of their aircraft carriers.  This was a significant setback for the Japanese and marked the first major defeat of the Imperial Japanese fleet in WW2.