type definitions for TableQuery class