Added Vertica query