What is {academic major} and {academic degree} of {{Melinda Gates} has {educated at} as {Duke University}}
Provide the name of Melinda Gates' academic major and degree from Duke University.
What was Melinda Gates' academic major and degree when she studied at Duke University?
SELECT ?f ?b WHERE { ?z property:academic_degree ?b . ?z property:academic_major ?f . ?z property:educated_at resource:Duke_University . resource:Melinda_Gates property:educated_at ?z }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q463877> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q168751>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q463877 p:P69 ?s . ?s ps:P69 wd:Q168751 . ?s pq:P812 ?value1 . ?s pq:P512 ?value2 }