What is {educated at} of {Neil Armstrong} and {academic major}
Where Neil Armstrong go to school and what was his degree in?
Where did Neil Armstrong study and what was his academic major?
SELECT ?q ?t WHERE { ?o property:educated_at ?t . resource:Neil_Armstrong property:educated_at ?o . ?o property:academic_major ?q . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1615> . ?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> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q1615 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P812 ?value1 . }