Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potosí, and a Total smaller than 16,240?
CREATE TABLE table_name_12 (big__ INTEGER, total VARCHAR, micro__10ha_ VARCHAR, department VARCHAR)
SELECT MAX(big__) > 500 AS ha_ FROM table_name_12 WHERE micro__10ha_ > 940 AND department = "potosí" AND total < 16 OFFSET 240 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (big__ INTEGER, total VARCHAR, micro__10ha_ VARCHAR, department VARCHAR) Question: Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potosí, and a Total smaller than 16,240? [/INST] SELECT MAX(big__) > 500 AS ha_ FROM table_name_12 WHERE micro__10ha_ > 940 AND department = "potosí" AND total < 16 OFFSET 240 ROWS </s>