sentence1: Upper Austria is a municipality in the Wernstein am Inn district in the Austrian province of Schärding .
sentence2: Wernstein am Inn is a municipality in the district of Schärding in the Austrian state of Upper Austria .