FIRST() and LAST()
minor bug in EXISTS'