Question: For the kind of sport that has sport team Peter Jackson (the one who was born on 1964-10-22), tell me its IAB code.
Choices:
1160
1087
1261
696
538
1122
528
121
545
1390
Answer: 538
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "type of sport" . ?e_1 <sport> ?e . ?e_1 <pred:name> "Peter Jackson" . ?e_1 <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1964-10-22"^^xsd:date . ?e <IAB_code> ?pv .  }
Program:
function: Find
inputs: Peter Jackson
function: FilterDate
dependencies: 0
inputs: date of birth
1964-10-22
=
function: Relate
dependencies: 1
inputs: sport
forward
function: FilterConcept
dependencies: 2
inputs: type of sport
function: QueryAttr
dependencies: 3
inputs: IAB code