intermediate is the rating for which ski run?
Entity Entity Entity Entity Entity Entity Entity
m.04knmp6 m.04knmkn m.04knmln m.04knmmq m.04knmq6 m.04knmsg m.04knmsq
3 Bears Blue Bell Race Arena Rock N' Roll Big Dipper Sleepy Hollow Upper Big Dipper
class entity
skiing.ski_run m.04knmg2
skiing.ski_run skiing.run_rating
Ski Run Intermediate
none none
skiing.ski_run.rating
Rating
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 :skiing.ski_run . 
VALUES ?x1 { :m.04knmg2 } 
?x0 :skiing.ski_run.rating ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND skiing.ski_run (JOIN skiing.ski_run.rating m.04knmg2))