You can certainly query relational data without using SQL syntax i.e. datalog. You can also query documents with SQL these days. I think the distinction lies along the lines of: does the system process queries using a query solver based on relational algebra?