dql implemented, (partial and unstable)