help code relay

From what I understand you want the 220V mains to turn on a relay which will turn on a lamp via the arduino, in which case you only need a single relay - connect the coil to 220V (make sure the relay coil is meant for 220V AC) and the switch contacts to the lamp & power source of the lamp.

If that's not what you meant then a circuit diagram may help.