tab is a product line of which brand?
Entity
m.01012752
Tab
class entity
business.brand m.02v4x9
business.brand business.product_line
Brand Tab
none none
business.brand.product_lines
Product lines
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 :business.brand . 
VALUES ?x1 { :m.02v4x9 } 
?x0 :business.brand.product_lines ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND business.brand (JOIN business.brand.product_lines m.02v4x9))