Infocom themselves tried such a thing many years ago - IIRC it was a db interface language called Cornerstone. Somewhat obviously, not a great success.
Wouldn't that have been with a different language? Inform 7 is a vastly different language from Inform 1-6 (which were relatively Algol-like), and only came out in 2006.
Cornerstone was a menu-driven database application, it wasn't programmable. It would probably have sold better if it was.