Question: What city in the US is the capital of Essex County (that contains Beverly) and counts http://www.salem.com as the official website ?
Choices:
Greenville
New Britain
Franklin
Lansing
New Haven
Salem
Compton
Boulder
Oakland
Waukegan
Answer: Salem
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <official_website> ?pv . ?pv <pred:value> "http://www.salem.com" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Essex County" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Beverly" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.salem.com
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Find
inputs: Beverly
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Essex County
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: capital of
backward
function: FilterConcept
dependencies: 7
inputs: city of the United States
function: And
dependencies: 2
8
function: What
dependencies: 9