DROP PROPERTY GRAPH IF EXISTS g2;
DROP TABLE IF EXISTS t2;
CREATE TABLE t2 (id int PRIMARY KEY, nm text);
INSERT INTO t2 VALUES (1, 'a');
CREATE PROPERTY GRAPH g2 VERTEX TABLES (t2);

-- empty output
SELECT (s.g).* FROM (SELECT gt AS g
        FROM GRAPH_TABLE (g2 MATCH (a) COLUMNS (a.nm)) gt) s;

-- spurious error
SELECT (s.g).nm FROM (SELECT gt AS g
        FROM GRAPH_TABLE (g2 MATCH (a) COLUMNS (a.nm)) gt) s;


-- actual output
SELECT s.g FROM (SELECT gt AS g
        FROM GRAPH_TABLE (g2 MATCH (a) COLUMNS (a.nm)) gt) s;
SELECT * FROM (SELECT gt AS g
        FROM GRAPH_TABLE (g2 MATCH (a) COLUMNS (a.nm)) gt) s;
