Create QueryApi