preliminary SQL