CREATE TABLE "results_by_province" (
  "province" text,
  "registered_voters" real,
  "people_voted" real,
  "valid_votes" real,
  "invalid_votes" real,
  "yes" real,
  "yes_pct" text,
  "no" real,
  "no_pct" text,
  "turnout_pct" text
);

Question: When Denizli was the province, what was the total number of valid votes?
SQL: SELECT COUNT("valid_votes") FROM "results_by_province" WHERE "province"='Denizli';

Question: When 54.86% of people votes yes, howe many votes were invalid?
SQL: SELECT "invalid_votes" FROM "results_by_province" WHERE "yes_pct"='54.86';

Question: How many registered voters were there when 36.32% of people voted yes?
SQL: SELECT MIN("registered_voters") FROM "results_by_province" WHERE "yes_pct"='36.32';

Question: What province had a turnout of 54.09%?
SQL: SELECT "province" FROM "results_by_province" WHERE "turnout_pct"='54.09';

Question: How many people voted yes when the percentage of yeses was 95.17?
SQL: SELECT MAX("yes") FROM "results_by_province" WHERE "yes_pct"='95.17';

Question: What was the turnout percentage when the percentage of people that voted no was 36.51?
SQL: SELECT "turnout_pct" FROM "results_by_province" WHERE "no_pct"='36.51';