so, my thinking was this: you could have a simple version of SQL with some predefined keywords ('users', which returns something like a named tuple for example)
and then all you'd need is map, reduce and filter, and one method to put things in a table, and another method to "just put them there"
like simple set arithmetic for database queries
table = ((user['name'], user['reputation'], ) for user in DB.users where user['reputation'] >= 1000)
well the language doesn't really matter, I'm using a lot of python so my example will look a bit like python too; but the idea is to "invent a new language" (sort of) to enable people to hack together those widgets