which olympic medal (demonstration) has germany won?
Entity
m.02lpp7
Gold medal
class class entity
olympics.olympic_medal_demonstration olympics.olympic_demonstration_medal_honor m.0345h
olympics.olympic_medal_demonstration olympics.olympic_demonstration_medal_honor olympics.olympic_participating_country
Olympic medal (demonstration) Olympic athlete/demonstration competition relationship Germany
none none none
olympics.olympic_demonstration_medal_honor.medal olympics.olympic_demonstration_medal_honor.country
Medal Country
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 :olympics.olympic_medal_demonstration . 
?x1 :type.object.type :olympics.olympic_demonstration_medal_honor . 
VALUES ?x2 { :m.0345h } 
?x1 :olympics.olympic_demonstration_medal_honor.medal ?x0 . 
?x1 :olympics.olympic_demonstration_medal_honor.country ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND olympics.olympic_medal_demonstration (JOIN (R olympics.olympic_demonstration_medal_honor.medal) (JOIN olympics.olympic_demonstration_medal_honor.country m.0345h)))