gregorian querying working