This is due to a bug in the Freebase type provider - see here. Based on the description of the issue there, you might be able to try something like this as a workaround:
let countries = query {
for country in freebase.``Time and Space``.Location.Countries do
where (country.Name <> "Ghana")
}
countries
|> Seq.iter (fun c -> printfn "%s" c.Name)