Question: Which show has fewer seasons, Going My Way (the one whose number of episodes is 30) or WWE SmackDown?
Choices:
Dancing with the Stars
WWE SmackDown
Bleak House
American Horror Story
Seinfeld
Saturday Night's Main Event
Six Feet Under
Going My Way
Phineas and Ferb
Game of Thrones
Program:
function: Find
inputs: Going My Way
function: FilterNum
dependencies: 0
inputs: number of episodes
30
=
function: Find
inputs: WWE SmackDown
function: SelectBetween
dependencies: 1
2
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Going My Way" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "30"^^xsd:double . } UNION { ?e <pred:name> "WWE SmackDown" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Going My Way