Included postgres sqlquery range builder