query passed to cud with and on each word