added sql qry and result