OSM tag name=St Mary matches Church of St Mary in these Wikidata fields:
OSM tag name=St Mary matches St. Mary's church in these Wikidata fields: