Creating nodes and sub-nodes from database table
One solution would be to create a new content-type, let's call it Question-Page and the install Entity Reference, which provides a field type that can reference other nodes. Then you could add three new fields for previous_id, next_positive_id and next_negative_id.



To import the data from your table I think you could use the Feeds module. First create one importer that will create the actual nodes. Second an importer that will update each node and set the node reference fields.


First importer that will only create all nodes.





Second importer, that will setup the reference fields.