Question: Does Chuck, with Tony Sirico as a cast member, or Ben 10, released on 2005-01-01, have the longer running time?
Choices:
Ben 10
Robot Chicken
Saturday Night's Main Event
Six Feet Under
Bleak House
Game of Thrones
Seinfeld
Dancing with the Stars
Phineas and Ferb
Chuck
Program:
function: Find
inputs: Tony Sirico
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Chuck
function: And
dependencies: 1
2
function: Find
inputs: Ben 10
function: FilterDate
dependencies: 4
inputs: publication date
2005-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chuck" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tony Sirico" . } UNION { ?e <pred:name> "Ben 10" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2005-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chuck