Question: Does Somerset (that has Ted Danson as a cast member) or Dancing with the Stars (whose Giphy username is dancingwiththestars) have fewer episodes?
Choices:
Bleak House
Dancing with the Stars
American Horror Story
Six Feet Under
Phineas and Ferb
Robot Chicken
Babylon 5
Seinfeld
Somerset
Saturday Night's Main Event
Answer: Dancing with the Stars
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Somerset" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ted Danson" . } UNION { ?e <pred:name> "Dancing with the Stars" . ?e <Giphy_username> ?pv_1 . ?pv_1 <pred:value> "dancingwiththestars" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Ted Danson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Somerset
function: And
dependencies: 1
2
function: Find
inputs: Dancing with the Stars
function: FilterStr
dependencies: 4
inputs: Giphy username
dancingwiththestars
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
less