Use a derived band math variable in second band math operator

I have tried batch processing in SNAP in order to apply band-math operation to filter only the pixels with a predetermined coherence value from the original coherence maps that were created alongside with the Master-slave coregistration and interferogram generation step. But the batch processing failed to process the second input because the graph I have created had a specified band-math expression for the first date of the series. Is it possible to write a general band-math expression that can be applied on a certain bands from multiple input products without specifiying the exact name of that input band, so hopefully the batch processing of band-math works on 70+ products?