Jcr xpath query on a jcr:data binary field

Hi All,

we just switched to BR XM 12 and we don’t see (some of) our binaries anymore after a content restore of the production database to our test environment.

After some research I found the underlying problem: In the repository the node property jcr:data shows up with -1 bytes:
* [name="jcr:data"] = -1 bytes.

To be able to see which binaries are missing, I’m trying to create a query where I can see all nodes that have this -1 bytes, but failing misserably at that.
I tried this in various forms for the “-1” part, but all returned 0 results:
//content/gallery//*[@jcr:data=-1]

Can anyone help me with writing the correct query?

Many thanks!