now sql query parsing and distributing remains