Question: Which has more episodes, Law & Order: Special Victims Unit or Charmed (the one whose number of episodes is 8)?
Choices:
Seinfeld
American Horror Story
Dancing with the Stars
Six Feet Under
Saturday Night's Main Event
Phineas and Ferb
Robot Chicken
Law & Order: Special Victims Unit
Game of Thrones
Bleak House
Program:
function: Find
inputs: Law & Order: Special Victims Unit
function: Find
inputs: Charmed
function: FilterNum
dependencies: 1
inputs: number of episodes
8
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Law & Order: Special Victims Unit" . } UNION { ?e <pred:name> "Charmed" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "8"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Law & Order: Special Victims Unit