How to query MongoDB with SQL.