Question: Which film has John Michael Higgins as a cast member and has the title The Ugly Truth?
Choices:
The Ugly Truth
Rebecca
A Prairie Home Companion
The Fifth Element
Talk to Her
We Bought a Zoo
Pleasantville
Bad Teacher
Bicentennial Man
A Mighty Wind
Program:
function: Find
inputs: John Michael Higgins
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: film
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
The Ugly Truth
function: FilterConcept
dependencies: 4
inputs: film
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Michael Higgins" .  ?e <title> ?pv . ?pv <pred:value> "The Ugly Truth" .  }
Answer: The Ugly Truth