His great New York movies of the 1970s and ' 80s -- " Serpico , " " Dog Day Afternoon , " " Prince of the City , " " Q & A " -- were realist fables , often based on true stories and always full of dense local knowledge .