add subselect flag for sqlite3