At the moment it does not seem possible to print the sparql query that is executed by a source.cubes() call.
It could be nice to separate the building of the query from its execution so that we can print the query while developing.
const cubesQuery = source.cubes()
console.log(cubesQuery.toString()) // print the query for debug purposes
const cubes = await cubesQuery.execute()
At the moment it does not seem possible to print the sparql query that is executed by a source.cubes() call.
It could be nice to separate the building of the query from its execution so that we can print the query while developing.