Search for unallocated Patients

I am struggling to build one query,

We allocated Patient to careteam as below

CareTeam > Subject = Group/1
Group > member = Patient/1

I want to search all Patients those are not allocated to any careteam

Can you please help with this?

I have tried :missing & :not but those are not working with reverse chaining