Table: soviet_livestock_data
Columns: year
total_horses
working_horses
total_cattle
oxen
bulls
cows
pigs
sheep_and_goats

Question: What is the earliest year that has fewer than 3852.1 cows and 3900.1 working horses?
SQL: SELECT MIN("year") FROM soviet_livestock_data 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 soviet_livestock_data 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 soviet_livestock_data 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 soviet_livestock_data 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 soviet_livestock_data WHERE "year" > 1931 AND "cows" < 2518 AND "total_horses" > 2604.8