create cppquery