What is {educated at} of {Mahmoud Ahmadinejad} and {academic degree}
When did taught at of Mahmoud Ahmadinejad and scholastic degree?
When did educated at of Mahmoud Ahmadinejad and academic degree?
SELECT ?h ?a WHERE { ?c property:educated_at ?a . ?c property:academic_degree ?h . . resource:Mahmoud_Ahmadinejad property:educated_at ?c }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q34448> . ?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:Q34448 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P512 ?value1 . }