query ref many works, adding assignments