66895 is the pubchem for which drug?
Entity
m.06qr8z
Prontosil
class literal
medicine.drug 66895^^http://www.w3.org/2001/XMLSchema#integer
medicine.drug type.int
Drug 66895
none none
medicine.drug.pubchem
Pubchem
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 . 
VALUES ?x1 { "66895"^^<http://www.w3.org/2001/XMLSchema#integer> } 
?x0 :medicine.drug.pubchem ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND medicine.drug (JOIN medicine.drug.pubchem 66895^^http://www.w3.org/2001/XMLSchema#integer))