"What is the continent of West Antarctica, that has boroughs named Heard Island and McDonald Islands ?"
SELECT ?answer WHERE { wd:Q530917 wdt:P30 ?answer . ?answer wdt:P150 wd:Q131198}
west antarctica: Q530917 heard island and mcdonald islands: Q131198