Transform query source