Thanks Joffm. I understand it now--I was supposed to leave it as {QID} instead of replacing it with the actual ID. Everything works now. And now I know how to change the number of selected brands.
Thank you also for your other suggestions. I'm not quite done fine-tuning the survey, so there is still work to be done.