Cut your SQL into shape