tertatolol is in what drug class?
Entity
m.018l62
Beta blocker
class entity
medicine.drug_class m.03m5q6g
medicine.drug_class medicine.drug
Drug class Tertatolol
none none
medicine.drug_class.drugs
Drugs
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 :medicine.drug_class . 
VALUES ?x1 { :m.03m5q6g } 
?x0 :medicine.drug_class.drugs ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND medicine.drug_class (JOIN medicine.drug_class.drugs m.03m5q6g))