Question: Which has more seasons, Project Runway or Battlestar Galactica (the one whose number of episodes is 24)?
Choices:
Game of Thrones
Phineas and Ferb
Seinfeld
Robot Chicken
Bleak House
Battlestar Galactica
American Horror Story
Project Runway
Dancing with the Stars
Six Feet Under
Program:
function: Find
inputs: Project Runway
function: Find
inputs: Battlestar Galactica
function: FilterNum
dependencies: 1
inputs: number of episodes
24
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Project Runway" . } UNION { ?e <pred:name> "Battlestar Galactica" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "24"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Project Runway