Similar Items: Tree-width for first order formulae