Both comparator sections in the same package cannot have the same pin numbers. You might want to post the relay coil resistance.
R5 + R6 must source enough current from the 9v to saturate Q1, and this depends on the coil current. Figure out these resistors first.
For R3 & R4, 20 mV of hysteresis should be enough.
BTW, the 1N4004 across the coil is supposed to be a signal diode, f'rinstance like a 1N4148 or a 1N914, that can turn on fast and withstand the coil current briefly. The 4004 turn-on risetime is way slow, like for power line freqs.
Use a single point ground, otherwise the lamp current will modulate the ground voltage and you might make yourself a 100 Hz oscillator.
The comparator needs a bypass capacitor across it from + to -.