What is the {commissioned by} and the {founded by} of {Hagia_Sophia} ?
Tell me what Hagia Sophia commissioned and found.
What did Hagia Sophia commission and found?
SELECT ?y ?q WHERE { resource:Hagia_Sophia property:founded_by ?q . resource:Hagia_Sophia property:commissioned_by ?y }
 SELECT ?ans_1 ?ans_2 WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12506> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P88> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_1. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12506> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P112> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_2. } 
SELECT ?ans_1 ?ans_2 WHERE { wd:Q12506 wdt:P88 ?ans_1 . wd:Q12506 wdt:P112 ?ans_2 }
Justinian I Constantine the Great