def interval_to_col_name(interval):
    """
    Queries the proper name of the column for timespans given an interval.
    """
    interval = interval.lower()

    if interval == "yearly":
        return "year"
    elif interval == "monthly":
        return "month"
    elif interval == "weekly":
        return "week"
    elif interval == "daily":
        return "day"