added selection by distance query type