It worked well with cbq and the cli version of the query with --script=query argument. Thank you very much for your answers