sql.query is a function that will receive two arrays, one is the strings part, the other is the injected values... the template processor takes those arrays and turns it into a parameterized query to the database.
The backtick feature in ES2015 is really cool and allows for some great DSL type features.