What is {is proximately caused by} of {consequence} of {bubonic plague} ?
What was proximately brought about by the result of bubonic plague ?
What was proximately caused by the consequence  of bubonic plague ?
SELECT ?h WHERE { ?g property:has_immediate_cause ?h . resource:bubonic_plague property:has_effect ?g }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q217519> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1542>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1478> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q217519 wdt:P1542 ?X . ?X wdt:P1478 ?answer}
Rattus rattus Oriental rat flea