Resimplify query for deviceAttributes