Question: When did the Habsburgs  sell the Sundgau territory to France?
Sentence: This situation prevailed until 1639, when most of Alsace was conquered by France so as to keep it out of the hands of the Spanish Habsburgs, who wanted a clear road to their valuable and rebellious possessions in the Spanish Netherlands.
Answer in sentence: no