Question: Which record label comes from the US and is headquartered in New Brunswick (demonym New Brunswicker)?
Choices:
Curb Records
Century Media Records
Ferret Music
Hollywood Records
Play It Again Sam
Sugar Hill Records
Epic Records
Imperial Records
Southern Lord Records
Nonesuch Records
Answer: Ferret Music
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "record label" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e <headquarters_location> ?e_2 . ?e_2 <pred:name> "New Brunswick" . ?e_2 <demonym> ?pv . ?pv <pred:value> "New Brunswicker" .  }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: record label
function: Find
inputs: New Brunswick
function: FilterStr
dependencies: 3
inputs: demonym
New Brunswicker
function: Relate
dependencies: 4
inputs: headquarters location
backward
function: FilterConcept
dependencies: 5
inputs: record label
function: And
dependencies: 2
6
function: What
dependencies: 7