Question: Does Friday Night Lights (that has 5 seasons) or The Firm (whose narrative location is Washington, D.C.) have more episodes?
Choices:
Friday Night Lights
The Firm
Phineas and Ferb
Dancing with the Stars
Game of Thrones
Bleak House
Robot Chicken
American Horror Story
Six Feet Under
Seinfeld
Program:
function: Find
inputs: Friday Night Lights
function: FilterNum
dependencies: 0
inputs: number of seasons
5
=
function: Find
inputs: Washington, D.C.
function: Relate
dependencies: 2
inputs: narrative location
backward
function: Find
inputs: The Firm
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Friday Night Lights" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "5"^^xsd:double . } UNION { ?e <pred:name> "The Firm" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Washington, D.C." . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Friday Night Lights