from typing import Tuple
from typing import List


def parse_fields(ind: str) -> Tuple[str, List[str]]:
    """
    Parse a LHS or RHS, into a pair relation name, list of attributes
    """
    dataset, rest = ind.split('::')
    fields = rest.strip()[1:-1].split(', ')
    return dataset.strip(), fields