Added QueryApi source file