Question: Which has a greater number of seasons, Mobile (which uses the language English) or Oz (which has number of seasons as 6)?
Choices:
American Horror Story
Saturday Night's Main Event
Seinfeld
Mobile
Six Feet Under
Dancing with the Stars
Phineas and Ferb
Bleak House
Oz
Robot Chicken
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Mobile
function: And
dependencies: 1
2
function: Find
inputs: Oz
function: FilterNum
dependencies: 4
inputs: number of seasons
6
=
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mobile" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" . } UNION { ?e <pred:name> "Oz" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "6"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Oz