First raw version of query using REST.