What is {inception} of {Gregorian calendar} that is {applies to jurisdiction} is {Papal States} ?
The Gregorian calendar was introduced to Papal States on which date?
When was the Gregorian calendar introduced to the Papal States?
SELECT ?k WHERE { resource:Gregorian_calendar property:inception ?j . ?j property:inception ?k . ?j property:applies_to_jurisdiction resource:Papal_States }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12138> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P571> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P1001> <http://wikidata.dbpedia.org/resource/Q170174>
} 

SELECT ?obj WHERE { wd:Q12138 p:P571 ?s . ?s ps:P571 ?obj . ?s pq:P1001 wd:Q170174 }