what is the {academic degree} for {James Mattis} has {educated at} as {Richland High School} ?
Which degree did Richland High School give to James Mattis for his academic studies?
What academic degree did James Mattis receive at Richland High School?
SELECT ?n WHERE { ?n property:academic_degree ?n . ?n property:educated_at resource:Richland_High_School . resource:James_Mattis property:educated_at ?n }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q267902> .
?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/Q7330633> .
?statement <http://www.wikidata.org/entity/P512> ?value. 
} 

SELECT ?value WHERE { wd:Q267902 p:P69 ?s . ?s ps:P69 wd:Q7330633 . ?s pq:P512 ?value}