Designing query spiff id.