def get_terms_for_artist(conn,artistid):
    """
    Returns the list of terms for a given artist ID
    """
    q = "SELECT term FROM artist_term WHERE artist_id='"+artistid+"'"
    res = conn.execute(q)
    return map(lambda x: x[0],res.fetchall())