optimize verses list sql