echo query to be ran