Sample resource and query