Input (grade 11): John Philip "Jack" McFarland was a fictional character on the American television sitcom Will & Grace, played by Sean Hayes.
Output (grade 5): Jack McFarland is a character from Will & Grace was played by Sean Hayes.