Question: Which human is the spouse of Thomas Schlamme and was born in Birmingham (whose population is 20103)?
Choices:
Christine Lahti
Max Fleischer
Paul Simon
David Byrne
Simon Cowell
David Spade
James E. Reilly
William Henry Harrison
Sylvester Stallone
Rahul Dev Burman
Answer: Christine Lahti
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <spouse> ?e . ?e_1 <pred:name> "Thomas Schlamme" .  ?e <place_of_birth> ?e_2 . ?e_2 <pred:name> "Birmingham" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "20103"^^xsd:double .  }
Program:
function: Find
inputs: Thomas Schlamme
function: Relate
dependencies: 0
inputs: spouse
forward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Birmingham
function: FilterNum
dependencies: 3
inputs: population
20103
=
function: Relate
dependencies: 4
inputs: place of birth
backward
function: FilterConcept
dependencies: 5
inputs: human
function: And
dependencies: 2
6
function: What
dependencies: 7