processing of SQLs