CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);

Question: What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff?
SQL: SELECT "type" FROM "in" WHERE "ends"=2013 AND "transfer_window"='summer' AND "moving_from"='kalmar ff';

Question: Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from?
SQL: SELECT "moving_from" FROM "in" WHERE "type"='transfer' AND "transfer_window"='summer' AND "ends"<2013;

Question: What is the transfer window for larsson?
SQL: SELECT "transfer_window" FROM "in" WHERE "name"='larsson';

Question: What is the average end year of the player from swe and a summer transfer window?
SQL: SELECT AVG("ends") FROM "in" WHERE "nat"='swe' AND "transfer_window"='summer';