Question: Which has more seaons, Salem (the one whose title is Salem) or All in the Family?
Choices:
American Horror Story
Robot Chicken
Saturday Night's Main Event
Phineas and Ferb
Game of Thrones
Seinfeld
Bleak House
All in the Family
Dancing with the Stars
Salem
Answer: All in the Family
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salem" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Salem" . } UNION { ?e <pred:name> "All in the Family" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Salem
function: FilterStr
dependencies: 0
inputs: title
Salem
function: Find
inputs: All in the Family
function: SelectBetween
dependencies: 1
2
inputs: number of seasons
greater