Question: Which has the most episodes, 24, which has the official website http://colors.in.com/in/24/, or George Washington, which originally aired on CBS?
Choices:
The Civil War
Battlestar Galactica
24
George Washington
The Diary of Anne Frank
The Stand
Emma
Edge of Darkness
The Ten Commandments
The Pacific
Program:
function: Find
inputs: 24
function: FilterStr
dependencies: 0
inputs: official website
http://colors.in.com/in/24/
function: Find
inputs: CBS
function: Relate
dependencies: 2
inputs: original network
backward
function: Find
inputs: George Washington
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "24" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://colors.in.com/in/24/" . } UNION { ?e <pred:name> "George Washington" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "CBS" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: 24