def METHOD_NAME(self) -> Iterator[TableQuery]:
    """
    If queryLogFilePath available in config iterate through log file
    otherwise execute the sql query to fetch TableQuery data.
    This is a simplified version of the UsageSource query parsing.
    """
    if self.config.sourceConfig.config.queryLogFilePath:
        yield from self.yield_table_queries_from_logs()
    else:
        logger.info(
            f"Scanning query logs for {self.start.date()} - {self.end.date()}"
        )
        yield from self.yield_table_query()