modify to implement selection, Cartesian product and natural join