what is the {academic degree} for {Mario Vargas Llosa} has {educated at} as {Leoncio Prado Military Academy} ?
With what degree did Mario Vargas graduate from Leoncio Prado Military Academy?
What degree did Mario Vargas receive at the Leoncio Prado Military Academy?
SELECT ?z WHERE { ?e property:educated_at resource:Leoncio_Prado_Military_Academy . ?e property:academic_degree ?z . resource:Mario_Vargas_Llosa property:educated_at ?e }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q39803> .
?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/Q839058> .
?statement <http://www.wikidata.org/entity/P512> ?value. 
} 

SELECT ?value WHERE { wd:Q39803 p:P69 ?s . ?s ps:P69 wd:Q839058 . ?s pq:P512 ?value}