What is {colors} of {rail line connected to} of {Elbbrücken} ?
What is the color of the rail line that interfaces to Elbbrücken?
What is the color of the rail line that connects to Elbbrücken?
SELECT ?b WHERE { ?u property:color ?b . resource:Elbbrücken_station property:connecting_line ?u }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11877023> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P81>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P462> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q11877023 wdt:P81 ?X . ?X wdt:P462 ?answer}