CREATE TABLE "products" (
  "name" text,
  "number" real,
  "released" real,
  "film" text,
  "pieces" real
);

Question: Raiders of the Lost Ark had pieces of 277 for what lowest number?
SQL: SELECT MIN("number") FROM "products" WHERE "film"='raiders of the lost ark' AND "pieces"=277;

Question: What is the number for Chauchilla Cemetery Battle with less than 511 pieces?
SQL: SELECT AVG("number") FROM "products" WHERE "pieces"<511 AND "name"='chauchilla cemetery battle';

Question: What was the earliest year with 339 pieces and a number smaller than 7198?
SQL: SELECT MIN("released") FROM "products" WHERE "pieces"=339 AND "number"<7198;