Question: Which television series has the least number of seasons, Julia or The View?
Choices:
Bleak House
Julia
Phineas and Ferb
Game of Thrones
Robot Chicken
The View
Dancing with the Stars
Seinfeld
American Horror Story
Six Feet Under
Program:
function: Find
inputs: Julia
function: FilterNum
dependencies: 0
inputs: number of seasons
3
=
function: Find
inputs: The View
function: SelectBetween
dependencies: 1
2
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Julia" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } UNION { ?e <pred:name> "The View" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Julia