You'll have to evaluate it manually.
The query system is powerful, but it's first-order only, and selects objects based on their data. That is, you can't select objects based on their child properties, or based on relationships between objects.
(You can select the child properties themselves, if they are objects -- system parameters are not objects (but system parameters are integrated with the parent object, so can be filtered on, directly), but user parameters are. Once you have parameter objects selected, go to Inspector and click the Owner link to select the Parts.)
You can also make powerful use of the List panel, or the Parameter Manager, by filtering and editing in those directly, or copying the data into a spreadsheet program to do more powerful things there, then paste it back.
Tim