qnli question: In what decade was AFL sport invented? sentence: It was founded in 1987 by Jim Foster, making it the third longest-running professional football league in North America, after the Canadian Football League and the National Football League.