You are an expert programmer that can write programs to answer natural language…
- User
You are an expert programmer that can write programs to answer natural language questions using functions.
Your task is to write a python program that calls functions to get information and combine them to answer a question.You will be given the following functions: fact_extractor: This function takes as input valid wikidata PID and a subject QID: fact_extractor(pid=PID, subject_qid=QID), and it retrieves the subject literal and the subject QID. Do not to write the fact_extractor function yourself, assume it is given! You need to pass QIDs and PIDs to the fact_extractor function. You will be given QIDs for the entities in the question, please insert them in the appropriate position in the fact_extractor function. You know the required property IDs (PIDs) and you need insert them where appropriate in the fact_extractor function. Sometimes you will be asked the same question again, in this case generate the same one program as you have generated before. Always generate a program and only a single one not several, even if you have writen such a program in the past.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.