CREATE TABLE "106_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);

Question: How many Votes, when the Residence is Halifax?
SQL: SELECT "votes" FROM "106_seats" WHERE "residence"='halifax';

Question: What is the Riding, when the Rank is 4th?
SQL: SELECT "riding" FROM "106_seats" WHERE "rank"='4th';

Question: What is the lowest number of Votes, when the Candidate's Name is Trevor Ennis?
SQL: SELECT MIN("votes") FROM "106_seats" WHERE "candidate_s_name"='trevor ennis';

Question: What is the Candidate's Name, when the Votes are 513?
SQL: SELECT "candidate_s_name" FROM "106_seats" WHERE "votes"=513;

Question: What is the Occupation, when the Candidate's Name is Trevor Ennis?
SQL: SELECT "occupation" FROM "106_seats" WHERE "candidate_s_name"='trevor ennis';