1. A computerized method for creating a SQL statement, the method comprising: generating a SQL statement having a from clause, the from clause include a plurality of table names; creating a plurality of table sets from the plurality of table names; iterating of the plurality of table sets until one table set remains and for each iteration performing the tasks of: selecting a first table set and a second table set from the plurality of table sets; selecting a first table from the first table set and selecting a second table from the second table set; selecting a first column in the first table and selecting a second column from the second table; inserting into a where clause for the SQL statement a predicate including the first column and the second column; and merging the first table set and the second table set.