first draft of sql