Query Object Relations in Fieldcollections

I’m a bit new to Pimcore and when listing objects I can successfully query Fieldcollections by attributes such as input or select. I was wondering is it possible to query by attribute of object relation types in Fieldcollections.

I can achieve this when querying an Objectbrick because the relation’s id is stored in the DB column, ie., if my relation attribute is called product then in the DB will be a column of product__id.

However, there is no column in the Fieldcollection for attributes of object relation types in Fieldcollections.

I know Objectbricks are a bit different because they are a 1:1 relation, but can I somehow query for the object__id in Fieldcollections when Filtering Objects by attributes from Field Collections?