Requires GSQL vertex attribute result outside of their object

pie = select s from all_segment:s-(profile_segment:ps)-Profile:p-(profile_purchase:e)-Orders:t-(order_items:ee)-Products:tt ACCUM
s.@total_spend +=ee.item_qty*tt.item_price;
PRINT pie[
pie.id AS name,
pie.@total_spend AS y
];

Giving us below output
{
“pie”: [
{
“attributes”: {
“name”: “basic”,
“y”: 52
},
“v_id”: “basic”,
“v_type”: “segment”
}
]
}
I Tried this one print pie[pie.@total_spend] but this will also giving the result in the attribute object
Required Output:
{
“pie”: [
{
“name”: “basic”,
“y”: 52
“v_id”: “basic”,
“v_type”: “segment”
}
]
}