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