connect 'jdbc:rest:https://graph.microsoft.com/v1.0|spec=graph-spec.json,auth=oauth2,oauth2GrantType=device_code,tenant=YOUR-TENANT-ID,clientId=YOUR-CLIENT-ID,scope=Mail.Read offline_access'

status

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

quit
