map have sql