SQL queries are not shown using --simulate

SQL queries are no longer displayed when you use the --simulate flag.  $input_file is now always used in the query method, so the query is never shown.  This makes it hard to debug other issues.