Question: John Cho is cast as what character on the Star Trek with a budget of 150000000 USD?
Choices:
Hikaru Sulu
Gabrielle Solis
Felicity Shagwell
Baldwin IV of Jerusalem
Regis Philbin
First Ancestor
Archdeacon
Feyd-Rautha
Jim Brass
Peter Venkman
Answer: Hikaru Sulu
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Star Trek" . ?e_1 <budget> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "150000000"^^xsd:double . ?e_2 <pred:name> "John Cho" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Star Trek
function: FilterNum
dependencies: 0
inputs: budget
150000000 United States dollar
=
function: Find
inputs: John Cho
function: QueryRelationQualifier
dependencies: 1
2
inputs: cast member
character role