Juan BOSCH was elected president in 1962 but was deposed in a military coup in 1963 .