fix syntx error, add api kquery.compile