how many film casting directors are there from thebol√≠via? 
Value
2
class entity
film.film_casting_director m.0165v
film.film_casting_director location.country
Film casting director bol√≠via
count none
people.person.nationality
Country of nationality
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (COUNT(?x0) AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :film.film_casting_director . 
VALUES ?x1 { :m.0165v } 
?x0 :people.person.nationality ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND film.film_casting_director (JOIN people.person.nationality m.0165v)))