revising query stock