Didn't the BeOS filesystem (BFS and later OpenBFS) make this possible? I remember being impressed with they way extended attributes made the file system and files into a database for any programs that wanted to interact with them. And, I don't know exactly how it worked but the system supported live queries that allowed you to drill down based on the attributes. MacOS and Windows both created things intended to appear like live queries but they always seemed slower and less elegant.