Which queen of Spain was married to Ferdinand V and was later succeeded by Joanna?
{'directed': True, 'multigraph': False, 'graph': {}, 'nodes': [{'type': 'INTERNAL', 'name_': 'Q30', 'id': 0, 'label': 'United States of America'}, {'type': 'INTERNAL', 'name_': 'Q1860', 'id': 1, 'label': 'English'}, {'type': 'INTERNAL', 'name_': 'Q31', 'id': 2, 'label': 'Belgium'}, {'type': 'QUESTIONS_ENTITY', 'name_': 'Q29', 'id': 3, 'label': 'Spain'}, {'type': 'INTERNAL', 'name_': 'Q458', 'id': 4, 'label': 'European Union'}, {'type': 'INTERNAL', 'name_': 'Q142', 'id': 5, 'label': 'France'}, {'type': 'ANSWER_CANDIDATE_ENTITY', 'name_': 'Q141720', 'id': 6, 'label': 'European Air Transport Command'}, {'type': 'INTERNAL', 'name_': 'Q22808320', 'id': 7, 'label': 'Wikimedia human name disambiguation page'}, {'type': 'INTERNAL', 'name_': 'Q499249', 'id': 8, 'label': 'Walter'}, {'type': 'QUESTIONS_ENTITY', 'name_': 'Q4248351', 'id': 9, 'label': 'Joanna'}, {'type': 'INTERNAL', 'name_': 'Q387830', 'id': 10, 'label': 'Joanna Miles'}, {'type': 'INTERNAL', 'name_': 'Q19831535', 'id': 11, 'label': 'Joanna Nauwelaerts-Thues'}, {'type': 'QUESTIONS_ENTITY', 'name_': 'Q406540', 'id': 12, 'label': 'Ferdinand V'}, {'type': 'INTERNAL', 'name_': 'Q6270928', 'id': 13, 'label': None}], 'links': [{'name_': 'P17', 'source': 0, 'target': 0, 'label': 'country'}, {'name_': 'P37', 'source': 0, 'target': 1, 'label': 'official language'}, {'name_': 'P530', 'source': 0, 'target': 2, 'label': 'diplomatic relation'}, {'name_': 'P530', 'source': 0, 'target': 4, 'label': 'diplomatic relation'}, {'name_': 'P530', 'source': 0, 'target': 5, 'label': 'diplomatic relation'}, {'name_': 'P17', 'source': 1, 'target': 0, 'label': 'country'}, {'name_': 'P530', 'source': 4, 'target': 0, 'label': 'diplomatic relation'}, {'name_': 'P37', 'source': 4, 'target': 1, 'label': 'official language'}, {'name_': 'P112', 'source': 4, 'target': 2, 'label': 'founded by'}, {'name_': 'P47', 'source': 4, 'target': 3, 'label': 'shares border with'}, {'name_': 'P112', 'source': 4, 'target': 5, 'label': 'founded by'}, {'name_': 'P463', 'source': 4, 'target': 6, 'label': 'member of'}, {'name_': 'P112', 'source': 6, 'target': 2, 'label': 'founded by'}, {'name_': 'P112', 'source': 6, 'target': 5, 'label': 'founded by'}, {'name_': 'P407', 'source': 8, 'target': 1, 'label': 'language of work or name'}, {'name_': 'P31', 'source': 8, 'target': 7, 'label': 'instance of'}, {'name_': 'P27', 'source': 10, 'target': 0, 'label': 'country of citizenship'}, {'name_': 'P1412', 'source': 10, 'target': 1, 'label': 'languages spoken, written or signed'}, {'name_': 'P27', 'source': 10, 'target': 5, 'label': 'country of citizenship'}, {'name_': 'P735', 'source': 10, 'target': 9, 'label': 'given name'}, {'name_': 'P27', 'source': 11, 'target': 2, 'label': 'country of citizenship'}, {'name_': 'P735', 'source': 11, 'target': 9, 'label': 'given name'}, {'name_': 'P31', 'source': 12, 'target': 7, 'label': 'instance of'}, {'name_': 'P27', 'source': 13, 'target': 0, 'label': 'country of citizenship'}, {'name_': 'P31', 'source': 13, 'target': 7, 'label': 'instance of'}]}