I would use a PHP script to get around these kind of hassles. You can use the query module to do some manual selects on the database, if you really need to avoid PHP script in your template.
https://ellislab.com/expressionengine/user-guide/add-ons/query/
The ExpressionEngine template parsing engine doesn't provide any means to break out of a {exp:channel:entries}
loop based on a conditional.
You basically need to break out of your {exp:channel:entries}
loop once you hit ten entries that satisfy your conditional. There's no viable way to do that, even with an absurd PHP-enabled template, regardless of if it's set to parse PHP at input or output. Templating like this only affords forward progression execution.
I can help you generate a PHP script, or a query module tag, to do what you want... but you'll need to expand your question to include what your field IDs are, if you're using MSM, and other issues. Hope I'm being helpful.
Edit
Official edit: If any of the heavy-hitters on this forum know of a way to break out of a EE tag loop (like {exp:channel:entries}
), please chime in. I might be an idiot.