Well, your use case is related, but that’s not what the plugin does. What you can do instead to filter the pages:
$filteredPages = page('projects')->children()->visible()->filter(function($p) {
$structureField = $p->structurefield()->toStructure();
foreach($structureField as $item) {
if($item->occupation() == 'webdesign' && $item->department() == 'design') return $p;
}
});
Instead of hardcoding the values, you would need to get them from an URL parameter.