You can start an INNER JOIN from the service registry. A service contributes one row for each matching deployment. DISTINCT lets you turn those matches into a list of services.
Show the service id and name once for each service that has at least one deployment. Compare your result with the registry entry for search.