Element criteria with a table field
Table fields in Craft just store their data in a JSON blob in the content table. That means you can't really query them like you would other things, you'd have to load in all of the data, and then filter it out as an array.

While you can certainly do this in Twig, it smacks of a bit too much "business logic" in Twig; so at this point I might be considering one of two options:


Refactoring it out to a
plugin
or
module
that will do the heavy lifting behind the scenes
Changing the schema I'm using to store the data in something that
can be queried, such as moving the data into entries or a matrix block or perhaps a
SuperTable


Or if either of these seems like too much work, or you're not storing a whole lot of data in the Table field, then I'd just do it in Twig by looping through all of the rows in the table, and selecting only the ones that meet my criteria.