Question: Were there more episodes in The Firm (the one that is originally aired on Global Television Network) or Battlestar Galactica (the one whose number of episodes is 2)?
Choices:
American Horror Story
Bleak House
Dancing with the Stars
Phineas and Ferb
Game of Thrones
The Firm
Robot Chicken
Battlestar Galactica
Saturday Night's Main Event
Seinfeld
Answer: The Firm
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Firm" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "Global Television Network" . } UNION { ?e <pred:name> "Battlestar Galactica" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Global Television Network
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: The Firm
function: And
dependencies: 1
2
function: Find
inputs: Battlestar Galactica
function: FilterNum
dependencies: 4
inputs: number of episodes
2
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
greater