query segment ui