Add range queries