Question: What is the city in the USA that is in New York (that has a nickname NY)
Choices:
Eureka
Franklin
Lynwood
Nassau County
Columbus
Erie County
Hudson River
Suffolk County
Newburgh
Santa Fe
Program:
function: Find
inputs: New York
function: FilterStr
dependencies: 0
inputs: short name
NY
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "New York" . ?e_1 <short_name> ?pv . ?pv <pred:value> "NY" .   }
Answer: Newburgh