def get_select_indexes(selects, attributes):
    """ Gets the indexes for all select statements.

    Args:
        selects: select values
        attributes: attributes in the tables

    Returns:
        indexes: look up indexes for select values
    """
    if selects[0] != '*':
        indexes = []
        split_select = [select.split('.') for select in selects]
        for select in split_select:
            indexes.append([select[0], attributes[select[0]].index(select[1])])
        return indexes
    else:
        return [selects]