CREATE TABLE "irrigation_infrastructure" (
  "department" text,
  "micro_10ha" real,
  "small_100ha" real,
  "medium_500ha" real,
  "big_500ha" real,
  "total" real
);

Question: Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potosí, and a Total smaller than 16,240?
SQL: SELECT MAX("big_500ha") FROM "irrigation_infrastructure" WHERE "micro_10ha">940 AND "department"='potosí' AND "total"<'16,240';

Question: Which Small (100ha) has a Big (>500ha) of 5,710, and a Total smaller than 36,351?
SQL: SELECT MIN("small_100ha") FROM "irrigation_infrastructure" WHERE "big_500ha"='5,710' AND "total"<'36,351';

Question: How much Micro (10ha) has a Big (>500ha) larger than 63,454, and a Medium (500ha) larger than 440, and a Small (100ha) smaller than 21,047?
SQL: SELECT COUNT("micro_10ha") FROM "irrigation_infrastructure" WHERE "big_500ha">'63,454' AND "medium_500ha">440 AND "small_100ha"<'21,047';

Question: Which Small (100ha) is the highest one that has a Big (>500ha) larger than 9,021?
SQL: SELECT MAX("small_100ha") FROM "irrigation_infrastructure" WHERE "big_500ha">'9,021';