def build_examples(to_predict):
    """
    Builds a list of dicts in input data format from a list of contexts and qas.
    """
    examples = []
    for row in to_predict:
        context = row['context']
        for qa in row['qas']:
            qa['answers'] = [{'text': ' ', 'answer_start': 0}]
            qa['is_impossible']: False
        example = {'context': context, 'qas': row['qas']}
        examples.append(example)
    return examples
