import json


def deduplicate_results(results):
    """
    Removes duplicates from all SPARQL queries to various Virtuoso instances
    Args:
        results: List of results which may contain duplicates

    Returns: Deduplicated list of results

    """
    deduped = set()

    for result in results:
        deduped.add(json.dumps(result, sort_keys=True))

    return [json.loads(result) for result in deduped]