Dak Prescott threw for 336 yards and five scores, and the Cowboys still lost 46-40
San Francisco ran for 214 yards at 7.4 a carry and hit three long touchdowns, and Dallas's best passing day of the season fell short.

The deciding stretch
B.Purdy threw short right to C.McCaffrey for a 66-yard touchdown with 3:23 left in the fourth quarter. B.Purdy then found C.McCaffrey again on the two-point try, and it was good. The play cost Dallas 13 percent of its win probability. The Cowboys finished with 40 points and 432 yards, and the 49ers won 46-40 anyway.
The margin came from yards per play. San Francisco gained 584 yards to Dallas's 432 and averaged 11.2 yards per pass attempt to the Cowboys' 6.6. The Cowboys went 4-for-5 on fourth down and 3-for-3 in the red zone. Those numbers kept them in the game, but the defense could not stop the big plays.
The swing
The largest swing came in the second quarter. B.Purdy threw short right to C.McCaffrey for a 74-yard touchdown with 2:26 left in the half. That play moved the win probability 20 percent toward San Francisco.
Dallas had just gotten some of that back. Dak Prescott threw short left to George Pickens for a 39-yard touchdown at 4:08, worth 13 percent, but B.Aubrey's extra point went wide left. That missed kick left the Cowboys a point short of a full reply.
The run game then added to the damage. D.Samuel went left end for a 70-yard touchdown at 6:59 of the third quarter, another 12 percent against Dallas. The 49ers ran for 214 yards at 7.4 yards per carry. The Cowboys managed 96 yards at 4.0.
Expected points added (EPA, the points a play is worth compared with an average play from the same spot) tells the same story. San Francisco averaged 0.547 EPA per play to Dallas's 0.221. On dropbacks the gap was 0.777 to 0.209. Their success rates were close, 49 percent to 47, so the 49ers' edge was in how far their good plays went.
Who moved the needle
Prescott led the game with 11.5 total EPA over 55 plays. He completed 29 of 50 passes for 336 yards, five touchdowns and one interception, a 103.4 passer rating. Pickens caught 11 passes for 145 yards and three touchdowns on 18 targets, good for 6.4 EPA.
Ryan Flournoy turned seven plays into 5.1 EPA, with five catches for 59 yards and a touchdown. CeeDee Lamb caught seven passes for 72 yards and a score on 13 targets, but his total EPA was -1.5. Javonte Williams carried 16 times for 63 yards, 3.9 per carry, and finished at -1.1.
On defense, Caleb Downs made 11 tackles and Quinnen Williams made 10, with a sack and a tackle for loss. Elijah Garcia and LT Overton each had a sack as well. Dallas sacked the quarterback five times for 19 yards, and the 49ers still averaged 11.2 yards per pass attempt. San Francisco also turned the ball over zero times to Dallas's one.
The 49ers were flagged 11 times for 100 yards, to five penalties for 35 yards on Dallas. That did not slow them. Dallas gave up a defensive holding call on J.Porter during the McCaffrey touchdown, five yards enforced on the two-point try.
Where it leaves them
Dallas is 4-6 and has lost one straight. The Cowboys are 1-4 at home and 3-2 on the road. They have scored 286 points and allowed 282, a difference of plus 4. They sit second in the division behind the Giants at 5-3-1, with the Commanders at 3-5-1 and the Eagles at 2-7 behind them, and rank 10th in the conference.
The next game is Week 11 against the Tennessee Titans at AT&T Stadium on Sunday, Nov 22, at 1:00 PM ET on Fox. Dallas is a 7.5-point favorite with a total of 52.5. Dallas ran 77 plays against San Francisco but could not hold the 49ers under 4.0 yards a carry or 7.4 yards a carry, so the number to watch against Tennessee is yards per rush attempt allowed.