# SERVICE with one optional and a nested SERVICE. This query depends in the capabilities of the example1.org endpoint

PREFIX : <http://example.org/> 

SELECT ?s ?o1 ?o2
{
  SERVICE <http://localhost:18080/rdf4j-server/repositories/endpoint1> {
  ?s ?p ?o1 .
  OPTIONAL {
	SERVICE SILENT <http://invalid.endpoint.org/sparql> {
    ?s ?p2 ?o2 }
  }
}
}