connect 'jdbc:rest:https://graph.microsoft.com/v1.0|spec=graph-spec.json,auth=bearer,token=YOUR-ACCESS-TOKEN'

status

SELECT id, subject, from_address, "receivedDateTime" FROM messages
  FILTER isRead eq false;

SELECT id, subject, "bodyPreview" FROM messages
  ORDERBY receivedDateTime desc;

quit
