Query webform submissions
Webform submissions are content entities, so something like this should work:

$query = \Drupal::entityQuery('webform_submission')
    -&gt;condition('uid', $uid);
$result = $query-&gt;execute();