Querying the physical world