Question: Which has more seasons, Sex and the City (the one that received 57th Golden Globe Awards) or The Smurfs (the one whose official website is http://www.smurf.com/)?
Choices:
Phineas and Ferb
The Venture Bros.
Aladdin
Batman Beyond
Sex and the City
The Smurfs
American Dad!
South Park
Tiny Toon Adventures
The Cleveland Show
Answer: The Smurfs
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sex and the City" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "57th Golden Globe Awards" . } UNION { ?e <pred:name> "The Smurfs" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.smurf.com/" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: 57th Golden Globe Awards
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Sex and the City
function: And
dependencies: 1
2
function: Find
inputs: The Smurfs
function: FilterStr
dependencies: 4
inputs: official website
http://www.smurf.com/
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
greater