Owncloud SQL manual export to .VCF & .ics

Hi
could anyone help me by generating the batch or SQL script ?
Thank you