Hi,
In this particular case, since the number of lights on these splines is equal, you can use the Geom ID > Sequence mode and disable the first and last items. However, for this purpose, the RailClone plug-in would be a more effective solution, as it allows you to easily define the use of only the Corner Input. Please find attached modified versions of your scene. I hope this helps.
Best regards,