Not clear about your issue, could you please give more details?
From my side, when creating dataset, we could directly write the query or import from files or use query designer.
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.