Is there a tool to rate Raw+JPG as pairs?

Just a little update.
This thread: Ordering of RAW+JPG pairs
sort of answers my last question about viewing the jpgs, but applying rating to the raw as well. I just need to learn about lua…
In the meantime, thanks to @hannoschwalm for pointing out the grouping functionality for raw+jpgs, I have a usable all-dt workflow, where I do get all my images rated, without having to do the raws and jpg separately.
As long as I rate the images before doing any processing (as I should) dt displays the embedded jpg in lighttable, so it’s fast. The only exception being my Sony files, where if the lighttable view is any bigger than 2 images on the screen, dt brings up a processed raw version, even with this turned off in the settings.

@archiemac , would this workflow work for you as well? It still doesn’t let you rate by viewing the jpgs (without the lua script mentioned above) but does dt show the BW jpg preview in lighttable with you? Just wondering. (Edit: I mean a BW embedded preview in the raw file)
Anyway, thanks for the assistance all round.