added select queries to lisp