[
    {
        "data_source": "graphqa",
        "prompt": [
            {
                "role": "user",
                "content": "\nYou are an intelligent agent skilled in exploring Knowledge Graphs, with strong reasoning abilities. Your task is to perform question answering over a Knowledge Graph by gradually exploring it. You should start from the entities mentioned in the question and explore the graph step by step until you gather enough information to answer the question.\n\n### Your task follows these steps:\n\n1. **Understand the Question**\n\n2. **Analyze the Action History and Current Graph State**\n\n3. **Choose the Next Action** from the following options:\n   - \"Explore Entity\": Explore all triples directly connected to a given entity in the Knowledge Graph.     \n\n   - \"Choose Relation\": Select the triple(s) from the explored information that are most relevant to the question.  \n    Attention: **Only the triples included in the \"Objects\" field of the \"Choose Relation\" step will be retained in the future \"Current Graph State\".** So You must filter and retain the information useful for answering the question or for further exploration.   \n\n   - \"Finish\": Choose this action when you believe you have gathered sufficient information to answer the question. Your final answers should be included in the \"Objects\" field.\n\n4. **Select the Objects**: Depending on the action, provide the relevant entity or triple(s).  \n   ** Attention: All objects must come from the \"Entities in Question\" or the current \"Current Graph State\". Do not create new entities or relations. **\n   \n   - If the action is \"Explore Entity\":\n     \"Objects\": [\"EntityA\", \"EntityB\"]\n     \n   - If the action is \"Choose Relation\":\n     \"Objects\": [\"(Subject1, Relation1, Object1)\", \"(Subject2, Relation2, Object2)\"]\n\n   - If the action is \"Finish\":\n     \"Objects\": [\"Answer1\", \"Answer2\"]\n\n5. **Output your response in JSON format**, and include a **detailed thought process** explaining your reasoning at this step.\n\n---\n\n### Question:\nthe movies starred by [Nancy Marchand] were directed by who\n\n### Entities in Question:\nNancy Marchand\n\n### Current Graph State:\n(Sabrina, directed_by, Billy Wilder)\n(Sabrina, directed_by, Sydney Pollack)\n(Sabrina, starred_actors, Nancy Marchand)\n\n### Action History:\nstep 1, Explore Entity, Objects: ['Nancy Marchand']\nstep 2, Explore Entity, Objects: ['Sabrina']\nstep 3, Explore Entity, Objects: ['Nancy Marchand']\nstep 4, Choose Relation, Objects: ['(Sabrina, directed_by, Sydney Pollack)', '(Sabrina, directed_by, Billy Wilder)']\nstep 5, Explore Entity, Objects: ['Nancy Marchand']\nstep 6, Explore Entity, Objects: ['Nancy Marchand']\n\n---\n\n### Please respond using the following format:\n\n**Thought Process**:  \n<Provide a step-by-step analysis>\n\n**Action Decision**:\n```json\n{\n  \"Action\": \"<The type of action you are taking: 'Explore Entity' | 'Choose Relation' | 'Finish'>\",\n  \"Objects\": [<The entities or triples>]\n}\n```\n"
            }
        ],
        "ability": "graph",
        "reward_model": {
            "style": "rule",
            "ground_truth": {
                "Action": "Explore Entity",
                "Object": [
                    "Nancy Marchand"
                ]
            }
        },
        "extra_info": {
            "split": "none",
            "index": "none",
            "dataset": "metaqa_2hop"
        }
    },
    {
        "data_source": "graphqa",
        "prompt": [
            {
                "role": "user",
                "content": "\nYou are an intelligent agent skilled in exploring Knowledge Graphs, with strong reasoning abilities. Your task is to perform question answering over a Knowledge Graph by gradually exploring it. You should start from the entities mentioned in the question and explore the graph step by step until you gather enough information to answer the question.\n\n### Your task follows these steps:\n\n1. **Understand the Question**\n\n2. **Analyze the Action History and Current Graph State**\n\n3. **Choose the Next Action** from the following options:\n   - \"Explore Entity\": Explore all triples directly connected to a given entity in the Knowledge Graph.     \n\n   - \"Choose Relation\": Select the triple(s) from the explored information that are most relevant to the question.  \n    Attention: **Only the triples included in the \"Objects\" field of the \"Choose Relation\" step will be retained in the future \"Current Graph State\".** So You must filter and retain the information useful for answering the question or for further exploration.   \n\n   - \"Finish\": Choose this action when you believe you have gathered sufficient information to answer the question. Your final answers should be included in the \"Objects\" field.\n\n4. **Select the Objects**: Depending on the action, provide the relevant entity or triple(s).  \n   ** Attention: All objects must come from the \"Entities in Question\" or the current \"Current Graph State\". Do not create new entities or relations. **\n   \n   - If the action is \"Explore Entity\":\n     \"Objects\": [\"EntityA\", \"EntityB\"]\n     \n   - If the action is \"Choose Relation\":\n     \"Objects\": [\"(Subject1, Relation1, Object1)\", \"(Subject2, Relation2, Object2)\"]\n\n   - If the action is \"Finish\":\n     \"Objects\": [\"Answer1\", \"Answer2\"]\n\n5. **Output your response in JSON format**, and include a **detailed thought process** explaining your reasoning at this step.\n\n---\n\n### Question:\nthe movies that share writers with the movie [Wisconsin Death Trip] were in which genres\n\n### Entities in Question:\nWisconsin Death Trip\n\n### Current Graph State:\n(The King and Four Queens, has_genre, Comedy)\n(Wisconsin Death Trip, has_genre, Drama)\n(The King of Comedy, has_genre, Comedy)\n(Anna and the King of Siam, has_genre, Drama)\n(Wisconsin Death Trip, starred_actors, Ian Holm)\n(The Stupids, written_by, James Marshall)\n(The King and Four Queens, has_genre, Adventure)\n(Man on Wire, directed_by, James Marsh)\n(One Night with the King, has_genre, Drama)\n(The King, directed_by, James Marsh)\n(Wisconsin Death Trip, directed_by, James Marsh)\n(Man on Wire, has_tags, james marsh)\n(The King's Speech, has_genre, Drama)\n(Gladiator, starred_actors, James Marshall)\n(Indiana Jones and the Kingdom of the Crystal Skull, has_genre, Adventure)\n(Wisconsin Death Trip, release_year, 1999)\n(Shadow Dancer, directed_by, James Marsh)\n(Wisconsin Death Trip, written_by, James Marsh)\n(All the King's Men, has_genre, Drama)\n(Wisconsin Death Trip, written_by, Michael Lesy)\n(The King, written_by, James Marsh)\n(The King and Four Queens, has_genre, Mystery)\n\n### Action History:\nstep 1, Explore Entity, Objects: ['Wisconsin Death Trip']\nstep 2, Explore Entity, Objects: ['James Marsh', 'Michael Lesy']\nstep 3, Explore Entity, Objects: ['The King']\nstep 4, Explore Entity, Objects: ['Michael Lesy']\n\n---\n\n### Please respond using the following format:\n\n**Thought Process**:  \n<Provide a step-by-step analysis>\n\n**Action Decision**:\n```json\n{\n  \"Action\": \"<The type of action you are taking: 'Explore Entity' | 'Choose Relation' | 'Finish'>\",\n  \"Objects\": [<The entities or triples>]\n}\n```\n"
            }
        ],
        "ability": "graph",
        "reward_model": {
            "style": "rule",
            "ground_truth": {
                "Action": "Choose Relation",
                "Object": [
                    "(Wisconsin Death Trip, written_by, James Marsh)",
                    "(Wisconsin Death Trip, written_by, Michael Lesy)",
                    "(The King, written_by, James Marsh)"
                ]
            }
        },
        "extra_info": {
            "split": "none",
            "index": "none",
            "dataset": "metaqa_3hop"
        }
    },
    {
        "data_source": "graphqa",
        "prompt": [
            {
                "role": "user",
                "content": "\nYou are an intelligent agent skilled in exploring Knowledge Graphs, with strong reasoning abilities. Your task is to perform question answering over a Knowledge Graph by gradually exploring it. You should start from the entities mentioned in the question and explore the graph step by step until you gather enough information to answer the question.\n\n### Your task follows these steps:\n\n1. **Understand the Question**\n\n2. **Analyze the Action History and Current Graph State**\n\n3. **Choose the Next Action** from the following options:\n   - \"Explore Entity\": Explore all triples directly connected to a given entity in the Knowledge Graph.     \n\n   - \"Choose Relation\": Select the triple(s) from the explored information that are most relevant to the question.  \n    Attention: **Only the triples included in the \"Objects\" field of the \"Choose Relation\" step will be retained in the future \"Current Graph State\".** So You must filter and retain the information useful for answering the question or for further exploration.   \n\n   - \"Finish\": Choose this action when you believe you have gathered sufficient information to answer the question. Your final answers should be included in the \"Objects\" field.\n\n4. **Select the Objects**: Depending on the action, provide the relevant entity or triple(s).  \n   ** Attention: All objects must come from the \"Entities in Question\" or the current \"Current Graph State\". Do not create new entities or relations. **\n   \n   - If the action is \"Explore Entity\":\n     \"Objects\": [\"EntityA\", \"EntityB\"]\n     \n   - If the action is \"Choose Relation\":\n     \"Objects\": [\"(Subject1, Relation1, Object1)\", \"(Subject2, Relation2, Object2)\"]\n\n   - If the action is \"Finish\":\n     \"Objects\": [\"Answer1\", \"Answer2\"]\n\n5. **Output your response in JSON format**, and include a **detailed thought process** explaining your reasoning at this step.\n\n---\n\n### Question:\nwhat are the primary languages in the films directed by [Pasi Kemmo]\n\n### Entities in Question:\nPasi Kemmo\n\n### Current Graph State:\n(Ponterosa, directed_by, Pasi Kemmo)\n(Ponterosa, in_language, Finnish)\n\n### Action History:\nstep 1, Explore Entity, Objects: ['Pasi Kemmo']\nstep 2, Explore Entity, Objects: ['Ponterosa']\nstep 3, Explore Entity, Objects: ['Pasi Kemmo']\nstep 4, Choose Relation, Objects: ['(Ponterosa, directed_by, Pasi Kemmo)', '(Ponterosa, in_language, Finnish)']\nstep 5, Explore Entity, Objects: ['Pasi Kemmo']\nstep 6, Explore Entity, Objects: ['Pasi Kemmo']\nstep 7, Explore Entity, Objects: ['Pasi Kemmo']\n\n---\n\n### Please respond using the following format:\n\n**Thought Process**:  \n<Provide a step-by-step analysis>\n\n**Action Decision**:\n```json\n{\n  \"Action\": \"<The type of action you are taking: 'Explore Entity' | 'Choose Relation' | 'Finish'>\",\n  \"Objects\": [<The entities or triples>]\n}\n```\n"
            }
        ],
        "ability": "graph",
        "reward_model": {
            "style": "rule",
            "ground_truth": {
                "Action": "Finish",
                "Object": [
                    "Finnish"
                ]
            }
        },
        "extra_info": {
            "split": "none",
            "index": "none",
            "dataset": "metaqa_2hop"
        }
    }
]