tranlating language query to machine query