CREATE TABLE "mayor_of_coleraine" (
  "year" text,
  "name" text,
  "political_affiliation" text,
  "deputy" text,
  "deputy_s_affiliation" text
);

Question: What Year was james mcclure Deputy, and the Name is robert mcphearson?
SQL: SELECT "year" FROM "mayor_of_coleraine" WHERE "deputy"='james mcclure' AND "name"='robert mcphearson';

Question: What is the name of the Deputy when the Name was elizabeth black?
SQL: SELECT "deputy" FROM "mayor_of_coleraine" WHERE "name"='elizabeth black';

Question: What is the Name for 1997–99?
SQL: SELECT "name" FROM "mayor_of_coleraine" WHERE "year"='1997–99';

Question: What is the Political affiliation of deputy john dallat?
SQL: SELECT "political_affiliation" FROM "mayor_of_coleraine" WHERE "deputy"='john dallat';

Question: What is the name of the deputy in 1992–93?
SQL: SELECT "deputy" FROM "mayor_of_coleraine" WHERE "year"='1992–93';

Question: What is the Deputy's affiliation in 1992–93?
SQL: SELECT "deputy_s_affiliation" FROM "mayor_of_coleraine" WHERE "year"='1992–93';