select unique surname, telephone
from directcustom
where directcustom.surname = ".VACANT" or directcustom.surname = ".UNPROGRAMMED"
  and directcustom.telephone NOT MATCHES "13*"
  and directcustom.telephone NOT MATCHES "18*"



