Expand SPARQL queries to perform inference on multiple endpoints.