Query step builder definition