The short answer is that, if you only want the getInputData to run a SuiteQL query, and won’t be using it anywhere else (in your map, reduce, or summarize functions) then you don’t even need to include the N/query module in your script, you can just use the syntax described in the SuiteAnswers article above to return the SuiteQL query, and Netsuite will run it for you.