You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you will be shown an extract from a movie plot. You need to read the extract and create questions that can be answered from the extract. Once you create a question you also need to provide the correct answer for it. Write your answer like "Question: your question, Answer: your answer". The questions should be well-formed and grammatically correct. The questions should be completely answerable from the given passage and should not require any external knowledge. Subjective questions are not allowed. Short answers containing words that are present in the passage are preferred. Create questions that result in factoid answers. A simple rule of thumb to decide whether a question is a factoid or not is to see if two different people with average reading/comprehension skills would come up with the same answer after reading the passage.

Twenty-year-old Will Hunting of South Boston is a self-taught, genius-level intellect, though he works as a janitor at the Massachusetts Institute of Technology and spends his free time drinking with his friends, Chuckie (Ben Affleck), Billy (Cole Hauser) and Morgan (Casey Affleck). When Professor Gerald Lambeau (Stellan Skarsgard) posts a difficult mathematics problem as a challenge for his graduate students, Will solves the problem anonymously, stunning both the graduate students and Lambeau himself. As a challenge to the unknown genius, Lambeau posts an even more difficult problem. Lambeau chances upon Will solving the problem but Will flees the scene. That night at a bar, Will meets Skylar (Minnie Driver), a British student about to graduate from Harvard, who plans on attending medical school at Stanford and gives Will her phone number before leaving.
Solution: Question: How old is Will Hunting in the movie ?, Answer: Twenty years
Why? This is a good question which results in a factoid answer, and the answer is correct too.

New input: Nothing fascinates like a dirty cop. In real life they're terrifying, but in the movies their upending of law and order can open deep explorations of psychology, morality and violence.So meet Dave Brown (Woody Harrelson), Brown is a cop long ago unleashed from the rules of the Los Angeles Police Department. Roving the streets in his black-and-white cruiser, he governs and punishes at will. His home life is a riddle. Somehow he has fathered children with two sisters (Anne Heche and Cynthia Nixon). Somehow he still lives casually with them both, slipping in and out of a family life that's as tangled as his long career on the force. His own daughter calls him Date Rape. That's because, years ago, Brown may have killed a rapist and gotten away with it. The shadow of the incident still haunts him, so when his Rampart division gets caught up in a corruption scandal, Brown makes an easy target. As the controversy seeps through the department and into city hall, this hardened, reckless officer finds himself at the centre of a sordid L.A. story.Following up on his Academy Award ®️ nominated The Messenger, writer/director Oren Moverman assembles an impressive team of talent for Rampart. The script is co-written by crime fiction legend James Ellroy (L.A. Confidential). The cast includes Ben Foster (also in The Messenger), Robin Wright, Sigourney Weaver, Steve Buscemi and Ice Cube.Although based on a real LAPD scandal from the nineties, Rampart easily transcends reportage.Cameron Bailey, Co-Director of the Toronto International Film Festival
Solution:
Question: Who is the the crime fiction legend who co-wrote the movie's script?, Answer: James Ellroy