To to that, you will have to use Dgraph’s built-in comparator functions,
Depending on your use case, something like @filter(gt(Distance, 1000)) will be required.
Note that to be able to run comparator functions on Distance, it will have to be indexed.