Changed type-attribute query