Partial matching with LIKE
If one name contains the other:
SELECT t1.name, t1.surname1, t1.id, t2.name1, t2.origin FROM table1 t1 LEFT JOIN table2 t2 ON t1.name LIKE '%' || t2.name1 || '%' OR t2.name1 LIKE '%' || t1.name || '%';