Basic data structure with nodes, links, queries, and sessions