Can't you just switch to sql mode and write it?