Hi @hakan_cetinkaya, sure.
when you create objects in inkscape you can group them and the group will have specific id (id=“layer1” in the example below). you can not use this group as a chaises option - it must be single path id. you can not use object id (“rect739”) as well - this is not a path but the object.
So first you have to change your objects into paths

and you then can use it for selection. Make sure that you refer only to one path (not a group)