Question: I'd like to know the person who is a member of Pittsburgh Pirates (this statement's end time is 1997) and whose height is greater than 85 cm.
Choices:
James E. Reilly
Rahul Dev Burman
Max Fleischer
Mark Johnson
David Byrne
Vinnie Jones
Simon Cowell
William Henry Harrison
Roy Carroll
Richard Gere
Answer: Mark Johnson
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Pittsburgh Pirates" .  [ <pred:fact_h> ?e ; <pred:fact_r> <member_of_sports_team> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:year> 1997 . ?e <height> ?pv . ?pv <pred:unit> "centimetre" . ?pv <pred:value> ?v . FILTER ( ?v > "85"^^xsd:double ) .  }
Program:
function: Find
inputs: Pittsburgh Pirates
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: QFilterYear
dependencies: 1
inputs: end time
1997
=
function: FilterConcept
dependencies: 2
inputs: human
function: FindAll
function: FilterNum
dependencies: 4
inputs: height
85 centimetre
>
function: FilterConcept
dependencies: 5
inputs: human
function: And
dependencies: 3
6
function: What
dependencies: 7