fix #1: correcting the sql to use just the qualified dataset name rather than the sql_code