What is the {anatomical structure} for {connects with} of {esophagus}
What is the anatomically interfaces with the esophagus
What is the anatomically connects with the esophagus
SELECT DISTINCT ?c WHERE { resource:esophagus property:connects_with ?c . ?c rdf:type ontology:anatomical_structure }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q173710> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2789> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q4936952> } 
 select distinct ?obj where { wd:Q173710 wdt:P2789 ?obj . ?obj wdt:P31 wd:Q4936952 } 
pharynx