Question: Does Rules of Engagement (that has Heather Locklear as a cast member) or Modern Family have fewer seasons?
Choices:
Phineas and Ferb
American Horror Story
Bleak House
Six Feet Under
Dancing with the Stars
Game of Thrones
Seinfeld
Rules of Engagement
Robot Chicken
Modern Family
Program:
function: Find
inputs: Heather Locklear
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Rules of Engagement
function: And
dependencies: 1
2
function: Find
inputs: Modern Family
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rules of Engagement" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Heather Locklear" .   } UNION { ?e <pred:name> "Modern Family" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rules of Engagement