Breakdown of Zgubiła wiersz, który napisała w szkole.
w
in / on (a day)
szkoła
school
napisać
to write (perfective)
który
which, who (relative)
Questions & Answers about Zgubiła wiersz, który napisała w szkole.
Why is the relative pronoun który used here instead of którego?
Który translates to "which" or "that". It refers back to wiersz (poem), which is a masculine inanimate noun. In the second half of the sentence (she wrote the poem), the poem is the direct object, so it must take the Accusative case. For masculine inanimate nouns, the Accusative form looks exactly like the dictionary form, so it stays który.
Why is there a comma before który?
In Polish, you must always put a comma before relative pronouns like który when they introduce a new clause (a new mini-sentence with its own verb). English often skips the comma before "that", but Polish punctuation rules strictly require it here.
Why are the verbs zgubiła and napisała used instead of their imperfective equivalents?
Both zgubiła (she lost) and napisała (she wrote) are perfective verbs. This means they describe actions that are completely finished. She wrote the poem to completion in the past, and losing it was a single, completed event.
Why does the word szkoła (school) change to szkole here?
The preposition w (in/at) requires the Locative case when you are talking about a fixed location where something happened, like writing a poem at school. If the sentence was about moving into the school, you would use a different case.