anchor.diff:      expect(resultSet.columns.map(resultSet.dartNameFor), ['x']);
       expect(resultSet.columns.map((c) => c.type), [ColumnType.integer]);
     });
  +
  +  test('finds the underlying table when aliased through CFE', () {
  +    final file = session.registerFile(Uri.parse('package:foo/test.moor'));
  +    final result = file.currentResult as ParsedMoorFile;
  +    final query = result.resolvedQueries.firstWhere((q) => q.name == 'test2')
  +        as SqlSelectQuery;
  +
  +    final resultSet = query.resultSet;
  +
  +    expect(resultSet.matchingTable, isNotNull);
  +    expect(resultSet.matchingTable.displayName, 'foo');
  +    expect(resultSet.needsOwnClass, isFalse);
  +  });
   }
  
positive.code:     backend = TestBackend(
        {
          AssetId.parse('foo|lib/test.moor'): r'''
  test:
  WITH RECURSIVE
    cnt(x) AS (
  
negative.code:     LIMIT 1000000
    )
    SELECT x FROM cnt;
    
  test2:
  WITH alias(first, second) AS (SELECT * FROM foo) SELECT * FROM alias;
           ''',
        },
      );
  