nql-sql integration fix