@ABV11 you can use this body
{"query":{
"query":"(@accounts(source.name:\"$source\") AND created: [now-72h TO now]) OR (@accounts(source.name:\"$source\") AND attributes.startDate:[$datenow TO $dateLater])"},
"indices":["identities"],
"includeNested":false,
"sort":["displayName"]}
"@
type or paste code here
Please mark it as solution if it works