Which queen of Spain was married to Ferdinand V and was later succeeded by Joanna?
{'directed': True, 'multigraph': False, 'graph': {}, 'nodes': [{'type': 'INTERNAL', 'name_': 'Q6581097', 'id': 0, 'label': 'male'}, {'type': 'INTERNAL', 'name_': 'Q1860', 'id': 1, 'label': 'English'}, {'type': 'INTERNAL', 'name_': 'Q5', 'id': 2, 'label': 'human'}, {'type': 'QUESTIONS_ENTITY', 'name_': 'Q29', 'id': 3, 'label': 'Spain'}, {'type': 'INTERNAL', 'name_': 'Q959597', 'id': 4, 'label': 'Joanna Jędryka'}, {'type': 'INTERNAL', 'name_': 'Q22808320', 'id': 5, 'label': 'Wikimedia human name disambiguation page'}, {'type': 'INTERNAL', 'name_': 'Q499249', 'id': 6, 'label': 'Walter'}, {'type': 'INTERNAL', 'name_': 'Q10819', 'id': 7, 'label': 'Mariano Rajoy'}, {'type': 'QUESTIONS_ENTITY', 'name_': 'Q4248351', 'id': 8, 'label': 'Joanna'}, {'type': 'ANSWER_CANDIDATE_ENTITY', 'name_': 'Q844587', 'id': 9, 'label': 'Prime Minister of Spain'}, {'type': 'INTERNAL', 'name_': 'Q7817449', 'id': 10, 'label': None}, {'type': 'INTERNAL', 'name_': 'Q6070218', 'id': 11, 'label': 'Pedro Sánchez'}, {'type': 'INTERNAL', 'name_': 'Q76089954', 'id': 12, 'label': 'Joanna Penn Shales'}, {'type': 'QUESTIONS_ENTITY', 'name_': 'Q406540', 'id': 13, 'label': 'Ferdinand V'}], 'links': [{'name_': 'P31', 'source': 4, 'target': 2, 'label': 'instance of'}, {'name_': 'P735', 'source': 4, 'target': 8, 'label': 'given name'}, {'name_': 'P407', 'source': 6, 'target': 1, 'label': 'language of work or name'}, {'name_': 'P31', 'source': 6, 'target': 5, 'label': 'instance of'}, {'name_': 'P21', 'source': 7, 'target': 0, 'label': 'sex or gender'}, {'name_': 'P31', 'source': 7, 'target': 2, 'label': 'instance of'}, {'name_': 'P27', 'source': 7, 'target': 3, 'label': 'country of citizenship'}, {'name_': 'P39', 'source': 7, 'target': 9, 'label': 'position held'}, {'name_': 'P21', 'source': 10, 'target': 0, 'label': 'sex or gender'}, {'name_': 'P31', 'source': 10, 'target': 5, 'label': 'instance of'}, {'name_': 'P21', 'source': 11, 'target': 0, 'label': 'sex or gender'}, {'name_': 'P1412', 'source': 11, 'target': 1, 'label': 'languages spoken, written or signed'}, {'name_': 'P31', 'source': 11, 'target': 2, 'label': 'instance of'}, {'name_': 'P27', 'source': 11, 'target': 3, 'label': 'country of citizenship'}, {'name_': 'P39', 'source': 11, 'target': 9, 'label': 'position held'}, {'name_': 'P21', 'source': 12, 'target': 0, 'label': 'sex or gender'}, {'name_': 'P31', 'source': 12, 'target': 2, 'label': 'instance of'}, {'name_': 'P735', 'source': 12, 'target': 8, 'label': 'given name'}, {'name_': 'P31', 'source': 13, 'target': 5, 'label': 'instance of'}]}