What is the {replaces} and the {named after} of {Gregorian_calendar} ?
Tell me what the Gregorian_calendar replaced and the person it was named after.
What did the Gregorian_calendar replace and what is it named after?
SELECT ?k ?t WHERE { resource:Gregorian_calendar property:named_after ?t . resource:Gregorian_calendar property:replaces ?k }
 SELECT ?ans_1 ?ans_2 WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12138> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1365> . ?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/Q12138> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P138> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_2. } 
SELECT ?ans_1 ?ans_2 WHERE { wd:Q12138 wdt:P1365 ?ans_1 . wd:Q12138 wdt:P138 ?ans_2 }
Julian calendar Gregory XIII