Querying services related to an entity

Hi,

Is it possible to run a DQL that displays the incoming or outgoing services or entities related to a service?