Relational Programming with Foundation Models