The S-wave QQqq states in the adiabatic approximation