Last week, I was working with SharePoint REST API. In some terms, I need to do some complicated query in a SP list. To do these queries, I prefer CAML. But to use CAML with SharePoint REST API, I have been banging my head against the wall for a couple of days as I was stacked with errors. At last, I got the solution that I wanted.