Allow single-provider node queries using -f

Fixes #9008.