Querying properties of embedded objects