fix joins and merges when the query is descending
Close #70. fix #35. support table aliases in join queries