Vince  said:  It looks like it got as far as the first " } " included within the attack macro and died thinking it was the end of the query...   Yup. This behaviour is also outlined in the first sentences of  Advanced Usage for Roll Queries .   Curious, even if we replaced all the problematic special characters 
in the attack macro, would the query resolve both attacks and only give 
the result of the one chosen?  I'm not sure what you mean by this...   Seems like using % macro names inside a query, while theoretically possible, isn't practical. ;-(  Agreed, but some might prefer, for whatever reason, to nest Ability  calls  within Roll Queries.  MrBritishGamer  learned how to do so  within this thread .   I'm assuming the query tries to resolve the macro, but the macro itself 
contains special characters which causes the query to fail. example:  ?{Choose Attack.|Attack1,%{selected|repeating_weapon_$0_attack-roll}|Attack2,%{selected|repeating_weapon_$1_attack-roll}} The query fails at the inital propmt;  Attack1, &{template:pf_attack It looks like it got as far as the first " } " included within the attack macro and died thinking it was the end of the query...  Yes; true. That first closing curly brace is problematic and needs to be replaced with its HTML entity, as per  Roll Query Troubleshooting .   However , you're dealing with sheet buttons (as opposed to conventional Abilities on the Attributes & Abilities tab), and there's normally no way to edit the  values  of those sheet buttons (i.e. make character replacements on the contents of those sheet buttons) short of editing the sheet's HTML.  Fortunately, the Pathfinder Character Sheet provides a " Macro Text " section in this instance. Treat the "Macro Text" as the  value  of the of the Ability  call  linked to the sheet button, and work through the procedures outlined in  Advanced Usage for Roll Queries  and  Roll Query Troubleshooting . This should allow you to get the ?{Choose Attack.} Query working.  Please let me know if you have any questions.