Task: Question Generation
Input (English): Passage: The 49ers' ninth game was rivalry match against the Rams at home. In the first quarter the 49ers trailed early with kicker Josh Brown making a 42-yard field goal. They took the lead with RB Frank Gore getting a 1-yard TD run. This was followed in the second quarter by kicker Joe Nedney nailing a 26-yard field goal. The Rams fought back with QB Sam Bradford completing a 5-yard TD pass to WR Danny Amendola. Followed in the third quarter by RB Steven Jackson getting a 13-yard TD run. The 49ers got the lead back with Nedney getting a 47-yard field goal, followed by QB Troy Smith making a 16-yard TD pass to WR Michael Crabtree. The Rams tied the game with Brown making a 33-yard field goal. The decision was made at overtime when Nedney successfully put away a 29-yard field goal to give the 49ers their third win of the season, bringing their record up to 3-6.
Output (English): Which team won?