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 ?y WHERE { ?y rdf:type ontology:anatomical_structure . ?y property:connects_with resource:esophagus }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?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> <http://wikidata.dbpedia.org/resource/Q173710> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q4936952> } 
 select distinct ?sbj where { ?sbj wdt:P2789 wd:Q173710 . ?sbj wdt:P31 wd:Q4936952 } 
pharynx laryngopharynx body of stomach