The boy that(who) is sitting by the window is my good friend.( 做主语)
The boy who I just talked with is my good friend.(做宾语)