Halve the squash. Heat the oven to 400°F. Set a damp towel under the cutting board so it does not slide. Cut the squash crosswise through the middle with a large, sharp knife and scoop out the seeds.
Roast the squash. Brush the cut sides with 1 teaspoon olive oil and ¼ teaspoon salt, then roast cut side down 35 to 45 minutes, until the skin dents under a finger and a knife slides in with little resistance.
Start the sauce. About 10 minutes into the roast, warm 1 tablespoon olive oil in a large, deep skillet over medium heat. Cook the diced onion 6 minutes, until soft and translucent.
Add the flavor. Add the garlic, 2 tablespoons tomato paste, oregano and red pepper flakes. Stir 2 minutes, until the paste turns brick red.
Simmer with the beans. Stir in the crushed tomatoes, ½ teaspoon salt, the pepper and the beans. Simmer uncovered over medium-low heat 20 minutes, stirring now and then, until a spoon leaves a trail that fills in slowly.
Mash some beans. In the last 5 minutes, mash about ½ cup of the beans against the side of the pan.
Rest and fork the strands. Turn the halves cut side up and rest 10 minutes so the steam escapes. Scrape a fork around the inside of each half, then blot the strands in a colander with paper towels for 1 minute.
Toast the pine nuts. Toast 3 tablespoons pine nuts in a dry small skillet over medium-low heat 3 minutes, stirring, until golden.
Serve. Divide the strands among 4 bowls, about 1 ¼ cups each, and ladle about 1 ½ cups of sauce over each. Top with the pine nuts and the torn basil.