"@foo unknown" detection and handling (query optimizer hints)