Add offset to query helper