Question: Which had fewer seasons, Mobile (the one whose number of episodes is 3) or Dancing with the Stars (the one whose Instagram username is dancingabc)?
Choices:
Robot Chicken
Babylon 5
Mobile
American Horror Story
Six Feet Under
Dancing with the Stars
Game of Thrones
Saturday Night's Main Event
Phineas and Ferb
Seinfeld
Program:
function: Find
inputs: Mobile
function: FilterNum
dependencies: 0
inputs: number of episodes
3
=
function: Find
inputs: Dancing with the Stars
function: FilterStr
dependencies: 2
inputs: Instagram username
dancingabc
function: SelectBetween
dependencies: 1
3
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mobile" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } UNION { ?e <pred:name> "Dancing with the Stars" . ?e <Instagram_username> ?pv_2 . ?pv_2 <pred:value> "dancingabc" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mobile