views.sql to show the full relation for nodes and edges