Capability-based localization of distributed and heterogeneous queries. (12th December 2017)