Maybe you are after something like this?
Names default to here( 1 );
dt = Open( "$Sample_data/Big Class.jmp" );
dt << Graph Builder(
Size( 403, 330 ),
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
Elements(
Points( X, Y, Legend( 3 ) ),
Line( X, Y, Legend( 5 ), Row order( 1 ) )
),
Local Data Filter(
Add Filter(
columns( :age ),
Where( :age == 13 ),
Display( :age, Size( 256, 144 ), List Display )
)
)
);