The example is not clear. It would be nice to know: 1) what's in the tables being searched and 2) the output of the search.