It doesn't. The script loads the data into an in-memory database that's part of the app. Every object in the app uses this in-memory database. And that's not an sql database so there are no sql queries. The expressions in the app objects and master items tell Qlik Sense how to calculate the results from the data in the in-memory database.