Question: Which has more seasons, Murphy Brown or Into the West (the one that origins from United States of America)?
Choices:
Saturday Night's Main Event
Phineas and Ferb
Seinfeld
Six Feet Under
American Horror Story
Game of Thrones
Robot Chicken
Murphy Brown
Into the West
Dancing with the Stars
Answer: Murphy Brown
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Murphy Brown" .  } UNION { ?e <pred:name> "Into the West" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Murphy Brown
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Into the West
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater