A Distributed System for Answering Range Queries on Sensor Network Data