Get the dataset from a "returning" clause using the Java SDK

what is the query you are trying to execute, and what is the SDK version you are using?