Question: What is the country with the highest median income whose member of is United Nations Educational, Scientific and Cultural Organization ?
Paraphrase: What is the country with the highest median income who is a member of the UN Educational, Scientific and Cultural Organization ?
SPARQL (Wikidata): select ?ent where { ?ent wdt:P31 wd:Q6256 . ?ent wdt:P3529 ?obj . ?ent wdt:P463 wd:Q7809 } ORDER BY DESC(?obj)LIMIT 5 
Answer: Canada, Norway, Sweden, Australia, Denmark