Build the prototype of sql