Question: Which band is famous for country music and has genre as glam rock ?
Choices:
Jonas Brothers
The Kinks
Roxy Music
Elton John
Allman Brothers Band
Dixie Chicks
Nitty Gritty Dirt Band
The Monkees
The Pretenders
Empire of the Sun
Program:
function: Find
inputs: country music
function: Relate
dependencies: 0
inputs: famous people
forward
function: FilterConcept
dependencies: 1
inputs: band
function: Find
inputs: glam rock
function: Relate
dependencies: 3
inputs: genre
backward
function: FilterConcept
dependencies: 4
inputs: band
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "band" . ?e_1 <famous_people> ?e . ?e_1 <pred:name> "country music" .  ?e <genre> ?e_2 . ?e_2 <pred:name> "glam rock" .  }
Answer: Roxy Music