The simplest solution it to use a multiple choice for Q1 and limit it to 1 answer. Then the array filter will work (assuming all answer.sub-question codes match).
Cheers,
Tony Partner Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.