1 2 3 4 5 6 7 8
use plato; DEFINE SUBQUERY $process() AS MATERIALIZE Input INTO $tmp; SELECT * FROM $tmp; END DEFINE; SELECT * FROM $process();