QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 software_company
【Schema】
# Table: Customers
[
(ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(SEX:TEXT, Examples: [Male, Female]),
(MARITAL_STATUS:TEXT, Examples: [Never-married, Married-civ-spouse, Divorced]),
(GEOID:INTEGER, Examples: [61, 70, 53]),
(EDUCATIONNUM:INTEGER, Examples: [7, 3, 4]),
(OCCUPATION:TEXT, Examples: [Machine-op-inspct, Handlers-cleaners, Exec-managerial]),
(age:INTEGER, Examples: [62, 78, 69])
]
# Table: Mailings1_2
[
(REFID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REF_DATE:DATETIME, Examples: [2007-02-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: mailings3
[
(REFID:INTEGER, Primary Key, Examples: [60000, 60001, 60002]),
(REF_DATE:DATETIME, Examples: [2007-07-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: Demog
[
(GEOID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(INHABITANTS_K:REAL, Examples: [30.046, 36.25, 47.645]),
(INCOME_K:REAL, Examples: [2631.47, 3012.75, 2192.41]),
(A_VAR1:REAL, Examples: [6.084, 4.604, 4.911]),
(A_VAR2:REAL, Examples: [5.79, 8.309, 8.557]),
(A_VAR3:REAL, Examples: [8.595, 6.007, 5.934]),
(A_VAR4:REAL, Examples: [3.935, 5.938, 6.494]),
(A_VAR5:REAL, Examples: [6.362, 8.773, 9.172]),
(A_VAR6:REAL, Examples: [8.626, 3.579, 3.202]),
(A_VAR7:REAL, Examples: [4.624, 6.349, 6.157]),
(A_VAR8:REAL, Examples: [8.324, 4.694, 4.822]),
(A_VAR9:REAL, Examples: [5.233, 6.884, 7.942]),
(A_VAR10:REAL, Examples: [6.232, 7.062, 7.901]),
(A_VAR11:REAL, Examples: [5.205, 7.319, 7.928]),
(A_VAR12:REAL, Examples: [8.231, 3.72, 2.33]),
(A_VAR13:REAL, Examples: [6.746, 6.405, 6.029]),
(A_VAR14:REAL, Examples: [8.679, 7.202, 6.455]),
(A_VAR15:REAL, Examples: [5.292, 4.932, 4.72]),
(A_VAR16:REAL, Examples: [3.5, 7.969, 8.564]),
(A_VAR17:REAL, Examples: [5.512, 8.15, 8.342]),
(A_VAR18:REAL, Examples: [5.783, 5.633, 4.938])
]
# Table: Sales
[
(EVENTID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REFID:INTEGER, Examples: [0, 1, 2]),
(EVENT_DATE:DATETIME, Examples: [2006-12-21 12:00:00]),
(AMOUNT:REAL, Examples: [17.907, 17.401, 13.277])
]
【Foreign keys】
Customers.GEOID=Demog.GEOID
Mailings1_2.REFID=Customers.ID
Sales.REFID=Customers.ID

    【Question】
    What is the age of female customers within the number of inhabitants below 30? female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;

    【Evidence】
    female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT age FROM Customers WHERE GEOID IN ( SELECT GEOID FROM Demog WHERE INHABITANTS_K < 30 ) AND SEX = 'Female'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 software_company
【Schema】
# Table: Customers
[
(ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(SEX:TEXT, Examples: [Male, Female]),
(MARITAL_STATUS:TEXT, Examples: [Never-married, Married-civ-spouse, Divorced]),
(GEOID:INTEGER, Examples: [61, 70, 53]),
(EDUCATIONNUM:INTEGER, Examples: [7, 3, 4]),
(OCCUPATION:TEXT, Examples: [Machine-op-inspct, Handlers-cleaners, Exec-managerial]),
(age:INTEGER, Examples: [62, 78, 69])
]
# Table: Mailings1_2
[
(REFID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REF_DATE:DATETIME, Examples: [2007-02-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: mailings3
[
(REFID:INTEGER, Primary Key, Examples: [60000, 60001, 60002]),
(REF_DATE:DATETIME, Examples: [2007-07-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: Demog
[
(GEOID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(INHABITANTS_K:REAL, Examples: [30.046, 36.25, 47.645]),
(INCOME_K:REAL, Examples: [2631.47, 3012.75, 2192.41]),
(A_VAR1:REAL, Examples: [6.084, 4.604, 4.911]),
(A_VAR2:REAL, Examples: [5.79, 8.309, 8.557]),
(A_VAR3:REAL, Examples: [8.595, 6.007, 5.934]),
(A_VAR4:REAL, Examples: [3.935, 5.938, 6.494]),
(A_VAR5:REAL, Examples: [6.362, 8.773, 9.172]),
(A_VAR6:REAL, Examples: [8.626, 3.579, 3.202]),
(A_VAR7:REAL, Examples: [4.624, 6.349, 6.157]),
(A_VAR8:REAL, Examples: [8.324, 4.694, 4.822]),
(A_VAR9:REAL, Examples: [5.233, 6.884, 7.942]),
(A_VAR10:REAL, Examples: [6.232, 7.062, 7.901]),
(A_VAR11:REAL, Examples: [5.205, 7.319, 7.928]),
(A_VAR12:REAL, Examples: [8.231, 3.72, 2.33]),
(A_VAR13:REAL, Examples: [6.746, 6.405, 6.029]),
(A_VAR14:REAL, Examples: [8.679, 7.202, 6.455]),
(A_VAR15:REAL, Examples: [5.292, 4.932, 4.72]),
(A_VAR16:REAL, Examples: [3.5, 7.969, 8.564]),
(A_VAR17:REAL, Examples: [5.512, 8.15, 8.342]),
(A_VAR18:REAL, Examples: [5.783, 5.633, 4.938])
]
# Table: Sales
[
(EVENTID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REFID:INTEGER, Examples: [0, 1, 2]),
(EVENT_DATE:DATETIME, Examples: [2006-12-21 12:00:00]),
(AMOUNT:REAL, Examples: [17.907, 17.401, 13.277])
]
【Foreign keys】
Customers.GEOID=Demog.GEOID
Mailings1_2.REFID=Customers.ID
Sales.REFID=Customers.ID

    【Question】
    Among the divorced male customers, give the income and response of those who has an level of education of 6 and above. divorced male customers refer to SEX = 'Male' where MARITAL_STATUS = 'Divorced';

    【Evidence】
    divorced male customers refer to SEX = 'Male' where MARITAL_STATUS = 'Divorced';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT DISTINCT T3.INCOME_K, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.EDUCATIONNUM > 6 AND T1.SEX = 'Male' AND T1.MARITAL_STATUS = 'Divorced'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 software_company
【Schema】
# Table: Customers
[
(ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(SEX:TEXT, Examples: [Male, Female]),
(MARITAL_STATUS:TEXT, Examples: [Never-married, Married-civ-spouse, Divorced]),
(GEOID:INTEGER, Examples: [61, 70, 53]),
(EDUCATIONNUM:INTEGER, Examples: [7, 3, 4]),
(OCCUPATION:TEXT, Examples: [Machine-op-inspct, Handlers-cleaners, Exec-managerial]),
(age:INTEGER, Examples: [62, 78, 69])
]
# Table: Mailings1_2
[
(REFID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REF_DATE:DATETIME, Examples: [2007-02-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: mailings3
[
(REFID:INTEGER, Primary Key, Examples: [60000, 60001, 60002]),
(REF_DATE:DATETIME, Examples: [2007-07-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: Demog
[
(GEOID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(INHABITANTS_K:REAL, Examples: [30.046, 36.25, 47.645]),
(INCOME_K:REAL, Examples: [2631.47, 3012.75, 2192.41]),
(A_VAR1:REAL, Examples: [6.084, 4.604, 4.911]),
(A_VAR2:REAL, Examples: [5.79, 8.309, 8.557]),
(A_VAR3:REAL, Examples: [8.595, 6.007, 5.934]),
(A_VAR4:REAL, Examples: [3.935, 5.938, 6.494]),
(A_VAR5:REAL, Examples: [6.362, 8.773, 9.172]),
(A_VAR6:REAL, Examples: [8.626, 3.579, 3.202]),
(A_VAR7:REAL, Examples: [4.624, 6.349, 6.157]),
(A_VAR8:REAL, Examples: [8.324, 4.694, 4.822]),
(A_VAR9:REAL, Examples: [5.233, 6.884, 7.942]),
(A_VAR10:REAL, Examples: [6.232, 7.062, 7.901]),
(A_VAR11:REAL, Examples: [5.205, 7.319, 7.928]),
(A_VAR12:REAL, Examples: [8.231, 3.72, 2.33]),
(A_VAR13:REAL, Examples: [6.746, 6.405, 6.029]),
(A_VAR14:REAL, Examples: [8.679, 7.202, 6.455]),
(A_VAR15:REAL, Examples: [5.292, 4.932, 4.72]),
(A_VAR16:REAL, Examples: [3.5, 7.969, 8.564]),
(A_VAR17:REAL, Examples: [5.512, 8.15, 8.342]),
(A_VAR18:REAL, Examples: [5.783, 5.633, 4.938])
]
# Table: Sales
[
(EVENTID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REFID:INTEGER, Examples: [0, 1, 2]),
(EVENT_DATE:DATETIME, Examples: [2006-12-21 12:00:00]),
(AMOUNT:REAL, Examples: [17.907, 17.401, 13.277])
]
【Foreign keys】
Customers.GEOID=Demog.GEOID
Mailings1_2.REFID=Customers.ID
Sales.REFID=Customers.ID

    【Question】
    What is the occupation and response of female customers within the number of inhabitants range of 20 to 25? female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;

    【Evidence】
    female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT DISTINCT T1.OCCUPATION, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.SEX = 'Female' AND T3.INHABITANTS_K >= 20 AND T3.INHABITANTS_K <= 25
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 software_company
【Schema】
# Table: Customers
[
(ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(SEX:TEXT, Examples: [Male, Female]),
(MARITAL_STATUS:TEXT, Examples: [Never-married, Married-civ-spouse, Divorced]),
(GEOID:INTEGER, Examples: [61, 70, 53]),
(EDUCATIONNUM:INTEGER, Examples: [7, 3, 4]),
(OCCUPATION:TEXT, Examples: [Machine-op-inspct, Handlers-cleaners, Exec-managerial]),
(age:INTEGER, Examples: [62, 78, 69])
]
# Table: Mailings1_2
[
(REFID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REF_DATE:DATETIME, Examples: [2007-02-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: mailings3
[
(REFID:INTEGER, Primary Key, Examples: [60000, 60001, 60002]),
(REF_DATE:DATETIME, Examples: [2007-07-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: Demog
[
(GEOID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(INHABITANTS_K:REAL, Examples: [30.046, 36.25, 47.645]),
(INCOME_K:REAL, Examples: [2631.47, 3012.75, 2192.41]),
(A_VAR1:REAL, Examples: [6.084, 4.604, 4.911]),
(A_VAR2:REAL, Examples: [5.79, 8.309, 8.557]),
(A_VAR3:REAL, Examples: [8.595, 6.007, 5.934]),
(A_VAR4:REAL, Examples: [3.935, 5.938, 6.494]),
(A_VAR5:REAL, Examples: [6.362, 8.773, 9.172]),
(A_VAR6:REAL, Examples: [8.626, 3.579, 3.202]),
(A_VAR7:REAL, Examples: [4.624, 6.349, 6.157]),
(A_VAR8:REAL, Examples: [8.324, 4.694, 4.822]),
(A_VAR9:REAL, Examples: [5.233, 6.884, 7.942]),
(A_VAR10:REAL, Examples: [6.232, 7.062, 7.901]),
(A_VAR11:REAL, Examples: [5.205, 7.319, 7.928]),
(A_VAR12:REAL, Examples: [8.231, 3.72, 2.33]),
(A_VAR13:REAL, Examples: [6.746, 6.405, 6.029]),
(A_VAR14:REAL, Examples: [8.679, 7.202, 6.455]),
(A_VAR15:REAL, Examples: [5.292, 4.932, 4.72]),
(A_VAR16:REAL, Examples: [3.5, 7.969, 8.564]),
(A_VAR17:REAL, Examples: [5.512, 8.15, 8.342]),
(A_VAR18:REAL, Examples: [5.783, 5.633, 4.938])
]
# Table: Sales
[
(EVENTID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REFID:INTEGER, Examples: [0, 1, 2]),
(EVENT_DATE:DATETIME, Examples: [2006-12-21 12:00:00]),
(AMOUNT:REAL, Examples: [17.907, 17.401, 13.277])
]
【Foreign keys】
Customers.GEOID=Demog.GEOID
Mailings1_2.REFID=Customers.ID
Sales.REFID=Customers.ID

    【Question】
    In male customers with an occupation handlers or cleaners, what is the percentage of customers with a true response? DIVIDE(COUNT(OCCUPATION = 'Handlers-cleaners', SEX = 'Male' and RESPONSE = 'true'), COUNT(OCCUPATION = 'Handlers-cleaners' and SEX = 'Male')) as percentage;

    【Evidence】
    DIVIDE(COUNT(OCCUPATION = 'Handlers-cleaners', SEX = 'Male' and RESPONSE = 'true'), COUNT(OCCUPATION = 'Handlers-cleaners' and SEX = 'Male')) as percentage;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT CAST(SUM(CASE WHEN T2.RESPONSE = 'true' THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.REFID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T1.OCCUPATION = 'Handlers-cleaners' AND T1.SEX = 'Male'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 software_company
【Schema】
# Table: Customers
[
(ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(SEX:TEXT, Examples: [Male, Female]),
(MARITAL_STATUS:TEXT, Examples: [Never-married, Married-civ-spouse, Divorced]),
(GEOID:INTEGER, Examples: [61, 70, 53]),
(EDUCATIONNUM:INTEGER, Examples: [7, 3, 4]),
(OCCUPATION:TEXT, Examples: [Machine-op-inspct, Handlers-cleaners, Exec-managerial]),
(age:INTEGER, Examples: [62, 78, 69])
]
# Table: Mailings1_2
[
(REFID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REF_DATE:DATETIME, Examples: [2007-02-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: mailings3
[
(REFID:INTEGER, Primary Key, Examples: [60000, 60001, 60002]),
(REF_DATE:DATETIME, Examples: [2007-07-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: Demog
[
(GEOID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(INHABITANTS_K:REAL, Examples: [30.046, 36.25, 47.645]),
(INCOME_K:REAL, Examples: [2631.47, 3012.75, 2192.41]),
(A_VAR1:REAL, Examples: [6.084, 4.604, 4.911]),
(A_VAR2:REAL, Examples: [5.79, 8.309, 8.557]),
(A_VAR3:REAL, Examples: [8.595, 6.007, 5.934]),
(A_VAR4:REAL, Examples: [3.935, 5.938, 6.494]),
(A_VAR5:REAL, Examples: [6.362, 8.773, 9.172]),
(A_VAR6:REAL, Examples: [8.626, 3.579, 3.202]),
(A_VAR7:REAL, Examples: [4.624, 6.349, 6.157]),
(A_VAR8:REAL, Examples: [8.324, 4.694, 4.822]),
(A_VAR9:REAL, Examples: [5.233, 6.884, 7.942]),
(A_VAR10:REAL, Examples: [6.232, 7.062, 7.901]),
(A_VAR11:REAL, Examples: [5.205, 7.319, 7.928]),
(A_VAR12:REAL, Examples: [8.231, 3.72, 2.33]),
(A_VAR13:REAL, Examples: [6.746, 6.405, 6.029]),
(A_VAR14:REAL, Examples: [8.679, 7.202, 6.455]),
(A_VAR15:REAL, Examples: [5.292, 4.932, 4.72]),
(A_VAR16:REAL, Examples: [3.5, 7.969, 8.564]),
(A_VAR17:REAL, Examples: [5.512, 8.15, 8.342]),
(A_VAR18:REAL, Examples: [5.783, 5.633, 4.938])
]
# Table: Sales
[
(EVENTID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REFID:INTEGER, Examples: [0, 1, 2]),
(EVENT_DATE:DATETIME, Examples: [2006-12-21 12:00:00]),
(AMOUNT:REAL, Examples: [17.907, 17.401, 13.277])
]
【Foreign keys】
Customers.GEOID=Demog.GEOID
Mailings1_2.REFID=Customers.ID
Sales.REFID=Customers.ID

    【Question】
    What is the ratio of male and female among the age of teenager when the education is above 10? ratio = DIVIDE(COUNT(SEX = 'Male' where age BETWEEN 13 AND 19 and EDUCATIONNUM > 10),COUNT(SEX = 'Female' where age BETWEEN 13 AND 19 and EDUCATIONNUM > 10));

    【Evidence】
    ratio = DIVIDE(COUNT(SEX = 'Male' where age BETWEEN 13 AND 19 and EDUCATIONNUM > 10),COUNT(SEX = 'Female' where age BETWEEN 13 AND 19 and EDUCATIONNUM > 10));

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT CAST(SUM(CASE WHEN SEX = 'Male' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN SEX = 'Female' THEN 1 ELSE 0 END) FROM Customers WHERE age BETWEEN 13 AND 19 AND EDUCATIONNUM > 10
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 software_company
【Schema】
# Table: Customers
[
(ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(SEX:TEXT, Examples: [Male, Female]),
(MARITAL_STATUS:TEXT, Examples: [Never-married, Married-civ-spouse, Divorced]),
(GEOID:INTEGER, Examples: [61, 70, 53]),
(EDUCATIONNUM:INTEGER, Examples: [7, 3, 4]),
(OCCUPATION:TEXT, Examples: [Machine-op-inspct, Handlers-cleaners, Exec-managerial]),
(age:INTEGER, Examples: [62, 78, 69])
]
# Table: Mailings1_2
[
(REFID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REF_DATE:DATETIME, Examples: [2007-02-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: mailings3
[
(REFID:INTEGER, Primary Key, Examples: [60000, 60001, 60002]),
(REF_DATE:DATETIME, Examples: [2007-07-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: Demog
[
(GEOID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(INHABITANTS_K:REAL, Examples: [30.046, 36.25, 47.645]),
(INCOME_K:REAL, Examples: [2631.47, 3012.75, 2192.41]),
(A_VAR1:REAL, Examples: [6.084, 4.604, 4.911]),
(A_VAR2:REAL, Examples: [5.79, 8.309, 8.557]),
(A_VAR3:REAL, Examples: [8.595, 6.007, 5.934]),
(A_VAR4:REAL, Examples: [3.935, 5.938, 6.494]),
(A_VAR5:REAL, Examples: [6.362, 8.773, 9.172]),
(A_VAR6:REAL, Examples: [8.626, 3.579, 3.202]),
(A_VAR7:REAL, Examples: [4.624, 6.349, 6.157]),
(A_VAR8:REAL, Examples: [8.324, 4.694, 4.822]),
(A_VAR9:REAL, Examples: [5.233, 6.884, 7.942]),
(A_VAR10:REAL, Examples: [6.232, 7.062, 7.901]),
(A_VAR11:REAL, Examples: [5.205, 7.319, 7.928]),
(A_VAR12:REAL, Examples: [8.231, 3.72, 2.33]),
(A_VAR13:REAL, Examples: [6.746, 6.405, 6.029]),
(A_VAR14:REAL, Examples: [8.679, 7.202, 6.455]),
(A_VAR15:REAL, Examples: [5.292, 4.932, 4.72]),
(A_VAR16:REAL, Examples: [3.5, 7.969, 8.564]),
(A_VAR17:REAL, Examples: [5.512, 8.15, 8.342]),
(A_VAR18:REAL, Examples: [5.783, 5.633, 4.938])
]
# Table: Sales
[
(EVENTID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REFID:INTEGER, Examples: [0, 1, 2]),
(EVENT_DATE:DATETIME, Examples: [2006-12-21 12:00:00]),
(AMOUNT:REAL, Examples: [17.907, 17.401, 13.277])
]
【Foreign keys】
Customers.GEOID=Demog.GEOID
Mailings1_2.REFID=Customers.ID
Sales.REFID=Customers.ID

    【Question】
    What is the geographic ID and total income per year when the average income is above 3300 dollar. total income per year refers to MULTIPLY(12, INHABITANTS_K, INCOME_K) where INCOME_K > 3300; geographic ID refers to GEOID;

    【Evidence】
    total income per year refers to MULTIPLY(12, INHABITANTS_K, INCOME_K) where INCOME_K > 3300; geographic ID refers to GEOID;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT GEOID, INHABITANTS_K * INCOME_K * 12 FROM Demog WHERE INCOME_K > 3300
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 software_company
【Schema】
# Table: Customers
[
(ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(SEX:TEXT, Examples: [Male, Female]),
(MARITAL_STATUS:TEXT, Examples: [Never-married, Married-civ-spouse, Divorced]),
(GEOID:INTEGER, Examples: [61, 70, 53]),
(EDUCATIONNUM:INTEGER, Examples: [7, 3, 4]),
(OCCUPATION:TEXT, Examples: [Machine-op-inspct, Handlers-cleaners, Exec-managerial]),
(age:INTEGER, Examples: [62, 78, 69])
]
# Table: Mailings1_2
[
(REFID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REF_DATE:DATETIME, Examples: [2007-02-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: mailings3
[
(REFID:INTEGER, Primary Key, Examples: [60000, 60001, 60002]),
(REF_DATE:DATETIME, Examples: [2007-07-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: Demog
[
(GEOID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(INHABITANTS_K:REAL, Examples: [30.046, 36.25, 47.645]),
(INCOME_K:REAL, Examples: [2631.47, 3012.75, 2192.41]),
(A_VAR1:REAL, Examples: [6.084, 4.604, 4.911]),
(A_VAR2:REAL, Examples: [5.79, 8.309, 8.557]),
(A_VAR3:REAL, Examples: [8.595, 6.007, 5.934]),
(A_VAR4:REAL, Examples: [3.935, 5.938, 6.494]),
(A_VAR5:REAL, Examples: [6.362, 8.773, 9.172]),
(A_VAR6:REAL, Examples: [8.626, 3.579, 3.202]),
(A_VAR7:REAL, Examples: [4.624, 6.349, 6.157]),
(A_VAR8:REAL, Examples: [8.324, 4.694, 4.822]),
(A_VAR9:REAL, Examples: [5.233, 6.884, 7.942]),
(A_VAR10:REAL, Examples: [6.232, 7.062, 7.901]),
(A_VAR11:REAL, Examples: [5.205, 7.319, 7.928]),
(A_VAR12:REAL, Examples: [8.231, 3.72, 2.33]),
(A_VAR13:REAL, Examples: [6.746, 6.405, 6.029]),
(A_VAR14:REAL, Examples: [8.679, 7.202, 6.455]),
(A_VAR15:REAL, Examples: [5.292, 4.932, 4.72]),
(A_VAR16:REAL, Examples: [3.5, 7.969, 8.564]),
(A_VAR17:REAL, Examples: [5.512, 8.15, 8.342]),
(A_VAR18:REAL, Examples: [5.783, 5.633, 4.938])
]
# Table: Sales
[
(EVENTID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REFID:INTEGER, Examples: [0, 1, 2]),
(EVENT_DATE:DATETIME, Examples: [2006-12-21 12:00:00]),
(AMOUNT:REAL, Examples: [17.907, 17.401, 13.277])
]
【Foreign keys】
Customers.GEOID=Demog.GEOID
Mailings1_2.REFID=Customers.ID
Sales.REFID=Customers.ID

    【Question】
    Point out the greater one between the number of actual responding and not responding to mailing. COUNT(REFID where RESPONSE = 'true')>or<COUNT(REFID where RESPONSE = 'false');

    【Evidence】
    COUNT(REFID where RESPONSE = 'true')>or<COUNT(REFID where RESPONSE = 'false');

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT RESPONSE FROM Mailings1_2 GROUP BY RESPONSE ORDER BY COUNT(RESPONSE) DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 software_company
【Schema】
# Table: Customers
[
(ID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(SEX:TEXT, Examples: [Male, Female]),
(MARITAL_STATUS:TEXT, Examples: [Never-married, Married-civ-spouse, Divorced]),
(GEOID:INTEGER, Examples: [61, 70, 53]),
(EDUCATIONNUM:INTEGER, Examples: [7, 3, 4]),
(OCCUPATION:TEXT, Examples: [Machine-op-inspct, Handlers-cleaners, Exec-managerial]),
(age:INTEGER, Examples: [62, 78, 69])
]
# Table: Mailings1_2
[
(REFID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REF_DATE:DATETIME, Examples: [2007-02-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: mailings3
[
(REFID:INTEGER, Primary Key, Examples: [60000, 60001, 60002]),
(REF_DATE:DATETIME, Examples: [2007-07-01 12:00:00]),
(RESPONSE:TEXT, Examples: [false, true])
]
# Table: Demog
[
(GEOID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(INHABITANTS_K:REAL, Examples: [30.046, 36.25, 47.645]),
(INCOME_K:REAL, Examples: [2631.47, 3012.75, 2192.41]),
(A_VAR1:REAL, Examples: [6.084, 4.604, 4.911]),
(A_VAR2:REAL, Examples: [5.79, 8.309, 8.557]),
(A_VAR3:REAL, Examples: [8.595, 6.007, 5.934]),
(A_VAR4:REAL, Examples: [3.935, 5.938, 6.494]),
(A_VAR5:REAL, Examples: [6.362, 8.773, 9.172]),
(A_VAR6:REAL, Examples: [8.626, 3.579, 3.202]),
(A_VAR7:REAL, Examples: [4.624, 6.349, 6.157]),
(A_VAR8:REAL, Examples: [8.324, 4.694, 4.822]),
(A_VAR9:REAL, Examples: [5.233, 6.884, 7.942]),
(A_VAR10:REAL, Examples: [6.232, 7.062, 7.901]),
(A_VAR11:REAL, Examples: [5.205, 7.319, 7.928]),
(A_VAR12:REAL, Examples: [8.231, 3.72, 2.33]),
(A_VAR13:REAL, Examples: [6.746, 6.405, 6.029]),
(A_VAR14:REAL, Examples: [8.679, 7.202, 6.455]),
(A_VAR15:REAL, Examples: [5.292, 4.932, 4.72]),
(A_VAR16:REAL, Examples: [3.5, 7.969, 8.564]),
(A_VAR17:REAL, Examples: [5.512, 8.15, 8.342]),
(A_VAR18:REAL, Examples: [5.783, 5.633, 4.938])
]
# Table: Sales
[
(EVENTID:INTEGER, Primary Key, Examples: [0, 1, 2]),
(REFID:INTEGER, Examples: [0, 1, 2]),
(EVENT_DATE:DATETIME, Examples: [2006-12-21 12:00:00]),
(AMOUNT:REAL, Examples: [17.907, 17.401, 13.277])
]
【Foreign keys】
Customers.GEOID=Demog.GEOID
Mailings1_2.REFID=Customers.ID
Sales.REFID=Customers.ID

    【Question】
    Find out the yearly income of geographic ID when the customer is female and occupation as sales. yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';

    【Evidence】
    yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.INHABITANTS_K * T2.INCOME_K * 12 FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Female' AND T1.OCCUPATION = 'Sales'