CREATE TABLE "ukrainian_ssr_livestock_thousand_head" (
  "year" real,
  "total_horses" real,
  "working_horses" text,
  "total_cattle" real,
  "oxen" real,
  "bulls" text,
  "cows" real,
  "pigs" real,
  "sheep_and_goats" real
);

Question: What is the earliest year that has fewer than 3852.1 cows and 3900.1 working horses?
SQL: SELECT MIN("year") FROM "ukrainian_ssr_livestock_thousand_head" WHERE "working_horses"='3900.1' AND "cows"<3852.1;

Question: What is the number of bulls that has oxen larger than 113.8, and a sheep and goats larger than 4533.4, and a cows smaller than 3987, and a total horses larger than 5056.5?
SQL: SELECT "bulls" FROM "ukrainian_ssr_livestock_thousand_head" WHERE "oxen">113.8 AND "sheep_and_goats">4533.4 AND "cows"<3987 AND "total_horses">5056.5;

Question: How many years had fewer than 2089.2 pigs?
SQL: SELECT COUNT("year") FROM "ukrainian_ssr_livestock_thousand_head" WHERE "pigs"<2089.2;

Question: What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows?
SQL: SELECT MIN("total_horses") FROM "ukrainian_ssr_livestock_thousand_head" WHERE "total_cattle"<6274.1 AND "oxen"<156.5 AND "bulls"='40.0' AND "cows"<3377;

Question: What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?
SQL: SELECT MIN("sheep_and_goats") FROM "ukrainian_ssr_livestock_thousand_head" WHERE "year">1931 AND "cows"<2518 AND "total_horses">2604.8;