code: private static String initFindRelationshipQuery(EntityKeyMetadata ownerEntityKeyMetadata, AssociationKeyMetadata associationKeyMetadata) {
  		int offset = 0;
  		StringBuilder queryBuilder = new StringBuilder( "MATCH " );
  		queryBuilder.append( "(n:" );
  		queryBuilder.append( ENTITY );
  		queryBuilder.append( ":" );
  		appendLabel( ownerEntityKeyMetadata, queryBuilder );
  		appendProperties( ownerEntityKeyMetadata, queryBuilder );
  		queryBuilder.append( ") - " );
  		queryBuilder.append( "[r" );
  		queryBuilder.append( ":" );
  		appendRelationshipType( queryBuilder, associationKeyMetadata );
  		offset = ownerEntityKeyMetadata.getColumnNames().length;
  		if ( associationKeyMetadata.getRowKeyIndexColumnNames().length > 0 ) {
  			appendProperties( queryBuilder, associationKeyMetadata.getRowKeyIndexColumnNames(), offset );
  			queryBuilder.append( "] - (t" );
  		}
  		else {
  			queryBuilder.append( "] - (t" );
  			appendProperties( queryBuilder, associationKeyMetadata.getAssociatedEntityKeyMetadata().getEntityKeyMetadata().getColumnNames(), offset );
  		}
  		queryBuilder.append( ")" );
  		queryBuilder.append( " RETURN r" );
  		return queryBuilder.toString();
  	}
docs: /*
  Example with target node:
  
  MATCH (n:ENTITY:table {id: {0}}) -[r:role] - (t {id: {1}})
  RETURN r
  
  Example with relationship indexes:
  
  MATCH (n:ENTITY:table {id: {0}}) -[r:role {index: {1}}] - (t)
  RETURN r