I stood by while he talked with his friend, Mi staris apude, dum li paroladis kun sia amiko.
Mi staris apude dum li paroladis = I stood by (near to, close by) whilst he was talking.
Ne malproksime de la dometo staris preĝejo = Not far from the cottage was (stood) a church.
Adverb, as:--Li staris dekstre = He stood on the right.
Proksime de la domo staris arbo = Near (to) the house stood a tree.
Antaŭ nia militistaro staris pafilegoj = In front of our army were (stood) cannon.
The above list will hopefully give you a few useful examples demonstrating the appropriate usage of "staris" in a variety of sentences. We hope that you will now be able to make sentences using this word.