('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Tommy] and his son [Reynaldo] went to the cinema together. [David] and his brother, [Craig], went to the movies with their father, [George]. Afterwards, [David]'s brother [Larry] met them for dinner at a restaurant. [Martha] thought it would be nice to bake a cake for her daughter, [Brandi]. [Martha]'s father, [Tommy], however, snuck a piece of the cake before anyone could have some! [Brandi] was excited because today she was going to the zoo with her uncle [George]. Larry is Reynaldo's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Dannielle] went to the store with her sister [Fay]. [Oscar]'s aunt [Judy] took him to the store to do some last minute party shopping. [William]'s daughter [Beverly] was playing on the swings in the park. [Dannielle], his other daughter, was napping in the stroller. [Janice] baked chocolate muffins for her son [Oscar] and daughter [Dannielle]. [Judy] went to her brother [Kenneth]'s birthday party. [Oscar] took his sister [Beverly] too the zoo but his sister [Dannielle] could n't come because she had to work. Kenneth is Fay's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Joel] and his mother, [Jamie], went to a pet store. [Joel] wanted a parrot, but his mom got him a smaller bird instead. [Roger] and his mother, [Sarah], went to a pet store. [Roger] wanted a parrot, but his mom got him a smaller bird instead. [Roger] and his sister, [Jamie] love it when their grandmother visits because she spoils them. She is coming this week to watch them while their parents are out of town. [Oscar] and his brother, [Joel] run a turtle farm. [Oscar] took his son [Daniel] out for pizza. [Nola] and her brother [Oscar] went to see a movie. [Nola] and [Oscar] left that evening to go bowling. [Daniel] was so excited to surprise his son, [Joel], with the tickets to the playoffs. Sarah is Joel's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Julie went to her brother Charles's birthday party. Julie enjoys playing cards with her brother. His name is Gregory. Sarah and her son Gregory went out to lunch together yesterday. Sarah was eager to spend time with her son, Charles. Joel took his son Daniel out for pizza. Gregory asked his brother, Roger, if he wanted to go to the beach. Roger said he could n't go because he had to take Jamie, his sister, to see the dentist. Jamie went to the beach with her husband Daniel. Joel is Gregory's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Julie] and her sister, [Jamie], frequently bicker. However, they always make up quickly. [Nola] invited her brothers [Oscar] and [Richard] to her high school graduation. [Richard] bought to dress for his father [Daniel] [Jamie] and her son [Joel] went to pick up his brother [Richard] from school. [Julie] loves her son [Robert] very much. He loves her, too. [Richard] played chess with his brother [Oscar]. Robert is Daniel's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Joy]'s husband, [Harry], took his daughter, [Isabel], to swimming class. [Scott] and his brother [Bruce] went to the park to play basketball. [Machelle] went to the store with her sister [Kerrie] [Machelle] and her brother [Victor] went to see a movie. [Victor]'s father, [Harry], went bowling with his sister, [Melissa]. [Melissa]'s husband, [Brian], went skiing with his son, [Scott]. [Kerrie], who is the sister of [Isabel], is a lovely girl. Bruce is Joy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jason] went to lunch with his wife [Ruth]. [Jason] took his daughter [Stephanie] to the park that afternoon to play. [Ruth] was wondering where her daughter [Gloria] was, so she texted her. [Gloria] replied that she was with her brother [Jeff] at the mall. [Stephanie] and her aunt, [Cristina], went to the deli. They got a half a pound of corned beef, and two pounds of salami. Cristina is Jeff's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Gordon] got his son, [Larry], a car for his birthday. [Ethel] loves her son [Gordon] very much. He loves her, too. [Leila] is having a great day at the playground with her mother [Ethel] and [Ethel]'s sister [Judy]. [Martin] loved going to the store with his mom [Ethel]. She always bought him snacks [Larry] was so excited to surprise his son, [Gordon], with the tickets to the playoffs. [Leila] and her brother [Gordon] enlisted in the army [Leila] and her brother [Henry] enlisted in the army [Leila] and her brother [Henry] went to see a movie. Judy is Martin's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Carmelita] had picked her daughter [Elizabeth] out the cutest new dress to wear on her birthday. [Martha] and [Reynaldo] are siblings who are enjoying lunch together. [Spencer] took his favorite son [Tommy] to a baseball game where he caught a foul ball as a souvenir. [Michael] took his grandmother [Carmelita] out to lunch. [Michael] 'uncle, [Reynaldo], always took him fishing on summer weekends. [Michael] and his son [Spencer] went to look at cars. [Michael] ended up buying the Mustang. [Martha] went to her son [Michael]'s House Elizabeth is Tommy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Ruth] and her daughter [Stephanie] went to see a movie yesterday and then got ice cream afterwards. [Stephanie] went shoe shopping with her sister [Gloria]. [Stephanie] cooked dinner for her mother [Ruth] and her brothers [Jeff] and [Jeremy]. Jeremy is Gloria's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Cristina] was happy to babysit her niece, [Margaret]. [Margaret] was a great child. [Margaret] went to dinner with her daughter [Rosa]. They then went to the park afterwards. [Annie] thought it would be nice to have a family dinner, so she asked her sister [Melissa] and her mother [Rosa] to go get Sushi together. [Melissa] thought it would be best to not invite her sister [Lisa] to the dinner. Cristina is Lisa's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Melissa] is [Donald]'s what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Gene] played chess with his brother [Clyde]. [Helen] always goes to the park with her son [Gene] on Saturdays. [Leo] got his son, [Johnny], a car for his birthday. [Helen] and her son [Leo] traveled around the world [Norman] took his nephew [Gene] out to get some ice cream to celebrate his baseball victory. [Johnny] was so proud of his son, [Gene]. he received a great scholarship to college. Norman is Clyde's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Valerie] went to visit her daughter [Elizabeth] the other day. [Valerie]'s son [Darryl] was too busy at work to go along. [Brittney] was excited because she was meeting her father, [Kenneth], for lunch. [Darryl] asked his brother, [Robert], if he wanted to go to the beach. [Robert] said he could n't go because he had to take [Brittney], his sister, to see the dentist. [Kenneth] took his daughter [Brittney] to the park that afternoon to play. [Morgan] 'daughter [Danielle] visited for Christmas. [Danielle]'s brother [Donald] was out of town for the holidays. [Valerie] had picked her daughter [Elizabeth] out the cutest new dress to wear on her birthday. [Morgan] was happy to babysit her niece, [Brittney]. [Brittney] was a great child. Donald is Valerie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Martha] and her daughter [Brandi] went to see a movie yesterday and then got ice cream afterwards. [Peter]'s aunt [Elizabeth] likes to drink a little bit too much wine at family gatherings. [Spencer] and his wife [Martha] went to see a movie. [Martha]'s daughter, [Brandi], came with them. [Martha] and her husband [Spencer] took their son [Mark] to the wedding. [Mark]'s brother [Peter] hates weddings and did n't go. Elizabeth is Spencer's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Sarah] and her daughter [Mary] went to see a movie yesterday and then got ice cream afterwards. [Oscar] took his favorite son [Daniel] to a baseball game where he caught a foul ball as a souvenir. [Mary] was always arguing with her mother's husband [Carlos]. [Mary] went shoe shopping with her sister [Julie]. [Julie] went to the store with her sister [Mary] [Jamie]'s mother [Sarah] was teaching her how to teach when [Jamie]'s husband [Daniel] arrived home. [Carlos] took his son [Gregory] out for ice cream. Oscar is Gregory's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Kenneth] and his son [Kevin] went to look at cars. [Kenneth] ended up buying the Mustang. [Linda] and her brother [Scott] took their mother [Melissa] to see her sister [Morgan]. [Valerie] always goes to the park with her son [Robert] on Saturdays. [Morgan] and [Kenneth] left that evening to go bowling. [John] played chess with his brother [Scott]. [Kevin] loved his granddaughter, [Elizabeth]. [Robert]'s brother, [Darryl], went to get ice cream with his sister, [Elizabeth]. John is Valerie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Maxine] called her son [Philip] and his sister [Diane] was at his house visiting so he said he would call her back later. [Rufus] likes to visit his sister. Her name is [Joyce]. [Rufus] was disappointed that his father, [Reynaldo], would n't be at the play to see him perform. [Joyce] went to the store with her sister [Diane] [Judy] has not seen her brother, [Reynaldo] in over a year. She wants to take her son, [David] to meet him. David is Maxine's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Nichole] just had a baby and presented the baby proudly to the new maternal grandmother, [Evelyn]. [Christian] is very much in love with his wife. Her name is [Evelyn]. [Christian] was so excited to surprise his son, [Darren], with the tickets to the playoffs. [Christian] took his sister, [Cristina], to a baseball game. [Darren] and his son [Christian] went to look at cars. [Darren] ended up buying the Mustang. Cristina is Nichole's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Stephen] and his wife [Rosa] baked a cake for [Lisa], his daughter. [Rosa] and her siblings [Cristina] and [Christian] went on a business trip to Asia [Margaret] went to the store with her sister [Lisa] Margaret is Cristina's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Alice] watched a golf tournament with her aunt [Michele]. Michele is Dannielle's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Cornelius] picked up his son [Frank] from baseball practice and his daughter [Dorothy] from ballet practice. [Dorothy] went to her brother [Richard]'s birthday party [Rachel]'s father, [Frank], felt a wave of sadness when [Rachel] left for college. Richard is Rachel's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Timothy] was looking forward to dinner with his granddaughter, [Alice]. [Joseph] took his son [Freddie] to the junkyard. [Joseph]'s son [Gerald] did n't go because he thought is was a gross place. [Joseph] dropped his son [Lawrence] off at a friend's house for the night, as he was taking his wife [Judy] out to dinner. [Joseph] took his son [Lawrence] out for ice cream. [Alice] and [Freddie] are siblings who are enjoying lunch together. [Judy] took her son [Gerald] to the store. When she got home, she made a sandwich for her husband [Joseph]. Timothy is Judy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Dustin] took his sister [Carolyn] out to lunch after learning that she got accepted into her first choice for university. [Roger] and his brother [Daniel] always played pranks on each other [Daniel] was so proud of his son, [Oscar]. he received a great scholarship to college. [Jamie] and her son, [Joel], went to the park to fly a kite. They had fun doing it all day. [Julie] was afraid of heights just like her daughters, [Carolyn] and [Lisa]. However, [Lisa]'s father, [Roger], loved heights and even went sky diving a few times. [Oscar] went to his brother [Joel]'s Birthday party Dustin is Jamie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Leandro] went to the game with his sister [Sara]. [George] went to the game with his sister [Martha]. [Philip] got his son, [Reynaldo], a car for his birthday. [Chuck] wanted his son [Mickey] and Daughter [Sara] to exercise more, so he signed them up for swimming lessons. He knew just the person to teach them, as his brother [Reynaldo] was a swim instructor. [Philip] went to the bakery with his uncle [George] to pick up some bread for lunch. Martha is Leandro's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Melissa] went to the mall, because she wanted to look for a present for her daughter, [Linda]. [Brian] took his son [Scott] out for ice cream. [Brian] wanted to take his daughter, [Barbara], and his son, [Scott], on a camping trip. [Barbara] wondered why her sister, [Linda], could n't come. [Linda] enjoys playing cards with her brother. His name is [John]. [John] took his son [Brian] out to play gold later that night. [Brian]'s brother [Kenneth] would not let him play the xbox game. [Melissa] made a pizza for her son [John]. [John]'s sister [Linda] tried a piece and liked it. Kenneth is Scott's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Christian] drove his daughter [Pennie] to soccer practice. [Christian] took his sister [Rosa] out to lunch after learning that she got accepted into her first choice for university. [Seth] has a daughter called [Ruth]. [Rosa], who is the sister of [Ruth], is a lovely girl. [Darren] likes to visit his sister. Her name is [Pennie]. Darren is Seth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jason] has a few children, [Seth], Bradley and Claire [Seth] sat with his daughter, [Ruth], for ice cream at a local shop. [Laura] had picked her daughter [Ruth] out the cutest new dress to wear on her birthday. [Jonathan] was thrilled his brother, [Jason], was able to make it to the party. [Evelyn] planned a trip to the zoo for her brother, [Jonathan]. They had a great time. Evelyn is Laura's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Cristina] and her sister, [Ruth], frequently bicker. However, they always make up quickly. [Stephanie] and her siblings [Gloria] and [Jeremy] went on a business trip to Asia [Ruth]'s son [Jeff] is turning nine today, so she is throwing him a party. [Jeff] likes to visit his sister. Her name is [Stephanie]. Cristina is Gloria's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Sharon] watched a golf tournament with her aunt [Dorothy]. [April] asked her daughter, [Sharon], if she would like to go to a movie with her on Saturday night. [William] went to the car show with his sister [April] and his mother [Nicole]. Dorothy is Nicole's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Mary] and her son [Floyd] traveled around the world. [Floyd] took his brother [Anthony] to the baseball game with [Ashley]'s father [Charles]. [Charles] took his son [Anthony] to go get nachos during the game. [Julie] asked her brother [Charles] if he could babysit. When he said no, she asked her sister [Mary] instead. [Jamie] went to dinner with her daughter [Sarah]. They then went to the park afterwards. [Sarah] took her son [Charles] to school because he missed the bus. Jamie is Ashley's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Joseph] loves to fish with his brother, [Kenneth] and his daughter [Alice]. [Martin] invited his brothers [Gordon] and [Henry] to play baskteball on Saturday at 4:00 p.m. [Freddie] and his sister [Alice] have been best friends ever since childhood. [Larry] played golf with his father [Timothy] and his son [Gordon]. [Judy] and her father [Timothy] were attempting to coax her son [Freddie] from out of a tall tree. Kenneth is Henry's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Charles] has a few children, [Frank], Bradley and Claire [William] and his daughter [Christine] were dancing. [William]'s mom, [Nicole], asked if she could have the next dance, so [Christine] stepped aside at the end of the song. [Christine] went over to her uncle [Frank]'s house for dinner. Charles is Nicole's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Oliver] bought a steak dinner for himself and his brother [Davis]. [Davis] and his brother [Oliver] went shopping at an electronics store. [Davis] found the perfect pair of headphones for his brother [Rick]'s birthday. [Kent] took his son [Davis] out for ice cream. [Oliver] bought a steak dinner for himself and his brother [Brian]. [Brian]'s brother, [Rick], recently made it into town. Kent is Oliver's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Gordon] took his son [Larry] out for pizza. [Gordon] and his uncle [Joseph] went to the movies Sunday after church and got popcorn and candy while they were there. [Michele] and her brother [Joseph] enlisted in the army [Dannielle] went over to her uncle [Larry]'s house for dinner. [William] and his brother [Joseph] played harmonicas together. [William]'s daughter [Dannielle] loved it. [Joseph] took his nephew [Martin] out to get some ice cream to celebrate his baseball victory. [Dana] and her daughter, [Ethel], were making dinner. [Ethel]'s son, [Martin], helped with the salad. Michele is Dana's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Sheila] was excited because she was meeting her father, [Jonathan], for lunch. [Diana] was excited because today she was going to the zoo with her uncle [Stephen]. [William] took his sister, [Sheila], to a baseball game. [Jonathan] took his daughter [Traci] to the park. [Diana], Emilie´s sister went with them. Stephen is William's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Freddie bought gifts for her lovely sister, Alice. Charlie has a few children, Kenneth, Bradley and Claire Freddie got his son, Joseph, a car for his birthday. Joseph took his nephew Gino out to get some ice cream to celebrate his baseball victory. Lawrence was so happy for his brother, Gerald, getting a promotion. Judy baked a cake for her son Lawrence. For her daughter, Alice, Judy made some fudge brownies. Jami took her brother Gino and other brother Charlie with her to eat pasta at a pasta buffet. Gerald is Kenneth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Norman] and [Florence] werent able to have children naturally, so they adopted [Janet] from sweden. [Janet] and her brother [Chris] enlisted in the army [Janet] and her brother [Chris] went to see a movie. [Dorothy] asked her daughter, [Florence], if she would like to go to a movie with her on Saturday night. [Marilyn] went shoe shopping with her sister [Janet]. Marilyn is Dorothy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Dale]'s brother, [Brian], recently made it into town. [Frances] went to the baseball game with her uncle [Kenneth]. [Elizabeth] wanted to visit an art museum, so she asked her father, [Kenneth] to take her. [Elizabeth] bought her mother, [Valerie], a puppy for her birthday. [Valerie] went to her brother [Dale]'s birthday party [Frances] went to the store with her sister [Danielle] [Brian]'s mother [Debra] had to help him with his homework because he was having a test soon. [Joy] went shoe shopping with her sister [Melissa]. [Dale] likes to visit his sister. Her name is [Joy]. [Dale] bought a new dress for his daughter [Danielle]. Debra is Melissa's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Maxine] and her husband [Reynaldo] danced together at the party. [Elizabeth] and her husband [Chuck] went to pick up their daughter [Sara] from school. Her brother [Mickey] had to stay late for science olympiad. [Maxine] enjoyed a homemade dinner with her son [Rufus] [Diane] and her uncle [Chuck] went to the pet shop. [Diane] saw a puppy that she loved, so [Chuck] bought it for her. [Diane] and [Rufus] left that evening to go bowling. Mickey is Reynaldo's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jason] rushed to the hospital to find out that his wife and already given birth to a boy and had named him [Jeremy]. [Ruth] and her son [Jeremy] traveled around the world [Christian] is the uncle of [Jeff]. [Ruth] loves cooking for her son. His name is [Jeff] [Jason] is buying his daughter [Gloria] a brand new car for her birthday. Christian is Gloria's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Reynaldo] took his son [Philip] out for ice cream. [David] bought to dress for his father [George] [Joyce] went to the store with her sister [Diane] [Diane] and her brother [Rufus] enlisted in the army [Reynaldo]'s brother [George] would not let him play the xbox game. [Philip] likes to visit his sister. Her name is [Joyce]. [David]'s aunt, [Elizabeth], took him fishing Elizabeth is Rufus's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Donald] bought gifts for his lovely sister, [Frances]. [Donald] took his son [Dale] out for pizza. [Ouida] vowed to never trust her father, [Dale] with her debit card again. [Ouida] and her sister, [Frances], frequently bicker. However, they always make up quickly. [Morgan] was hoping to travel out of state to visit her son [Ouida]. Ellie's brother, [Kenneth], was doing his best to find the best flight. [Ouida] and her sister, [Danielle], frequently bicker. However, they always make up quickly. [Darryl] and his uncle [Brian] went to the movies Sunday after church and got popcorn and candy while they were there. [Kenneth] took his daughter [Elizabeth] to the baseball game. [Elizabeth]'s brother [Darryl] hates baseball and stayed home. Brian is Danielle's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Dorothy] went shoe shopping with her sister [April]. [Lucille] bought her mother, [April], a puppy for her birthday. [April] went car shopping with her husband [Benjamin] and her daughter [Lucille]. Dorothy is Benjamin's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Cecil] worked so hard on the party. Her father, [Gregory], celebrated his 89th birthday. [Gregory] was thrilled his brother, [Roger], and [Cecil]'s sister, [Christine], could join the celebration. [Charles] and his brother [Daniel] teased [Daniel]'s sister [Mary] when she tripped. [Mary]'s brother [Roger] did n't tease her. [Faye] asked her daughter, [Christine], if she would like to go to a movie with her on Saturday night. [Brad] took his son [Charles] out for pizza. Brad is Faye's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Annie] went to dinner with her daughter [Rosa]. They then went to the park afterwards. [Rosa] and her daughter [Melissa] went to see a movie yesterday and then got ice cream afterwards. [Melissa] and her sister, [Margaret], frequently bicker. However, they always make up quickly. [Stephen] is out playing tennis with his daughter [Melissa] because it is nice and sunny outside. [Stephen] took his daughter [Melissa] to cheer practice. Annie is Margaret's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[David] bought a steak dinner for himself and his brother [Craig]. [Judy] is proud that her son graduated college. His name is [Larry]. [David] was thrilled his brother, [Craig], was able to make it to the party. [Tommy] took his grandson [David] to the zoo. [David] and [Larry] were both still very upset with their mother, [Judy]. [Tommy] went to see his daughter [Elizabeth] for parents day at college. Elizabeth is Larry's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Timothy] and his mother [Patricia] were throwing a potluck with his sister, [Connie]. [Patricia]'s daughter, [Christine], showed up with a chocolate cake to share. [William] and his daughter [Connie] took a day off school to go to the zoo. Christine is William's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Mickey] asked his brother, [Donald], if he wanted to go to the beach. [Donald] said he could n't go because he had to take [Sara], his sister, to see the dentist. [Mickey] played basketball with his brother [Leandro]. [Chuck] sat with his daughter, [Sara], for ice cream at a local shop. [Leandro] and his brother [Mickey] went to the park to play basketball. [Martha] took her brother [George] and other brother [Chuck] with her to eat pasta at a pasta buffet. George is Mickey's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Harry] walked his daughter [Kerrie] down the aisle on her wedding day. [Kerrie] asked her mother [Debra] if she could go outside and play with her friends. [Donald]'s father [Dale] and sister [Ouida] went out on the fishing boat today. [Dale]'s wife, [Morgan], stayed home to run errands. [Debra] took her daughters [Joy] and [Valerie] to the mall. [Joy]'s sister [Morgan] went to church instead. [Donald] was playing tennis with his sister [Ouida]. Afterwards, he was planning on playing chess with his sister [Danielle]. Danielle is Harry's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Harry] was eating lunch with his son [Victor] and his wife [Joy]. [Elizabeth] and her brother [Robert] enlisted in the army [Darryl] was disappointed that his father, [Kenneth], would n't be at the play to see him perform. [Kerrie] planned a trip to the zoo for her brother, [Victor]. They had a great time. [Elizabeth] went to her brother [Darryl]'s birthday party [Valerie] and her son [Robert] went out to lunch together yesterday. [Machelle] took her sister, [Kerrie], out to dinner for her birthday. [Kevin] was n't able to leave work early to go watch his son [Kenneth] play in his first high school football game. [Kevin] instead sent his oldest daughter, [Joy], to film the game for him so that he could watch it later that night. Machelle is Valerie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Julie] is so happy her husband got a promotion at work. His name is [Roger]. [Sarah] wanted to go shopping with her daughter, [Jamie]. [Jamie] could n't go shopping because she could n't find a babysitter for her son, [Oscar]. [Julie] 'daughter [Lisa] visited for Christmas. [Lisa]'s brother [Robert] was out of town for the holidays. [Faye]'s mother, [Sarah], thought [Faye] should wear a black dress. [Faye]'s sister [Julie], however, thought she would look better in a blue one. [Julie] is proud that her son graduated college. His name is [Robert]. Oscar is Roger's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Rosa], who is the sister of [Cristina], is a lovely girl. [Lisa] and her sister, [Melissa], frequently bicker. However, they always make up quickly. [Stephen]'s daughter, [Annie], made a dinner for her sister, [Melissa]. [Rosa] fixed her husband [Stephen] dinner and then they watched a movie they rented. Lisa is Cristina's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Richard took his sister April too the zoo but his sister Patricia could n't come because she had to work. Frank helped his daughter Beverly into her booster seat and sat behind the wheel of the car. His sister Patricia rode in passenger seat beside him. Beverly is April's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Ruth] took her daughter [Stephanie] to the ice cream parlor after school for a sweet treat. Since [Stephanie] gets out of school earlier than her brother [Jeremy], he missed out on the trip to get ice cream. [Gloria] always gets teased by her brother [Jeff]. [Jason], [Jeff]'s father tells him to stop it. [Jeremy], [Jason]'s son never teases [Gloria]. Ruth is Gloria's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Elizabeth] asked her daughter, [Sara], if she would like to go to a movie with her on Saturday night. [Donald]'s mother, [Elizabeth], waited impatiently for him at the diner. [Donald] invited his father [Chuck] and his brother [Leandro] to go on a weekend fishing trip. [Sara] decided to give her uncle, [Spencer], a call on his birthday. [Leandro] waited at dinner for his sister, [Sara]. She was running late due to a phone call with her brother, [Donald]. Spencer is Chuck's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Annie] and her sister, [Lisa], frequently bicker. However, they always make up quickly. [Rosa] made breakfast for her daughter [Melissa] before calling her husband [Stephen] to pick her up. [Annie] went shoe shopping with her sister [Melissa]. [Lisa] went to the store with her sister [Annie] Annie is Stephen's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Evelyn] wanted to meet with her brother, [Jonathan], but she had to cancel when her sister, [Rosa], had an emergency that she needed to attend to. [Rosa] 'father [Seth] became enraged when she failed to complete her homework. [Rosa] was grounded for a month and unable to spend time with friends. [Rosa], who is the sister of [Ruth], is a lovely girl. [Ruth] went to the store with her sister [Rosa] Seth is Jonathan's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Cornelius] took his daughter [Patricia] to the park that afternoon to play. [Cornelius] took his grandaughter [Anne] to the carnival. [Anne] later told [Jenny], her mother, that they had a great time [Patricia] had picked her daughter [Connie] out the cutest new dress to wear on her birthday. Connie is Jenny's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Fay] decided to give her uncle, [Joseph], a call on his birthday. [Judy] took her sister, [Ethel], and [Ethel]'s daughter, [Leila], out for lunch. The food was great and everyone had a good time. [Janice] had picked her daughter [Fay] out the cutest new dress to wear on her birthday. [Janice] had a daughter named [Dannielle]. [Leila] loves to visit her grandfather [Timothy]. [Judy] is proud that her son graduated college. His name is [Gerald]. [William] walked his daughter [Dannielle] down the aisle on her wedding day. [Gerald] bought to dress for his father [Joseph] Timothy is William's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Diane] and her brother [Rufus] went to see a movie. [Elizabeth] always goes to the park with her son [Leandro] on Saturdays. [Maxine] asked her husband [Reynaldo] if he could chop up some vegetables for dinner. [Maxine] asked her daughter, [Diane], if she would like to go to a movie with her on Saturday night. [Rufus] loved going to the store with his mom [Maxine]. She always bought him snacks [Leandro] and his sister, [Sara], went to a sneak preview of the Avengers movie and loved it. [Elizabeth] took her sister, [Maxine], out to dinner for her birthday. Sara is Reynaldo's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Melissa] and her father, [Stephen], went to the marina. [Stephen]'s daughter, [Margaret], had purchased a boat, and they were eager to see it. [Annie] and her aunt, [Evelyn], went to the deli. They got a half a pound of corned beef, and two pounds of salami. [Melissa] and her sister [Annie] were arguing over a toy. While they were fighting, [Melissa]'s sister [Margaret] grabbed the toy, and ran off to play with it by herself. Evelyn is Melissa's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Lawrence]'s brother, [Freddie], recently made it into town. [Joseph] was so proud of his son, [Freddie]. he received a great scholarship to college. [Alice] invited her brothers [Gerald] and [Freddie] to her high school graduation. [Michele] was happy to babysit her niece, [Fay]. [Fay] was a great child. [Dannielle] planned a luncheon for her father, [William] and his brother, [Joseph]. Her sister, [Fay], found the best restaurant for the lunch. [Freddie] asked his brother [Gerald] if he would come help him fix his car next weekend. Michele is Lawrence's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Lee] took her brother [Matthew] and other brother [Phillip] with her to eat pasta at a pasta buffet. [Matthew], his mother [Kecia], and her daughter [Lee], were all excited. [Lee]'s father [Thomas] was coming back from serving overseas in the military, and they could n't wait to see him again. [Thomas] and his sister, [Florence], went to a sneak preview of the Avengers movie and loved it. Florence is Phillip's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Annie] went to dinner with her daughter [Rosa]. They then went to the park afterwards. [Melissa] and her sister, [Margaret], frequently bicker. However, they always make up quickly. [Ruth] was happy to babysit her niece, [Annie]. [Annie] was a great child. [Stephen] drove his daughter [Margaret] to soccer practice. [Melissa] bought her mother, [Rosa], a puppy for her birthday. Ruth is Stephen's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Ethel] planned a trip to the zoo for her brother, [Kenneth]. They had a great time. [Joseph]'s brother [William] would not let him play the xbox game. [Ethel] went to her brother [Kenneth]'s birthday party [Timothy] would n't let his son [William] go to the park by himself. [William]'s brother [Joseph] offered to go with him. [Fay] and her mother [William] made breakfast together. [Oscar]'s aunt, [Ethel], took him to the zoo. [Janice] baked a cake for her son [Oscar]. For her daughter, [Fay], [Janice] made some fudge brownies. Ethel is Timothy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Tommy] sat with his daughter, [Maxine], for ice cream at a local shop. [Philip] went to his brother [Rufus]'s Birthday party [Diane] enjoys playing cards with her brother. His name is [Rufus]. [Maxine] was on her way to pick up her daughter [Joyce] from the park. [Joyce] had spent the entire day there playing soccer with her sister [Diane]. [Philip] took his sister, [Diane], to a baseball game. [Rufus] took his sister [Diane] out to lunch after learning that she got accepted into her first choice for university. Tommy is Rufus's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Diana] called her mother, [Cristina], and asked if she could borrow a book. [Cristina] said she could have her son, [William], send it over. [Sheila] and her brother [William] are having an argument over when her dad, [Jonathan], will be back from the store. [Jonathan] took his son [Seth] out for pizza. Diana is Seth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Ouida]'s father [Dale] and brother [Donald] came with her to the beach while [Dale]'s sister, [Valerie], stayed home to avoid the sun. [Darryl] went to the car show with his sister [Elizabeth] and his mother [Valerie]. [Kenneth] sat with his daughter, [Brittney], for ice cream at a local shop. [Kenneth] 'son, [Robert], aced his math class and made his father proud. [Brittney] took her sister, [Elizabeth], out to dinner for her birthday. [Dale] was eating lunch with his son [Donald] and his wife [Morgan]. Robert is Morgan's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Craig] and his brother [Larry] were outside playing baseball when their younger brother [David] ran up and stole their ball. [Jean], who was also outside began laughing. [David]'s mother, [Judy], was disappointed that he failed his math class [George] and his son [Craig] went to the cinema together. [Judy] and her brother [Spencer] went to see a movie. [George] took his son [David] to the park to feed the squirrels. Spencer is Jean's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Michele] was happy to babysit her niece, [Fay]. [Fay] was a great child. [Janice], who is the sister of [Judy], is a lovely girl. [Henry] bought a steak dinner for himself and his brother [Martin]. [Janice] went to the mall, because she wanted to look for a present for her daughter, [Fay]. [Martin] received a novel for Christmas from his aunt [Judy]. [Larry] and his son [Martin] went to the cinema together. [Martin] and his son [Larry] went to look at cars. [Martin] ended up buying the Mustang. [Gordon]'s mother, [Ethel], told him he was in trouble. Her son [Henry] had told her that [Gordon] had been stealing from her purse. Michele is Gordon's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Reynaldo] was watching the baseball game with his son [Philip]. He was talking to his son when he got interrupted by a phone call from his brother [Chuck]. [Chuck] went to see his daughter [Sara] for parents day at college. [Martha] went shoe shopping with her sister [Elizabeth]. [Maxine] was mad at her son, [Philip]. She found he'd been stealing from her purse. [Leandro] and his brother [Sara] were grilling hamburgers outside. [Elizabeth], [Leandro]'s mother, came out to bring them cold sweet tea. Martha is Maxine's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jamie] went to lunch with her son [Oscar] and her sister [Julie]. [Lisa] and [Robert] left that evening to go bowling. [Charles] took his sister [Faye] out to lunch after learning that she got accepted into her first choice for university. [Carolyn] bought her mother, [Julie], a puppy for her birthday. [Faye] went to dinner with her daughter [Sarah]. They then went to the park afterwards. [Oscar] and his grandmother [Sarah] went to the science museum. They both had fun, and learned some things, too. [Carolyn] and her sister, [Lisa], frequently bicker. However, they always make up quickly. Charles is Robert's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Gordon's aunt, Judy, took him to the zoo. Janice and her siblings Judy and Kenneth went on a business trip to Asia Larry took his mother Dana to the bakery. Dana wanted to buy her daughter Michele a cake. Alice and her mother Joseph made breakfast together. Gordon and his son Larry went to look at cars. Gordon ended up buying the Mustang. Gerald and his sister, Alice love it when their grandmother visits because she spoils them. She is coming this week to watch them while their parents are out of town. Joseph and his sister, Janice love it when their grandmother visits because she spoils them. She is coming this week to watch them while their parents are out of town. Gerald is Michele's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Florence] took her daughters [Marilyn] and [Janet] to the mall. [Marilyn]'s sister [Beverly] went to church instead. [Janet], who is the sister of [Beverly], is a lovely girl. [James] loved his granddaughter, [Janet]. [Florence] and her sister, [Helen], frequently bicker. However, they always make up quickly. James is Helen's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Rosa] took her daughter [Melissa] to the park. [Melissa] was sad her sister [Annie] could not join. [Lisa] is having a great day at the playground with her mother [Rosa] and [Rosa]'s sister [Ruth]. [Rosa] asked her daughter, [Lisa], if she would like to go to a movie with her on Saturday night. Ruth is Annie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Timothy is Nicole's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Beverly] wanted to play basketball with her brother [Chris]. [Chris] asked his mom, [Florence] if they could go outside. [Florence] took her sister, [Sharon], out to dinner for her birthday. [Helen] and her son, [Leo], went to the park, and had a wonderful time. [Joanne] planned a trip to the zoo for her brother, [Leo]. They had a great time. [Beverly] and her aunt, [Helen], went to the deli. They got a half a pound of corned beef, and two pounds of salami. Joanne is Sharon's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Helen] loves her son [Clyde] very much. He loves her, too. [Kent] invited his sister [Helen] over for dinner. She asked if [Rick] would be there, since [Kent] is his father. [Kent] told her that [Rick] would be there and would also bring his brother, [Oliver]. [Oliver] and [Brian] were both still very upset with their mother, [Sharon]. Clyde is Sharon's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Traci] went shoe shopping with her sister [Diana]. [William] was tired of his sister, [Traci], complaining about his cooking so [William] complained to his father, [Jonathan]. [Traci] went to her aunt [Ruth]'s house for dinner. [Ruth] made meatloaf, and it was delicious. [Traci] was always arguing with her mother's husband [Jonathan]. Ruth is Diana's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Christine] went to her brother [Timothy]'s birthday party [Connie] was excited because today she was going to the zoo with her uncle [Benjamin]. [Patricia] made mixed drinks for her son [Timothy]. [Patricia]'s daughter [Connie] was jealous because she was n't offered one. Benjamin is Christine's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Kecia] had picked her daughter [Laura] out the cutest new dress to wear on her birthday. [James] knitted a new sweater for his granddaughter [Laura]. [Phillip] likes to visit his sister. Her name is [Laura]. [Kecia]'s son, [Matthew], had to stay home from school with a cold. [Matthew] was thrilled his brother, [Phillip], was able to make it to the party. [James] has a daughter called [Florence]. Florence is Laura's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Danielle] and her aunt, [Melissa], went to the deli. They got a half a pound of corned beef, and two pounds of salami. [Donald] took his Aunt [Joy] out for her favorite meal [Machelle] was excited because today she was going to the zoo with her uncle [Dale]. [Dale] went fishing with his daughter [Frances]. [Frances]'s sister, [Danielle], was n't invited because she hates fishing. [Isabel] asked her sister [Machelle] if she wanted to go to the movies with her. [Machelle] said no, so [Isabel] went with her brother [Victor] instead. [Joy] and her son [Victor] went out to lunch together yesterday. [Melissa] loves cooking for her son. His name is [Scott] [Morgan] was excited to visit her son, [Donald], at college. Scott is Morgan's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Joel] was thrilled his brother, [Richard], was able to make it to the party. [Joel] bought a steak dinner for himself and his brother [Oscar]. [Joel] and his sister, [Nola] love it when their grandmother visits because she spoils them. She is coming this week to watch them while their parents are out of town. [Daniel] needed to go pick his son [Oscar] up a Christmas present. So he asked his daughter [Nola] to help pick something out for [Oscar]. [Joel] and his brother [Oscar] played in a soccer game. [Oscar]'s mother [Jamie] brought her brother [Roger] along to watch. Roger is Richard's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Nicole] loves cooking for her son. His name is [Frank] [Frank] went to the game with his sister [Patricia]. [Nicole] and her daughter [April] went to see a movie yesterday and then got ice cream afterwards. [Richard] took his sister, [April], to a baseball game. Patricia is Richard's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Nicole] took her granddaughter [Julia] to the cinema. [Nicole] fixed her husband [Cornelius] dinner and then they watched a movie they rented. [Julia] went to dinner with her daughter [Dorothy]. They then went to the park afterwards. [Patricia] was always arguing with her mother's husband [Cornelius]. Patricia is Dorothy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Pennie] went to her brother [Darren]'s birthday party [Evelyn] made a pizza for her son [Sean]. [Sean]'s sister [Nichole] tried a piece and liked it. [Christian] was n't able to leave work early to go watch his son [Darren] play in his first high school football game. [Christian] instead sent his oldest daughter, [Nichole], to film the game for him so that he could watch it later that night. Evelyn is Pennie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Elizabeth]'s father [Kenneth] is talking to [Valerie]'s daughter [Brittney] while [Valerie] talks to her daughter [Elizabeth]. [Debra] had picked her daughter [Joy] out the cutest new dress to wear on her birthday. [Debra] took her daughter [Melissa] to the park. [Melissa] was sad her sister [Valerie] could not join. [Valerie] had a daughter named [Brittney]. [Elizabeth] asked her father [Kenneth], her sister [Robert] and her brother [Darryl] to watch her play and cheer her on at her school tennis team tournament next weekend. Joy is Darryl's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Mary] went to the mall, because she wanted to look for a present for her daughter, [Ashley]. [Anthony] likes to visit his sister. Her name is [Ashley]. [Floyd]'s aunt, [Faye], took him fishing [Faye] had picked her daughter [Cecil] out the cutest new dress to wear on her birthday. [Anthony] likes to watch baseball with his brother. His name is [Floyd]. [Christine] went to the store with her sister [Cecil] [Thomas] and his brother [Christopher] had a tie score. [Christopher] asked his sister, [Christine], to come up with a tie-breaker. Thomas is Mary's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Daniel] took his son [Oscar] out for ice cream. [Roger] and his brother [Charles] had a tie score. [Charles] asked his sister, [Julie], to come up with a tie-breaker. [Gregory] enjoys going fishing with his brother. His name is [Roger]. [Joel]'s brother, [Oscar], recently made it into town. [Oscar] went to lunch with his aunt [Faye]. [Julie] went shoe shopping with her sister [Faye]. [Joel] has a few children, [Daniel], Bradley and Claire Gregory is Oscar's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Chuck] took his daughter [Sara] to the park that afternoon to play. [Judy] took her sister, [Maxine], out to dinner for her birthday. [Chuck] took his sister [Judy] out to lunch after learning that she got accepted into her first choice for university. [Maxine] asked her daughter, [Joyce], if she would like to go to a movie with her on Saturday night. [Maxine] and her daughter [Joyce] went to see a movie yesterday and then got ice cream afterwards. [Reynaldo]'s wife, [Maxine], was thrilled to learn she was pregnant. [Naomi] went shoe shopping with her sister [Sara]. Naomi is Reynaldo's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Manuel] played scrabble with his mother [Michele] and his brother [Gino]. [Janice] and her sister, [Michele], frequently bicker. However, they always make up quickly. [Gino] was thrilled his brother, [Manuel], was able to make it to the party. [Janice] loves cooking for her son. His name is [Oscar] [William] is teaching his sister, [Judy] and his son, [Oscar] how to ski. [Jami] invited her brothers [Manuel] and [Charlie] to her high school graduation. Judy is Charlie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Carmelita] and her daughter [Martha] went to see a movie yesterday and then got ice cream afterwards. [Maxine] asked her daughter, [Diane], if she would like to go to a movie with her on Saturday night. [Carmelita] took her son [Reynaldo] and his wife [Maxine] to see their son [Philip] perform at his school play. [Maxine] was wondering where her daughter [Joyce] was, so she texted her. [Joyce] replied that she was with her brother [Philip] at the mall. Diane is Martha's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Joseph] was so excited to surprise his son, [Gerald], with the tickets to the playoffs. As a female, [Judy] sometimes had a hard time relating to her husband [Joseph] since he was a male. [Judy] went to the store with her sister [Michele] [Joseph] was so happy for his brother, [Larry], getting a promotion. [Gerald] took his son [Joseph] out to play gold later that night. [Leila] and her mother [Ethel] are going to visit her grandfather [Timothy]. [Henry]'s mother, [Ethel], waited impatiently for him at the diner. [Henry] got his son, [Larry], a car for his birthday. Timothy is Michele's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Martin] took his Aunt [Michele] out for her favorite meal [Martin] and his son [Larry] went to look at cars. [Martin] ended up buying the Mustang. [Charlie] received a novel for Christmas from his aunt [Ethel]. [Judy] planned a trip to the zoo for her brother, [Kenneth]. They had a great time. [Timothy] rushed to the hospital to find out that his wife and already given birth to a boy and had named him [Joseph]. [Michele] went to her son [Charlie]'s House [Dana] baked chocolate muffins for her son [Larry] and daughter [Judy]. [Ethel]'s father [Timothy] loves his little princess even though she gets into a lot of trouble at school. Joseph is Kenneth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Sara] asked her mother, [Elizabeth], what they were going to have for lunch. [Philip]'s aunt, [Martha], took him to the zoo. [Reynaldo] and his sister [Elizabeth] made a really big kite. [Reynaldo] 'son [Philip] was so excited to fly it. [Elizabeth] was afraid of heights just like her daughters, [Sara] and [Naomi]. However, [Naomi]'s father, [Chuck], loved heights and even went sky diving a few times. Martha is Chuck's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Donald] was playing tennis with his sister [Ouida]. Afterwards, he was planning on playing chess with his sister [Frances]. [Debra] had a daughter named [Morgan]. [Debra] and her son, [Harry], went to the park, and had a wonderful time. [Harry] has a daughter called [Isabel]. [Dale] bought a new dress for his daughter [Ouida]. [Kerrie] invited her brother [Victor] and her sister [Isabel] over for dinner. [Danielle] and her sister [Frances] went to the mall. While at the mall [Danielle] found the perfect Mother's Day gift for her mother [Morgan]. Victor is Dale's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Martha] loves her son [Peter] very much. He loves her, too. [Spencer] and his son [Peter] went to the cinema together. [Martha] and her husband [Spencer] are taking [Martha]'s son [Mark] and his sister [Brandi] to the amusement park this weekend. [Elizabeth] and her father, [Tommy], went to the marina. [Tommy]'s daughter, [Martha], had purchased a boat, and they were eager to see it. Brandi is Elizabeth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Harry] likes to visit his sister. Her name is [Valerie]. [Joy] planned a trip to the zoo for her brother, [Kenneth]. They had a great time. [John]'s brother, [Scott], recently made it into town. [Kenneth] went to his brother [Harry]'s Birthday party [Kevin] has a daughter called [Valerie]. [Valerie] and her sisters [Melissa] went to the spa. [Joy], another sister of [Valerie], had to babysit and could n't join them. [Barbara] and her brother [John] are having an argument over when her dad, [Brian], will be back from the store. [Melissa] fixed her husband [Brian] dinner and then they watched a movie they rented. Scott is Kevin's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Kecia] had a daughter named [Laura]. [Lee] went to dinner with her daughter [Kecia]. They then went to the park afterwards. [Thomas]'s mother, [Dorothy], needed volunteers to cook for the holidays. Her daughter, [Florence], happily agreed to help. [Kent] and his sister, [Florence] love it when their grandmother visits because she spoils them. She is coming this week to watch them while their parents are out of town. [Thomas] is buying his daughter [Lee] a brand new car for her birthday. Kent is Laura's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Timothy]'s son, [Larry], came first in a relay race at his school. [Timothy]'s son, [William], felt jealous of [Larry]. [Dana]'s son, [Kenneth], had to stay home from school with a cold. [Dana] drove her husband [Timothy] to their daughter [Ethel]'s house. [Ethel]'s brother [William] would join them later. [Judy]'s husband [Joseph] called her brother [Larry] to see what her favorite food was so [Freddie], his son, could help him make it. Freddie is Kenneth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Diane took her brother Rufus and other brother Philip with her to eat pasta at a pasta buffet. Martha took her sister, Maxine, out to dinner for her birthday. Joyce and Rufus are siblings who are enjoying lunch together. Joyce just had a baby and presented the baby proudly to the new maternal grandmother, Maxine. Judy and her sisters Elizabeth went to the spa. Martha, another sister of Judy, had to babysit and could n't join them. Elizabeth is Philip's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Harry] was camping with his son [Victor] and brother [Brian]. While camping, [Brian] got a phone call from his sister [Morgan]. [Brittney]'s mom, [Valerie], meet with with her sister, [Morgan], to discuss their dad. [Brittney] planned a trip to the zoo for her brother, [Robert]. They had a great time. [Kenneth] was a single father who raised three kids: [Robert], [Darryl], and [Elizabeth]. [Victor] and his Aunt [Melissa] flew first class Melissa is Darryl's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[April], who is the sister of [Dorothy], is a lovely girl. [April] asked her daughter, [Melba], if she had fun at school that day. [Melba] answered that she and her sister, [Sharon], had lots of fun together. [Lucille] went to the store with her sister [Sharon] Lucille is Dorothy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Peter] and his sister [Brandi] have been best friends ever since childhood. [Martha] loves cooking for her son. His name is [Mark] [Violet] had a great plan to surprise her husband, [Michael]. His mother, [Martha], helped with the details. [Brandi] went shopping at the mall with her father [Spencer]. [Brandi] and her brother [Peter] went to see a movie. [Brandi] planned a trip to the zoo for her brother, [Mark]. They had a great time. Spencer is Violet's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Melissa], who is the sister of [Annie], is a lovely girl. [Jason] and [Ruth], the happy couple, just got married last week. [Jason] has a daughter called [Gloria]. [Melissa] and her aunt, [Ruth], went to the deli. They got a half a pound of corned beef, and two pounds of salami. [Annie] wanted to visit an art museum, so she asked her father, [Stephen] to take her. Gloria is Stephen's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Cornelius] walked his daughter [Patricia] down the aisle on her wedding day. [Richard] and his daughter [Kimberley] loved to play soccer together. Unfortunately, her sister [Anne] did not like sports. [Richard] was disappointed that his father, [Cornelius], would n't be at the play to see him perform. Patricia is Anne's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Harry] and [Joy] got married in 2017. [Isabel] planned a trip to the zoo for her brother, [Victor]. They had a great time. [Kerrie] went to her brother [Victor]'s birthday party. [Linda] went over to her uncle [Harry]'s house for dinner. [Kerrie], who is the sister of [Machelle], is a lovely girl. [Victor]'s father [Harry] and sister [Machelle] went out on the fishing boat today. [Harry]'s wife, [Joy], stayed home to run errands. [Scott] and his sister, [Linda], went to a sneak preview of the Avengers movie and loved it. [Melissa] enjoyed a homemade dinner with her son [Scott] Isabel is Melissa's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Patricia] went to her son [Timothy]'s House [Patricia] was happy to babysit her niece, [Anne]. [Anne] was a great child. [Anne] and her sister, [Mary], went to church. [Mary]'s mom, [Jenny], was sick, and could n't make it, and [Mary] told the pastor so he would pray for a speedy recovery. Timothy is Jenny's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Kelley] and her sisters [Mary] went to the spa. [Anne], another sister of [Kelley], had to babysit and could n't join them. [Anne], who is the sister of [Kelley], is a lovely girl. [Mary] took her father, [Richard], out to dinner. Richard is Kelley's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Florence] went to the mall, because she wanted to look for a present for her daughter, [Janet]. [Dorothy] and her daughter [Kecia] went to see a movie yesterday and then got ice cream afterwards. [Thomas] was thrilled his brother, [Kent], was able to make it to the party. [Dorothy] and her son, [Kent], went to the park, and had a wonderful time. [James] watched the football game with his son [Thomas]. [James]'s daughter [Florence] was bored and played with her phone instead. Janet is Kecia's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Patricia was happy to babysit her niece, Kimberley. Kimberley was a great child. Richard was having trouble with his divorce because he only got to see his daughter Kelley a few times a week Richard was excited to reveal the elaborate getaway he had planned for his wife Jenny. Jenny had picked her daughter Kimberley out the cutest new dress to wear on her birthday. Patricia is Kelley's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Stephen] took his daughter [Margaret] to the park. [Annie], Emilie´s sister went with them. [Stephen] and [Rosa] got married in Hawaii. [Seth] watched the football game with his son [Jonathan]. [Seth]'s daughter [Rosa] was bored and played with her phone instead. Annie is Jonathan's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Larry] is the uncle of [Freddie]. [Freddie] and his son [Joseph] went to look at cars. [Freddie] ended up buying the Mustang. [Judy] went bowling with her husband [Joseph] and her father [Timothy]. [Joseph]'s sons [Gerald] and [Freddie] love playing baseball. [Gerald] and [Freddie]'s sister [Alice] is the shortstop on their team. [Kenneth] was so happy for his brother, [Joseph], getting a promotion. [Alice]'s grandfather, [Timothy], accompanied her to the basketball match Larry is Kenneth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Morgan] is enjoying dinner with her husband [Dale]. [Robert]'s brother [Darryl] and mother [Valerie] planned a picnic with [Elizabeth]'s daughter, [Valerie]. [Dale] and his uncle [Darryl] went to the county fair and went on the ferris wheel [Danielle] took her sister, [Frances], out to dinner for her birthday. [Frances] went to dinner with her daughter [Morgan]. They then went to the park afterwards. [Valerie] asked her daughter, [Brittney], if she had fun at school that day. [Brittney] answered that she and her sister, [Elizabeth], had lots of fun together. [Kenneth] told his wife [Valerie] to pick up their daughter. Danielle is Kenneth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Charlie] went to the Farmer's market with his mother [Michele] and his brother [Gino]. [Judy] was happy to babysit her niece, [Dannielle]. [Dannielle] was a great child. [William] took his daughter, [Dannielle], to a baseball game. [Ethel] went shoe shopping with her sister [Judy]. Worker: [Kenneth] and [William] talked about their Dad at his funeral. [Kenneth] was sad that his son [Gino] never got to meet his grandpa [Leila] wanted to play basketball with her brother [Henry]. [Henry] asked his mom, [Ethel] if they could go outside. Leila is Michele's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Frank] took his son [Charles] and daughter [Beverly] to the zoo on Saturday and they had a great time. [Dorothy] stayed with her mother [Nicole] before the birth of her son [Charles] Nicole is Beverly's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jamie] bought a plant for her dad, [Carlos]. [Dustin] was disappointed that his father, [Roger], would n't be at the play to see him perform. [Lisa] and her sister, [Carolyn], frequently bicker. However, they always make up quickly. [Julie] went to the store with her sister [Faye] [Roger] took his daughter [Carolyn] to the park that afternoon to play. [Carlos] took his daughter [Faye] to the park that afternoon to play. [Dustin] and [Robert] were both still very upset with their mother, [Julie]. Lisa is Jamie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Toni] just had a baby and presented the baby proudly to the new maternal grandmother, [April]. [April] took her father, [Cornelius], out to dinner. [Jenny] and her brother [Frank] went to see a movie. [Cornelius] took his daughter [Jenny] to cheer practice. Frank is Toni's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jonathan] invited his sister [Ruth] to dinner this Friday because it is her birthday. [Lisa] asked her mother, [Rosa], what they were going to have for lunch. [Rosa] spent a great day shopping with her daughter, [Melissa]. [Stephen] asked his brother [Jonathan] to pick up a present on his way home for [Stephen]'s daughter [Melissa]. Ruth is Lisa's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Sheila] and her sisters [Diana] went to the spa. [Traci], another sister of [Sheila], had to babysit and could n't join them. [Diana] was running late to meet her brother, [William]. [Jonathan], [William]'s father, called and let him know. [Jonathan]'s brother, [Jason], recently made it into town. Jason is Traci's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Timothy] wanted to join the theater group his sister [Christine] was a part of. [Christine]'s mother, [Patricia], signed him up for the group. [Timothy] took his sister [Connie] out to lunch after learning that she got accepted into her first choice for university. [Cornelius] was having trouble with his divorce because he only got to see his daughter [Patricia] a few times a week Cornelius is Connie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Beverly] went to the store with her sister [Julia]. [Rachel] and her brother [Charles] were out playing when their mother [Dorothy] called them in for dinner. When they got inside [Rachel]'s sister [Beverly] was already at the table. Dorothy is Julia's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Seth] and his daughter [Rosa] made a pizza. [Rosa]'s daughter [Margaret] really enjoyed the pizza. [Ruth] wanted to play basketball with her brother [Stephen]. [Stephen] asked his mom, [Laura] if they could go outside. [Ruth] went to her father [Seth] Birthday party Margaret is Laura's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jonathan] took his daughter [Traci] over to his sister [Rosa]'s house to see her new cat. [Stephen] went to see his daughter [Melissa] for parents day at college. [Rosa] was on her way to pick up her daughter [Margaret] from the park. [Margaret] had spent the entire day there playing soccer with her sister [Melissa]. Traci is Stephen's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Brad] took his Aunt [Jamie] out for her favorite meal [Mary] was excited to visit her son, [Brad], at college. [Mary] and her husband [Charles] danced together at the party. [Joel] went to his brother [Richard]'s Birthday party [Anthony] likes to watch baseball with his brother. His name is [Brad]. [Anthony] wanted to have a family cookout so he invited his brother [Floyd]. [Floyd] wanted to invite his other brother [Brad]. [Jamie] went to her son [Richard]'s House Joel is Charles's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Gerald] asked his brother, [Lawrence], if he wanted to go to the beach. [Lawrence] said he could n't go because he had to take [Alice], his sister, to see the dentist. [Dana] dropped her son, [Kenneth], off for soccer practice. Afterwards she went home to make a cake for her daughter, [Michele]. [Lawrence]'s aunt, [Michele], took him to the zoo. [Larry] is the uncle of [Charlie]. [Joseph] bought toys for his son [Lawrence] and his daughter [Alice]. [Charlie] and his son [Kenneth] went to look at cars. [Charlie] ended up buying the Mustang. Larry is Gerald's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Janice] went to the beach with her husband [William]. [William] bought a new dress for his daughter [Dannielle]. [Jennifer] took her sister, [Beverly], out to dinner for her birthday. [Judy] went to her father [Timothy] Birthday party [Jennifer], who is the sister of [Dannielle], is a lovely girl. [Timothy] is taking his wife [Dana] out to dinner for their date tonight. [Dana] and her son, [William], went to the park to fly a kite. They had fun doing it all day. [Beverly], who is the sister of [Jennifer], is a lovely girl. [William]'s wife, [Janice], was thrilled to learn she was pregnant. Jennifer is Judy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Roger] and his uncle [Christopher] went to the county fair and went on the ferris wheel. [Faye] loves her son [Christopher] very much. He loves her, too. [Carlos] is buying his daughter [Jamie] a brand new car for her birthday. [Gregory] got his son, [Carlos], a car for his birthday. [Daniel] waited at dinner for his sister, [Mary]. She was running late due to a phone call with her brother, [Gregory]. [Gregory] and [Faye] got married in 2017. [Jamie] enjoys playing cards with her brother. His name is [Gregory]. Roger is Daniel's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Kevin]'s daughter [Morgan] was playing on the swings in the park. [Valerie], his other daughter, was napping in the stroller. [Victor]'s father, [Harry], went bowling with his sister, [Valerie]. [Melissa] was happy to babysit her niece, [Brittney]. [Brittney] was a great child. [Morgan] took her sister, [Valerie], and [Valerie]'s daughter, [Brittney], out for lunch. The food was great and everyone had a good time. [Joy] invited her daughter [Kerrie] to lunch. [Kerrie]'s brother [Victor] could n't leave work to join them. [Isabel] asked her mother, [Joy], what they were going to have for lunch. Melissa is Isabel's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Ruth cooked dinner for her mother Laura and her brothers Christian and Jason. Rosa attended the graduation of her sister's son Jeff. Jason rushed to the hospital to find out that his wife and already given birth to a boy and had named him Jeff. Rosa is Laura's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Brad] and his brother, [Anthony] run a turtle farm. [Ashley] went to her brother [Floyd]'s birthday party [Charles] was so proud of his son, [Anthony]. he received a great scholarship to college. [Brad] was thrilled his brother, [Floyd], was able to make it to the party. [Mary] and her son [Floyd] went to visit [Mary]'s mother [Sarah] in the hospital. [Brad] invited his father [Charles] and his brother [Floyd] to go on a weekend fishing trip. Sarah is Ashley's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Robert] went to the car show with his sister [Lisa] and his mother [Julie]. [Lisa] bought her mother, [Julie], a puppy for her birthday. [Carolyn] and her sister [Ellen] went to the mall. While at the mall [Carolyn] found the perfect Mother's Day gift for her mother [Julie]. [Daniel] took his sister [Julie] out to lunch after learning that she got accepted into her first choice for university. [Roger]'s daughter, [Lisa], made a dinner for her sister, [Ellen]. Daniel is Roger's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Janice went to her brother Larry's birthday party Jami and her uncle Joseph went to the pet shop. Jami saw a puppy that she loved, so Joseph bought it for her. Janice took her son Oscar to school because he missed the bus. Dannielle and her sister Beverly were arguing over a toy. While they were fighting, Dannielle's sister Fay grabbed the toy, and ran off to play with it by herself. Fay, who is the sister of Dannielle, is a lovely girl. Michele planned a trip to the zoo for her brother, Larry. They had a great time. Beverly and her brother Oscar went to see a movie. Jami went to dinner with her daughter Michele. They then went to the park afterwards. Joseph is Dannielle's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Donald] bought to dress for his father [Chuck]. [Brandi] invited her brothers [Michael] and [Mark] to her high school graduation. [Martha] always goes to the park with her son [Mark] on Saturdays. [Donald]'s aunt, [Martha], took him to the zoo. [Michael] and his brother, [Mark] run a turtle farm. [Peter] was thrilled his brother, [Mark], was able to make it to the party. Peter is Chuck's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Thomas sat with his daughter, Laura, for ice cream at a local shop. Thomas 'son, Phillip, aced his math class and made his father proud. Laura was playing with her brother Matthew, but her mother Kecia told her she had to go to bed. Phillip loves his uncle, Kent. Laura enjoys playing cards with her brother. His name is Matthew. Kent is Kecia's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Nichole] and her brother [Darren] are having an argument over when her dad, [Christian], will be back from the store. [Sean] and his brother [Darren] always played pranks on each other [Jason] took his daughter [Stephanie] to the park that afternoon to play. [Stephanie] was excited because today she was going to the zoo with her uncle [Christian]. Sean is Jason's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Carolyn] and [Dustin] left that evening to go bowling. [Jamie] and her son, [Richard], went to the park to fly a kite. They had fun doing it all day. [Lisa] took her father [Roger] to his doctor's appointment and afterward her brother [Dustin] came over and visited for awhile. [Daniel]'s son, [Oscar], came first in a relay race at his school. [Daniel]'s son, [Richard], felt jealous of [Oscar]. [Roger] took his sister [Mary] out to lunch after learning that she got accepted into her first choice for university. [Oscar] received a novel for Christmas from his aunt [Mary]. Carolyn is Jamie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Elizabeth] made a pizza for her son [Mickey]. [Mickey]'s sister [Sara] tried a piece and liked it. [Reynaldo] invited his father [Tommy] and his brother [Spencer] to go on a weekend fishing trip. [Tommy] is out playing tennis with his daughter [Judy] because it is nice and sunny outside. [Reynaldo] took his sister [Elizabeth] too the zoo but his sister [Judy] could n't come because she had to work. Spencer is Sara's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Margaret] was watching the football game with her mother [Rosa] and father [Stephen]. [Stephen]'s daughter [Lisa] asked him if he could move over a bit so she could watch too. [Annie] received some money from her grandfather, [Seth], for the holidays. [Annie]'s brother, [Lisa], was very jealous because he did n't receive any, so he decided to steal it. Seth is Rosa's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Thomas]'s daughter, [Laura], made a dinner for her sister, [Lee]. [Matthew] was disappointed that his father, [Thomas], would n't be at the play to see him perform. [Laura] and her sister, [Lee], frequently bicker. However, they always make up quickly. [Laura] asked her brother, [Phillip], to stop by and help babysit, but he was busy with his mom, [Kecia]. Kecia is Matthew's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Mary] and her brother [Daniel] enlisted in the army [Julie] and her sister [Mary] were baking cake. [Julie]'s brother [Gregory] came in and tried to eat some of the mix, but they told him to wait until it was finished. [Julie] asked her brother, [Gregory], if he could pick up her daughter, [Lisa], from school. [Sarah] had picked her daughter [Jamie] out the cutest new dress to wear on her birthday. [Charles] was playing checkers with his brother [Daniel]. [Charles]'s sister [Jamie] was waiting to play. Lisa is Sarah's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Dustin] asked his aunt, [Faye], to read him a story. [Faye] unfortunately was n't able to, since she did n't have her glasses, and she was almost blind without them. [Floyd] took his sister, [Ashley], to a baseball game. [Mary]'s husband [Charles] called her brother [Daniel] to see what her favorite food was so [Floyd], his son, could help him make it. [Ashley] and her brother [Anthony] went to see a movie. [Faye] and her brother [Daniel] went to see a movie. [Julie] and her son, [Dustin], went to the park, and had a wonderful time. Anthony is Julie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Carlos] took his grandaughter [Cecil] to the carnival. [Cecil] later told [Faye], her mother, that they had a great time [Jamie] asked her mother, [Sarah], what they were going to have for lunch. [Julie] and her two children [Ellen] and [Robert] picked out a puppy at the shelter. [Julie]'s sister [Jamie] suggested they go there to adopt an unwanted animal. [Sarah] spent a great day shopping with her daughter, [Faye]. [Gregory] took his son [Carlos] out for pizza. Gregory is Robert's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Janice] invited her brothers [Kenneth] and [Joseph] to her high school graduation. [Gordon] and his sister, [Leila] love it when their grandmother visits because she spoils them. She is coming this week to watch them while their parents are out of town. [Gordon] and his brother [Henry] went to a basketball game. [Henry]'s sister [Leila] decided to tag along with them. [Joseph] took his nephew [Henry] out to get some ice cream to celebrate his baseball victory. [Leila]'s brother [Martin] went to visit [Larry] at the hospital. He met [Larry]'s son [Henry] at his bedside. Kenneth is Leila's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Cristina] and her husband [Jonathan] are madly in love with one another. [Cristina]'s daughter [Diana] is also the light of her life. [Sheila], [Diana]'s sister, has always loved being a part of [Diana]'s life. [William] and his sister, [Sheila] love it when their grandmother visits because she spoils them. She is coming this week to watch them while their parents are out of town. [William] wanted to buy his sister a birthday gift but her son [Jason] said she did n't want any gifts. Jason is Jonathan's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Dale] bought a new dress for his daughter [Frances]. [John] and [Linda] took their mother [Melissa] to the grocery store. [Melissa] was planning to make cookies for her sister [Valerie] [Morgan] spent a great day shopping with her daughter, [Danielle]. [Dale] made peanut brittle for his daughter [Frances]. [Frances]'s brother [Danielle] ca n't eat peanut brittle due to his sensitive teeth. [Brian] and his brother [Kenneth] played harmonicas together. [Brian]'s daughter [Linda] loved it. [Frances] went over to her uncle [Kenneth]'s house for dinner. Valerie is Morgan's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[George] invited his sister [Martha] to dinner this Friday because it is her birthday. [David] and his sister, [Jean], went to a sneak preview of the Avengers movie and loved it. [Larry] likes to visit his sister. Her name is [Jean]. [Larry]'s mother [Judy] had to help him with his homework because he was having a test soon. [Carmelita] was mad at her son, [George]. She found he'd been stealing from her purse. [Elizabeth] went shoe shopping with her sister [Judy]. [Carmelita] and her daughter [Elizabeth] went to see a movie yesterday and then got ice cream afterwards. Martha is David's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Debra] invited her daughter [Melissa] to lunch. [Melissa]'s brother [Harry] could n't leave work to join them. [Joy] spent a great day shopping with her daughter, [Kerrie]. [Machelle] and her sister, [Kerrie], frequently bicker. However, they always make up quickly. [Harry] and his brother [Dale] went to a basketball game. [Dale]'s sister [Valerie] decided to tag along with them. [Brian] and his brother [Dale] went to a basketball game. [Dale]'s sister [Joy] decided to tag along with them. [Victor] took his sister [Machelle] out to lunch after learning that she got accepted into her first choice for university. [Debra] took her grandson [Victor] to the zoo. Valerie is Brian's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Ruth] took her daughter [Gloria] to the ice cream parlor after school for a sweet treat. Since [Gloria] gets out of school earlier than her brother [Jeff], he missed out on the trip to get ice cream. [Jason] asked his brother [Christian] to pick up a present on his way home for [Jason]'s daughter [Stephanie]. [Ruth] had picked her daughter [Stephanie] out the cutest new dress to wear on her birthday. Christian is Jeff's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Frank] was trying to find his daughter, [Beverly], but she was no where to be seen in the house. It turns out she was shopping with her sister, [Julia], at the time. [Frank] bought gifts for his lovely sister, [April] [Dorothy] went to the mall, because she wanted to look for a present for her daughter, [Julia]. April is Dorothy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Florence] took her sister, [Kecia], out to dinner for her birthday. [Florence] had picked her daughter [Marilyn] out the cutest new dress to wear on her birthday. [Davis]'s brother, [Oliver], recently made it into town. [Kent] took his son [Davis] to his swimming lessons after school today and then he stopped by his sister [Helen]'s house to visit her for awhile. [Marilyn] watched a golf tournament with her aunt [Helen]. Oliver is Kecia's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Dannielle] went to the store with her sister [Beverly]. [Oscar] and his sister, [Fay], went to a sneak preview of the Avengers movie and loved it. [Gordon] bought to dress for his father [Larry]. [Janice] went to the mall, because she wanted to look for a present for her daughter, [Beverly]. [Gordon] and his brother [Martin] went to a basketball game. [Martin]'s sister [Leila] decided to tag along with them. [Leila]'s mother, [Ethel], wanted to throw a surprise birthday party for [Ethel]'s sister, [Janice], this weekend. [Oscar] likes to visit his sister. Her name is [Dannielle]. Fay is Larry's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Philip]'s father [Reynaldo] has been in prison for 5 years. [Reynaldo]'s sister, [Martha] is the only one who visits him. [Reynaldo] went with his wife [Maxine] and their daughter [Joyce] to the park. [Joyce]'s brother [Philip] has bad allergies and decided to stay home. [Maxine] was on her way to pick up her daughter [Diane] from the park. [Diane] had spent the entire day there playing soccer with her sister [Joyce]. Martha is Joyce's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Stephen]'s daughter, [Margaret], made a dinner for her sister, [Melissa]. [Lisa] went hiking with her sisters [Annie] and [Margaret]. A few hours later [Stephen] received a distressing phone call from his daughter [Margaret]. He immediately called the police. Melissa is Lisa's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Brittney is Debra's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Donald] and his brother [Leandro] were fighting over the last of the dessert. [Elizabeth], [Leandro]'s mother, saw this, so she took the plate away and neither of them got any more. [Elizabeth] asked her daughter, [Sara], if she would like to go to a movie with her on Saturday night. [Chuck] and his sister, [Maxine], went to a sneak preview of the Avengers movie and loved it. [Chuck] was having trouble with his divorce because he only got to see his daughter [Sara] a few times a week [Philip] asked his aunt, [Martha], to read him a story. [Martha] unfortunately was n't able to, since she did n't have her glasses, and she was almost blind without them. [Maxine] was excited to visit her son, [Philip], at college. Martha is Donald's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Brandi] and her brother [Michael] went to see a movie. [Mark] is [Brandi]'s older brother. He has never liked any of her boyfriends. [Elizabeth] asked her daughter, [Sara], if she would like to go to a movie with her on Saturday night. [Chuck] bought toys for his son [Mickey] and his daughter [Sara]. [Spencer] 'son, [Mark], aced his math class and made his father proud. [Mickey] 'uncle, [Spencer], always took him fishing on summer weekends. Michael is Elizabeth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Christina] and her sister [Christine] were arguing over a toy. While they were fighting, [Christina]'s sister [Connie] grabbed the toy, and ran off to play with it by herself. [Christine] went to her brother [Timothy]'s birthday party [William] was so proud of his son, [Timothy]. he received a great scholarship to college. William is Connie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Michele is Ethel's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jonathan] bought a steak dinner for himself and his brother [Christian]. [Jonathan] got his son, [Seth], a car for his birthday. [Ruth]'s brother [Christian] took [Ruth]'s son [Jeff] and her daughter [Gloria] to the park to play. Gloria is Seth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Michele] went to visit her sister, [Janice]. [Beverly] was visiting her mother, [Janice] that weekend as well. [Beverly] threw a part for her sister, [Fay], after she retired. Their brother, [Oscar], catered the event with the help of his father, [William]. [William] was so excited to surprise his son, [Oscar], with the tickets to the playoffs. [Fay] and her sisters [Dannielle] went to the spa. [Beverly], another sister of [Fay], had to babysit and could n't join them. [Dannielle] and her brother [Oscar] went to see a movie. Michele is Beverly's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jonathan] dropped off his daughter [Sheila] at the baby sitters for the night. He was on the way to the baseball game where he would meet his sister [Ruth] and brother [Christian]. [Sheila] and her aunt, [Rosa], went to the deli. They got a half a pound of corned beef, and two pounds of salami. [Christian] and his son [Seth] went to look at cars. [Christian] ended up buying the Mustang. Rosa is Seth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Tommy] was drawing pictures with his daughter [Elizabeth]. He was interrupted when he received a call from his son [Spencer]. [Craig] and his brother [David] went to the park to play basketball. [Judy] and her husband [George] went to pick up their daughter [Jean] from school. Her brother [Craig] had to stay late for science olympiad. [George] was thrilled his brother, [Spencer], was able to make it to the party. David is Elizabeth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Brian] asked his brother, [Dale], if he wanted to go to the beach. [Dale] said he could n't go because he had to take [Joy], his sister, to see the dentist. [Elizabeth] went over to her uncle [Harry]'s house for dinner. [Harry] drove his daughter [Kerrie] to soccer practice. [Isabel] and her aunt, [Morgan], went to the bookstore. [Isabel] bought some fantasy books, while [Morgan] picked up some mysteries. [Valerie] dropped off her daughter, [Elizabeth], at the mall before picking up her mother, [Debra]. [Valerie] had to cut her visit short with her sister, [Joy] because her mother, [Debra] needed help painting. [Isabel], who is the sister of [Kerrie], is a lovely girl. Morgan is Brian's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Reynaldo], [Spencer], and [Martha] were all siblings who loved to play with [Spencer]'s son, [Peter]. [Peter] and his Aunt [Elizabeth] flew first class [Mickey] and his sister [Sara] have been best friends ever since childhood. [Carmelita] went to the mall, because she wanted to look for a present for her daughter, [Martha]. [Elizabeth] was excited to visit her son, [Mickey], at college. Sara is Carmelita's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Laura] went to her son [Stephen]'s House [Jonathan] went fishing with his daughter [Sheila]. [Sheila]'s sister, [Diana], was n't invited because she hates fishing. [Stephen] walked his daughter [Annie] down the aisle on her wedding day. [Annie] was excited because today she was going to the zoo with her uncle [Jonathan]. Diana is Laura's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Gregory] and his brother [Julie] were grilling hamburgers outside. [Sarah], [Gregory]'s mother, came out to bring them cold sweet tea. [Julie] took her daughter [Ellen] to the park. [Ellen] was sad her sister [Lisa] could not join. [Robert] and his sister [Lisa] went out for ice cream. [Robert] took his son [Roger] out for pizza. [Jamie] wanted to buy her mother [Sarah] flowers for Mothers Day, so she called her sister [Mary] to go shopping with her. Mary is Roger's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Sarah] asked her daughter, [Julie], if she would like to go to a movie with her on Saturday night. [Sarah] enjoys watching her grandson, [Richard], every day after school. His mother, [Jamie], picks him up at 5 pm. [Richard] meet with his mom, [Jamie], for dinner at her favorite restaurant. [Daniel] 'son, [Richard], aced his math class and made his father proud. [Oscar] was so happy for his brother, [Richard], getting a promotion. [Julie] went to her brother [Gregory]'s birthday party [Richard]'s brother [Oscar] would not let him play the xbox game. Gregory is Daniel's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Christina], who is the sister of [Christine], is a lovely girl. [Christina] asked her mother, [Patricia], what they were going to have for lunch. [Connie] made a cake for her grandfather, [Cornelius]. [Connie] went to dinner with her daughter [Patricia]. They then went to the park afterwards. Cornelius is Christine's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Rick]'s father, [Kent], was unhappy that he skipped school. [Kent]'s sister, [Kecia]. said he should be more strict with [Rick] going forward. [Dorothy] went to visit her daughter [Helen] the other day. [Dorothy]'s son [Johnny] was too busy at work to go along. [Helen] enjoys playing cards with her brother. His name is [Kent]. [Kecia] and her brother [Kent] went to see a movie. Johnny is Rick's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Faye] made mixed drinks for her son [Christopher]. [Faye]'s daughter [Cecil] was jealous because she was n't offered one. [Faye] had picked her daughter [Christine] out the cutest new dress to wear on her birthday. [Christine] and her brother [Thomas] went to see a movie. [Jamie] took her sister [Faye] and father [Carlos] out for drinks. [Faye]'s son, [Thomas], stayed home. [Faye] had a daughter named [Cecil]. Carlos is Christopher's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Thomas] invited his sister [Cecil] to dinner this Friday because it is her birthday. [Gregory] and his brother [Roger] are so competitive. [Gregory]'s son [Christopher] does n't like to play with them. [Roger] took his son [Dustin] to the park to feed the squirrels. [Christine] and her sister, [Cecil], frequently bicker. However, they always make up quickly. [Faye] loves her son [Thomas] very much. He loves her, too. [Cecil] asked her brother [Christopher] if he could babysit. When he said no, she asked her sister [Christine] instead. Dustin is Faye's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Laura] spent a great day shopping with her daughter, [Rosa]. [Christian] took his son [Sean], his sister [Ruth] and his mother [Laura] to Disney Land. [Melissa] went to dinner with her daughter [Rosa]. They then went to the park afterwards. Melissa is Ruth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Rosa] asked her husband [Stephen] to take out the trash. [Stephen] took it out quickly so he could get back to the game. [Evelyn] enjoyed a homemade dinner with her son [Darren] [Stephen] is proud that his daughter is such a good student. Her name is [Annie]. [Annie] and her uncle [Christian] went to the pet shop. [Annie] saw a puppy that she loved, so [Christian] bought it for her. [Christian]'s wife [Evelyn] bought him a watch Darren is Rosa's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Julie] had a daughter named [Carolyn]. [Daniel] and his brother [Gregory] went to the park to play basketball. [Julie] was excited to visit her son, [Robert], at college. [Carolyn] took her sister, [Lisa], out to dinner for her birthday. [Lisa] invited her brothers [Dustin] and [Robert] to her high school graduation. [Roger] and his brother [Gregory] played harmonicas together. [Roger]'s daughter [Lisa] loved it. Dustin is Daniel's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jamie] and her son [Joel] went out to lunch together yesterday. [Daniel]'s wife [Jamie] bought him a watch [Jamie] and her son [Oscar] traveled around the world [Richard] was tired of his sister, [Nola], complaining about his cooking so [Richard] complained to his father, [Daniel]. [Mary] and her sister, [Jamie], frequently bicker. However, they always make up quickly. [Oscar] played chess with his brother [Joel]. [Mary] and her brother [Gregory] went to see a movie. Gregory is Nola's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Beverly] went to dinner with her daughter [Florence]. They then went to the park afterwards. [Lee] and [Thomas] did the Father daughter dance at the recital and his wife [Kecia] was so happy she cried [Matthew] likes to visit his sister. Her name is [Laura]. [Matthew]'s aunt [Florence] took him to the store to do some last minute party shopping. [Laura] went shoe shopping with her sister [Lee]. Beverly is Kecia's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Lawrence] wanted to buy his sister a birthday gift but her son [William] said she did n't want any gifts. [William]'s brother [Larry] would not let him play the xbox game. [Larry] is [Judy]'s older brother. He has never liked any of her boyfriends. [Charlie] joined his brother [Gino] and mother [Michele] for lunch. [Michele]'s brother [Joseph] came too. [Lawrence] and his son [Joseph] went to look at cars. [Lawrence] ended up buying the Mustang. [Kenneth] rushed to the hospital to find out that his wife and already given birth to a boy and had named him [Charlie]. [Kenneth] took his son [Gino] out for ice cream. Judy is Gino's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Michele] invited her daughter [Jami] to lunch. [Jami]'s brother [Charlie] could n't leave work to join them. [Charlie] and his brother, [Gino] run a turtle farm. [Timothy] would n't let his son [Joseph] go to the park by himself. [Joseph]'s brother [Kenneth] offered to go with him. [Joseph] played golf with his father [Timothy] and his son [Freddie]. [Kenneth]'s wife [Michele] bought him a watch [Judy] and her son [Freddie] went out to lunch together yesterday. Gino is Judy's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Michele] took her son [Manuel] to the store. When she got home, she made a sandwich for her husband [Kenneth]. [Dannielle] and her uncle [Kenneth] went to the pet shop. [Dannielle] saw a puppy that she loved, so [Kenneth] bought it for her. [Gino] played chess with his brother [Manuel]. [William] bought a new dress for his daughter [Dannielle]. [Beverly] and her sisters [Fay] went to the spa. [Jennifer], another sister of [Beverly], had to babysit and could n't join them. [Fay] bought a plant for her dad, [William]. [Jennifer] went to dinner with her daughter [Janice]. They then went to the park afterwards. Gino is Janice's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[George] and his son [David] were jumping rope. [George]'s sister, [Elizabeth], was nearby drawing in a coloring book. [Leandro] took his son [Chuck] out to play gold later that night. [Craig] likes to visit his sister. Her name is [Jean]. [Craig] asked his brother [David] if he would come help him fix his car next weekend. [Elizabeth] gave birth to a son named [Leandro]. [Jean] and [Craig] are siblings who are enjoying lunch together. Craig is Chuck's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Floyd has a few children, Charles, Bradley and Claire Faye invited her daughter Cecil to lunch. Cecil's brother Christopher could n't leave work to join them. Gregory is proud that his daughter is such a good student. Her name is Cecil. Christine and her brother Thomas were out playing when their mother Faye called them in for dinner. When they got inside Christine's sister Cecil was already at the table. Gregory bought tickets for him to see the game with his nephew, Floyd. Christopher is Charles's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Scott] and his sister, [Linda] love it when their grandmother visits because she spoils them. She is coming this week to watch them while their parents are out of town. [Scott] and his brother [Bruce] went to the park to play basketball. [Dale] took his daughter, [Frances], to a baseball game. [Brian] walked his daughter [Linda] down the aisle on her wedding day. [Dale] wanted his son [Donald] and Daughter [Frances] to exercise more, so he signed them up for swimming lessons. He knew just the person to teach them, as his brother [Brian] was a swim instructor. [Dale] took his daughter [Ouida] to get some ice cream. [Ouida]'s brother [Frances] was jealous. [Morgan] spent a great day shopping with her daughter, [Frances]. Bruce is Morgan's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Danielle] just had a baby and presented the baby proudly to the new maternal grandmother, [Morgan]. [Danielle] went shoe shopping with her sister [Ouida]. [Dale] took his sister [Valerie] too the zoo but his sister [Joy] could n't come because she had to work. [Brian] went out for pizza with his sister [Morgan] and his daughter [Linda]. [Debra] asked her daughter, [Valerie], if she would like to go to a movie with her on Saturday night. [Scott] wanted to go to dinner with his grandmother, [Debra]. [Barbara] took her brother [Scott] to the park, but left her sister [Linda] at home. Joy is Ouida's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Sara] wanted to visit an art museum, so she asked her father, [Chuck] to take her. [David] and his brother, [Larry] run a turtle farm. [Judy] loves cooking for her son. His name is [David] [Carmelita] enjoyed a homemade dinner with her son [Reynaldo] [Carmelita]'s son, [George], had to stay home from school with a cold. [Sara] and her aunt, [Judy], went to the deli. They got a half a pound of corned beef, and two pounds of salami. [George] and his son [Larry] went to the cinema together. Reynaldo is Chuck's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[April] took her father [Cornelius] to his doctor's appointment and afterward her brother [Frank] came over and visited for awhile. [Frank] took his daughter, [Julia], to a baseball game. [Beverly] went to the store with her sister [Julia] Beverly is Cornelius's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Helen] spent a great day shopping with her daughter, [Joanne]. [Helen]'s son [Clyde] is turning nine today, so she is throwing him a party. [Gene] went to the Farmer's market with his mother [Helen] and his brother [Clyde]. [Joanne] and her uncle [Norman] went to the pet shop. [Joanne] saw a puppy that she loved, so [Norman] bought it for her. [Helen] is so happy her husband got a promotion at work. His name is [Johnny]. Norman is Johnny's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Kenneth] took his son [Robert] to the store to buy some bread. His wife [Valerie] stayed home with [Robert]'s brother [Darryl] to watch a movie. [Joy] called her son [Victor] and his sister [Machelle] was at his house visiting so he said he would call her back later. [Kerrie] and her sister, [Machelle], frequently bicker. However, they always make up quickly. [Robert] and [Elizabeth] asked their mother, if they could go play in the pool. [Cyrus] likes to visit his sister. Her name is [Kerrie]. [Robert] was thrilled his brother, [Darryl], was able to make it to the party. [Elizabeth] and her aunt, [Joy], went to the deli. They got a half a pound of corned beef, and two pounds of salami. Cyrus is Valerie's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Seth] and his wife [Laura] went to the beach to watch the fireworks on the 4th of July. [Rosa] took her father [Seth] to his doctor's appointment and afterward her brother [Jason] came over and visited for awhile. [Jonathan] wanted to have a family cookout so he invited his brother [Christian]. [Christian] wanted to invite his other brother [Jason]. Jonathan is Laura's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Michele] spent a great day shopping with her daughter, [Jami]. [Charlie] and his brother [Manuel] had a tie score. [Manuel] asked his sister, [Jami], to come up with a tie-breaker. [Gino] bought Christmas gifts for his brother [Charlie] and his sister [Jami]. [Jami]'s father, [Kenneth], felt a wave of sadness when [Jami] left for college. [Oscar] and his sister [Fay] bought a painting for [Oscar]'s father [William]. [William]'s brother [Kenneth] said it was an ugly painting. Fay is Michele's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Ethel] and her husband, [Larry] are vacationing in the south of France this week. [Gordon] joined his brother [Henry] and mother [Ethel] for lunch. [Ethel]'s brother [William] came too. [Joseph] and his son [Lawrence] went to the cinema together. [Larry] was so pleased to spend time with his nephew, [Gerald]. [Gerald] took his son [Joseph] out for pizza. [Henry] went to the Farmer's market with his mother [Ethel] and his brother [Gordon]. William is Lawrence's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Jenny] was afraid of heights just like her daughters, [Kelley] and [Anne]. However, [Anne]'s father, [Richard], loved heights and even went sky diving a few times. [William]'s brother, [Richard], recently made it into town. Kelley is William's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "Gloria decided to give her uncle, Jonathan, a call on his birthday. Jonathan is proud that his daughter is such a good student. Her name is Diana. Ruth is so happy her husband got a promotion at work. His name is Jason. Gloria went to the store with her sister Stephanie Stephanie went to dinner with her daughter Ruth. They then went to the park afterwards. Diana is Jason's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Peter] took his favorite son [Spencer] to a baseball game where he caught a foul ball as a souvenir. [Michael] played chess with his brother [Peter]. [Spencer] and [Martha] got married in Hawaii. [Joyce] decided to give her uncle, [Spencer], a call on his birthday. [Diane] was eager to show her new house to her father, [Reynaldo]. It was even better when her sister, [Joyce], showed up, too. [Spencer] told his wife [Martha] to pick up their daughter. Michael is Reynaldo's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Kecia] took her daughter [Laura] out shopping for new clothes. [Laura]'s sister [Lee] came along. While she was there, [Lee] bought her brother [Phillip] a new shirt. [Clyde] and his Aunt [Kecia] flew first class [Helen] and her son [Leo] made hot dogs. [Leo]'s brother [Clyde] ate one. Phillip is Helen's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Norman] was filled with pride and joy to see his daughter [Marilyn] perform in her first ballet recital. [Florence] and her husband [Norman] wanted a child badly. [Chris] recently moved to Mexico. Now he hardly ever sees his sister, [Marilyn] or his dad [Norman]. [Beverly] watched a golf tournament with her aunt [Kecia]. [Norman] and his daughter [Beverly] took a day off school to go to the zoo. Kecia is Florence's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Christian] was playing tennis with his sister [Ruth]. Afterwards, he was planning on playing chess with his sister [Rosa]. [Rosa] asked her daughter, [Margaret], if she had fun at school that day. [Margaret] answered that she and her sister, [Melissa], had lots of fun together. [Seth] has a daughter called [Ruth]. Melissa is Seth's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Cristina], who is the sister of [Rosa], is a lovely girl. [Lisa] just had a baby and presented the baby proudly to the new maternal grandmother, [Rosa]. [Annie] and her sisters [Margaret] went to the spa. [Melissa], another sister of [Annie], had to babysit and could n't join them. [Lisa] took her sister, [Margaret], out to dinner for her birthday. Cristina is Melissa's what?"}})
('FINAL ANSWER: aunt', 'aunt', {'program': '\ndef solve(symbols):\n    question = symbols["question"]\n    sentences = question.split(". ")\n    \n    people = {}\n    \n    for sentence in sentences:\n        sentence = sentence.replace("[", "").replace("]", "")\n        words = sentence.split()\n        \n        if "son" in sentence:\n            mom_dad = words[0]\n            son = words[-1]\n            people[son] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [son]\n            else:\n                people[mom_dad] = {"children": [son]}\n        elif "daughter" in sentence:\n            mom_dad = words[0]\n            daughter = words[-1]\n            people[daughter] = {"parent": mom_dad}\n            if mom_dad in people:\n                people[mom_dad]["children"] = people[mom_dad].get("children", []) + [daughter]\n            else:\n                people[mom_dad] = {"children": [daughter]}\n        elif "brother" in sentence and "sister" not in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "sister" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            if person1 in people and "parent" in people[person1]:\n                parent = people[person1]["parent"]\n                people[person2] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person2]\n                else:\n                    people[parent] = {"children": [person2]}\n            elif person2 in people and "parent" in people[person2]:\n                parent = people[person2]["parent"]\n                people[person1] = {"parent": parent}\n                if parent in people:\n                    people[parent]["children"] = people[parent].get("children", []) + [person1]\n                else:\n                    people[parent] = {"children": [person1]}\n            else:\n                pass\n        elif "husband" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n        elif "wife" in sentence:\n            person1 = words[0]\n            person2 = words[-1]\n            people[person1] = {"spouse": person2}\n            people[person2] = {"spouse": person1}\n    \n    person1 = question.split()[-3].replace("?", "")\n    person2 = question.split()[-1].replace("?", "")\n    \n    if person1 in people and "parent" in people[person1]:\n        parent1 = people[person1]["parent"]\n        if parent1 in people and "parent" in people[parent1]:\n            grandparent = people[parent1]["parent"]\n            if grandparent in people and "children" in people[grandparent]:\n                children = people[grandparent]["children"]\n                if person2 in children:\n                    return "grandmother" if person1 == "grandson" else "grandfather"\n    \n    if person1 in people and "parent" in people[person1]:\n        parent = people[person1]["parent"]\n        if parent in people and "children" in people[parent]:\n            siblings = people[parent]["children"]\n            if person2 in siblings:\n                return "brother" if person1 == "brother" else "sister"\n            else:\n                if person2 in people and "parent" in people[person2]:\n                    if people[person2]["parent"] == person1:\n                        return "son" if person2 == "son" else "daughter"\n                    else:\n                        return "uncle" if person1 == "nephew" else "aunt"\n                else:\n                    return "uncle" if person1 == "nephew" else "aunt"\n    \n    if person1 in people and "children" in people[person1]:\n        children = people[person1]["children"]\n        if person2 in children:\n            return "father" if person1 == "father" else "mother"\n    \n    if person1 in people and "spouse" in people[person1]:\n        spouse = people[person1]["spouse"]\n        if spouse == person2:\n            return "husband" if person1 == "husband" else "wife"\n    \n    return "aunt"\n', 'symbols': {'question': "[Norman] took his daughter, [Marilyn], to a baseball game. [Sharon] was making lunch for her son [Davis] and her husband [Kent]. [Florence] baked a birthday cake for her husband [Norman]. [Oliver] has a aunt named [Florence], routinely he went to school with his aunt [Davis] played basketball with his brother [Oliver]. Marilyn is Kent's what?"}})
