def extract_answer(syllog, df):
    """ Extracts a response from a syllogistic response table.

    Parameters
    ----------
    syllog : str
        Syllogistic problem identifier (e.g., "AA1").

    df : pd.DataFrame
        Prediction table of a syllogistic model.

    Returns
    -------
    list(str)
        List of model predictions.

    """

    return df[df["Syllogism"] == syllog]["Prediction"].values[0].split(";")