add query params, first, last, count, and where