def columnsBySubmission(submissions, columns):
    """ create map submissionName -> set(columnNames)
    """
    columnsBySubm = {}
    for submission in submissions.keys():
        template = submissions[submission]
        columnsBySubm[submission] = set(columns[template].keys())
    return columnsBySubm