Create IsInRelation.table.sql

As in Gdrive db_final3.png
not tested