Searching for matching queries
Create a new table with only one object i.e. object X
Execute all the queries on it.
Discard those which return nothing.
Remaining queries are the queries that match your object X.


This will be faster than searching in a big table.