Is there a way to create a BAQ from its SQL code?

see SQL to BAQ?