What service with the largest port is a directory?
select ?ent where { ?ent wdt:/instance of/ wd:/directory service/ . ?ent wdt:/port/ ?obj . ?ent wdt:/instance of/ wd:/directory service/ } ORDER BY DESC(?obj)LIMIT 5 