At a recent trial in Justiceville, the prosecutor, Mr. Jones, called five witnesses to the stand, after which the defense attorney, Ms. Smith, called five more witnesses. From this information and the clues, can you determine the first name (one is Diane) and last name (one is Anderson) and occupation (one is an accountant) of each of the ten witnesses and the order in which they testified?
The five called to the stand by Mr. Jones were, in no particular order: Kathy, Mark, Mr. Ducklow, Ms. Olson, and the computer programmer.
Ms. Smith's five witnesses were, in no particular order: John, Sandra, Ms. Fuller, Mr. Simpson and the secretary.
Neither Mark nor Kathy is the pilot.
Mary testified just before Miller, who was before the author, but not just before.
John is not the teacher.
Thompson, who is not Mary, testified just before the dentist.
The mechanic, who was not on the stand first, testified before McNeil, but not just before.
Frank testified just before the teacher who was just before Ms. Fuller.
The bank teller testified before Zimmer, but not just before.
Anne, who is a musician, testified just before Williams and just after the pilot.
The computer programmer was not just before the secretary.