transform query source