Which queen of Spain was married to Ferdinand V and was later succeeded by Joanna?
{'directed': True, 'multigraph': False, 'graph': {}, 'nodes': [{'type': 'QUESTIONS_ENTITY', 'name_': 'Q29', 'id': 0, 'label': 'Spain'}, {'type': 'INTERNAL', 'name_': 'Q22808320', 'id': 1, 'label': 'Wikimedia human name disambiguation page'}, {'type': 'QUESTIONS_ENTITY', 'name_': 'Q4248351', 'id': 2, 'label': 'Joanna'}, {'type': 'ANSWER_CANDIDATE_ENTITY', 'name_': 'Q6839331', 'id': 3, 'label': 'Category:Films shot in Spain'}, {'type': 'INTERNAL', 'name_': 'Q8076730', 'id': 4, 'label': 'Álvaro Núñez de Lara'}, {'type': 'INTERNAL', 'name_': 'Q97755401', 'id': 5, 'label': 'Joanna Vega Saladie'}, {'type': 'QUESTIONS_ENTITY', 'name_': 'Q406540', 'id': 6, 'label': 'Ferdinand V'}], 'links': [{'name_': 'P971', 'source': 3, 'target': 0, 'label': 'category combines topics'}, {'name_': 'P17', 'source': 4, 'target': 0, 'label': 'country'}, {'name_': 'P31', 'source': 4, 'target': 1, 'label': 'instance of'}, {'name_': 'P27', 'source': 5, 'target': 0, 'label': 'country of citizenship'}, {'name_': 'P735', 'source': 5, 'target': 2, 'label': 'given name'}, {'name_': 'P31', 'source': 6, 'target': 1, 'label': 'instance of'}]}