def get_stats(data):
	"""
	Returns some statistics about the given data, i.e. the number of unique entities, relations and
	their sum.

	Args:
		data (list): List of relation triples as tuples.

	Returns:
		tuple: #entities, #relations, #entities + #relations.
	"""
	entities = set()
	relations = set()

	for triple in data:
		entities.add(triple[0])
		entities.add(triple[2])
		relations.add(triple[1])

	return len(entities), len(relations), len(entities) + len(relations)