Question: tell me the one that has the biggest number of episodes within the TV series that has a script written by David E Kelley
Choices:
Saturday Night's Main Event
Chicago Hope
Game of Thrones
Seinfeld
Six Feet Under
L.A. Law
American Horror Story
Bleak House
Robot Chicken
Phineas and Ferb
Program:
function: Find
inputs: David E. Kelley
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: FilterConcept
dependencies: 1
inputs: television series
function: SelectAmong
dependencies: 2
inputs: number of episodes
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "David E. Kelley" .  ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: L.A. Law