Quering in massively distributed storage systems