def get_other_causes(effect, cause, relations):
    """
    For each effect-cause combination, return a list of the other prima facie causes.

    Parameters:
        effect: the variable representing the effect (key of the relations dict).
        cause: the cause to filter out.
        relations: the dict containing all prima facie causes for the effects.
    
    Returns:
        A list containing the prima facie causes for an effect excluding the given cause.
    """
    results = [(c, p, q) for (c, p, q) in relations[effect] if c is not cause]
    return(results)