Adding Query command Scalar first draft