Adding contains to TupleQuery