Question: Is the episode tally lower for Heroes (native label Heroes) or Miami Vice, executive produced by Dick Wolf?
Choices:
Saturday Night's Main Event
Heroes
Robot Chicken
Game of Thrones
Miami Vice
Dancing with the Stars
American Horror Story
Seinfeld
Phineas and Ferb
Bleak House
Program:
function: Find
inputs: Heroes
function: FilterStr
dependencies: 0
inputs: native label
Heroes
function: Find
inputs: Dick Wolf
function: Relate
dependencies: 2
inputs: executive producer
backward
function: Find
inputs: Miami Vice
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Heroes" . ?e <native_label> ?pv_1 . ?pv_1 <pred:value> "Heroes" . } UNION { ?e <pred:name> "Miami Vice" . ?e <executive_producer> ?e_1 . ?e_1 <pred:name> "Dick Wolf" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Heroes