Implementation oof query language