two tables; conditions are nodes