CREATE TABLE "ireland" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);

Question: what is the soap opera when the duration is 18 years and the character is miley byrne?
SQL: SELECT "soap_opera" FROM "ireland" WHERE "duration"='18 years' AND "character"='miley byrne';

Question: what is the years when the duration is 13 years and the character is renee phelan?
SQL: SELECT "years" FROM "ireland" WHERE "duration"='13 years' AND "character"='renee phelan';

Question: what is the years when the soap opera is glenroe and the actor is mick lally?
SQL: SELECT "years" FROM "ireland" WHERE "soap_opera"='glenroe' AND "actor"='mick lally';

Question: who is the actor when the character is dinny byrne?
SQL: SELECT "actor" FROM "ireland" WHERE "character"='dinny byrne';

Question: what is the soap opera when the actor is dave duffy?
SQL: SELECT "soap_opera" FROM "ireland" WHERE "actor"='dave duffy';