Filtering: introduce sub-queries on object type
This will allow to create more complex queries such as limiting results in the passrate view to the last runconfig ordered by added_on.
It can also be used to close #91 (closed) by writing something like "machine MATCHES (tag = 'ICL') AND machine MATCHES (tag = 'PSR2')".