Question: Which has more seasons, All My Children or The A-Team (the one whose duration is 45 minute)?
Choices:
All My Children
Seinfeld
Phineas and Ferb
American Horror Story
Dancing with the Stars
Saturday Night's Main Event
Six Feet Under
Robot Chicken
Bleak House
The A-Team
Program:
function: Find
inputs: All My Children
function: Find
inputs: The A-Team
function: FilterNum
dependencies: 1
inputs: duration
45 minute
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "All My Children" . } UNION { ?e <pred:name> "The A-Team" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "45"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: All My Children