Two switches, one turns both lights on, the other just one of them
This isn't as hard as it seems at first

From your truth table, Light A is an OR of Switch 1 and Switch 2 (aka the motion sensor), while Light B is controlled by Switch 1 alone.

Since power is coming in at Switch 1, we can simply run a 5-core cable between the two switches as you have already done, then standard 3-core (twin&amp;earth) to each light from the second switch location.  At the first switch, the incoming live is connected to both poles of the switch as well as to the live wire in the 5-core cable going onwards, while the two switched wires go to the two poles of the switch.  All the neutrals connect to each other, and all the grounds connect to each other as well, of course.

At the second switch aka the motion sensor, the motion sensor's line side connection goes to the incoming live, while the motion sensor's load side connection connects to both the live feed to Light A and to one of the switched wires from the first switch.  The other switched wire from the first switch then is hooked to the live feed to Light B, while the neutrals connect to each other and the grounds connect to each other as usual.

If you are feeding Light B from Light A, by the way, you'll need a four-core cable to carry the two switched lives from the second switch to Light A, of course.