build attribute query, multiple values