I’ve not run this plugin, so I’m not sure whether it can query based on multiple fields and also not sure how it includes data after submission, but it might be a good starting point for your needs.
You probably want to look at the confirmations documentation. With conditional logic based on the field combinations it should give you what you’re after.