added sql query statement algorithm for 1 table query and more to come