in version 4.5 (trunk) there is an enhancement in the query implementation that enables user to specify operands, so in your case you could use LIKE to specify constant part of the definition id or use IN to specify all process definition ids you are interested in.
Please note it still under review and any comments are more than welcome.