qnli question: Charleston was the state capital of South Carolina until what year? sentence: It was more easily grown in the upland areas, and cotton quickly became South Carolina's major export commodity.