Connect qualify monad for nested query monad case.