extract key word from query sentence