which golf course has less than 9 holes?
Entity
m.04zhp63
Gambler's Hole
class literal
sports.golf_course 9^^http://www.w3.org/2001/XMLSchema#integer
sports.golf_course type.int
Golf Course 9
none <
sports.golf_course.holes
Number of holes
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 (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :sports.golf_course . 
FILTER (?x1 < "9"^^<http://www.w3.org/2001/XMLSchema#integer>)
?x0 :sports.golf_course.holes ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND sports.golf_course (lt sports.golf_course.holes 9^^http://www.w3.org/2001/XMLSchema#integer))