export inner Query class