figured out how to do ranges as (range 1 2) instead of [1 2] in the query grammar