def extract_ad_subtable(table, value_columns):
    """Extract subtable from the AD results table.
    The results are sorted in the way suitable for expert analysis.

    Parameters
    ----------
    table: Source table to query from.
    value_columns: Which columns should we preserve.

    Returns
    -------
    Extracted subtable.
    """
    columns = ['oid'] + value_columns
    subtable = table.loc[:, columns].dropna(thresh=2).sort_values(by=value_columns).reset_index(drop=True)
    sorted_index = subtable.iloc[:, 1:].isna().sum(axis=1).values.argsort(kind='stable')
    sorted_subtable = subtable.loc[sorted_index].reset_index(drop=True)
    return sorted_subtable