A file system is a database though. Not a relational one, granted, but it's still basically nosql before it was cool.
And I wouldn't call "cd", "ls", "mkdir", "rm", "cat" and "echo" a query language.
Even the first navigational databases had a proper query language, although radically different from SQL.