Query 3d model building base on attribute

I wanna ask is there a way for me to make a query based on 3d model attribute?