added query handling sample to hello