Question: Which one is longer, Nashville (the one whose number of seasons is 6) or Beverly Hills, 90210 ?
Choices:
Six Feet Under
American Horror Story
Phineas and Ferb
Game of Thrones
Nashville
Beverly Hills, 90210
Seinfeld
Saturday Night's Main Event
Bleak House
Robot Chicken
Answer: Beverly Hills, 90210
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nashville" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "6"^^xsd:double . } UNION { ?e <pred:name> "Beverly Hills, 90210" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Nashville
function: FilterNum
dependencies: 0
inputs: number of seasons
6
=
function: Find
inputs: Beverly Hills, 90210
function: SelectBetween
dependencies: 1
2
inputs: duration
greater