@djmoch 9p has structured data: files.
maybe you could write to a query file & it would go make a new directory with your results.
even this feels too mystical & im not sure the point. you have your data. when would writing small shell scripts to "query" that data be insufficient?