creates Range query
When this is not null:
Adds a range query to ensure the field from is less than or equal to this and the field to is greater than or equal to this