You have two cases to try. I suggest 30,000 training sweeps, learning rate of 0.9. Try training several times. This allows you to train the same function on a different network. Like the first network, this one has 3 input nodes and 1 output node, but unlike the first one, it also has an intervening hidden layer, containing 2 hidden units.
Layers are fully cross-connected.
Again, try training several times.