compleate query calculation system !