rest queries