CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" real,
  "app_gs_sub" text,
  "goals" real,
  "ends" real,
  "transfer_fee" text
);

Question: What is the greatest goals for Curtis Davies if ends is greater than 2012?
SQL: SELECT MAX("goals") FROM "squad_information" WHERE "name"='curtis davies' AND "ends">2012;

Question: When the transfer fee is £8.5m, what is the total ends?
SQL: SELECT SUM("ends") FROM "squad_information" WHERE "transfer_fee"='£8.5m';