what observatory first found 10504 doga?
Entity
m.0975t6
Crimean Astrophysical Observatory
class entity
astronomy.astronomical_observatory m.03y1g4y
astronomy.astronomical_observatory astronomy.astronomical_discovery
Astronomical Observatory 10504 Doga
none none
astronomy.astronomical_observatory.discoveries
Discoveries
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 :astronomy.astronomical_observatory . 
VALUES ?x1 { :m.03y1g4y } 
?x0 :astronomy.astronomical_observatory.discoveries ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.astronomical_observatory (JOIN astronomy.astronomical_observatory.discoveries m.03y1g4y))