Export vegetation to qgis or geojson

Can anyone tell me how to build a query that would save me the vegetation points in qgis or just create a geojson. Thank you